/* Layout: green "card table" band for header/hero/footer, white reading pages, 68ch article column with a sticky contents rail on wide screens */
:root {
  --felt: #0E3B2E;
  --felt-2: #145040;
  --felt-deep: #0A2E23;
  --on-felt: #FFFFFF;
  --on-felt-soft: #CFE4D8;
  --brass: #E2B33C;
  --red: #B8242B;
  --ink: #15191C;
  --ink-soft: #4A5257;
  --paper: #FFFFFF;
  --paper-2: #F2F4F0;
  --rule: #DFE3DC;
  --card-face: #FFFFFF;
  --card-edge: #C9CEC6;
  --black-suit: #15191C;
  --red-suit: #C0262D;
  --num: #0E3B2E;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Archivo", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --felt: #0C3328; --felt-2: #124536; --felt-deep: #08241B;
    --ink: #E9EDE9; --ink-soft: #A9B4AD; --paper: #111614; --paper-2: #1A211E; --rule: #2C3631;
    --red: #F06A6F; --card-face: #F7F7F4; --card-edge: #3A4540; --num: #E2B33C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --felt: #0C3328; --felt-2: #124536; --felt-deep: #08241B;
  --ink: #E9EDE9; --ink-soft: #A9B4AD; --paper: #111614; --paper-2: #1A211E; --rule: #2C3631;
  --red: #F06A6F; --card-face: #F7F7F4; --card-edge: #3A4540; --num: #E2B33C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-head { background: var(--felt); color: var(--on-felt); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-felt); text-decoration: none; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; font-family: var(--ui); }
.nav a { color: var(--on-felt-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 11px; border-radius: 8px; }
.nav a:hover { color: var(--on-felt); background: var(--felt-2); }
.nav a[aria-current="page"] { color: var(--on-felt); box-shadow: inset 0 -3px 0 var(--brass); border-radius: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--ui); font-weight: 800; font-size: 17px; text-decoration: none; padding: 14px 22px; border-radius: 10px; line-height: 1.2; }
.btn-brass { background: var(--brass); color: #15191C; }
.btn-brass:hover { background: #F0C559; }
.btn-ghost { color: var(--on-felt); border: 2px solid #4C8C74; padding: 12px 20px; }
.btn-ghost:hover { background: var(--felt-2); }
.btn-red { background: #B8242B; color: #FFFFFF; }

/* Hero (home) */
.hero { background: var(--felt); color: var(--on-felt); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 44px 60px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-family: var(--ui); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; }
.hero p.lede { font-size: 19px; color: var(--on-felt-soft); margin: 0; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero small { font-family: var(--ui); font-size: 14px; color: var(--on-felt-soft); }
.table-art { flex: 1 1 340px; max-width: 480px; min-width: 0; }
.table-art svg { width: 100%; height: auto; display: block; }

/* Facts strip */
.facts { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-block: 22px; }
.fact { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; }
.fact b { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--num); min-width: 1.4em; text-align: center; }
.fact b.red { color: var(--red-suit); }

/* Sections */
.section { padding-block: 56px 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 17px; }
.section-head a { font-family: var(--ui); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--ink-soft); }
.tile strong { font-family: var(--display); font-size: 21px; font-weight: 800; }
.tile span { font-size: 16px; color: var(--ink-soft); line-height: 1.45; }
.tile.start { background: var(--felt); border-color: var(--felt); color: var(--on-felt); }
.tile.start span { color: var(--on-felt-soft); }
.tile.start em { font-style: normal; font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.tile .soon { font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--ui); font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; padding: 11px 17px; border-radius: 999px; border: 2px solid var(--ink); }
.chip[aria-disabled="true"] { border-style: dashed; color: var(--ink-soft); border-color: var(--ink-soft); }

.faq { display: flex; flex-wrap: wrap; gap: 28px; }
.faq > div:first-child { flex: 1 1 260px; }
.faq-list { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
details { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; }
summary { font-family: var(--ui); font-weight: 600; font-size: 17px; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink-soft); }
.band { background: var(--paper-2); margin-top: 56px; padding-block: 8px 48px; }

.decks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.deck { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.deck .ph { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.deck .ph img { width: 100%; height: 100%; object-fit: cover; }
.deck .ph-art { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; text-align: center; font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
.deck b { font-family: var(--ui); font-size: 17px; }
.deck span { font-family: var(--ui); font-weight: 600; color: var(--red); }

/* Article pages */
.page-head { background: var(--felt); color: var(--on-felt); }
.page-head .wrap { padding-block: 34px 38px; display: flex; flex-direction: column; gap: 10px; }
.crumbs { font-family: var(--ui); font-size: 14px; color: var(--on-felt-soft); }
.crumbs a { color: var(--on-felt-soft); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
.page-head p { margin: 0; font-size: 19px; color: var(--on-felt-soft); max-width: 36em; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 64px; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: 230px minmax(0, 1fr); } }
.toc { font-family: var(--ui); font-size: 15px; }
.toc nav { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--rule); padding-left: 14px; }
.toc b { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.toc a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--ink); }
@media (max-width: 999px) { .toc { display: none; } }

.prose { max-width: 68ch; min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 30px; font-weight: 800; margin-top: 2em; scroll-margin-top: 20px; }
.prose h3 { font-size: 22px; font-weight: 800; margin-top: 1.6em; }
.prose p, .prose li { font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 700; }
.prose .note { background: var(--paper-2); border-radius: 12px; padding: 16px 20px; font-size: 17px; }
.prose .note b { font-family: var(--ui); }
.prose .lead { font-size: 21px; line-height: 1.5; }

.cardrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-block: 20px; }
.cardrow figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cardrow figcaption { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: center; max-width: 80px; line-height: 1.25; }
.cardrow .arrow { font-family: var(--ui); color: var(--ink-soft); font-size: 20px; padding-bottom: 34px; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: 16px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
td.pts { font-family: var(--display); font-weight: 800; font-size: 20px; white-space: nowrap; }

.steps { list-style: none; padding: 0 !important; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin: 0 !important; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--felt); color: var(--on-felt); display: flex; align-items: center; justify-content: center; }

.laws { padding-left: 1.6em !important; }
.laws li::marker { font-family: var(--ui); font-weight: 700; color: var(--ink-soft); }

.next-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 48px !important; }

/* Footer */
.site-foot { background: var(--felt-deep); color: var(--on-felt-soft); font-family: var(--ui); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 40px 16px; }
.site-foot .about { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.site-foot nav { flex: 2 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 20px; }
.site-foot a { color: #FFFFFF; }
.site-foot .legal { padding-block: 0 28px; font-size: 13px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav a { padding: 9px 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tile, .btn { transition: background-color .15s, border-color .15s; }
}
