:root {
  --paper: #f5f2eb;
  --ink: #232321;
  --muted: #66655f;
  --rule: #c9c6bd;
  --faint: #e7e3d9;
  --read: #39786e;
  --write: #a34f35;
  --input: #627786;
  --output: #99701b;
  --base: #8a8272;
  --user: #6d8795;
  --assistant: #ac8653;
  --tool: #668d7b;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body:fullscreen, :root:fullscreen { overflow: auto; background: var(--paper); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select, input[type='checkbox'], input[type='range'] { cursor: pointer; }
button { min-height: 42px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 2px; background: transparent; line-height: 1.2; }
button:hover { border-color: var(--ink); background: var(--faint); }
button:active { background: #dcd7cb; }
button:disabled { cursor: default; opacity: .4; }
button[aria-pressed='true'], button.is-active, button.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.primary-button { border-color: var(--ink); }
.primary-button span { margin-left: 8px; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--read); }
:focus-visible { outline: 3px solid var(--read); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
::selection { background: #d3e1d8; }
h1, h2, h3, p, figure, blockquote, dl { margin: 0; }
h1, h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(48px, 5.3vw, 80px); }
h2 { margin: 14px 0 32px; font-size: clamp(35px, 3.75vw, 55px); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
code, output, .position, .metric-value, .value, .number { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .9em; overflow-wrap: anywhere; }
small { font-size: 14px; }
input[type='number'], select, textarea { border: 1px solid var(--rule); border-radius: 2px; background: transparent; }
select { min-height: 42px; padding: 8px 30px 8px 11px; max-width: 100%; }
textarea { display: block; width: 100%; min-height: 112px; padding: 16px; resize: vertical; font-family: var(--mono); font-size: 21px; line-height: 1.5; }
input[type='number'] { width: 100%; min-height: 44px; padding: 8px 12px; font-family: var(--mono); font-size: 21px; }
input[type='checkbox'], input[type='range'] { accent-color: var(--read); }
input[type='checkbox'] { width: 18px; height: 18px; }
input[type='range'] { min-width: 80px; height: 32px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; background: var(--paper); padding: 12px; }
.skip-link:focus { top: 10px; }
.deck-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 4vw; border-bottom: 1px solid var(--rule); }
.wordmark { font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--muted); font-weight: 400; }
.deck-tools { display: flex; gap: 4px; }
.deck-tools button { border-color: transparent; padding: 8px 10px; font-size: 14px; }
.deck-tools button:hover { border-color: var(--rule); }
.deck-guide-link { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 10px; font-size: 14px; text-decoration: none; color: var(--read); }
.deck-guide-link:hover { background: var(--faint); }
.eyebrow { font-family: var(--mono); font-size: 12px; line-height: 1.4; letter-spacing: .1em; color: var(--muted); }
.lead { color: var(--muted); font-size: clamp(20px, 2vw, 27px); line-height: 1.45; }
