/* ────────────────────────────────────────────────────────────
   life — design tokens (shared: Design System + Top page)
   Source of truth aligned with life / top (editorial timeline).
   ──────────────────────────────────────────────────────────── */

:root {
  /* Type — families */
  --f-accent: "Chillax", "Inter", sans-serif;
  --f-display: "EB Garamond", "Shippori Mincho", serif;
  --f-serif-jp: "Shippori Mincho", "EB Garamond", serif;
  --f-ui-en: "DM Sans", system-ui, sans-serif;
  --f-ui-jp: "Noto Sans JP", sans-serif;
  --f-mono: ui-monospace, "JetBrains Mono", "SF Mono", monospace;

  /* Type scale — base 14px */
  --text-base: 14px;
  --lh-base: 1.7;
  --text-body-lg: 15px;
  --lh-body-lg: 1.85;
  --text-body-sm: 13px;
  --lh-body-sm: 1.7;
  --text-lead: 16px;
  --lh-lead: 1.65;
  --text-label: 12px;
  --text-card-num: 32px;
  --text-eyebrow: 10.5px;
  --ls-eyebrow: 0.22em;
  --text-caption: 10px;
  --text-overline: 9.5px;
  --text-h2: 26px;
  --lh-h2: 1.22;
  --text-h3: 15px;
  --lh-h3: 1.5;
  --text-display: clamp(52px, 8vw, 96px);
  --text-display-sm: clamp(44px, 12vw, 72px);
  --lh-display: 0.88;
  --text-quote: clamp(18px, 1.8vw, 22px);
  --lh-quote: 2;
  --text-phrase-en: clamp(17px, 1.6vw, 22px);
  --lh-phrase-en: 1.4;

  /* Type — UI / timeline (TOP page roles) */
  --text-band-lead: 11px;
  --text-band-sub: 11px;
  --text-hdr-sub: 13px;
  --text-hdr-date: 14px;
  --text-hdr-date-compact: 12.5px;
  --text-time: 20px;
  --text-time-jp: 11px;
  --text-tl-group-jp: 28px;
  --text-score-num: 20px;
  --text-score-of: 10px;
  --text-philo-sign: 15px;
  --text-philo-eyebrow-em: 12px;

  /* Color — paper + ink (monochrome, warm cream base) */
  --paper: #f8f7f4;
  --paper-2: #f0efec;
  --paper-card: #ffffff;

  --ink: #0a0a0a;
  --ink-soft: #2e2c2a;
  --ink-mid: #6b6864;
  --ink-faint: #a8a5a0;
  --ink-rule: #d4d2cf;
  --ink-line: #e0dedd;

  /* Signal — sparingly (save status, errors, selection) */
  --sig-saving: #c9a44a;
  --sig-ok: #4a7d3a;
  --sig-err: #b65a4a;
  --sig-selection: #e25628;

  /* Spacing — 8px base */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;

  /* Layout — page / timeline */
  --max-w: 1240px;
  --gutter: 64px;
  --gutter-end: 64px;
  --node-size: 14px;
  --spine-w: 1px;
  --tl-spine-left: 140px;
  --tl-card-inset: 28px;

  /* Card */
  --card-pad: var(--s4);
  --radius-card: 4px;
  --radius-popover: 6px;
  --radius-pill: 999px;
  --radius-control: 2px;

  /* Heading rhythm */
  --heading-gap-above: var(--s4);
  --heading-gap-below: var(--s5);
  --subhead-gap-below: var(--s2);

  /* Motion */
  --ease-std: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-micro: 0.25s;
  --t-panel: 0.28s;
  --t-hover: 0.35s;
  --t-entry: 0.8s;
  --t-flip: 0.7s;

  /* Shadow — lifted states only */
  --shadow:
    0 1px 0 rgba(10, 10, 10, 0.03), 0 8px 24px -16px rgba(10, 10, 10, 0.1);
  --shadow-hi:
    0 1px 0 rgba(10, 10, 10, 0.05), 0 16px 32px -18px rgba(10, 10, 10, 0.16);

  /* Chrome */
  --hdr-bg: rgba(248, 247, 244, 0.86);
}
