:root { color-scheme:light; --accent:#b94f08; --accent-bright:#ef781e; --accent-soft:#fff2e6; --surface:#fcfcfb; --paper:#f5f5f3; --ink:#202327; --muted:#646970; --line:#e3e5e6; --positive:#197249; --negative:#c03e42; --nav:#14181b; --nav-ink:#edf0f2; --chart-grid:#e8e9ea; --shadow:0 12px 40px #1e25271a; --radius:6px; font-family:Arial,Helvetica,sans-serif; }
:root[data-theme="dark"] {color-scheme:dark; --accent:#f99a53; --accent-bright:#ed7c29; --accent-soft:#35281e; --surface:#202529; --paper:#191e22; --ink:#edf0f2; --muted:#a6afb6; --line:#384046; --positive:#76d6a2; --negative:#fc9ca1; --chart-grid:#363e45; --shadow:0 12px 40px #090d1166; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:95px; }
body { margin:0; background:var(--paper); color:var(--ink); font-size:14px; line-height:1.5; }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button { color:inherit; }
a { color:inherit; text-decoration:none; }
button:disabled { cursor:default; opacity:.55; }
a:hover { color:var(--accent); }
button:active:not(:disabled) { transform:translateY(1px); }
:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
input:focus-visible,select:focus-visible { outline-offset:2px; }
img { display:block; max-width:100%; height:auto; }
h1,h2,h3,p { margin:0; }
h1 { font-size:28px; line-height:1.2; letter-spacing:-.7px; }
h2 { font-size:20px; line-height:1.3; letter-spacing:-.35px; }
h3 { font-size:16px; line-height:1.4; }
.icon { display:inline-block; width:20px; height:20px; flex-shrink:0; background:currentColor; mask:var(--icon) center / contain no-repeat; vertical-align:middle; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); }
.icon-button:hover { color:var(--accent); border-color:var(--accent); }
.wordmark { font-size:31px; font-weight:800; letter-spacing:-1.6px; line-height:1; }
.wordmark > span { color:var(--accent-bright); }
.button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:38px; padding:8px 14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); font-weight:600; white-space:nowrap; }
.button:hover { border-color:var(--accent); color:var(--accent); }
.button-primary { background:var(--accent); border-color:var(--accent); color:var(--surface); }
.button-primary:hover { filter:brightness(.92); color:var(--surface); }
.text-button { display:inline-flex; align-items:center; gap:6px; color:var(--accent); border:0; padding:0; background:transparent; font-weight:600; }
.text-button .icon { width:16px; height:16px; }
.muted { color:var(--muted); }
.positive { color:var(--positive); }
.negative { color:var(--negative); }
.numeric { font-variant-numeric:tabular-nums; font-family:Arial,Helvetica,sans-serif; }
.tag { display:inline-block; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.section-heading > div { min-width:0; }
.section-heading p { color:var(--muted); margin-top:5px; font-size:13px; }
.section-heading .text-button { font-size:12px; flex-shrink:0; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-80px; left:12px; z-index:50; background:var(--surface); padding:12px; border:2px solid var(--accent); }
.skip-link:focus { top:12px; }
.boot-state { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; }
.content-dialog { width:min(760px,calc(100% - 32px)); max-height:calc(100dvh - 40px); padding:28px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); box-shadow:var(--shadow); }
.content-dialog::backdrop { background:#10141699; }
.dialog-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.dialog-top .wordmark { font-size:25px; }
.dialog-article h2 { font-size:28px; margin:10px 0 20px; }
.dialog-article p { font-size:16px; line-height:1.75; margin-top:16px; }
.dialog-article .article-meta { font-size:12px; }
.dialog-article .dialog-photo { aspect-ratio:2.4; width:100%; object-fit:cover; border-radius:var(--radius); margin:20px 0; }
.dialog-links { display:flex; flex-wrap:wrap; gap:14px; margin-top:22px; }
.dialog-links a { display:inline-flex; align-items:center; gap:4px; color:var(--accent); }
.content-dialog h2 { line-height:1.3; }
@media (prefers-reduced-motion:reduce) {html {scroll-behavior:auto;} * { animation:none !important; transition:none !important; }}
