/* ================================================================
   layout.css - page frame: nav, hero, section shells, dividers,
   about grid, footer, responsive breakpoints.
   References tokens only.
   ================================================================ */

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: inline-block;
  line-height: 0;
}
.logo {
  height: 2.3rem;
  width: auto;
  border-radius: var(--radius-card);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.75rem;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--accent-bright); }

/* Anchor targets: keep the top of the jumped-to section clear of the
   sticky nav. Section-level anchors need the nav height; the container
   anchors (#latest, #discography, #about) sit BELOW the section head,
   so they also offset for the head to keep it visible. */
#top,
#featured,
#store,
#tour,
#newsletter,
#main {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
#latest,
#discography,
#about {
  scroll-margin-top: calc(var(--nav-h) + var(--section-head-h));
}

/* ---------------- Hero ---------------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(92vh, 880px);
  padding: clamp(3rem, 10vh, 6rem) 1.5rem;
}
/* #hero is the render container; .hero-inner is what main.js builds.
   Centering lives on both so the static fallback and the rendered
   hero stack identically. */
#hero,
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
#hero { max-width: 64rem; }
.hero .kicker { margin-bottom: 1.4rem; }
.hero-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-hero);
  text-transform: uppercase;
  font-size: var(--text-hero);
  line-height: 0.92;
  color: var(--ink);
}
/* Static fallback only; main.js re-renders the hero without a rule. */
.hero-rule {
  width: min(430px, 62%);
  border-top: 1px solid var(--accent-line-70);
  margin: 1.9rem 0 1.4rem;
}
.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---------------- Dividers (plain spacing) ----------------------
   Pure whitespace between sections. The fog glow used to live here
   (and repeated once per divider); it is now a single fixed glow
   pinned above the dock - see body::before in base.css. */

.divider {
  height: var(--divider-h);
}

/* ---------------- Section shells ---------------- */

.section {
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.25rem, 5vw, 3rem);
}
.section-inner {
  max-width: 60rem;
  margin-inline: auto;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 2.25rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-title);
  text-transform: uppercase;
  font-size: var(--text-section);
  line-height: 1;
  color: var(--ink);
}
.section-note {
  font-size: var(--text-micro);
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------------- About grid ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-line-35);
  box-shadow: var(--shadow-card), 0 0 50px var(--accent-tint-22);
  display: grid;
  place-items: center;
  background: var(--bg-raised);
  color: var(--ink-dim);
  font-size: var(--text-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.about-portrait--placeholder {
  background: linear-gradient(160deg, var(--bg-raised), rgba(0, 0, 0, 0.35));
}
.about-copy p {
  max-width: 52ch;
  color: var(--ink-dim);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--ink); font-weight: var(--fw-medium); }
.about-copy code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

/* ---------------- Footer ---------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-micro);
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer a:hover { color: var(--accent-bright); }

/* ---------------- Responsive ---------------- */

@media (max-width: 760px) {
  .nav-links { gap: 0.4rem 1.1rem; }
  .nav-links a { font-size: 0.62rem; letter-spacing: 0.2em; }

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; }

  .section-head { align-items: flex-start; flex-direction: column; }
}
