/* Formwork design tokens: Mono + signal orange (chosen by the user, 2026-10-02). One file for the public site, the sign-in pages
   and the signed-in app. Plain custom properties only: no component rules, no page scoping.
   Theme selection matches the app: [data-theme] on <html> (localStorage 'fw-theme'), otherwise the system preference.
   [data-tone='dark'] forces the dark set on one element (the site footer). Load after app.css and before any stylesheet that reads these.
   Orange is a signal: the live thing, the one main action, the focus ring, live counters. Selected and pressed states are ink. */

:root {
  /* colour: light */
  --bg: #fafafa;             /* page */
  --bg-2: #f4f4f4;           /* wells and inputs inside panels */
  --panel: #ffffff;          /* raised surfaces */
  --panel-2: #f3f3f3;        /* hover, nested rows, the sliding pill */
  --line: #e5e5e5;           /* hairlines */
  --line-2: #d4d4d4;         /* stronger hairlines: inputs, controls */
  --text: #111111;
  --text-2: #454545;         /* secondary copy: 9.2:1 on --bg */
  --muted: #5c5c5c;          /* meta, captions: 6.4:1 on --bg */
  --accent: #e2470f;         /* signal orange: fills, dots, rings */
  --accent-text: #c23a08;    /* orange used as text (live counters): 5.4:1 on --panel */
  --accent-ink: #111111;     /* text on an orange fill: 4.6:1 */
  --danger: #c81e1e;         /* form validation errors only */
  --link-line: rgb(17 17 17 / .3);
  --selection: rgb(17 17 17 / .14);
  --mark-bg: #111111;
  --mark-fg: #fafafa;
  --shadow-float: 0 1px 2px rgb(0 0 0 / .05), 0 12px 28px -16px rgb(0 0 0 / .16);   /* floating elements only: menus, popovers, toasts, product windows */
  --hall: #ebebeb;           /* the floor of the hall: home hero, sign-in, empty states */
  --hall-ink: #c4c4c4;       /* what is painted on that floor */
  --sheet: #141414; --sheet-2: #1f1f1f; --sheet-line: #333333; --sheet-text: #f4f4f4; --sheet-muted: #b0b0b0;   /* the inverse: chosen things, ink buttons */
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* type */
  --font-sans: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;   /* numbers, versions, prices, keys, code */
  --tracking-display: -.03em;
  --tracking-heading: -.025em;
  --weight-display: 500;

  /* shape */
  --radius-panel: 16px;      /* panels and frames */
  --radius-inner: 10px;      /* inside a panel with 6px of padding (16 = 10 + 6); inputs */
  --radius-control: 8px;     /* small square controls */
  --radius-pill: 999px;      /* buttons, chips, segmented controls */

  /* space: 4px base */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);   /* exponential ease-out: enters and state changes */
  --dur-fast: 160ms;         /* press, hover */
  --dur: 220ms;              /* state changes */
  --dur-enter: 520ms;        /* entrances (max 600ms) */

  color-scheme: light;
}

:root[data-theme='dark'], [data-tone='dark'] {
  --bg: #0b0b0b; --bg-2: #0f0f0f; --panel: #141414; --panel-2: #1c1c1c; --line: #262626; --line-2: #333333;
  --text: #f2f2f2; --text-2: #c2c2c2; --muted: #a3a3a3;
  --accent: #ff5a1f; --accent-text: #ff5a1f; --accent-ink: #0b0b0b; --danger: #ff7a6b;
  --link-line: rgb(237 237 237 / .32); --selection: rgb(237 237 237 / .2); --mark-bg: #ededed; --mark-fg: #0b0b0b;
  --shadow-float: 0 1px 2px rgb(0 0 0 / .5), 0 16px 32px -18px rgb(0 0 0 / .8);
  --hall: #191919; --hall-ink: #3c3c3c; --sheet: #f2f2f2; --sheet-2: #e4e4e4; --sheet-line: #cfcfcf; --sheet-text: #111111; --sheet-muted: #5a5a5a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b0b; --bg-2: #0f0f0f; --panel: #141414; --panel-2: #1c1c1c; --line: #262626; --line-2: #333333;
    --text: #f2f2f2; --text-2: #c2c2c2; --muted: #a3a3a3;
    --accent: #ff5a1f; --accent-text: #ff5a1f; --accent-ink: #0b0b0b; --danger: #ff7a6b;
    --link-line: rgb(237 237 237 / .32); --selection: rgb(237 237 237 / .2); --mark-bg: #ededed; --mark-fg: #0b0b0b;
    --shadow-float: 0 1px 2px rgb(0 0 0 / .5), 0 16px 32px -18px rgb(0 0 0 / .8);
  --hall: #191919; --hall-ink: #3c3c3c; --sheet: #f2f2f2; --sheet-2: #e4e4e4; --sheet-line: #cfcfcf; --sheet-text: #111111; --sheet-muted: #5a5a5a;
    color-scheme: dark;
  }
}
