/* MusicStudio — DESIGN TOKENS. The ONLY file with colours, fonts, sizes, radii and shadows in it.
 *
 * app.css holds structure and reads every variable value from here (test/pwa.test.mjs fails on a literal
 * colour anywhere else). To apply a design: replace the values below, keep the names. If a design needs a
 * NEW kind of value, add a token here and use it in app.css — never a literal there.
 *
 * LOOK A — "the instrument", in Sonic's palette (2026-11-27: "the gold, baby blue. White (soft white) for theme
 * A was best"). A's layout and structure stay; the metal is GOLD (a restrained gradient where a metal catches
 * light: the Go keys' rings, the rod they sit on, the frame's edge, today's date), the grounds are SOFT WHITE
 * (never stark white), and BABY BLUE is the calm "yes": picked, today, links, and TICKED — a lesson taught, a
 * family approved, an invoice paid fill the key's face blue with a deep-blue tick. Text is ink or deep blue;
 * gold text only in its dark shade (>= 4.5:1). Surface map: TheForge Projects/MusicStudio/design/04-surface-map.md. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
}
:root {
  color-scheme: light;

  /* text scale: one multiplier, text only (borders, radii and breakpoints do not scale) */
  --scale: 1;

  /* soft-white grounds and surfaces */
  --bg: #f7f4ec;                 /* the stand: soft white, warm */
  --surface: #fffdf9;            /* cards, sheets, the list: the brightest soft white (never #fff) */
  --surface-2: #f0ece2;          /* recessed fills: segmented controls, wells */
  --surface-3: #e9e3d6;          /* pressed fill */
  --frame: #fcfaf4;              /* header, tab bar */
  --demo-bg: #eeeae0;            /* the demo strip: the stand a shade darker */
  --line: #e9e2d2;
  --line-strong: #d9cfb8;
  --scrim: rgba(27, 36, 51, 0.36);

  /* ink: navy-black, to sit with the blue */
  --ink: #1b2433;
  --ink-2: #535d6c;
  --ink-3: #5c6573;
  --ink-on-accent: #fffdf9;

  /* picked (selected, not done): baby blue */
  --accent: #245a8c;             /* links, the "now" line: deep blue (text-safe) */
  --accent-strong: #1d4a75;
  --accent-soft: #e8f3fc;
  --sel-bg: #d3e8f8;             /* a picked chip / length: baby blue */
  --sel-ink: #1b2433;
  --sel-ring: inset 0 0 0 1.5px #8fbfe6;
  --primary-bg: #1b2433;         /* the one strong button per screen: ink */
  --primary-ink: #fffdf9;
  --primary-pressed: #33405a;

  /* ticked (a lesson taught, a family approved, an invoice paid): the key's face goes baby blue */
  --done-ink: #1d4a75;           /* "Taught 4:32 · 30 min" (text-safe deep blue) */
  --done-soft: #e3f0fb;
  --done-face: radial-gradient(120% 90% at 35% 25%, #e6f3fd 0, #c4e1f7 55%, #a9d1ef 100%);
  --tick: #1d3f63;

  /* gold: the keys' rings, the rod, the frame's edge, today's ring */
  --metal-ring: conic-gradient(from 210deg, #fff6dc, #d9b55e 12%, #f6e3a8 25%, #b8913e 38%, #fbefc8 52%, #d8b862 66%, #f1dc9c 80%, #bf9a48 91%, #fff6dc);
  --metal-ring-soft: conic-gradient(from 210deg, #fff6dc, #d6b665 20%, #f8e9bb 45%, #c09b4c 70%, #fff6dc);
  --metal-rod: linear-gradient(90deg, #a8843a, #f8e7b0 45%, #d6b562 70%, #a98638);
  --metal-bar: linear-gradient(180deg, #d6b562, #f8e7b0 50%, #b8913e);
  --metal-edge: #e2cd92;
  --gold-ink: #7a5c17;           /* gold as text: its dark shade only */
  --key-shadow: 0 1px 1.5px rgba(90, 66, 16, 0.3), 0 4px 10px rgba(90, 66, 16, 0.12);
  --key-shadow-sm: 0 1px 1px rgba(90, 66, 16, 0.26), 0 2px 5px rgba(90, 66, 16, 0.1);
  --rod-shadow: 1px 0 2px rgba(90, 66, 16, 0.14);
  --key-face: radial-gradient(120% 90% at 35% 25%, #fffefb 0, #fcf8ef 45%, #ede5d4 100%);
  --face-inset: inset 0 1.5px 2px rgba(60, 44, 12, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.9);
  --face-inset-pressed: inset 0 3px 5px rgba(60, 44, 12, 0.3);
  --face-inset-done: inset 0 2px 4px rgba(20, 50, 80, 0.25);

  /* the Go button (kept names) */
  --go-bg: #fffdf9;
  --go-bg-pressed: #ede5d4;
  --go-ink: #1b2433;
  --go-done-bg: #c4e1f7;
  --go-done-ink: #1d4a75;

  /* states (blue is "yes"; these are the others) */
  --ok: #1d4a75;                 /* paid = ticked = blue */
  --ok-soft: #e3f0fb;
  --warn: #7a4f00;               /* needs you: amber */
  --warn-soft: #fbf1dc;
  --danger: #a3341f;             /* did not go: brick */
  --danger-soft: #fbe9e4;
  --info: #245a8c;
  --info-soft: #e8f3fc;
  --focus: #245a8c;

  /* avatars without a photo: initials on a tint */
  --avatar-bg: #efe8d8;
  --avatar-ink: #535d6c;
  --avatar-ring: inset 0 0 0 1px rgba(90, 66, 16, 0.1);

  /* type: one family, self-hosted */
  --font-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: calc(12px * var(--scale));
  --fs-sm: calc(13px * var(--scale));
  --fs-md: calc(15px * var(--scale));
  --fs-name: calc(16px * var(--scale));
  --fs-lg: calc(17px * var(--scale));
  --fs-xl: calc(21px * var(--scale));
  --fs-xxl: calc(24px * var(--scale));
  --fs-hero: calc(44px * var(--scale));
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --lh: 1.4;

  /* space, shape, depth */
  --gutter: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-1: 0 0 0 1px #ebe4d4, 0 1px 2px rgba(90, 66, 16, 0.06);
  --shadow-2: 0 -6px 30px rgba(27, 36, 51, 0.16);
  --shadow-toast: 0 8px 24px rgba(27, 36, 51, 0.26);
  --edge-below: 0 1px 0 #e2cd92, 0 2px 0 #fffdf9;
  --edge-above: 0 -1px 0 #e2cd92, 0 -2px 0 #fffdf9;
  --ring-hair: inset 0 0 0 1px #ddd4c0;
  --ring-dash: #c9bc9c;

  /* the toast: deep blue after a tick, ink otherwise */
  --toast-bg: #1b2433;
  --toast-ink: #fffdf9;
  --toast-tick-bg: #24476b;
  --toast-tick-ink: #fffdf9;
  --toast-btn-bg: rgba(255, 253, 249, 0.12);
  --toast-drain: #e7c879;

  /* fixed sizes of things people tap */
  --bar-h: 58px;
  --tabs-h: 60px;
  --demo-h: 44px;
  --row-avatar: 48px;
  --hero-avatar: 132px;
  --go-w: 56px;
  --go-h: 56px;
  --key: 56px;
  --check-key: 40px;
  --tick-w: 34px;
  --tick-h: 27px;
  --tap: 44px;
  --content-max: 720px;
}
