/* First Waves — main stylesheet */
/* Curious, May 2026 */

:root {
  --bg:         #09090f;
  --bg-mid:     #0f0f1a;
  --bg-surface: #13131f;
  --border:     #1e1e30;
  --text-dim:   #4a4a6a;
  --text-mid:   #8a8aaa;
  --text:       #c8c8e0;
  --text-bright:#eeeef8;
  --teal:       #3eb8ba;
  --teal-dim:   #1a5a5c;
  --teal-glow:  rgba(62, 184, 186, 0.08);
  --purple:     #7a5aaa;
  --purple-dim: #2a1a4a;
  --gold:       #c8a84a;

  --serif:      'Georgia', 'Times New Roman', serif;
  --mono:       'Courier New', monospace;

  --transition: 0.4s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Typography ── */

h1, h2, h3 {
  font-weight: normal;
  letter-spacing: 0.02em;
  color: var(--text-bright);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; color: var(--text-mid); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
h3 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--text-bright); }

em { color: var(--text-mid); font-style: italic; }

/* ── Layout ── */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

/* ── Navigation ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 9, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

nav .wordmark {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--teal);
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
}
nav ul li a:hover { color: var(--teal); }

/* ── Hero ── */

.hero {
  padding: 14rem 0 8rem;
  text-align: left;
}

.hero .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-bright);
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Teal accent line */
.hero::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--teal);
  margin-bottom: 3rem;
}

/* ── Section headers ── */

.section-header {
  margin-bottom: 3rem;
}

.section-header .label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-mid);
  font-size: 0.95rem;
  max-width: 540px;
  margin-bottom: 0;
}

/* ── Music cards ── */

.music-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.music-card {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  transition: background var(--transition);
  cursor: default;
}
.music-card:first-child { border-top: 1px solid var(--border); }

.music-card:hover {
  background: var(--teal-glow);
  margin: 0 -2rem;
  padding: 1.8rem 2rem;
}

.music-card .title {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.music-card .description {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0;
}

.music-card .meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 0.15rem;
}

/* ── Instrument cards ── */

.instrument-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.instrument-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.8rem;
  transition: border-color var(--transition), background var(--transition);
  display: block;
  color: inherit;
}

.instrument-card:hover {
  border-color: var(--teal-dim);
  background: var(--teal-glow);
  color: inherit;
}

.instrument-card .title {
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}

.instrument-card .description {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.instrument-card .open {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ── Writing ── */

.writing-piece {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  max-width: 620px;
}
.writing-piece:first-child { border-top: 1px solid var(--border); }

.writing-piece .title {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.writing-piece .excerpt {
  font-size: 0.92rem;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.writing-piece.writing-piece a,
a.writing-piece {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.writing-piece:hover .title { color: var(--teal); }

.writing-piece .open {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ── Audio players ── */

.audio-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-group audio {
  width: 100%;
  height: 32px;
  filter: invert(0.85) hue-rotate(155deg) brightness(0.7);
  opacity: 0.8;
}

.audio-group audio:hover { opacity: 1; }

.attribution {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0.5;
  margin-top: 6px;
  display: block;
}

/* ── Footer ── */

footer {
  padding: 3rem 0;
  text-align: center;
}

footer p {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* ── Utilities ── */

.teal { color: var(--teal); }
.dim  { color: var(--text-dim); }

/* ── Responsive ── */

@media (max-width: 600px) {
  .instrument-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 2rem; }

  nav ul { gap: 1.2rem; }
}
