/* Grind Tracker site. Tokens mirror spec/design.md (Bedside lamp, dark only). */
:root {
  --bg: #0e0f14; --surface: #181a22; --raised: #20232d; --line: #2a2d38;
  --text: #ede8de; --muted: #9a968e; --faint: #6b6862;
  --accent: #f2b56b; --accent-dim: #7a5a35; --on-accent: #1a1206;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #f7cc94; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 18px; letter-spacing: -0.3px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 14px; }
nav a:hover { color: var(--text); }
/* Home: the looping night video fills the first screen; the words sit low, over a dark fade. */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: #0b0a0c; }
.stage video, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 50%; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,15,20,.55) 0%, rgba(14,15,20,0) 22%, rgba(14,15,20,0) 42%, rgba(14,15,20,.72) 78%, var(--bg) 100%); }
.stage > .wrap { position: relative; z-index: 1; width: 100%; }
.stage .words { margin-top: auto; padding-bottom: 56px; }
.stage h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.06; letter-spacing: -1.4px; font-weight: 600; margin: 0 0 14px; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.stage p.lead { color: #d9d3c7; font-size: clamp(16px, 2.1vw, 19px); margin: 0 0 24px; max-width: 32em; text-shadow: 0 1px 16px rgba(0,0,0,.6); }
.stage nav a { color: #d9d3c7; }
.pill { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; box-shadow: 0 0 40px rgba(242,181,107,.25); }
.note { display: block; margin-top: 12px; color: #b5afa3; font-size: 13px; }
h2 { font-size: 24px; letter-spacing: -0.4px; font-weight: 600; margin: 0 0 20px; }
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: linear-gradient(180deg, #1c1b20, #17171d); border-radius: 24px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.num { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; display: block; margin-bottom: 10px; }
ul.plain { margin: 0; padding-left: 20px; color: var(--muted); }
ul.plain li { margin-bottom: 8px; }
.disclaimer { color: var(--muted); font-size: 15px; background: var(--surface); border-radius: 20px; padding: 20px 22px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }
/* Legal pages */
article { padding: 24px 0 56px; }
article h1 { font-size: 32px; letter-spacing: -0.8px; margin: 16px 0 6px; }
article .meta { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
article h2 { font-size: 20px; margin: 36px 0 10px; }
article p, article li { color: #cfcabf; }
article li { margin-bottom: 6px; }
article table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
article th, article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: #cfcabf; }
article th { color: var(--muted); font-weight: 500; font-size: 13px; }
.table-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .stage .words { padding-bottom: 40px; }
  .stage::after { background: linear-gradient(180deg, rgba(14,15,20,.6) 0%, rgba(14,15,20,0) 18%, rgba(14,15,20,.05) 40%, rgba(14,15,20,.82) 74%, var(--bg) 100%); }
  section { padding: 36px 0; }
  .cards { grid-template-columns: 1fr; }
  nav a { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .stage video { display: none; } }
@media (prefers-reduced-motion: no-preference) { .stage .poster { display: none; } }
