/* Dreamroot site
   Direction: "Woods at the root" — paper-and-ink pages, forest light from the
   trio portraits, one moss accent. Memorable element: the woods photograph.
   Tokens only. See DESIGN.md.
*/

:root {
  --bg: #f3efe6;
  --bg-deep: #e7e1d4;
  --ink: #1a1916;
  --muted: #5a554c;
  --rule: #d2cbc0;
  --moss: #2c4a38;
  --moss-hover: #1e3428;
  --ivory: #f3efe6;
  --hero-ink: #f3efe6;
  --hero-muted: #d9d2c6;
  --hero-scrim: rgba(14, 18, 16, 0.42);
  --cream: #f3d9be;

  --font-display: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-26: 1.625rem;
  --fs-34: 2.125rem;
  --fs-44: 2.75rem;

  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-96: 6rem;

  --radius-sm: 2px;
  --radius-md: 6px;
  --measure: 65ch;
  --wide: 72rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--moss);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.55;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-underline-offset: 0.15em; }
a:hover { color: var(--moss-hover); }
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible + .nav-button,
.btn:focus-visible,
.site-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip {
  position: absolute;
  left: var(--space-16);
  top: -4rem;
  background: var(--ink);
  color: var(--ivory);
  padding: var(--space-8) var(--space-16);
  z-index: 200;
}
.skip:focus { top: var(--space-16); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 230, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.site-header.is-over-hero {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header.is-over-hero .brand-mark { filter: none; }
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-12) var(--space-24);
  padding-left: max(var(--space-24), env(safe-area-inset-left));
  padding-right: max(var(--space-24), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.brand img {
  height: 36px;
  width: auto;
}
@media (min-width: 800px) {
  .brand img { height: 42px; }
}
.site-header.is-over-hero .brand .logo-ink { display: none; }
.site-header.is-over-hero .brand .logo-cream { display: block; }
.site-header:not(.is-over-hero) .brand .logo-cream { display: none; }
.site-header:not(.is-over-hero) .brand .logo-ink { display: block; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-8);
  font: inherit;
  font-size: var(--fs-14);
  font-weight: 600;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-header.is-over-hero .nav-button { color: var(--hero-ink); }

.nav-button .nav-label-close { display: none; }
.nav-toggle:checked + .nav-button .nav-label-open { display: none; }
.nav-toggle:checked + .nav-button .nav-label-close { display: inline; }

/* When the mobile menu is open over the hero, switch the bar to paper
   so the Close control stays readable. */
@media (max-width: 799px) {
  .site-header.is-over-hero:has(#nav-toggle:checked) {
    background: rgba(243, 239, 230, 0.96);
    border-bottom-color: var(--rule);
    backdrop-filter: blur(8px);
  }
  .site-header.is-over-hero:has(#nav-toggle:checked) .nav-button { color: var(--ink); }
  .site-header.is-over-hero:has(#nav-toggle:checked) .brand .logo-ink { display: block; }
  .site-header.is-over-hero:has(#nav-toggle:checked) .brand .logo-cream { display: none; }
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-8);
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-16) var(--space-24) var(--space-24);
}
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0 var(--space-8);
}
.site-nav a[aria-current="page"] { color: var(--moss); box-shadow: inset 0 -2px 0 var(--moss); }
.site-nav a:hover { color: var(--moss); }

@media (min-width: 800px) {
  .nav-button { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    gap: var(--space-4);
  }
  .site-header.is-over-hero .site-nav a { color: var(--hero-ink); }
  .site-header.is-over-hero .site-nav a[aria-current="page"],
  .site-header.is-over-hero .site-nav a:hover { color: #fff; text-decoration: underline; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vw;
  max-height: 85dvh;
  min-height: 32rem;
  color: var(--hero-ink);
  display: flex;
  align-items: flex-end;
}
@media (min-width: 800px) {
  .hero {
    min-height: 100dvh;
    max-height: none;
  }
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
@media (min-width: 800px) {
  .hero img.hero-photo { object-position: center 38%; }
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,18,16,0.78) 0%, rgba(14,18,16,0.2) 45%, rgba(14,18,16,0.15) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-64) var(--space-24) var(--space-48);
  padding-bottom: max(var(--space-48), env(safe-area-inset-bottom));
}
.hero h1,
.hero-logo {
  margin: 0 0 var(--space-16);
  line-height: 0;
}
.hero-logo img {
  width: min(18rem, 84vw);
  height: auto;
  filter: drop-shadow(0 1px 12px rgba(14, 18, 16, 0.35));
}
@media (min-width: 800px) {
  .hero-logo img { width: min(30rem, 46vw); }
}
.hero .lede {
  font-size: var(--fs-20);
  line-height: 1.4;
  max-width: 28rem;
  color: var(--hero-muted);
  margin: 0 0 var(--space-32);
}
.actions { display: flex; flex-wrap: wrap; gap: var(--space-12); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.55rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  color: var(--cream);
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}
.btn-frame {
  position: absolute;
  inset: -4px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 8px);
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}
.btn-frame path {
  transition: fill 180ms var(--ease), stroke 180ms var(--ease);
}
.btn-label { position: relative; }
.btn-primary { color: var(--cream); }
.btn-primary .btn-frame path {
  fill: var(--moss);
  stroke: var(--ink);
  stroke-width: 1.7;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--cream);
  transform: rotate(-0.7deg) translateY(-1px);
}
.btn-primary:hover .btn-frame,
.btn-primary:focus-visible .btn-frame {
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.btn-primary:hover .btn-frame path,
.btn-primary:focus-visible .btn-frame path {
  fill: var(--moss-hover);
}
.btn-ghost { color: var(--cream); }
.btn-ghost .btn-frame path {
  fill: transparent;
  stroke: var(--cream);
  stroke-width: 1.9;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--ivory);
  transform: rotate(0.5deg) translateY(-1px);
}
.btn-ghost:hover .btn-frame path,
.btn-ghost:focus-visible .btn-frame path {
  fill: rgba(243, 217, 190, 0.18);
  stroke: var(--ivory);
}
/* Outline variant on paper (if needed) */
.btn-on-paper { color: var(--ink); }
.btn-on-paper .btn-frame path {
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 1.8;
}
.btn-on-paper:hover,
.btn-on-paper:focus-visible {
  color: var(--cream);
  transform: rotate(0.5deg) translateY(-1px);
}
.btn-on-paper:hover .btn-frame path,
.btn-on-paper:focus-visible .btn-frame path {
  fill: var(--ink);
  stroke: var(--ink);
}
.btn:active { transform: rotate(0deg) translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-frame path {
    transition: none;
  }
  .btn:hover,
  .btn:focus-visible,
  .btn:active,
  .btn-primary:hover,
  .btn-primary:focus-visible,
  .btn-ghost:hover,
  .btn-ghost:focus-visible,
  .btn-on-paper:hover,
  .btn-on-paper:focus-visible {
    transform: none;
  }
  .btn-primary:hover .btn-frame,
  .btn-primary:focus-visible .btn-frame {
    filter: none;
  }
}

/* Layout */
main { display: block; }
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--space-64) var(--space-24);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-34);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-24);
}
.kicker {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 var(--space-8);
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 var(--space-16); }
.prose p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  gap: var(--space-32);
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-64); }
  .hero-copy { padding-bottom: var(--space-64); }
}

.band {
  background: var(--bg-deep);
}
.band .wrap { padding-top: var(--space-64); padding-bottom: var(--space-64); }

/* Cards / albums */
.album-row {
  display: grid;
  gap: var(--space-24);
}
@media (min-width: 700px) {
  .album-row { grid-template-columns: 200px 1fr; align-items: start; gap: var(--space-32); }
}
.album-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.album-meta .section-title { margin-top: 0; }
.album-meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-26);
  margin: 0 0 var(--space-8);
  letter-spacing: -0.02em;
}
.album-meta .year { color: var(--muted); font-size: var(--fs-14); }
.tracklist {
  list-style: none;
  margin: var(--space-16) 0 0;
  padding: 0;
  max-width: 36rem;
}
.tracklist li {
  display: grid;
  grid-template-columns: 2ch 1fr auto;
  gap: var(--space-12);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.tracklist .num { color: var(--muted); }
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16) var(--space-24);
  margin-top: var(--space-16);
}
.links-row a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0 0.4rem;
  min-height: 44px;
  display: inline-flex;
  align-items: flex-end;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none' fill='none'><path d='M2 5.2 C 30 2.4, 70 6.4, 100 3.6 C 130 1.4, 165 6, 198 4.2' stroke='%231a1916' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 0.85em bottom 0.15rem;
  background-size: 0 7px;
  transition: background-size 200ms var(--ease), color 200ms var(--ease);
}
.links-row a:hover,
.links-row a:focus-visible {
  color: var(--moss);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none' fill='none'><path d='M2 5.2 C 30 2.4, 70 6.4, 100 3.6 C 130 1.4, 165 6, 198 4.2' stroke='%232c4a38' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-size: 100% 7px;
}
@media (prefers-reduced-motion: reduce) {
  .links-row a { transition: none; background-size: 100% 7px; }
}

/* Video grid */
.video-grid {
  display: grid;
  gap: var(--space-24);
}
@media (min-width: 700px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}
.video-card h3 {
  font-size: var(--fs-20);
  font-family: var(--font-display);
  font-weight: 500;
  margin: var(--space-12) 0 var(--space-4);
}
.video-card p { margin: 0; color: var(--muted); font-size: var(--fs-14); }
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1916;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.embed iframe, .embed .ratio-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed.portrait { aspect-ratio: 9 / 16; max-width: 280px; }

/* Shows */
.show-list { list-style: none; margin: 0; padding: 0; }
.show-list li {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .show-list li {
    grid-template-columns: 8rem 1fr auto;
    align-items: baseline;
    gap: var(--space-24);
  }
}
.empty-state {
  border: 1px solid var(--rule);
  padding: var(--space-48) var(--space-24);
  background: var(--bg-deep);
}
.empty-state h2 { margin: 0 0 var(--space-8); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-26); }
.empty-state p { margin: 0 0 var(--space-24); color: var(--muted); max-width: var(--measure); }

/* About / press */
.people {
  display: grid;
  gap: var(--space-48);
  margin-top: var(--space-48);
}
@media (min-width: 800px) {
  .people { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-32); }
}
.person img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: var(--space-16);
  border-radius: var(--radius-sm);
}
.person h3 { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-20); }
.person .role { color: var(--muted); margin: 0 0 var(--space-12); font-size: var(--fs-14); }
.quote {
  margin: var(--space-32) 0;
  padding: 0;
  border-left: 2px solid var(--moss);
  padding-left: var(--space-24);
  max-width: var(--measure);
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  line-height: 1.4;
  margin: 0 0 var(--space-12);
  font-weight: 500;
}
.quote cite { font-style: normal; color: var(--muted); font-size: var(--fs-14); }
.credits { list-style: none; padding: 0; margin: var(--space-16) 0 0; }
.credits li { padding: var(--space-12) 0; border-top: 1px solid var(--rule); }
.photo-grid {
  display: grid;
  gap: var(--space-16);
}
@media (min-width: 700px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
.photo-grid a {
  text-decoration: none;
  color: var(--ink);
}
.photo-grid figcaption { margin-top: var(--space-8); font-size: var(--fs-14); color: var(--muted); }

/* Footer */
.site-footer {
  background: #1a1f1c;
  color: #e7e1d4;
  padding: var(--space-64) var(--space-24);
  padding-bottom: max(var(--space-48), env(safe-area-inset-bottom));
}
.site-footer .wrap { padding: 0; }
.site-footer a { color: #e7e1d4; }
.site-footer a:hover,
.site-footer a:focus-visible { color: #fff; }
.site-footer .muted { color: #b7b0a4; }
.footer-grid {
  display: grid;
  gap: var(--space-32);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.socials, .footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials li, .footer-nav li { margin: 0 0 var(--space-8); }
.socials a, .footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}
.site-footer h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-20);
  margin: 0 0 var(--space-16);
}

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; max-width: 36rem; }
.contact-list li {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--rule);
}
.contact-list .label { display: block; font-size: var(--fs-14); color: var(--muted); margin-bottom: var(--space-4); }

.page-hero {
  padding: var(--space-96) var(--space-24) var(--space-32);
  max-width: var(--wide);
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.125rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--space-16);
}
.page-hero p { margin: 0; max-width: var(--measure); color: var(--muted); font-size: var(--fs-20); }

.spotify-wrap iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  height: 152px;
  border-radius: var(--radius-sm);
}
@media (min-width: 800px) {
  .spotify-wrap iframe { height: 352px; }
}

.footer-brand { margin: 0 0 var(--space-16); line-height: 0; }
.footer-brand img { height: 36px; width: auto; }
