/* Generated from web/ui/tokens.css. Do not edit. */
:root {
  /* ── The seven ────────────────────────────────────────────────────────────
     Every colour in the app is one of these or a tint of one. Objects own
     their colour: blue speaks, yellow sounds, red contains, black writes. */
  --color-shu: #dc4b2f;      /* vermilion — folders, pdf, alerts */
  --color-yamabuki: #f2c63f; /* mustard — audio, stickies */
  --color-matsuba: #4e8a5a;  /* pine — live, connected */
  --color-ruri: #007aff;     /* iMessage blue — messages, links, selection */
  --color-kogecha: #9c6b33;  /* kraft — drawing, kraft surfaces */
  --color-gofun: #fdfcf8;    /* paper white — THE DESK */
  --color-sumi: #26231e;     /* ink — text, buttons */

  /* Plain-English aliases, so a Tailwind utility can say `bg-red`. Gofun and
     sumi are deliberately *not* aliased onto Tailwind's `white` and `black`:
     `--color-white` is a name for #fff in every other codebase, and #fff is
     `--color-paper` below — a different thing from the desk. See the note on
     paper. The desk gets `--color-desk`; ink gets the `--color-ink-*` family. */
  --color-red: var(--color-shu);
  --color-yellow: var(--color-yamabuki);
  --color-green: var(--color-matsuba);
  --color-blue: var(--color-ruri);
  --color-brown: var(--color-kogecha);
  --color-desk: var(--color-gofun);

  /* Shu at text weight. Not an eighth colour — the same relationship
     `--color-ink` has to `--color-sumi`, in the other direction: an object's
     colour and the weight that colour has to be to carry small text are two
     facts, and shu is the one place in the seven where they differ enough to
     matter. Shu on paper is 4.13 and white on shu is 4.13; both are AA for
     large text and neither is AA for body, and *every* place the app used
     them was body — a 12px delete button, an 11px consequence line, the
     sign-in error. This is the one to reach for whenever shu meets small
     text, as the ink or as the ground: 4.93 on paper, 4.80 on the desk, and
     white on it is 4.93. Shu itself stays exactly what it was, for the things
     it names — folders, pdf, alerts, a drawing pen.

     Written as a literal because `scripts/contrast.mjs` does arithmetic on
     these values and cannot evaluate a `color-mix()`. It is exactly
     `color-mix(in srgb, var(--color-shu) 90%, black)`, which is what the design
     lab's `cssVars` emits, so the token editor moves this with red. */
  --color-shu-ink: #c6442a;

  /* Pale versions, for fills that carry a colour without shouting it. */
  --color-tint-red: #f9dfd8;
  --color-tint-yellow: #f6efae;
  --color-tint-green: #dfebd9;
  --color-tint-blue: #d9eaff;
  --color-tint-brown: #ede2d1;

  /* ── The identity scale ───────────────────────────────────────────────────
     One colour per collaborator, and the only palette here whose job is
     *difference* rather than meaning: the person at slot 3 has no more claim
     on green than the person at slot 4 has on blue, and all that matters is
     that two people in the same document never look alike. The seven cannot
     express that — five chromatic tokens do not seat eight people — so this
     is its own namespace, five of the seven followed by three that extend the
     family rather than restate it. Reach for it only when the requirement is
     literally "not the one next to it" — a person, a catalogue of starters, a
     chart's series. An object's colour is never here: objects own their
     colour, and that is what the seven are for. */
  --series-1: var(--color-shu);
  --series-2: var(--color-yamabuki);
  --series-3: var(--color-matsuba);
  --series-4: var(--color-ruri);
  --series-5: var(--color-kogecha);
  --series-6: #6b4f8f; /* murasaki */
  --series-7: #2f7f7a; /* asagi */
  --series-8: #b45a78; /* nadeshiko */

  /* Ink, four weights. `--color-ink` is sumi warmed for body text; the rest
     step back from it. */
  --color-ink: #33302b;         /* object text */
  --color-ink-receipt: #45423c; /* tool receipts */
  --color-ink-quiet: #7a756e;   /* labels */
  --color-ink-ghost: #c9c4bc;   /* placeholders */

  /* Paper is not the desk, and both are #fff-adjacent — keep them apart.
     The desk is gofun, a warm off-white. An object *made of paper* — a page,
     a print's border, a receipt — is pure white, and reads as paper precisely
     because it is brighter than the surface under it. `--color-on-ink` is the
     label on a sumi button: that is ink, not surface. Two facts, two names;
     a hex-count metric will tempt a de-duplication that destroys the
     distinction the whole palette rests on. Don't. */
  --color-paper: #fff;
  --color-on-ink: #fff;

  --color-hairline: #f0eee8; /* the edge between two pale things */

  /* ── Type ─────────────────────────────────────────────────────────────────
     Thirteen steps, nothing between them. Half-pixel sizes are how the app
     ended up with 39 of these, eight differing from a neighbour by half a
     pixel nobody can see. */
  --text-micro: 9px;    /* small-caps labels on a receipt */
  --text-tiny: 10px;    /* counts, timestamps */
  --text-label: 11px;   /* section labels, metadata */
  --text-small: 12px;   /* dense UI */
  --text-body: 13px;    /* the default */
  --text-body-l: 14px;  /* emphasis in dense UI */
  --text-read: 15px;    /* reading measure — a page's own body */
  --text-ui: 16px;      /* controls */
  --text-title: 18px;   /* object titles */
  --text-section: 22px; /* section headings */
  --text-display: 28px; /* page headings */
  --text-tag: 36px;     /* a tag, where the name is the object */
  --text-poster: 46px;  /* a page saying its own name */

  /* ── Radius ───────────────────────────────────────────────────────────────
     The named three are object facts; the rest is the step scale everything
     else rounds to. `--radius-bubble` is four corners, not one number: a user
     message has a tail at the bottom right. */
  --radius-bubble: 20px 20px 6px 20px;
  --radius-pill: 999px;
  --radius-page: 18px;
  --radius-photo: 9px;
  --radius-folder: 15px;
  --radius-sharp: 2px; /* a sticky, a grabber — barely rounded */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* ── Shadow ───────────────────────────────────────────────────────────────
     One committed shadow per object kind. A folder's halo is not here: it is
     a `filter`, so it follows the folder's cut-out silhouette rather than its
     bounding box — see `.shadow-folder` below. */
  --shadow-photo: 0 4.6px 14px -1px rgb(0 0 0 / 0.25);
  --shadow-page: 0 9px 28px -2px rgb(0 0 0 / 0.25);
  --shadow-sticky: 0 5px 8.5px -4px rgb(0 0 0 / 0.25);
  --shadow-bar: 0 0 14px 2px rgb(0 0 0 / 0.15);

  /* ── Layers ───────────────────────────────────────────────────────────────
     Seven steps, so nothing has to guess a number. */
  --z-base: 1;
  --z-raised: 4;
  --z-chrome: 10;
  --z-menu: 20;
  --z-overlay: 40;
  --z-modal: 60;
  --z-toast: 80;

  /* Black on paper: hover washes and hairline edges. */
  --wash-hair: rgba(0, 0, 0, 0.05);
  --wash-soft: rgba(0, 0, 0, 0.08);
  --wash-firm: rgba(0, 0, 0, 0.14);
  --wash-hard: rgba(0, 0, 0, 0.2);

  /* The modal scrim. Not a member of the wash family even though it is the
     same ink: a wash tints one control against the paper it sits on, and this
     darkens the entire world behind one thing. Four hand-rolled overlays had
     it at 0.3, 0.4 and 0.5; ui/Overlay is the only thing that should read it. */
  --scrim: rgba(0, 0, 0, 0.4);

  /* White over content: the chrome bars and scrims that let paper show through. */
  --veil-thin: rgba(255, 255, 255, 0.72);
  --veil-mid: rgba(255, 255, 255, 0.86);
  --veil-thick: rgba(255, 255, 255, 0.96);

  /* Mirrors `MOTION` in ui/motion.ts, which is in seconds because
     framer-motion is. `fast` = a state change you shouldn't notice;
     `slow` = a move. */
  --duration-fast: 120ms;
  --duration-base: 160ms;
  --duration-slow: 260ms;

  /* Both faces are loaded by app/layout.tsx via next/font, which is what
     defines `--font-inter` and `--font-space-mono`. Space Mono is what a
     printed thing is set in, and a recipe is a receipt. */
  --font-sans: var(--font-inter), Inter, system-ui, sans-serif;
  --font-mono: var(--font-space-mono), ui-monospace, SFMono-Regular, Menlo, monospace;
}
