/* base.css — Stablecoin Beat Design System v1.0
   Replaces Pico v2 (DESIGN.md §4). Styles BARE elements so that
   runtime-rendered markdown (insights, weekly, monthly, research
   summaries) and long-tail pages (glossary, terms, contact) are
   on-brand with zero classes. Lifted from design/reference/
   sb-archetype-article.html `.body` rules (the base.css spec, per
   DESIGN.md header note), with the `.body` scope dropped.
   Requires tokens.css loaded first. */

*{margin:0;padding:0;box-sizing:border-box}

/* 2026-08-20: explicit selection color — the browser default (a translucent
   blue overlay) is nearly invisible against .heroband's own blue background
   (tokens.css --blue), making hero-band text LOOK unselectable even though
   it's real server-rendered text with no user-select/pointer-events rule
   anywhere in this stylesheet. Selection highlight is purely visual; it has
   no bearing on crawler/bot readability (they read DOM text, not rendered
   CSS) — this fix is for human copy-paste confidence only. */
::selection{background:#fff;color:var(--blue)}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--blue-dk);text-decoration:none;border-bottom:1px solid var(--blue-tint)}
a:hover{border-bottom-color:var(--thread)}

strong{font-weight:700}
em{font-style:italic}

/* h1: lifted verbatim from the chart archetype's bare `h1` rule (design/reference/
   sb-archetype-chart.html) — the one archetype where h1 is unclassed. Matches the
   "Page title (h1)" row of DESIGN.md §3 (Disp 800 caps, 40px -> 28px). */
h1{
  font-family:var(--disp);font-weight:800;font-size:40px;letter-spacing:.01em;
  text-transform:uppercase;line-height:1;display:flex;align-items:center;gap:14px;
}

/* h2: lifted from the article archetype's `.body h2` (DESIGN.md: ".body rules ARE
   this layer — lift them, dropping the .body scope"). This is the "Article h2" row. */
h2{
  font-family:var(--disp);font-weight:800;font-size:27px;letter-spacing:.02em;
  text-transform:uppercase;line-height:1.05;margin:40px 0 14px;
  padding-top:16px;border-top:2px solid var(--ink);
}

/* h3: lifted from `.body h3` — note it does NOT switch to the display face. */
h3{font-weight:800;font-size:17px;letter-spacing:-.01em;margin:28px 0 10px}

/* h4: no bare h4 appears in the archetypes' markdown-body scope (DESIGN.md's type
   scale has no dedicated h4 row); this reuses the article archetype's `.related h4`
   rule — the closest documented sub-head component — as the base-element default. */
h4{
  font-family:var(--disp);font-weight:800;font-size:19px;letter-spacing:.03em;
  text-transform:uppercase;margin:24px 0 12px;
}

p{margin:0 0 20px;font-size:16px;line-height:1.72}

ul,ol{margin:0 0 20px;padding-left:22px}
li{margin-bottom:8px}
li::marker{color:var(--blue);font-weight:700}

blockquote{
  margin:26px 0;padding:4px 0 4px 22px;border-left:3px solid var(--blue);
  font-size:18px;line-height:1.55;color:var(--ink);
}
blockquote p{margin-bottom:6px}
blockquote cite{font-style:normal;font-size:12.5px;color:var(--ink-2)}

table{width:100%;border-collapse:collapse;margin:26px 0;font-size:13.5px}
th{
  font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);
  text-align:left;padding:0 12px 7px 0;border-bottom:2px solid var(--ink);
}
td{padding:8px 12px 8px 0;border-bottom:1px solid var(--line);vertical-align:baseline}
td.n,th.n{text-align:right;font-feature-settings:'tnum' 1}
td.n{font-family:var(--disp);font-weight:800;font-size:15.5px}

figure{margin:30px 0}
figcaption{margin-top:8px;font-size:12px;color:var(--ink-2)}
figcaption b{color:var(--ink);font-weight:600}

hr{border:0;border-top:1px solid var(--line);margin:32px 0}

code{font-family:ui-monospace,monospace;font-size:.88em;background:var(--blue-tint);padding:1px 5px}

img{max-width:100%;height:auto}

/* ── the one component contract: details/summary (DESIGN.md §4) ──
   Used bare (zero classes) by tracker, regulation, yield_bearing,
   research_entry templates and by markdown bodies. */
details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:26px 0}
details + details{margin-top:-27px;border-top:0}
summary{
  list-style:none;cursor:pointer;padding:13px 0;display:flex;justify-content:space-between;align-items:center;
  font-weight:700;font-size:14px;
}
summary::-webkit-details-marker{display:none}
summary::after{
  content:"+";font-family:var(--disp);font-weight:800;font-size:20px;color:var(--blue);line-height:1;
}
details[open] summary::after{content:"\2212"}
details > *:not(summary){margin-bottom:16px}
summary:hover{color:var(--blue-dk)}
summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ── forms (DESIGN.md §4): newsletter partial + /contact/ ──
   Not demonstrated in the reference archetypes (no <form> markup
   there) — values below are DESIGN.md's explicit spec text. */
input:not([type="checkbox"]):not([type="radio"]),textarea,select{
  font-family:var(--sans);font-size:16px;/* >=16px: iOS zoom prevention */
  min-height:44px;padding:10px 12px;
  border:1px solid var(--ink);border-radius:0;background:var(--panel);color:var(--ink);
}
textarea{min-height:0}
input[type="checkbox"],input[type="radio"]{
  width:16px;height:16px;flex:none;margin:0;accent-color:var(--blue);
}
input::placeholder,textarea::placeholder{color:var(--ink-2);opacity:.7}
input:focus,textarea:focus,select:focus{outline:2px solid var(--blue);outline-offset:1px}

button,input[type="submit"],input[type="button"]{
  font-family:var(--sans);font-weight:700;font-size:11px;letter-spacing:.13em;text-transform:uppercase;
  min-height:44px;padding:0 18px;border:0;border-radius:0;
  background:var(--ink);color:#fff;cursor:pointer;
}
button:hover,input[type="submit"]:hover,input[type="button"]:hover{background:var(--blue-dk)}
button:focus-visible,input[type="submit"]:focus-visible,input[type="button"]:focus-visible{
  outline:2px solid var(--blue);outline-offset:2px;
}

/* accessibility floor: visible focus states everywhere (DESIGN.md §8) */
a:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-bottom-color:transparent}

@media(prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important}
}

@media(max-width:680px){
  body{font-size:14.5px}
  h1{font-size:28px}
  h2{font-size:22px}
  p{font-size:15.5px}
}
