/* Trilho · tokens (skill ux-simples, componentes.md §1; copiado do design da Bailder Infra).
   Tema claro "papel" é o padrão; escuro "plantão" segue o sistema ou ?theme=plantao (cookie → <html data-theme>).
   Nenhum hex fora deste arquivo. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/inter-var-latin-1f021a24.woff2") format("woff2");
  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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/inter-var-latin-ext-65edaaef.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
  color-scheme: light;
  --bg: #f1eee5;  --surface: #fffefb;  --surface-2: #f7f5ee;
  --ink: #191714;  --muted: #5f5a51;  --line: #d7d1c2;  --edge: #8f8778;
  --link: #175cd3;  --ok: #17663f;  --warn: #7a4f00;  --bad: #b42318;
  --ok-soft: #e3f1e8;  --warn-soft: #f6ecd6;  --bad-soft: #f9e4e1;  --link-soft: #e4ecfb;
  --on-ink: #fffefb;  --scrim: rgb(25 23 20 / .32);
  --bar-ok: #2f8a5b; --bar-warn: #b7791f; --bar-bad: #c2412d;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-xs: .75rem; --fs-sm: .8125rem; --fs-md: .9375rem; --fs-lg: 1.125rem; --fs-xl: 1.5rem; --fs-hero: 2.25rem;
  --lh-body: 1.5; --lh-tight: 1.2;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --page-max: 1200px; --drawer-w: 480px; --tap: 44px; --topbar-h: 60px; --bottomnav-h: 60px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  --shadow-1: 0 1px 0 rgb(25 23 20 / .04), 0 1px 2px rgb(25 23 20 / .06);
  --shadow-2: 0 4px 12px rgb(25 23 20 / .08), 0 1px 3px rgb(25 23 20 / .06);
  --shadow-3: 0 24px 48px rgb(25 23 20 / .16), 0 4px 12px rgb(25 23 20 / .08);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--link);

  --ease-out: cubic-bezier(.2, .8, .2, 1); --t-press: 120ms; --t-fast: 160ms; --t-base: 200ms;
}

/* Tema "plantão" (escuro quente; nunca azul-hacker) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="papel"]) {
    color-scheme: dark;
    --bg: #131210; --surface: #1c1a17; --surface-2: #24211d;
    --ink: #f1eee5; --muted: #a8a194; --line: #38342d; --edge: #7a7366; --link: #8db4ff;
    --ok: #5fd39a; --warn: #f2c14e; --bad: #ff8f84;
    --ok-soft: #17291f; --warn-soft: #2e2512; --bad-soft: #331a17; --link-soft: #18223a;
    --on-ink: #131210; --scrim: rgb(0 0 0 / .55);
    --bar-ok: #4cc28a; --bar-warn: #e0a93a; --bar-bad: #f0715f;
    --shadow-1: 0 1px 0 rgb(0 0 0 / .3); --shadow-2: 0 6px 16px rgb(0 0 0 / .4); --shadow-3: 0 24px 56px rgb(0 0 0 / .6);
  }
}
:root[data-theme="plantao"] {
  color-scheme: dark;
  --bg: #131210; --surface: #1c1a17; --surface-2: #24211d;
  --ink: #f1eee5; --muted: #a8a194; --line: #38342d; --edge: #7a7366; --link: #8db4ff;
  --ok: #5fd39a; --warn: #f2c14e; --bad: #ff8f84;
  --ok-soft: #17291f; --warn-soft: #2e2512; --bad-soft: #331a17; --link-soft: #18223a;
  --on-ink: #131210; --scrim: rgb(0 0 0 / .55);
  --bar-ok: #4cc28a; --bar-warn: #e0a93a; --bar-bad: #f0715f;
  --shadow-1: 0 1px 0 rgb(0 0 0 / .3); --shadow-2: 0 6px 16px rgb(0 0 0 / .4); --shadow-3: 0 24px 56px rgb(0 0 0 / .6);
}

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