/* Architectural flat design tokens. Light by default; dark when <html data-theme="dark">.
   Zero gradients. Elevation declared once via hairline borders (shadows reserved strictly for floating overlays). */
:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --rail: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --surface-3: #e6e3db;
  --line: #e5e2da;
  --line-strong: #cdc9be;
  --ink: #141518;
  --ink-2: #484a52;
  --ink-3: #6e7079;
  --accent: #c8102e;
  --accent-hover: #a60d25;
  --accent-soft: #fbecef;
  --accent-ink: #ffffff;
  --ring: rgba(200, 16, 46, .22);
  --ok: #137338;
  --ok-soft: #e6f4ea;
  --warn: #8a5600;
  --warn-soft: #fbf0d9;
  --bad: #b4162c;
  --bad-soft: #fce8eb;
  --info: #1a56a8;
  --info-soft: #e6effb;
  --shadow-1: none;
  --shadow-2: 0 18px 48px rgba(20, 21, 24, .14);
  --scrim: rgba(16, 17, 20, .44);
  --preview-bg: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e10;
  --rail: #121316;
  --surface: #17181c;
  --surface-2: #1f2026;
  --surface-3: #2a2c33;
  --line: #272930;
  --line-strong: #3a3d47;
  --ink: #f0f1f4;
  --ink-2: #b4b6c0;
  --ink-3: #838692;
  --accent: #ef4561;
  --accent-hover: #f5627b;
  --accent-soft: #35151c;
  --accent-ink: #ffffff;
  --ring: rgba(239, 69, 97, .32);
  --ok: #4cc777;
  --ok-soft: #132a1c;
  --warn: #e9b54a;
  --warn-soft: #2e2510;
  --bad: #f2667b;
  --bad-soft: #36151b;
  --info: #6aa5f5;
  --info-soft: #132238;
  --shadow-1: none;
  --shadow-2: 0 20px 56px rgba(0, 0, 0, .58);
  --scrim: rgba(0, 0, 0, .64);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h2 { font-size: 1.06rem; line-height: 1.3; margin: 0 0 .7rem; letter-spacing: -.015em; font-weight: 660; text-wrap: balance; }
h3 { font-size: .95rem; margin: 0 0 .35rem; font-weight: 640; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
small, .mute { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
code, .mono { font-family: var(--mono); font-size: .84em; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--ring); color: var(--ink); }
