/* Wireframe design system: tokens, type and controls shared by every page of the demos site.
   Source: the Wireframe Design System artifact (project/tokens.json, README.md). Martian Mono is the
   only family; width (font-stretch) carries the hierarchy. Square corners, no shadows. */

@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(/fonts/martian-mono-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url(/fonts/martian-mono-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #f3f5f7;
  --surface: #ffffff;
  --ink: #1b1f27;
  --ink-muted: #525a68;
  --line: #c9ced6;
  --accent: #3a5bff;
  --accent-text: #2a47e0;
  --on-accent: #ffffff;
  --accent-2: #00a3a3;
  --on-accent-2: #0b1f22;
  --signal: #f2a93b;
  --focus: var(--accent-text);

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --hairline: 1px; --rule: 2px;
  --measure: 64ch;

  --font: "Martian Mono", Consolas, "Courier New", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.6 var(--font); }
img, svg { display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--rule) solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Type styles (tokens.json: wf-display, wf-title, wf-body, wf-dense, wf-figure) */
.wf-display { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; font-stretch: 112.5%; margin: 0; text-wrap: balance; }
.wf-title { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.wf-body { font-size: 15px; line-height: 1.6; max-width: var(--measure); }
.wf-dense { font-size: 12.5px; line-height: 1.4; font-stretch: 75%; }
.wf-figure { font-size: 14px; line-height: 1.4; font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }

/* Controls: 2px ink-muted borders, square corners, accent fill for the one primary action */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 500 14px/1 var(--font); color: var(--ink); background: var(--surface);
  border: var(--rule) solid var(--ink-muted); border-radius: 0; padding: 11px 16px; cursor: pointer;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; padding: 13px 22px; }
.btn-primary:hover { background: var(--accent-text); border-color: var(--accent-text); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:hover { border-color: var(--ink-muted); }
.btn-primary:disabled:hover { background: var(--accent); border-color: var(--accent); }

/* Tables: dense narrow cut on surface, hairline rules */
.table-wrap { overflow-x: auto; border: var(--hairline) solid var(--line); background: var(--surface); }
table.wf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.4; font-stretch: 75%; }
.wf-table th { text-align: left; font-weight: 600; color: var(--ink-muted); padding: 8px 12px; border-bottom: var(--hairline) solid var(--line); white-space: nowrap; }
.wf-table td { padding: 8px 12px; border-bottom: var(--hairline) solid var(--line); vertical-align: top; }
.wf-table tr:last-child td { border-bottom: 0; }
.wf-table td.num { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Lucide icons, inline: 1.5px stroke */
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: square; stroke-linejoin: miter; display: inline-block; vertical-align: -2px; }

.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
