/* The Monsoon Ledger — landing page and press kit.
   Plain CSS, no build step. Palette is the locked art-bible palette (docs/ART-BIBLE.md). */

:root {
  --saffron: #e8a33d;
  --lagoon: #1f7a7a;
  --deep: #0e4a4f;
  --terracotta: #c4623a;
  --gray: #7d8a8c;
  --brass: #b8913a;
  --cream: #f2e6cc;
  --paper: #f8f0de;
  --ink: #0b3438;
  --ink-soft: #2f5457;

  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --rule: #d9c7a0;
  --accent: var(--terracotta);
  --link: #8a3f1f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1120px;
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #082d31;
    --surface: #0d3a3f;
    --text: #f2e6cc;
    --muted: #c9bea6;
    --rule: #1f5a5e;
    --accent: var(--saffron);
    --link: #f0b860;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
}

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

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--deep); color: var(--cream); padding: .6em 1em; border-radius: var(--radius);
}
.skip-link:focus { top: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { background: var(--deep); color: var(--cream); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .75rem; }
.brand { color: var(--cream); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-nav a { color: var(--cream); text-decoration: none; font-size: .95rem; padding: .35em 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--saffron); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  font: 700 1.0625rem/1 var(--sans); text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent;
}
.btn-play { background: var(--saffron); color: var(--ink); box-shadow: 0 2px 0 var(--brass); }
.btn-play:hover { background: #f0b456; }
.btn-ghost { color: var(--cream); border-color: rgba(242, 230, 204, .7); }
.btn-ghost:hover { background: rgba(242, 230, 204, .12); }

/* Hero */
.hero { position: relative; color: var(--cream); background: var(--deep); isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 74, 79, .15) 0%, rgba(8, 45, 49, .55) 55%, rgba(8, 45, 49, .92) 100%);
}
.hero .wrap { min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 6rem 2.5rem; }
.hero .logo { margin: 0 0 .75rem; }
.logo-slot { width: min(560px, 100%); }
.logo-text { font-family: var(--serif); font-size: clamp(2.5rem, 9vw, 5rem); line-height: 1; letter-spacing: .01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.logo-text small { display: block; font-size: .32em; letter-spacing: .3em; text-transform: uppercase; color: var(--saffron); margin-bottom: .4em; }
.tagline { font-size: clamp(1.125rem, 2.6vw, 1.375rem); max-width: 38ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero-note { font-size: .9rem; margin-top: 1rem; color: #e6dcc4; }

/* Sections */
section { padding-block: 4rem; }
.section-alt { background: var(--surface); border-block: 1px solid var(--rule); }
.eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .5rem; }
.lede { font-size: 1.1875rem; max-width: 60ch; color: var(--muted); }

.premise { display: grid; gap: 2rem; }
.premise blockquote { margin: 0; padding-left: 1rem; border-left: 4px solid var(--saffron); font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--muted); }
@media (min-width: 860px) { .premise { grid-template-columns: 3fr 2fr; align-items: center; } }

/* Features */
.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.features li { background: var(--bg); border: 1px solid var(--rule); border-top: 4px solid var(--lagoon); border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem; }
.features li:nth-child(3n+2) { border-top-color: var(--saffron); }
.features li:nth-child(3n+3) { border-top-color: var(--terracotta); }

/* Assist callout */
.assist { margin-top: 2rem; background: var(--deep); color: var(--cream); border-radius: var(--radius); padding: 1.5rem; }
.assist h3 { color: var(--saffron); }
.assist ul { margin: 0; padding-left: 1.2rem; }
.assist li + li { margin-top: .35rem; }

/* Cards: characters and islands */
.cards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.cast { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.islands { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section-alt .card { background: var(--bg); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--gray); }
.stills { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.islands .card img, .stills .card img { aspect-ratio: 16 / 9; }
.stills .card a { display: block; }
.stills .card h3 { margin: 0; font-size: 1.0625rem; }
.card .body { padding: 1rem 1.1rem 1.1rem; }
.card h3 { margin-bottom: .2em; }
.card .role { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .question { font-family: var(--serif); font-style: italic; color: var(--muted); }
.group-label { margin-top: 2.5rem; }

/* Endings */
.endings { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.endings li { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; background: var(--surface); }
.endings .verb { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: .25rem; }

/* Final call to action */
.cta { text-align: center; background: var(--deep); color: var(--cream); }
.cta .lede { color: #e6dcc4; margin-inline: auto; }

/* Footer */
.site-footer { background: #072528; color: #d8ccb2; font-size: .9rem; padding-block: 2rem; }
.site-footer a { color: var(--saffron); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }

/* Press kit */
.press-hero { background: var(--deep); color: var(--cream); padding-block: 3rem 2.5rem; }
.press-hero .lede { color: #e6dcc4; }
.press-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .press-layout { grid-template-columns: 300px 1fr; align-items: start; } .factsheet { position: sticky; top: 1rem; } }
.factsheet { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
.factsheet dl { margin: 0; }
.factsheet dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: .9rem; }
.factsheet dt:first-child { margin-top: 0; }
.factsheet dd { margin: .1rem 0 0; }
.press-main section { padding-block: 0 2.75rem; }
.press-main h2 { font-size: 1.75rem; border-bottom: 2px solid var(--saffron); padding-bottom: .3rem; }
.copy-block { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; }
.copy-block + h3 { margin-top: 1.5rem; }
.copy-block p:last-child { margin-bottom: 0; }
.wordcount { font-weight: 400; font-size: .9rem; color: var(--muted); font-family: var(--sans); }
.assets-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.assets-grid a { display: block; text-decoration: none; color: var(--text); }
.assets-grid img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); }
.assets-grid .square img { aspect-ratio: 1 / 1; }
.assets-grid .tall img { aspect-ratio: 2 / 3; }
.assets-grid span { display: block; font-size: .9rem; margin-top: .35rem; }
.placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 9; border: 2px dashed var(--gray); border-radius: var(--radius);
  color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem; background: var(--surface);
}
.credits { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.credits dt { font-weight: 700; }
.credits dd { margin: 0; }
.tbd { background: rgba(232, 163, 61, .25); padding: 0 .25em; border-radius: 3px; }
.note { font-size: .95rem; color: var(--muted); }
