/* Colours are the app's own tokens (app/src/theme/tokens.ts). Amber glows are sampled from the approved artwork. */
:root {
  --bg: #F6EFE3; --surface: #FFFBF3; --alt: #EDE3D2; --text: #2A2118; --muted: #665846;
  --primary: #7E520F; --on-primary: #FFFBF3; --accent: #A8701C; --border: #D9CBB3;
  --hero: linear-gradient(180deg, #FFF0DC 0%, #FDE0B6 48%, #F9C585 100%);
  --hero-muted: #594630;
  --final: linear-gradient(180deg, #FDD38F 0%, #F7AE45 100%);
  --shadow: 0 24px 60px rgba(94, 56, 10, .22);
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140F; --surface: #29231C; --alt: #201B15; --text: #F3EBDD; --muted: #BDAF98;
    --primary: #DDA24B; --on-primary: #17140F; --accent: #E3B36A; --border: #4A3F32;
    --hero: linear-gradient(180deg, #17140F 0%, #2B1A0E 55%, #57300F 100%);
    --hero-muted: #D6C5A8;
    --final: linear-gradient(180deg, #2B1A0E 0%, #57300F 100%);
    --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.65 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.1rem + 4vw, 3.6rem); letter-spacing: -.015em; text-wrap: wrap; }
h1 span { display: block; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; margin-top: 2rem; }
p { margin: 1rem 0 0; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--text); padding: .75rem 1rem; z-index: 2; }
.skip:focus { left: .5rem; top: .5rem; }
.anchor { scroll-margin-top: 1rem; }

.top { background: var(--bg); border-bottom: 1px solid var(--border); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block: .7rem; }
.id { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font: 400 1.2rem/1.2 var(--serif); }
.id img, .foot-id img { border-radius: 10px; }
.top nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.top nav a { color: var(--text); text-decoration: none; padding: .55rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover, .foot nav a:hover { text-decoration: underline; }
@media (max-width: 26rem) { .id-sub { display: none; } }
@media (min-width: 52rem) { .top nav { order: 0; width: auto; margin: 0 .75rem 0 auto; } }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .6rem 1.4rem; border-radius: 14px; background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; border: 1.5px solid var(--primary); }
.button.small { min-height: 44px; padding: .4rem 1.1rem; }
.button.ghost { background: transparent; color: var(--text); border-color: currentColor; }
.badge { display: inline-block; border-radius: 9px; }
.badge img { height: 54px; width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.center .actions { justify-content: center; }
.status { font-weight: 600; margin-top: 1.1rem; }
.note { color: var(--hero-muted); margin-top: .5rem; }

.eyebrow { margin: 0 0 1rem; color: var(--primary); font-weight: 600; font-size: .95rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); margin-top: 1.5rem; max-width: 34rem; }
/* No device frame: clean screenshot, rounded corners, soft shadow. */
.screen { border-radius: 24px; box-shadow: var(--shadow); width: 100%; }

.hero { background: var(--hero); overflow: clip; }
.hero-in > *, .split > *, .practise > *, .pair > *, .cols > * { min-width: 0; }
h1, h2 { overflow-wrap: anywhere; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-block: 3rem 4rem; }
.hero-shot { width: min(78vw, 380px); margin-inline: auto; }
.hero .eyebrow { color: var(--text); }

.band, .night, .story { padding-block: clamp(4rem, 9vw, 7.5rem); }
.alt { background: var(--alt); }
.split, .practise { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.copy { max-width: 34rem; }
.shots { width: min(74vw, 320px); margin: 0 auto; }
.pair { width: 100%; display: grid; gap: 2.5rem; justify-items: center; }
figure { margin: 0; }
.pair figure { width: min(74vw, 280px, 100%); }
figcaption { margin-top: 1rem; color: var(--muted); font-size: .95rem; text-align: center; }
.aside { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--muted); }

.night { --text: #F3EBDD; --muted: #BDAF98; --primary: #DDA24B; --accent: #E3B36A; --border: #4A3F32; --shadow: 0 24px 60px rgba(0, 0, 0, .55); color: #F3EBDD; background: linear-gradient(180deg, #17140F 0%, #2B1A0E 62%, #57300F 100%); }
.night figcaption { color: #E6D6BB; }
.story { background: var(--bg); }
.story .copy p:not(.eyebrow) { font: 400 clamp(1.15rem, 1.05rem + .5vw, 1.35rem)/1.65 var(--serif); }
.art { max-width: 420px; width: 100%; margin: 0 auto; }
.art img { border-radius: 24px; width: 100%; }
.cols { display: grid; gap: 1rem 4rem; }
.story + .band { border-top: 1px solid var(--border); }

details { border-bottom: 1px solid var(--border); }
details:first-of-type { margin-top: 2rem; border-top: 1px solid var(--border); }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 400 1.2rem/1.35 var(--serif); position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .4rem; top: 1.5rem; width: .6rem; height: .6rem; border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
details[open] summary::after { transform: rotate(225deg); top: 1.75rem; }
details > :last-child { margin-bottom: 1.4rem; }
details p, details ul { margin-top: 0; }
ul { padding-left: 1.25rem; }
li { margin-top: .35rem; }

.final { background: var(--final); padding-block: clamp(4rem, 9vw, 7rem); }
.final-icon { margin: 0 auto 1.75rem; border-radius: 24px; }
.foot { background: var(--bg); border-top: 1px solid var(--border); }
.foot-in { padding-block: 2.5rem 3rem; }
.foot-id { display: flex; align-items: center; gap: .65rem; margin: 0; font: 400 1.15rem/1.2 var(--serif); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin-top: 1rem; }
.foot nav a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fine { color: var(--muted); font-size: .9rem; max-width: 44rem; }

.doc { padding-block: 3rem 5rem; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2.75rem; }
.doc .part { font-size: 1.9rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.doc h3 { font-size: 1.2rem; }
.meta { color: var(--muted); }
.table { overflow-x: auto; margin-top: 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: .95rem; }
th, td { border: 1px solid var(--border); padding: .6rem; text-align: left; vertical-align: top; }

@media (min-width: 37.5rem) { .pair { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 56.25rem) {
  .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 4.5rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .flip .copy { order: 2; }
  .practise { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .badge { transition: opacity .15s ease, transform .1s ease; }
  .button:active, .badge:active { transform: scale(.97); }
}
.button:hover, .badge:hover { opacity: .88; }
