/* Base: reset, typography, layout, nav, footer, motion. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--gold-bright); }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.prose { max-width: 68ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { border-bottom: 1px solid var(--gold-soft); }

/* ---------- kicker (small-caps section label) ---------- */
.kicker {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.kicker::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  opacity: .55;
  margin-top: .65rem;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: auto;
}
.wordmark:hover { color: var(--gold-bright); }

.nav-links { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.nav-links a {
  position: relative;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: .3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

.theme-toggle {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-dim);
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- sections / hero ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); }
.hero .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-dim);
  max-width: 46ch;
}
.hero-rule {
  width: 4.5rem; height: 1px;
  background: var(--gold);
  border: none;
  margin: 1.8rem 0;
}

.page-head { padding: clamp(3rem, 8vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head .lede { color: var(--ink-dim); max-width: 56ch; font-size: 1.06rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0 7rem; /* bottom room for player bar */
  color: var(--ink-dim);
  font-size: .85rem;
}
.site-footer .inner { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
