/* JNR — debut album landing page
   Palette: paper + ink + a single warm ember accent.
   Light and dark both fully wired; theme follows the visitor's OS by default. */

:root {
  --bg: #f7f4ef;
  --surface: #efe9e0;
  --ink: #1c1a17;
  --muted: #6b635a;
  --line: #d9d1c6;
  --accent: #a8442a;
  --accent-ink: #fdf8f3;
  --shadow: 0 1px 2px rgba(28, 26, 23, .06), 0 12px 32px rgba(28, 26, 23, .06);
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120f;
    --surface: #1d1a16;
    --ink: #f2ece3;
    --muted: #a79e93;
    --line: #322d26;
    --accent: #e07a52;
    --accent-ink: #1a1512;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14120f;
  --surface: #1d1a16;
  --ink: #f2ece3;
  --muted: #a79e93;
  --line: #322d26;
  --accent: #e07a52;
  --accent-ink: #1a1512;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding-block: 10px;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  padding-block: 12px;
  transition: color 160ms ease;
}
.nav a:hover { color: var(--ink); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.theme-toggle:hover { border-color: var(--accent); }

.theme-toggle__icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -3px -2px 0 0 var(--bg);
}

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2em;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: .86;
  letter-spacing: -0.04em;
  margin-bottom: .28em;
}

.hero-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: 34ch;
}

.hero-meta {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.8em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--solid:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-figure,
.split-figure {
  margin: 0;
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: clamp(340px, 62vh, 620px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figcaption {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: .02em;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--surface); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--reverse .split-text { order: 2; }
.split--reverse .split-figure { order: 1; }

.split-figure img {
  width: 100%;
  height: clamp(300px, 46vh, 480px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-lede { color: var(--muted); }

/* ---------- tracklist ---------- */

.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tracklist li { border-bottom: 1px solid var(--line); }

.tracklist details { padding-block: 4px; }

.tracklist summary {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding-block: 18px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.tracklist summary::-webkit-details-marker { display: none; }

.tracklist summary:hover .track-title { color: var(--accent); }

.track-num {
  font-size: .82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.track-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  transition: color 160ms ease;
}

.track-time {
  font-size: .85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tracklist details p {
  margin: 0 0 20px;
  padding-left: calc(3.2rem + 12px);
  max-width: 62ch;
  color: var(--muted);
}

.tracklist details[open] summary { padding-bottom: 10px; }

/* ---------- about ---------- */

.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 1.6em 0 0;
}
.links a { font-size: .92rem; }

/* ---------- listen / signup ---------- */

.listen-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.small { font-size: .88rem; color: var(--muted); }

.signup {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.signup label {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.signup input {
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus-visible { border-color: var(--accent); }

.signup .btn { margin-top: 6px; }

.form-status {
  margin: 4px 0 0;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 6vw, 72px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
}

.footer-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: .06em;
  margin: 0;
}

.footer-note { font-size: .88rem; color: var(--muted); margin: 0; }

.attribution {
  margin: 0 0 0 auto;
  font-size: .75rem;
  color: var(--muted);
}
.attribution a { color: var(--muted); text-decoration: none; }
.attribution a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeRise {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }

  @supports (animation-timeline: view()) {
    .section > .wrap {
      animation: fadeRise 480ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }

  .hero-copy > * {
    animation: fadeRise 620ms cubic-bezier(.2, .7, .1, 1) both;
  }
  .hero-copy > :nth-child(1) { animation-delay: 60ms; }
  .hero-copy > :nth-child(2) { animation-delay: 140ms; }
  .hero-copy > :nth-child(3) { animation-delay: 220ms; }
  .hero-copy > :nth-child(4) { animation-delay: 300ms; }
  .hero-copy > :nth-child(5) { animation-delay: 380ms; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .listen-grid {
    grid-template-columns: 1fr;
  }
  .split--reverse .split-text,
  .split--reverse .split-figure { order: initial; }
  .hero-figure img { height: clamp(300px, 52vh, 460px); }
  .hero-lede { max-width: 46ch; }
}

@media (max-width: 520px) {
  .tracklist summary { grid-template-columns: 2.4rem 1fr auto; }
  .tracklist details p { padding-left: 0; }
  .attribution { margin-left: 0; }
}
