/* ============ SHUFFLED CONTENT PAGES — shared stylesheet ============
 *
 * The static, crawlable pages (/odds, /how-it-works, /finds, /faq).
 * Values are lifted from src/theme/tokens.js ("foil-stamped dark paper");
 * these pages are print matter in the same material system as the app:
 * warm black stock, unbleached-paper ink, gold foil accents, plates not
 * pills. Keep both in sync if the tokens ever change.
 */

@font-face {
  font-family: 'Syncopate';
  src: url('/fonts/Syncopate-normal-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unica One';
  src: url('/fonts/UnicaOne-normal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-normal-100-900.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-normal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --stock-deep: #070605;
  --stock-base: #0F0D0B;
  --stock-raised: #171310;
  --ink-full: #F2EDE4;
  --ink-strong: rgba(242, 237, 228, 0.82);
  --ink-body: rgba(242, 237, 228, 0.64);
  --ink-faint: rgba(242, 237, 228, 0.42);
  --ink-ghost: rgba(242, 237, 228, 0.22);
  --foil-gold: #F2BA4E;
  --foil-champagne: #FFE9B3;
  --suit-spade: #A66CFF;
  --suit-heart: #FF6A5E;
  --suit-diamond: #FFBE4D;
  --suit-club: #49E6A6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--stock-base);
  background-image: radial-gradient(ellipse at 50% -10%, #1A1512 0%, var(--stock-base) 55%, var(--stock-deep) 100%);
  color: var(--ink-body);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Masthead ---- */
.masthead {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: 'Syncopate', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--ink-full);
  text-decoration: none;
}
.masthead nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.masthead nav a {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--ink-strong); }
.masthead nav a[aria-current="page"] { color: var(--foil-gold); }

/* ---- Article column ---- */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}
h1 {
  font-family: 'Unica One', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--ink-full);
  margin: 0 0 10px;
}
.lede {
  font-size: 17px;
  color: var(--ink-strong);
  margin: 0 0 40px;
}
h2 {
  font-family: 'Unica One', system-ui, sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--ink-full);
  margin: 52px 0 14px;
}
p { margin: 0 0 16px; }
strong { color: var(--ink-strong); font-weight: 650; }
em { color: var(--ink-strong); }
a { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink-full); }

/* ---- The gold feature plate (the app's trust-statement idiom) ---- */
.plate {
  background: linear-gradient(135deg, rgba(242, 186, 78, 0.07) 0%, var(--stock-raised) 70%);
  border: 1px solid rgba(242, 186, 78, 0.28);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 233, 179, 0.08), 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 20px;
  margin: 0 0 24px;
}
.plate p:last-child { margin-bottom: 0; }

/* ---- Debossed well (numbers pressed into the stock) ---- */
.well {
  background: #0C0A08;
  background-image: linear-gradient(180deg, #0E0C0A 0%, #0B0907 100%);
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  padding: 20px;
  margin: 0 0 24px;
}

/* ---- The 52! digit block ---- */
.mono, .digits {
  font-family: 'IBM Plex Mono', Menlo, monospace;
}
.digits {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  word-break: break-all;
  color: var(--ink-strong);
}
.digits .label { color: var(--foil-gold); }

/* ---- Numbered procedure (the stopwatch timeline) ---- */
ol.timeline {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: beat;
}
ol.timeline li {
  counter-increment: beat;
  position: relative;
  padding: 0 0 18px 44px;
  border-left: 1px solid rgba(242, 186, 78, 0.25);
  margin-left: 13px;
}
ol.timeline li::before {
  content: counter(beat);
  position: absolute;
  left: -14px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--stock-raised);
  border: 1px solid rgba(242, 186, 78, 0.45);
  color: var(--foil-gold);
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.timeline li:last-child { padding-bottom: 0; }
.credit {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0 0 16px;
}

/* ---- Odds tables ---- */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid rgba(242, 237, 228, 0.3);
  white-space: nowrap;
}
td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(242, 237, 228, 0.08);
  vertical-align: top;
}
td.odds {
  font-family: 'IBM Plex Mono', Menlo, monospace;
  font-size: 12.5px;
  color: var(--foil-gold);
  white-space: nowrap;
}
td.name { color: var(--ink-strong); font-weight: 600; white-space: nowrap; }
.suit-s { color: var(--suit-spade); }
.suit-h { color: var(--suit-heart); }
.suit-d { color: var(--suit-diamond); }
.suit-c { color: var(--suit-club); }

/* ---- FAQ ---- */
.faq h2 { font-size: 20px; margin: 40px 0 10px; }

/* ---- The closing invitation ---- */
.invite {
  margin: 64px 0 0;
  text-align: center;
}
.invite .question {
  font-family: 'Syncopate', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 4vw, 22px);
  letter-spacing: 2px;
  color: var(--foil-champagne);
  text-shadow: 0 0 24px rgba(242, 186, 78, 0.35);
  margin: 0 0 20px;
}
.invite .cta {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(242, 186, 78, 0.16), var(--stock-raised) 70%);
  border: 1px solid rgba(242, 186, 78, 0.55);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 233, 179, 0.12), 0 2px 8px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--foil-champagne);
  text-decoration: none;
}
.invite .cta:hover { border-color: rgba(242, 186, 78, 0.85); color: var(--foil-champagne); }
.invite .caption {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 14px 0 0;
}

/* ---- Colophon ---- */
footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 20px 48px;
  text-align: center;
}
footer .rule {
  width: 90px;
  height: 1px;
  background: rgba(242, 237, 228, 0.14);
  margin: 0 auto 14px;
}
footer .tag {
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-ghost);
  margin-bottom: 12px;
}
footer .links {
  font-size: 12px;
  color: var(--ink-faint);
}
footer .links a { color: var(--ink-faint); }
footer .links a:hover { color: var(--ink-strong); }
