/* Hindsight Markets — the public site (Story 37.1). Plain CSS, no build step, no framework.

   TOKENS are hand-copied from src/index.css — the dark spine on :root, the light spine under
   prefers-color-scheme: light — and fenced against it by src/site/siteFences.test.ts (AC7.4):
   change a hex there first, then here, or `bun test src` goes red. Monochrome by the founder's
   verdicts (public/assets/images/brand/README.md): no amber, no accent; ink, hairlines, tone. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/geist-mono-latin-wght-normal.woff2")
    format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --canvas: #08090b;
  --panel: #0b0c0f;
  --panel-2: #0e1013;
  --hairline: #14171b;
  --border-strong: #262a30;
  --ink: #e7e9ee;
  --ink-2: #aeb2ba;
  --faint: #7b818b;
  --focus: #7b818b;
  --font-sans:
    "Geist Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:
    "Geist Mono Variable", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #eceef1;
    --panel: #f7f8fa;
    --panel-2: #eef0f3;
    --hairline: #dcdfe4;
    --border-strong: #aeb4bd;
    --ink: #14171b;
    --ink-2: #454a52;
    --faint: #585e68;
    --focus: #5f656f;
  }
}

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

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

body {
  margin: 0;
  /* Room for the fixed disclaimer strip at the foot of the viewport. */
  /* Room for the fixed disclaimer strip at the foot of the viewport. ⚠ Code review 2026-09-04:
     2.75rem reserves one line, and at narrow widths the strip WRAPS to two — permanently covering
     the bottom of the footer once the page is scrolled to the end. The Playwright fence could not
     see it: an element pinned to `bottom: 0` always satisfies "its bottom is inside the viewport".
     Reserve two lines' worth below the wrap threshold; the strip itself keeps its own padding. */
  padding-bottom: 2.75rem;
  background: var(--canvas);
  color: var(--ink);
  font: 400 0.9375rem / 1.6 var(--font-sans);
}

/* The keyboard focus ring: 2px neutral ink at 2px offset, on every interactive element. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.masthead {
  border-bottom: 1px solid var(--hairline);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  height: 3.5rem;
}

/* The wordmark, as components/Common/Wordmark.tsx sets it: Geist semibold, tight, "Hindsight" in
   ink-2 and "Markets" in full-strength ink; the loopback mark at 0.9em in currentColor. */
.wordmark {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  text-decoration: none;
}

.wordmark svg {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.3em;
  vertical-align: -0.1em;
}

.wordmark span {
  color: var(--ink);
}

.hero {
  padding: 4rem 0 2.5rem;
}

h1 {
  margin: 0 0 1.5rem;
  max-width: 18ch;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin: 0;
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.lede b {
  font-weight: 600;
  color: var(--ink);
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--hairline);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.recording {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: start;
}

.recording h2 {
  grid-column: 1 / -1;
}

.player {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--panel);
}

.player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--panel);
}

.captions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.caption {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.caption .label {
  margin-bottom: 0.25rem;
}

.proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
}

.proof + .proof {
  padding-left: 2rem;
  border-left: 1px solid var(--hairline);
}

.proof p {
  margin: 0;
  color: var(--ink-2);
}

.ladder,
.plan-line {
  margin: 0;
  max-width: 60ch;
}

.ladder {
  color: var(--ink);
}

.plan-line {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.plan-note {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ink-2);
}

/* The disclaimer strip: always on screen, the cockpit's own quiet-footer idiom. In the DOM it sits
   between the price and the sign-up (the page's reading order); on screen it is pinned to the foot
   of the viewport, so it is above the fold at every size. */
.strip {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 0.625rem 1.5rem;
  border-top: 1px solid var(--hairline);
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  /* Balance the wrap instead of leaving one orphaned word on line two. */
  text-wrap: balance;
  text-align: center;
  color: var(--ink-2);
}

.foot {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--faint);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1rem;
}

.foot-links a {
  color: var(--ink-2);
}

.foot p {
  margin: 0;
}

/* Legal pages: one column of prose. */
.legal {
  padding: 3rem 0 3rem;
  max-width: 68ch;
}

.legal h1 {
  font-size: 2rem;
  max-width: none;
  margin-bottom: 0.5rem;
}

.legal .updated {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.legal h2 {
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal ul {
  padding-left: 1.25rem;
}

@media (max-width: 720px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .recording,
  .proofs {
    grid-template-columns: minmax(0, 1fr);
  }

  .proofs {
    gap: 1.5rem;
  }

  .proof + .proof {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}

/* The disclaimer strip wraps to two lines once the viewport is too narrow to hold it on one
   (measured: it does not fit 360px at the shipped padding and font). Reserve the second line, and
   tighten the horizontal padding so the wrap happens later. Code review 2026-09-04. */
@media (max-width: 30rem) {
  body {
    padding-bottom: 4.25rem;
  }

  .strip {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
