/* OnTheSpot — web tokens, mirrored from src/theme.ts.
   The one rule travels with the brand: RED ONLY EVER MEANS NOW.
   Countdown, record dot, today's node. Nothing decorative is red. */

:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --smoke: #6E6868;
  --rule: #EBE6E6;
  --block: #E9E7E2;
  --now: #FF3B30;

  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
             Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A0A0B;
    --ink: #FFFFFF;
    --smoke: #9B9494;
    --rule: #232326;
    --block: #242428;
    --now: #FF453A;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

/* --- shell ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.masthead nav a { text-decoration: none; color: var(--smoke); }
.masthead nav a:hover { color: var(--ink); }

.colophon {
  margin-top: 5rem;
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--smoke);
}

.colophon a { color: var(--smoke); }
.colophon a:hover { color: var(--ink); }

/* --- shared type ------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 0.75rem;
}

/* --- document pages (terms, privacy) ----------------------------------- */

.doc { padding-block: 3.5rem 0; }

.doc h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

.doc .dateline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--smoke);
  margin: 0 0 3rem;
}

.doc h2 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 3rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.doc h2 .num {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  display: block;
  margin-bottom: 0.4rem;
}

/* Sub-heads inside a numbered section — the privacy page groups what it
   collects (account / what you make / your device / usage / safety). Quieter
   than h2 and with no rule above it, so a section still reads as one block
   rather than as five more sections. */
.doc h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--smoke);
  margin: 1.75rem 0 0.5rem;
}

.doc p, .doc li { max-width: 34rem; }
.doc ul { padding-left: 1.1rem; }
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--smoke); }

.doc strong { font-weight: 700; }

/* A banned-list item reads as a prohibition, not a feature bullet. */
.doc .banned {
  list-style: none;
  padding-left: 0;
}

.doc .banned li {
  padding-left: 1.5rem;
  position: relative;
}

.doc .banned li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.75rem;
  height: 2px;
  background: var(--now);
}
