/* brand tokens, light first; see brand/ for the standard */
:root {
  --ground: #ffffff;
  --paper: #f5f1e8;
  --rule: #d9d2c3;
  --text: #1a1814;
  --muted: #4a453d;
  --gold: #8a6a1f;
  --gold-strong: #6e5418;
  --dark: #11100e;
  --ivory: #f3eee4;
  --font-display: Cinzel, "Times New Roman", serif;
  --font-serif: Lora, Georgia, serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1080px;
  --gutter: max(16px, 4vw);
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #11100e; --paper: #1a1814; --rule: #4a453d; --text: #f3eee4;
    --muted: #cfc8bb; --gold: #d4af5a; --gold-strong: #e2c27a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #11100e; --paper: #1a1814; --rule: #4a453d; --text: #f3eee4;
  --muted: #cfc8bb; --gold: #d4af5a; --gold-strong: #e2c27a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-strong); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin: 0 0 16px; text-wrap: balance; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; max-width: 68ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* header and hero sit on the brand's dark ground in both themes */
.site-header { background: var(--dark); border-bottom: 1px solid #2a2722; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.site-header img { height: 36px; width: auto; display: block; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #cfc8bb; text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #e2c27a; }

@media (max-width: 480px) {
  .site-nav { gap: 6px 14px; }
  .site-nav a { font-size: 14px; }
}

.hero { background: var(--dark); color: var(--ivory); padding-block: clamp(56px, 9vw, 112px); }
.hero .wrap { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero .lockup { width: min(100%, 620px); height: auto; }
.hero p { color: #cfc8bb; font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 12px 20px; border-radius: var(--radius); font-weight: 500; font-size: 15px; text-decoration: none; border: 1.5px solid #d4af5a; }
.button.primary { background: #d4af5a; color: #11100e; }
.button.primary:hover { background: #e2c27a; border-color: #e2c27a; color: #11100e; }
.button.secondary { color: #d4af5a; }
.button.secondary:hover { color: #e2c27a; border-color: #e2c27a; }

.section { padding-block: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0; margin: 0; border-top: 1.5px solid var(--gold); }
.facts div { padding: 16px 4px; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px 40px; }
.features article { min-width: 0; }
.features p { color: var(--muted); }

.status { background: var(--paper); border: 1px solid var(--rule); padding: 20px 24px; }
.status p:last-child { margin-bottom: 0; }

.page-head { background: var(--dark); color: var(--ivory); padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.page-head p { color: #cfc8bb; font-size: clamp(17px, 2vw, 19px); max-width: 60ch; margin: 0; }

.prose h3 { margin-top: 28px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; max-width: 68ch; }
.prose li { margin-bottom: 6px; }
.note { font-size: 14px; color: var(--muted); }

/* wide tables scroll inside their wrapper, never the page */
.table-wrap { overflow-x: auto; margin: 4px 0 16px; }
.data { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; font-variant-numeric: tabular-nums; border-top: 1.5px solid var(--gold); }
.data th, .data td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); }
.data thead th { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.data tbody th { font-weight: 500; }

/* phones: each row stacks as label and value pairs */
@media (max-width: 640px) {
  .data { min-width: 0; }
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .data th, .data td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; }
  .data tbody th { display: block; font-weight: 600; padding-bottom: 6px; }
  .data td { text-align: right; }
  .data td::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left; color: var(--muted); font-size: 14px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin: 8px 0 20px; }
.card { border: 1px solid var(--rule); border-top: 1.5px solid var(--gold); padding: 20px 22px; min-width: 0; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--gold); }
a.card h3 { color: var(--gold); }

.faq { border-top: 1.5px solid var(--gold); max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 16px 0; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.faq .answer { padding: 0 0 16px; }
.faq .answer p:last-child { margin-bottom: 0; }

ul.link-list { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1.5px solid var(--gold); max-width: 76ch; }
.link-list li { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.link-list a { font-weight: 500; }
.link-list span { color: var(--muted); font-size: 15px; }
.link-group + .link-group { margin-top: 48px; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 10px; }

.site-footer { padding-block: 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.notice { font-size: 13px; max-width: 80ch; }

.chart { margin: 20px 0 24px; max-width: 760px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-family: var(--font-sans); font-size: 14px; }
@media (max-width: 640px) { .chart text { font-size: 24px; } }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1.2; }
.chart .fixed, .chart .voted { fill: none; stroke-width: 2.6; stroke-linejoin: round; }
.chart .fixed { stroke: #b9ae9a; }
.chart .voted { stroke: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 6px; font-size: 14px; }
.swatch { display: inline-block; width: 20px; height: 3px; margin-right: 8px; vertical-align: middle; }
.swatch.fixed { background: #b9ae9a; }
.swatch.voted { background: var(--gold); }
