/* VolleyLlama's own palette: the app's deep navy court, marigold ball and sky-blue opponent. No web
   fonts and no external requests: these pages have to load instantly behind a CDN and work offline in
   an in-app browser. The app is dark-only; the pages follow the reader's setting. */
:root {
  --ground: #F3F5FA;
  --surface: #FFFFFF;
  --border: #D9DFEC;
  --ink: #0B1226;
  --ink-2: #39425A;
  --dim: #5B6479;
  --accent: #8A5F00;      /* links on a light page; marigold itself is unreadable on white */
  --accent-soft: #FFF3D6;
  --sun: #FFC02E;
  --sky: #6CB2FF;
  --rule: rgba(255, 255, 255, 0.06);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B1226;
    --surface: #131C37;
    --border: #243055;
    --ink: #F2F5FC;
    --ink-2: #BCC6DD;
    --dim: #8A94AE;
    --accent: #FFC02E;
    --accent-soft: #302819;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* The app's own surface: deep navy with faint court lines, a marigold glow and a sky glow. Drawn in CSS
   rather than shipped as an image so it holds at any width. Dark in both modes. */
header.hero {
  background-color: #0B1226;
  background-image:
    radial-gradient(circle at 90% -12%, rgba(255, 192, 46, 0.22), transparent 52%),
    radial-gradient(circle at 4% 118%, rgba(108, 178, 255, 0.16), transparent 50%),
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 96px);
  color: #fff;
  padding: 56px 24px 46px;
}

.hero-inner, footer .inner { max-width: 720px; margin: 0 auto; }
/* main carries its own 24px gutters, so it is 48px wider to line its text up with the header's. */
main { max-width: 768px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; display: block; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sun);
}
.hero .eyebrow { margin-bottom: 14px; }
.brand .eyebrow { margin: 0; }

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: clamp(29px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero p { margin: 0; color: rgba(255, 255, 255, 0.84); max-width: 56ch; }

main { padding: 40px 24px 72px; }

h2 {
  margin: 44px 0 10px;
  font-family: var(--display);
  font-stretch: 112%;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

h2:first-of-type { margin-top: 8px; }

h3 { margin: 26px 0 6px; font-family: var(--display); font-size: 17.5px; }

p, li { color: var(--ink-2); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }
strong { color: var(--ink); }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.lede {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.lede p:last-child { margin-bottom: 0; }

.stamp {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 28px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Support: one question per block, no scripting needed. */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
}
details[open] { padding-bottom: 6px; }
summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; flex: none; width: 1ch; font-family: var(--mono); color: var(--accent); }
details[open] > summary::before { content: "\2013"; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
details p:last-child, details ul:last-child, details ol:last-child { margin-bottom: 12px; }

.button {
  display: inline-block;
  background: var(--sun);
  color: #0B1226;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
}
.button:hover { filter: brightness(0.95); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px 56px;
  color: var(--dim);
  font-size: 14.5px;
}

footer .inner { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--dim); }
footer a:hover { color: var(--ink); }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 8px; }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--accent); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card h2 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.card p { margin: 0; font-size: 15px; color: var(--dim); }
