/* SaveSlot design tokens: the website column of DESIGN.md 4.1. Spec: ../../DESIGN.md.
   src/brand.css repeats the paper-layer values for the site pages; scripts/check-palette.mjs fails the build when the two differ.
   The console (agentx/saveslot-cloud apps/console, src/app/styles/workbench/paper.css) uses the workbench column of 4.1 under its older
   variable names; ink, brand, state and radius values are shared, the grounds are not. */

:root {
  /* paper layer */
  --bg: #fafaf8;            /* page ground */
  --bg-2: #f3f2ef;          /* icon wells, scene & template stage light neutral ground */
  --bg-deep: #efeeea;       /* outer ring of the studio gradient, idle step badge, slot number badge */
  --surface: #f6f5f2;       /* big panel; inner card inside a white panel */
  --card: #ffffff;          /* card, chat window, form */
  --row: #f8f7f5;           /* row inside a white card */
  --line: #efeeea;          /* divider inside a white card */
  --line-strong: #e6e4df;   /* divider on the page ground, input outline */
  --ink: #161a2b;           /* headings, strong text, dark button */
  --ink-2: #525563;         /* body text (7.1:1 on paper) */
  --ink-3: #6e717e;         /* sources, times, footnotes (4.6:1 on paper) */
  --ink-3-text: #6e717e;    /* kept as an alias of --ink-3 */

  /* hairlines: three tiers only (2026-11-20, tuned 2026-11-24) */
  --line-1: rgba(22, 26, 43, 0.075);  /* dividers: between sections, list rows, FAQ */
  --line-2: rgba(22, 26, 43, 0.11);   /* card, stage, dropdown edge */
  --line-3: rgba(22, 26, 43, 0.18);   /* secondary button, pickable option, hover */

  /* brand: amber is the only accent */
  --brand: #f2b33d;
  --brand-soft: #fbe3a6;
  --brand-ink: #8a5a08;

  /* four trust states, paper layer: text / ground */
  --ok: #146c39;   --ok-bg: #dcf3e4;
  --inf: #6a3fc0;  --inf-bg: #ece3fb;
  --unk: #1f55b8;  --unk-bg: #dde8fb;
  --bad: #b3281d;  --bad-bg: #fbe0dd;

  /* four trust states, screen layer: ground / text */
  --scr-ok: #3ddc84;   --scr-ok-ink: #0b2a17;
  --scr-inf: #b48cff;  --scr-inf-ink: #1f1238;
  --scr-unk: #4cc1ff;  --scr-unk-ink: #06263a;
  --scr-bad: #ff5a4e;  --scr-bad-ink: #3a0905;

  /* screen layer */
  --scr-bg: #0f1220;
  --scr-black: #0b0d14;
  --scr-row: #181c2e;
  --scr-line: #23283d;
  --scr-dash: #2c3250;
  --scr-text: #ffffff;
  --scr-text-2: #9aa0bd;
  --scr-text-3: #8e94b3;
  --scr-gold: #ffd36b;
  --scr-cyan: #8de0ff;

  /* type */
  --sans: 'Geist', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --display: 'Roboto Serif', 'Noto Serif SC', 'Songti SC', serif;   /* display headings only (DESIGN.md 5.1) */
  --pixel: 'Silkscreen', monospace;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --wordmark: 'Anton', 'Impact', sans-serif;

  /* radius: five steps only — 999 / 20 / 16 / 10 / 6 (2026-11-20). Inner radius = outer radius - gap. */
  --r-pill: 999px;   /* tag, state pill, chip link — never a button (2026-11-24) */
  --r-panel: 20px;   /* stage, facade, closing object frame */
  --r-card: 16px;    /* card, chat window, state table, pricing */
  --r-mid: 16px;
  --r-small: 10px;   /* button, input, segmented switch; row, icon ground, thumbnail */
  --r-tiny: 6px;     /* item inside a segmented switch, button under 32px; gem, step badge */

  /* layout */
  --gut: max(80px, calc((100vw - 1200px) / 2));   /* 1200px content column */
  --section-y: 72px;                              /* section padding, 52px on phones */

  /* motion: two interaction speeds */
  --t-fast: 0.12s;   /* colour, background, border */
  --t-base: 0.2s;    /* movement, underline */
  --out: cubic-bezier(0.22, 1, 0.36, 1);

  /* shadow: cards do not cast shadows; a 1px hairline ring is the edge.
     Real shadows are only for things floating over content, and stay warm brown. */
  --sh-hairline: 0 0 0 1px var(--line-2);
  --sh-ground: var(--sh-hairline);   /* info card (was a warm drop shadow before 2026-11-20) */
  --sh-lift: 0 12px 26px -16px rgba(60, 40, 20, 0.45);                                 /* chip, list item */
  --sh-float: 0 30px 60px -30px rgba(60, 40, 20, 0.35);                                /* chat window, state table */
  --sh-form: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 30px -12px rgba(60, 40, 20, 0.18);    /* email form */
  --sh-key: inset 0 -3px 0 rgba(0, 0, 0, 0.18);                                        /* gem, sticker: a pressable key */

  /* studio ground: one soft light, upper right */
  --studio: radial-gradient(120% 90% at 70% 40%, #ffffff 0%, #fafaf8 55%, #efeeea 100%);
}
