/* =============================================================================
   base.css — reset, document defaults, typography, links, lists, tables, forms,
   focus, selection, reduced motion, print. Requires tokens.css.
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); font-feature-settings: "kern", "liga"; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: var(--rule) solid var(--color-border); margin: var(--space-6) 0; }
::selection { background: var(--color-selection); color: var(--color-text-strong); }

/* ---------------------------------------------------------------- headings */
h1, h2, h3, h4, h5, .display { font-family: var(--font-head); color: var(--color-text-strong); margin: 0 0 .5em; font-weight: var(--fw-semibold); text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4, .h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-medium); }
h5, .h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); font-weight: var(--fw-medium); }
h6, .h6, .label { font-family: var(--font-data); font-size: var(--fs-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-label); text-transform: uppercase; font-weight: var(--fw-medium); color: var(--color-text-muted); margin: 0 0 var(--space-3); }
.label--accent { color: var(--color-accent-text); }

/* -------------------------------------------------------------------- text */
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: var(--measure-wide); color: var(--color-text); }
small, .small { font-size: var(--fs-small); line-height: var(--lh-small); }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--color-text-muted); }
.muted { color: var(--color-text-muted); }
.strong { color: var(--color-text-strong); }
strong, b { font-weight: var(--fw-semibold); color: var(--color-text-strong); }
em, i { font-style: italic; }
.mono, code, kbd, .num { font-family: var(--font-data); font-variant-numeric: tabular-nums lining-nums; letter-spacing: var(--ls-mono); }
code { font-size: .92em; background: var(--color-surface-2); padding: .1em .35em; border-radius: var(--radius-1); }
pre { font-family: var(--font-data); font-size: var(--fs-small); line-height: 1.55; background: var(--color-surface); border: var(--rule) solid var(--color-border); padding: var(--space-4); overflow-x: auto; max-width: 100%; }
pre code { background: none; padding: 0; white-space: pre-wrap; word-break: break-word; }
.measure { max-width: var(--measure); } .measure-wide { max-width: var(--measure-wide); }

/* ------------------------------------------------------------------- links */
a { color: var(--color-accent-text); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur-1) var(--ease-out); }
a:hover { text-decoration: underline; }
.link-quiet { color: var(--color-text-strong); } .link-quiet:hover { color: var(--color-accent-text); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-1); }

/* ------------------------------------------------------------------- lists */
ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; max-width: var(--measure); }
li { margin: .35em 0; }
ul.plain, ol.plain { list-style: none; padding: 0; }
ul.rules { list-style: none; padding: 0; } ul.rules li { padding: var(--space-3) 0; border-top: var(--rule) solid var(--color-border); } ul.rules li:last-child { border-bottom: var(--rule) solid var(--color-border); }

/* --------------------------------------------------------------- blockquote */
blockquote { margin: var(--space-6) 0; padding: 0 0 0 var(--space-5); border-left: var(--rule-strong) solid var(--color-accent); font-family: var(--font-head); font-size: var(--fs-h4); line-height: 1.35; color: var(--color-text-strong); letter-spacing: var(--ls-h4); max-width: var(--measure-wide); }
blockquote cite { display: block; margin-top: var(--space-3); font: var(--fw-medium) var(--fs-caption)/1.4 var(--font-data); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--color-text-muted); font-style: normal; }

/* ------------------------------------------------------------------- tables */
table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
th { text-align: left; font-family: var(--font-data); font-weight: var(--fw-medium); font-size: var(--fs-h6); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--color-text-muted); padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: var(--rule) solid var(--color-text); }
td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: var(--rule) solid var(--color-border); vertical-align: top; }
td.num, th.num { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* -------------------------------------------------------------------- forms */
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], select, textarea { width: 100%; background: var(--color-surface); border: var(--rule) solid var(--color-border); border-radius: var(--radius-1); color: var(--color-text-strong); padding: 12px 14px; line-height: 1.4; transition: border-color var(--dur-1) var(--ease-out); }
input::placeholder, textarea::placeholder { color: var(--color-text-muted); }
input:hover, select:hover, textarea:hover { border-color: var(--color-border-strong); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-selection); }
input[aria-invalid="true"], .is-invalid input { border-color: var(--color-error); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); }
legend { padding: 0; }

/* ------------------------------------------------------------------ figures */
figure { margin: 0; } figcaption { font-family: var(--font-data); font-size: var(--fs-caption); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--color-text-muted); padding-top: var(--space-3); }

/* -------------------------------------------------------------- utilities */
.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; }
.text-strong { color: var(--color-text-strong); } .text-muted { color: var(--color-text-muted); } .text-accent { color: var(--color-accent-text); }
.mt-0{margin-top:0} .mb-0{margin-bottom:0} .mt-4{margin-top:var(--space-4)} .mt-6{margin-top:var(--space-6)} .mt-8{margin-top:var(--space-8)} .mb-4{margin-bottom:var(--space-4)} .mb-6{margin-bottom:var(--space-6)} .mb-8{margin-bottom:var(--space-8)}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------- print */
@media print {
  :root { --color-bg: #fff; --color-surface: #fff; --color-surface-2: #f2f4f5; --color-border: #d5dadf; --color-text: #262b31; --color-text-strong: #0e1012; --color-text-muted: #5c646d; --color-accent-text: #8f4e27; }
  body { font-size: 10.5pt; }
  nav, .ticker, .nav, footer .cols, .btn, .no-print { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .section { padding: 18pt 0; break-inside: avoid; }
}
