/* Frammi: design tokens. The whole palette lives in this file; swap it here and nowhere else.

   Palette: Sandur (Kunnátta/Hönnun/Litapallettur/pallettur/05-sandur.css), chosen by Bergmann on
   30 Nov 2026 ("sandur it is") from Frammi's own pages shown in eight palettes, with his own
   accent in place of Sandur's burnt orange: gullappelsína #f5a623 (the same day, picked from
   six accents shown on the Starfsfólk page; he asked for "a lighter one").
   60-30-10: 60% warm sand (backgrounds), 30% deep green (side menu, headings, toasts, links),
   10% gold-orange (the main button, what is selected), with dark text on it.
   The green: Sandur's sage (#3d4a3f) gave way to a deeper, clearer green on 1 Dec 2026, with pure
   white text in the menu (Bergmann: the sage looked brown and "everything looks blurry"; he chose
   #1f3d33 of three shown). The names stay --sage-*: they are the second colour, whatever its hue.
   Type (the same day, "I really like A"): Bricolage Grotesque for headings, DM Sans for text,
   Kunnátta's own pair (fonts.css).

   THE GOLD-ORANGE IS THE SAME HUE AS THE WARNING AMBER (--warn, 2 degrees apart). They are told
   apart by shape alone, so keep the shapes apart: the accent is always a solid fill with dark
   text (a button, the selected menu item); a warning is always a soft cream label or message
   with an icon and a word. Never a gold label or badge next to a "bíður" status, never a solid
   amber button, and when the first real warning status goes on a page, look at that page.
   THE GOLD-ORANGE IS A FILL ONLY: on sand it is 1.9:1 and on white 2.0:1, so it is never text,
   a link, a focus ring or a thin line (those are sage, --interactive), and the main button
   carries a darker edge (--accent-edge, 3.3:1 or more) so its shape does not rest on the fill.
   Components use the semantic tokens only, never the raw ones. */

:root {
  /* Raw colours (Sandur) */
  --sand: #faf7f2;
  --sand-deep: #f0e9e0;
  --sand-line: #ebe3d8;
  --sage: #24463a;
  --sage-deep: #1b3a2f;
  --sage-pressed: #183228;
  --sage-light: #33594b;
  --sage-soft: #e3ebe6;
  --menu: #1f3d33;
  --menu-hover: #2c5245;
  --ink: #2a211b;
  --gold: #f5a623;
  --gold-hover: #dd9520;
  --gold-pressed: #c4851c;
  --gold-edge: #b87d1a;

  /* 60%: base */
  --ground: var(--sand);
  --surface: #ffffff;
  --surface-sunken: var(--sand-deep);
  --field: #ffffff;
  --border: var(--sand-line);
  --border-strong: #c5bbb1;
  --field-border: #897f77;      /* 3:1 or more against the field, the card and the ground */

  --text: var(--ink);
  --text-muted: #6b5f55;

  /* 30%: second colour */
  --heading: var(--sage-deep);
  --sidebar: var(--menu);
  --sidebar-hover: var(--menu-hover);
  --sidebar-pressed: var(--sage-pressed);
  --sidebar-line: var(--sage-light);
  --sidebar-text: #ffffff;
  --sidebar-label: #c8d6cf;
  --interactive: var(--sage);
  --interactive-hover: var(--sage-deep);
  --interactive-soft: var(--sand-deep);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--sage);

  /* 10%: accent */
  --accent: var(--gold);
  --accent-hover: var(--gold-hover);
  --accent-pressed: var(--gold-pressed);
  --accent-edge: var(--gold-edge);
  --on-accent: var(--ink);

  /* Status (Litapallettur/stada.css; ok darkened a shade so it holds 4.5:1 on its own soft tint) */
  --ok: #1d7446;
  --ok-soft: #dcefe2;
  --warn: #8a5200;
  --warn-soft: #fdf0d5;
  --bad: #b3261e;
  --bad-soft: #f8dcd9;

  /* Space: an 8 px step (4 for the tightest gaps) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* Shape */
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 16px;            /* the big surfaces: the home page's tools, the settings panel */
  --shadow-sheet: 0 1px 1px rgba(42, 33, 27, 0.06), 0 6px 18px -6px rgba(42, 33, 27, 0.18); /* paper */
  --target: 44px;               /* the smallest thing a finger or a mouse has to hit */
  --shadow-toast: 0 4px 12px rgba(42, 33, 27, 0.18);

  /* Type */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);     /* a page's title */
  --fs-2xl: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);      /* the home page's greeting */
}
