/* tokens.css — single source of truth for the Automax colour palette and
   typefaces (dark + light). Linked FIRST on every page; every other
   stylesheet consumes these via var(--…).

   The palette is the board itself: black soldermask, off-white silkscreen
   and one gold accent (the ENIG pads). Gold is for emphasis, interactive
   states and the target dot of the logo, never for large fields. Dark is
   the default theme; [data-theme="light"] on <html> switches (theme.js). */

@import url('fonts.css');

:root {
    --bg0: #0f0e0c;            /* page background */
    --bg1: #0a0908;
    --card: #191816;           /* panels */
    --card2: #141311;
    --border: #2b2926;
    --border2: #3b3935;
    --text: #f1eee6;           /* silkscreen off-white */
    --muted: #a09c93;
    --muted2: #726e66;
    --accent: #f5b82e;         /* pad gold */
    --accent-ink: #171307;     /* type on a gold field */
    --glow: rgba(245, 184, 46, 0.07);
    --ok: #5cc26a;
    --warn: #ff9442;           /* kept apart from the gold accent */
    --err: #e5605b;
    --radius: 0px;
    --radius-lg: 0px;
    --radius-sm: 0px;
    --shadow: 0 8px 28px rgba(0,0,0,0.34), 0 1px 2px rgba(0,0,0,0.40);

    --font-d: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-b: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="light"] {
    --bg0: #eceae6;
    --bg1: #e2e0db;
    --card: #f8f7f4;
    --card2: #f1efeb;
    --border: #d6d3cc;
    --border2: #c2beb6;
    --text: #1b1915;
    --muted: #625e56;
    --muted2: #8c887f;
    --accent: #9a6200;         /* gold, deepened for contrast on paper */
    --accent-ink: #ffffff;
    --glow: rgba(154, 98, 0, 0.06);
    --ok: #1a8f3c;
    --warn: #b4530a;
    --err: #cf3327;
    --shadow: 0 10px 30px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}
