/* Optic v2 base: reset, type, focus, layout primitives. Components live in
   components.css; nothing here sets a component's look. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-padding-bottom: 16px; }
/* the phone bar is fixed at the foot: what the keyboard focuses, or a link jumps to, stays above it */
@media (max-width: 860px) { html { scroll-padding-top: 76px; scroll-padding-bottom: 84px; } }
body {
  margin: 0; background: var(--c-plane); color: var(--c-ink);
  font: 400 var(--t-body)/1.55 var(--f-sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, input[type="search"] { -webkit-appearance: none; appearance: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: var(--r-sm); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 14px; border-radius: var(--r-1); background: var(--c-scene); color: var(--c-on-scene); }
.skip:focus { left: 8px; }

/* type roles */
.t-display { font: var(--w-display) var(--t-display)/0.98 var(--f-sans); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums lining-nums; }
.t-display-m { font: var(--w-display) var(--t-display-m)/1.05 var(--f-sans); letter-spacing: -0.025em; text-wrap: balance; }
/* figures line up (design standard): tabular numerals in every place numbers are compared */
.kv dd, table td, table th, .dh-price, .t-display, .ws-body, .pc-read, .num, .readings, .chips, .seg button, .legend-line, .tile, .milo-bubble .milo-src { font-variant-numeric: tabular-nums; }
.t-h2 { font: 600 var(--t-h2)/1.25 var(--f-sans); letter-spacing: -0.018em; }
.t-h3 { font: 600 var(--t-h3)/1.3 var(--f-sans); letter-spacing: -0.01em; }
.t-label { font: 500 var(--t-label)/1.25 var(--f-label); color: var(--c-ink-3); }
.t-note { font-size: var(--t-note); color: var(--c-ink-2); }
.t-muted { color: var(--c-ink-3); }
.tick { font: 600 var(--t-md)/1 var(--f-label); letter-spacing: .01em; }
.up { color: var(--c-pos); } .down { color: var(--c-neg); } .flat { color: var(--c-ink-2); }

/* layout primitives */
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--s-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s-3)); }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); }
.page { width: 100%; max-width: var(--page); padding: var(--s-2) clamp(20px, 4vw, 56px) 56px; outline: none; }
.section { margin-top: var(--s-10); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-5); }
.section-sub { margin-top: 6px; font-size: var(--t-note); color: var(--c-ink-3); max-width: 62ch; }
.rule { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

@media (max-width: 860px) {
  .page { padding: 0 16px 40px; }
  .section { margin-top: var(--s-9); }
  :root { --t-h2: 22px; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
