/* Rowan's design system: the palette, the type, the corners and the easing, as custom
   properties only (no element styles), so a page that links this file after base.css
   changes color and type and nothing else. From the approved design (design/styles.css,
   design/system.html, 2026-11-18).

   Served before the door (server.mjs): the landing and the sign-in page use it signed out,
   so it holds nothing but these values and the font beside it (common/fonts/). */

@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* ---- the palette */
  --paper: #f8f5eb;        /* the page */
  --white: #fffdf7;        /* a warm white: cards, inputs, the paper she writes on */
  --ink: #24352b;          /* text */
  --forest: #233b2e;       /* the main action, dark panels */
  --forest-hover: #355541; /* the main action under a pointer */
  --sun: #f2d77c;          /* warm highlight, the second action */
  --sun-hover: #f7e49b;
  --soft: #546451;         /* quieter text */
  --sage: #e5ead6;         /* a pale green wash */
  --berry: #a74836;        /* the accent: the brand mark, focus rings, her written answer */
  --line: #dddccf;         /* rules and borders */
  --line-strong: #b6b8a8;  /* an input's border */
  --wash: #f1efe3;         /* a panel on the paper (the demo, the family card) */

  /* ---- math colors (product rule: never change these two) */
  --x: #0e8f86;
  --y: #ee5a44;
  --math-x: var(--x);      /* the design's names for the same two */
  --math-y: var(--y);

  /* ---- type */
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--body);

  /* ---- corners */
  --radius-s: 3px;         /* the landing's buttons and fields */
  --radius-field: .7rem;   /* a field in the app */
  --radius-m: 1rem;        /* a card, the paper */
  --radius-l: 1.5rem;      /* a large panel */
  --radius-pill: 999px;    /* a button in the app */
  --radius-photo: clamp(28px, 5.4vw, 84px);   /* the one big round corner of a photograph */

  /* ---- motion */
  --ease: cubic-bezier(.2, .65, .25, 1);

  /* ---- the names the app already uses, mapped onto the palette above, so a page that
     adopts this file restyles without renaming anything */
  --card: var(--white);       /* was #ffffff: a card's background */
  --teal: var(--forest);      /* was #149c92: the main action (button.primary), "on" dots, focus */
  --teal-dark: var(--ink);    /* was #0e7a72: headings, links, a pressed main action */
  --coral: var(--berry);      /* was #ff7a66: a warm alert (the clock running out, the drill box) */
  --good: var(--forest);      /* was #2f8f4e / #3fb56b: a right answer, a "yes" in the meter */
  --warn: var(--berry);       /* was #ff9d3c: "have another look" (never "wrong"), a "no" in the meter */
  --n: var(--ink);            /* was #1f2a44: a plain number in a problem */
  --t: #e2a100;               /* unchanged: a third variable's color (none in the palette; kept apart from x and y) */
  --v: #7c83ff;               /* unchanged: a fourth variable's color (likewise) */
  --sky: #7c8cf8;             /* unchanged: a stage drawing's color (common/stage-base.js) */
  --leaf: #3fb56b;            /* unchanged: a stage drawing's color (common/stage-base.js) */
  --track: var(--sage);       /* was #d7efec: a progress bar's empty track (home) */
  --grid: var(--line);        /* was #efe9de: a chart's grid lines (home) */
  --bubble: var(--sage);      /* was #eef7f6: what Rowan says, in the conversation (home) */
  --radius: var(--radius-m);  /* was 18px: a card's corners */
  --shadow: 0 1px 2px rgba(36, 53, 43, .06), 0 6px 18px rgba(36, 53, 43, .06);  /* was blue-grey; the design leans on lines, so this is faint */
  --font: var(--body);        /* was "Nunito" from the system: now Nunito Sans, served here */
}
