/* ============================================================
   NAGORI — design tokens
   Derived from nagori-brand-kit-v1 /tokens/tokens.css.
   Usage rules travel with the values. Do not hard-code a hex
   anywhere in the build.
   ============================================================ */

:root {
  /* ---- colour — brand ---------------------------------------
     Ratio on any visible surface: Kozo 70 · Sumi 22 · Mist 6 · Ai 2 */
  --nagori-sumi:  #1C1C1A; /* ink. warm near-black — never set as 100K in print */
  --nagori-kozo:  #F7F7F5; /* ground. the substrate, not an ink */
  --nagori-mist:  #C7C9C4; /* secondary. 1.5:1 on Kozo — non-text use only */
  --nagori-ai:    #2B3A52; /* accent. 10.7:1 on Kozo. NEVER on a dark surface (1.5:1 on Sumi).
                              never a background. rules, dimension lines, one line of small type. */

  /* ---- colour — working. interface and print only, never on packaging ---- */
  --nagori-ash:      #6B6A64; /* secondary text. 5.1:1 on Kozo */
  --nagori-hairline: #D8D9D5; /* rules only, never text */
  --nagori-plate:    #FFFFFF; /* panels, records, diagram grounds */

  /* ---- type — six files, no seventh ------------------------- */
  --nagori-font-reading:  'Newsreader', Georgia, serif;       /* read for longer than a glance */
  --nagori-font-notation: 'DM Mono', ui-monospace, monospace; /* counted, dated, timed, measured */
  --nagori-font-jp:       'Shippori Mincho', serif;           /* 名残 and any CJK setting */

  --nagori-track-notation: .14em;
  --nagori-track-label:    .16em;

  --nagori-leading-body:      1.62;
  --nagori-leading-statement: 1.30;

  --nagori-radius: 0px;   /* always, everywhere. curves belong to the glass, not the graphics */
  --nagori-motion: 180ms; /* opacity fades only. no slide, no parallax, no scroll reveal */

  /* ============================================================
     SITE LAYER
     Names kept from the previous build so existing rules resolve.
     Every one of them points at a brand token above — nothing here
     introduces a new colour.
     ============================================================ */

  /* ---- surfaces. the tonal ladder is deliberately flattened:
     depth is made with hairlines and space, not with steps of grey ---- */
  --stone:    var(--nagori-kozo);
  --stone-1:  var(--nagori-kozo);
  --stone-2:  var(--nagori-plate);
  --stone-3:  var(--nagori-plate);
  --paper:    var(--nagori-plate);

  /* ---- ink ---- */
  --ink:       var(--nagori-sumi);
  --ink-soft:  var(--nagori-sumi);
  --ink-mute:  var(--nagori-ash);
  --ink-faint: var(--nagori-ash);

  /* ---- dark surfaces ---- */
  --noir:      var(--nagori-sumi);
  --noir-soft: var(--nagori-sumi);

  /* ---- interactive / active states.
     Sumi, not Ai — Ai is never a background. A selected state is a
     Plate panel inside a Sumi hairline, not a wash of colour. ---- */
  --vetiver:       var(--nagori-sumi);
  --vetiver-dk:    var(--nagori-sumi);
  --vetiver-lt:    var(--nagori-ash);
  --vetiver-trace: var(--nagori-plate);

  /* ---- accent. small type, rules and focus rings only ---- */
  --accent:    var(--nagori-ai);
  --pewter:    var(--nagori-ash);
  --pewter-lt: var(--nagori-ash);

  /* ---- text on dark ---- */
  --bone:   var(--nagori-kozo);
  --bone-2: rgba(247,247,245,0.72);
  --bone-3: rgba(247,247,245,0.46);

  /* ---- per-edition colour is retired.
     "Colour is never used for emphasis." The five editions are told
     apart by archive number and name, never by hue. These aliases
     stay only so older rules resolve to something neutral. ---- */
  --f01: var(--nagori-mist); --f01-lt: var(--nagori-ash); --f01-trace: var(--nagori-plate);
  --f02: var(--nagori-mist); --f02-lt: var(--nagori-ai);  --f02-trace: var(--nagori-plate);
  --f03: var(--nagori-mist); --f03-lt: var(--nagori-ash); --f03-trace: var(--nagori-plate);
  --f04: var(--nagori-mist); --f04-lt: var(--nagori-ash); --f04-trace: var(--nagori-plate);
  --f05: var(--nagori-mist); --f05-lt: var(--nagori-ash); --f05-trace: var(--nagori-plate);

  /* ---- borders — hairlines only ---- */
  --border:   var(--nagori-hairline);
  --border-2: var(--nagori-mist);
  --border-3: var(--nagori-hairline);

  /* ---- type roles ----
     Three faces, three jobs. The sans is gone: notation is monospaced,
     everything read is set in the serif. */
  --serif: var(--nagori-font-reading);
  --sans:  var(--nagori-font-reading);
  --mono:  var(--nagori-font-notation);
  --jp:    var(--nagori-font-jp);

  /* ---- vertical rhythm ---- */
  --sp-sm: 3.5rem;
  --sp-md: 4rem;
  --sp-lg: 4.5rem;

  /* ---- grid — 12 columns, 24px gutter, 1240 max ---- */
  --grid-max: 1240px;
  --grid-gutter: 24px;
}
