/*
 * Prooflane tokens (look v3, Rene's pick, 23 Nov 2026). Guide: docs/DESIGN.md. The look's own sheet is look.css
 * (tokens --lk-*); this file maps the older names onto the same asphalt-and-white palette, so every screen drawn
 * with the kit and module classes (button, card, alert, field, sheet ...) wears the same look.
 *
 * The brand is ink (#0f1317) and white on a warm paper page. The thing to tap is the one action blue (--action,
 * Rene 28 Nov 2026): the main button, a link, the focus ring. Green, amber and red only mean the status of a record
 * (always with a shape and a word). Type is Archivo, self-hosted (look.css).
 * Every text pair below is WCAG AA or better; the ratios are noted beside each value.
 * Keep --brand equal to THEME_COLOR and --action equal to ACTION_COLOR in app/brand.py (and to look.css --lk-action).
 */

:root {
  color-scheme: light;

  /* brand:start */
  --brand: #0f1317;            /* the brand's ink: the mark, a second-choice button (white on it 18.6:1; on the page 17:1) */
  --brand-strong: #000000;     /* hover / pressed */
  --brand-soft: #eceae4;       /* tinted backgrounds: you are here, a quiet note (ink on it 15.4:1) */
  --brand-contrast: #ffffff;   /* text on --brand */
  --accent: var(--brand);
  --action: #1660e0;           /* the main button, a link, the focus ring (white on it 5.5:1; on a card 5.5:1, on the page 5.0:1, on --brand-soft 4.6:1) */
  --action-strong: #0f4bb5;    /* hover / pressed (white on it 7.8:1) */
  --sign: var(--brand);        /* the older parts' ink block: a step's number, the skip link */
  --sign-strong: var(--brand-strong);
  --sign-ink: #ffffff;
  --font-sans: "Archivo", "Noto Sans Gurmukhi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);   /* one family; headings are its semi-condensed heavy cut (app.css) */
  --radius: 16px;
  /* brand:end */

  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --radius-small: 10px;

  /* Page, cards and ink */
  --desk: #f4f3ef;             /* the page: warm paper */
  --paper: #ffffff;            /* a card */
  --paper-2: #f4f3ef;          /* quiet fills: alternate rows, filled boxes */
  --ink: #0f1317;              /* text (18.6:1 on a card, 17:1 on the page) */
  --ink-2: #3f454c;            /* secondary text (10:1 on a card) */
  --ink-3: #525960;            /* small print, sources, dates (7.2:1 on a card, 6.6:1 on the page) */
  --rule: #e3e1db;             /* lines between things */
  --rule-strong: #868a8f;      /* field borders and UI edges (3.4:1 on a card) */
  --housing: #0f1317;

  /* Status, for a record only. Ink = text and icons; wash = the tint behind a status card; edge = its border. */
  --go: #127a41;      --go-wash: #e5f4ea;      --go-edge: #bfe2cb;      /* go ink 5.4:1 on white, 4.8:1 on its wash */
  --caution: #8f5300; --caution-wash: #fff4dc; --caution-edge: #f0d8a4; /* caution ink 6.1:1 on white, 5.5:1 on its wash */
  --stop: #c0291b;    --stop-wash: #fcebe8;    --stop-edge: #f1c6c0;    /* stop ink 5.9:1 on white, 5.1:1 on its wash */
  --unknown: #525960; --unknown-wash: #efeee9; --unknown-edge: #d3d0c8;
  --go-lamp: var(--go); --caution-lamp: var(--caution); --stop-lamp: var(--stop);   /* older names; same ink */

  /* Kit names, mapped onto the status colours (kit badges and alerts keep working) */
  --good: var(--go);   --good-bg: var(--go-wash);
  --warn: var(--caution); --warn-bg: var(--caution-wash);
  --bad: var(--stop);  --bad-bg: var(--stop-wash);
  --info: var(--brand); --info-bg: var(--brand-soft);
  --surface: var(--paper);
  --surface-alt: var(--paper-2);
  --border: var(--rule);
  --border-strong: var(--rule-strong);
  --ink-muted: var(--ink-2);

  --sheet-shadow: 0 1px 2px rgb(15 19 23 / 6%), 0 8px 24px rgb(15 19 23 / 6%);
  --shadow: 0 1px 2px rgb(15 19 23 / 6%), 0 8px 24px rgb(15 19 23 / 6%);
  --container: 77.5rem;        /* the look's 1240px column */
  --measure: 38rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type scale (16px root). Body is 18px on every screen; nothing a customer reads is under 16px. */
  --step--1: 1rem;
  --step-0: 1.125rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.3rem + 0.5vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem);
  --step-4: clamp(1.9rem, 1.45rem + 2.2vw, 2.9rem);

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --gutter: 1.25rem;
}
