/* ShoeGauge web — Track Club '78 shared styles.
   Tokens mirror design/tokens.json (Daylight = light, Night Meet = dark).
   Used by /, /privacy/, and /s/. Fonts are self-hosted subsets of the
   app-bundled faces (OFL/Apache) in /fonts/. */

:root {
  color-scheme: light dark;
  --bg: #F3EBD8;
  --surface: #FBF6E9;
  --surface-inset: #EADFC6;
  --border-strong: #22304A;
  --border-muted: #E5D9BE;
  --text-primary: #22304A;
  --text-secondary: #A2542F;
  --text-tertiary: #B9A98C;
  --accent: #D9531E;          /* wordmark, links, emphasis */
  --accent-button: #D9531E;
  --gold: #E8A33D;
  --shadow-accent: #E8A33D;   /* hard offset shadows */
  --stripe-3: #22304A;        /* third racing stripe: navy (cream at night) */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B2340;
    --surface: #232C4E;
    --surface-inset: #2C3660;
    --border-strong: #E8A33D;
    --border-muted: #3A4470;
    --text-primary: #F3EBD8;
    --text-secondary: #8E97B8;
    --text-tertiary: #5B6488;
    --accent: #E8A33D;
    --shadow-accent: #D9531E;
    --stripe-3: #F3EBD8;
  }
}

@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/ArchivoBlack-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Yellowtail";
  src: url("/fonts/Yellowtail-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

/* The uniform is flat: synthesized ~12° oblique stands in for the app's
   matrix-sheared display face. */
.display {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-style: oblique 12deg;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.script {
  font-family: "Yellowtail", cursive;
  color: var(--accent);
  transform: rotate(-2deg);
}

/* ---- Wordmark + racing stripes ---- */
header.brand { text-align: center; margin-bottom: 3rem; }
.wordmark {
  font-family: "Yellowtail", cursive;
  font-size: clamp(3rem, 10vw, 4.25rem);
  color: var(--accent);
  transform: rotate(-3deg);
  display: inline-block;
  margin: 0;
  font-weight: 400;
  text-decoration: none;
}
header.brand.compact .wordmark { font-size: 2.4rem; }
.stripes {
  display: flex; flex-direction: column; gap: 4px;
  width: 118px; margin: 1rem auto 0;
}
header.brand.compact .stripes { width: 64px; margin-top: 0.6rem; gap: 3px; }
.stripes span { height: 4px; border-radius: 2px; }
header.brand.compact .stripes span { height: 3px; }
.stripes span:nth-child(1) { background: #D9531E; }
.stripes span:nth-child(2) { background: #E8A33D; }
.stripes span:nth-child(3) { background: var(--stripe-3); }
.est {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0.9rem 0 0;
}

/* ---- Landing sections ---- */
.hero { text-align: center; margin-bottom: 3.5rem; }
.hero h1 {
  font-size: clamp(1.9rem, 6.5vw, 2.9rem);
  margin: 0 0 1.75rem;
  text-shadow: 4px 4px 0 var(--shadow-accent);
}
.hero .pitch {
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* ---- Odometer demo card ---- */
.demo {
  background: var(--surface);
  border: 2.5px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  margin: 0 auto 3.5rem;
  max-width: 26rem;
}
.demo .label {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 0.5rem;
}
.demo .miles {
  font-size: clamp(3.4rem, 13vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  text-shadow: 4px 4px 0 var(--shadow-accent);
  white-space: nowrap;
}
.demo .miles .unit {
  font-size: 0.42em;
  color: var(--text-secondary);
  text-shadow: none;
}
.meter {
  height: 15px;
  border: 3px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-inset);
  overflow: hidden;
  margin: 1.25rem 0 0.75rem;
}
.meter .fill {
  height: 100%; width: 79%;
  border-radius: 999px 0 0 999px;
  background: repeating-linear-gradient(-45deg, #D9531E 0 8px, #E8A33D 8px 16px);
}
.demo .caption {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.demo .aside {
  font-size: 1.4rem;
  display: inline-block;
  margin-top: 0.6rem;
}

/* ---- Feature cards ---- */
.features {
  display: grid; gap: 12px;
  margin: 0 0 3.5rem; padding: 0;
  list-style: none;
}
.features li {
  background: var(--surface);
  border: 2px solid var(--border-muted);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
}
.features h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  text-shadow: 2px 2px 0 var(--shadow-accent);
}
.features p { margin: 0; font-size: 0.95rem; }

/* ---- Coming-soon CTA (deliberately not a link until launch) ---- */
.cta { text-align: center; margin-bottom: 3.5rem; }
.cta .badge {
  display: inline-block;
  background: var(--surface);
  border: 2px dashed var(--gold);
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.cta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.75rem 0 0;
}

/* ---- Prose pages (privacy) ---- */
.prose h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  margin: 0 0 0.35rem;
  text-shadow: 3px 3px 0 var(--shadow-accent);
}
.prose .updated {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: 0 0 1.75rem;
}
.prose h2 {
  font-size: 1.05rem;
  margin: 2.25rem 0 0.6rem;
  text-shadow: 2px 2px 0 var(--shadow-accent);
}
.prose p, .prose li { font-size: 0.97rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); font-weight: 700; }

/* ---- Tag landing (/s/) ---- */
.tag-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.tag-card {
  background: var(--surface);
  border: 2.5px solid var(--border-strong);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  max-width: 26rem;
}
.tag-card h1 {
  font-size: 1.35rem;
  margin: 1.4rem 0 0.75rem;
  text-shadow: 2px 2px 0 var(--shadow-accent);
}
.tag-card p { font-size: 0.95rem; margin: 0 0 0.9rem; }
.tag-card .muted { color: var(--text-secondary); }
.tag-card code {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

footer {
  border-top: 2px solid var(--border-muted);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }
