/* idcleanse brand tokens (docs/branding.md): the one place colours, type and shape are defined.
   The site (www), the account, invitation and setup pages (deploy/*) and the print card all take these.
   Green #214A20 is the logo package's colour; everything else is derived from it. */

@font-face {
  font-family: "Abel";
  src: url("abel-400.woff2") format("woff2");   /* self-hosted: no third-party font requests (privacy, CSP 'self') */
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* brand */
  --brand: #214A20;          /* logo green: buttons, header mark, links */
  --brand-hover: #183817;
  --brand-text: #ffffff;     /* text on --brand */
  --brand-soft: #e7efe5;     /* tinted panels, selected rows, tags */

  /* neutrals, a touch warm-green so they sit with the brand */
  --bg: #f7f8f4;
  --surface: #ffffff;
  --ink: #1a211a;
  --muted: #5b675a;
  --line: #dde3d9;

  /* status (meaning only; never decoration) */
  --ok: #2e7d32;
  --warn: #8a5a00;
  --warn-soft: #fbf1dc;
  --bad: #b3261e;
  --bad-soft: #fbe9e7;

  /* type */
  --font-display: "Abel", "Arial Narrow", system-ui, sans-serif;  /* headings, wordmark, prices */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* shape: round caps and soft corners, like the logo's strokes */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --icon-stroke: 2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8fcb8b;
    --brand-hover: #a7d9a3;
    --brand-text: #0f1510;
    --brand-soft: #1c2e1c;

    --bg: #0f1510;
    --surface: #172017;
    --ink: #e5ece4;
    --muted: #9daa9b;
    --line: #283428;

    --ok: #7fd08a;
    --warn: #e8b85c;
    --warn-soft: #2e2512;
    --bad: #f2b8b5;
    --bad-soft: #3a1d1b;
  }
}
