/* Remate's own palette: the app's charcoal and volt. 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: #F4F6F0;
  --surface: #FFFFFF;
  --border: #DCE1D2;
  --ink: #0E1114;
  --ink-2: #3E464C;
  --dim: #5E676E;
  --accent: #476400;      /* links on a light page; volt itself is unreadable on white */
  --accent-soft: #EEF5D4;
  --volt: #D4FF3B;
  --cyan: #36C9FF;
  --rule: rgba(255, 255, 255, 0.055);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A0D0F;
    --surface: #171A1F;
    --border: #262B33;
    --ink: #F2F4F5;
    --ink-2: #C2C8CD;
    --dim: #8E959C;
    --accent: #D4FF3B;
    --accent-soft: #1C2208;
  }
}

* { 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: near-black with faint court lines and a volt glow. Drawn in
   CSS rather than shipped as an image so it holds at any width. Dark in both modes. */
header.hero {
  background-color: #0A0D0F;
  background-image:
    radial-gradient(circle at 88% -10%, rgba(212, 255, 59, 0.20), transparent 52%),
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 72px);
  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.18em;
  text-transform: uppercase;
  color: var(--volt);
}
.hero .eyebrow { margin-bottom: 14px; }
.brand .eyebrow { margin: 0; }

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--round);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

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

h2 {
  margin: 44px 0 10px;
  font-family: var(--round);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

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

h3 { margin: 26px 0 6px; font-family: var(--round); 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(--volt);
  color: #0A0D0F;
  font-family: var(--round);
  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); }
