:root {
  --bg: #0b0d12;
  --surface: #12151d;
  --surface-2: #171b25;
  --line: #272d3b;
  --text: #f2f0eb;
  --body: #c9c7c2;
  --dim: #9399a6;
  --accent: #e5484d;
  --accent-soft: rgba(229, 72, 77, .13);
  --gold: #f5b944;
  --green: #4cc38a;
  --max: 1120px;
  --article: 760px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: #ffd47b; }
img { max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 18, .92);
  border-bottom: 1px solid rgba(39, 45, 59, .85);
  backdrop-filter: blur(14px);
}
.nav-shell {
  width: min(var(--max), calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.site-nav .play-link { color: #fff; background: var(--accent); }
.site-nav .play-link:hover { color: #fff; background: #f05257; }

.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.article-shell { width: min(var(--article), calc(100% - 40px)); margin: 0 auto; }
main { min-height: 60vh; }

.breadcrumbs { padding-top: 26px; font-size: 13px; color: var(--dim); }
.breadcrumbs a { color: var(--dim); text-decoration: none; }
.breadcrumbs span { margin: 0 7px; }

.hero {
  padding: clamp(62px, 9vw, 112px) 0 62px;
  text-align: center;
}
.hero.compact { padding: 54px 0 34px; text-align: left; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { max-width: 900px; margin: 0 auto 18px; font-size: clamp(40px, 7vw, 72px); }
.compact h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 54px); }
h1 em { color: var(--accent); font-style: normal; }
h2 { margin: 0 0 16px; font-size: clamp(26px, 4vw, 36px); }
h3 { margin: 0 0 8px; font-size: 20px; }
p { color: var(--body); margin: 0 0 15px; }
.lead { max-width: 720px; color: var(--dim); font-size: clamp(18px, 2.5vw, 21px); }
.hero > .lead { margin: 0 auto; }
.compact .lead { margin: 0; }
.meta { color: var(--dim); font-size: 14px; }
.meta a { color: var(--body); }

.hero-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 24px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 10px 32px rgba(229,72,77,.25); }
.button.primary:hover { background: #f05257; color: #fff; }
.button.secondary:hover { border-color: #454d61; color: #fff; }
.microcopy { margin-top: 10px; color: var(--dim); font-size: 13px; }

.join-box { width: min(440px, 100%); margin: 28px auto 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.join-box label { display: block; margin-bottom: 8px; color: var(--dim); font-size: 13px; }
.join-row { display: flex; gap: 8px; }
.join-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 700px; margin-bottom: 26px; }
.section-intro p { color: var(--dim); }
.grid { display: grid; gap: 15px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.card p:last-child { margin-bottom: 0; }
.card .icon { display: block; margin-bottom: 10px; font-size: 26px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { border-color: #485166; color: inherit; transform: translateY(-1px); }
.number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 13px;
  border: 1px solid rgba(229,72,77,.35);
  border-radius: 50%;
  background: var(--accent-soft);
  color: #ff8b8f;
  font-weight: 900;
}

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid rgba(245,185,68,.35);
  border-left: 4px solid var(--gold);
  border-radius: 13px;
  background: rgba(245,185,68,.07);
}
.callout p:last-child { margin-bottom: 0; }
.callout.danger { border-color: rgba(229,72,77,.35); border-left-color: var(--accent); background: var(--accent-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--text); background: var(--surface-2); font-size: 13px; }
td { color: var(--body); font-size: 14px; }

.toc { margin: 4px 0 34px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc strong { display: block; margin-bottom: 7px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--body); }

.article { padding-bottom: 70px; }
.article h2 { margin-top: 48px; scroll-margin-top: 90px; }
.article h3 { margin-top: 30px; scroll-margin-top: 90px; }
.article ul, .article ol { color: var(--body); padding-left: 23px; }
.article li { margin: 8px 0; }
.article hr { margin: 42px 0; border: 0; border-top: 1px solid var(--line); }
.article .card h2, .article .card h3 { margin-top: 0; }

.role-card { position: relative; padding-left: 26px; border-left: 4px solid var(--role, var(--line)); }
.role-card .team { margin-bottom: 5px; color: var(--dim); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.role-card h2 { margin: 0 0 8px; font-size: 25px; }
.role-card dl { margin: 15px 0 0; }
.role-card dt { color: var(--text); font-weight: 800; }
.role-card dd { margin: 0 0 9px; color: var(--body); }

details { margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
summary { cursor: pointer; color: var(--text); font-weight: 800; }
details p { margin: 10px 0 0; }

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 13px;
}
.byline-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 20px; }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 54px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
.footer-title { margin-bottom: 8px; font-weight: 900; }
.footer-copy { max-width: 420px; color: var(--dim); font-size: 14px; }
.footer-links { display: grid; align-content: start; gap: 6px; }
.footer-links strong { margin-bottom: 3px; font-size: 13px; }
.footer-links a { color: var(--dim); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

.say {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--surface);
}
.say::before { content: "READ ALOUD"; display: block; margin-bottom: 6px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.print-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.print-card { min-height: 150px; display: grid; place-content: center; text-align: center; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface); }
.print-card span { font-size: 35px; }
.print-card small { color: var(--dim); }

@media (max-width: 800px) {
  .nav-shell { width: calc(100% - 24px); min-height: 58px; gap: 12px; }
  .site-nav a:not(.play-link) { display: none; }
  .site-nav a { padding: 7px 10px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell, .article-shell { width: min(100% - 28px, var(--max)); }
  .hero { padding-top: 48px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .print-cards { grid-template-columns: 1fr 1fr; }
}

@media print {
  .site-header, .site-footer, .no-print, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; }
  p, li, td, .meta { color: #222; }
  .print-card { color: #000; background: #fff; border-color: #777; break-inside: avoid; }
}

