/* Hallmark · tokens.css · zillion.jp
 * Canonical token source for the locked design system (see design.md).
 * studied: yes · DNA-source: local-file (zillion.jp.html build bundle) · 2026-05-25
 * Reference tokens by name in page CSS — never inline raw hex/oklch.
 */

:root {
  /* ── Surface · light band (default) ──────────────────────────────── */
  --color-paper:       #F5F1E8; /* cream    ~oklch(95.5% 0.012 92) */
  --color-paper-2:     #FFFFFF; /* white    cards / contrast surfaces */
  --color-ink:         #1A1A1A; /*          ~oklch(20.5% 0 0)       */
  --color-ink-2:       rgba(26, 26, 26, 0.62); /* muted ink (derived) */
  --color-rule:        rgba(26, 26, 26, 0.18); /* hairline divider    */
  --color-rule-strong: rgba(26, 26, 26, 0.32); /* section / footer top */

  /* ── Accent ──────────────────────────────────────────────────────── */
  --color-accent:      #354999; /* navy     ~oklch(41% 0.13 268) */
  --color-accent-deep: #29387A; /*          ~oklch(33% 0.12 270) */
  --color-accent-2:    #C2007B; /* magenta  ~oklch(52% 0.24 351) — small pops only */
  --color-accent-ink:  #FFFFFF; /* text on filled navy */
  --color-focus:       #354999; /* focus ring, ≥3:1 on cream */

  /* ── Type · four families, bilingual EN/JP (no monospace in source) ─ */
  --font-display:  "Fraunces", "Times New Roman", serif;          /* EN editorial serif */
  --font-body:     "Inter", -apple-system, system-ui, sans-serif; /* EN grotesque */
  --font-jp-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-jp-sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --jp-tracking:   0.04em; /* JP optical letter-spacing */

  /* ── Fluid type scale (source clamps) ────────────────────────────── */
  --text-display: clamp(56px, 8vw,   124px); /* hero          */
  --text-2:       clamp(48px, 6.4vw,  96px);
  --text-3:       clamp(40px, 5vw,    72px);
  --text-4:       clamp(32px, 3.4vw,  48px); /* section heads */
  --text-5:       clamp(28px, 3.2vw,  44px);
  --text-base:    16px;
  --text-sm:      14px;
  --text-xs:      12px; /* uppercase labels */

  /* ── Spacing · 4-pt named scale ──────────────────────────────────── */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs:  12px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 56px; /* section rhythm */
  --space-3xl: 64px; /* section rhythm / footer top */
  --space-4xl: 96px;

  /* ── Layout (source) ─────────────────────────────────────────────── */
  --pad-x: clamp(28px, 5vw, 88px); /* page gutter   */
  --gut:   24px;                   /* column gutter */

  /* ── Motion · restrained, state-transitions only ─────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);   /* replaces source's bare `ease` */
  --ease-in:     cubic-bezier(0.5, 0, 0.75, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 200ms;
  --dur-slow: 220ms;

  /* ── Radius · tight, no pills ────────────────────────────────────── */
  --radius-card:  8px;
  --radius-input: 6px;
  --radius-sharp: 2px; /* tags / marks */

  /* Status semantics — functional pass/fail and form validation only */
  --color-status-success:        #3B6D11;
  --color-status-success-bg:     #EEF6E3;
  --color-status-success-border: #B6D68A;
  --color-status-danger:         #A32D2D;
  --color-status-danger-bg:      #FCEBEB;
  --color-status-danger-border:  #E0A3A3;

  /* Modal overlay */
  --color-modal-overlay: rgba(26, 26, 26, 0.55);
}

/* ── Dark band ───────────────────────────────────────────────────────
 * The source inverts per-section (gated/"locked" content, CTA bands),
 * not a global dark mode. Apply to a section wrapper to remap the
 * semantic tokens within it: <section data-band="dark"> … </section>
 */
[data-band="dark"] {
  --color-paper:       #1A1A1A;
  --color-paper-2:     #242424;
  --color-ink:         #F5F1E8;
  --color-ink-2:       rgba(245, 241, 232, 0.62);
  --color-rule:        rgba(245, 241, 232, 0.16);
  --color-rule-strong: rgba(245, 241, 232, 0.30);
  --color-accent:      #8BA1ED; /* navy lifted ~oklch(70% 0.11 270) */
  --color-accent-deep: #B5C4F5;
  --color-accent-ink:  #1A1A1A;
  --color-focus:       #8BA1ED;
}

/* Reduced motion — source omits this; tokens.css provides the fallback. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* Universal reduced-motion catch-all (CC_task_29 §3-1) — covers any rule that
   does not reference the duration tokens (delivery copy only; design/ original kept pristine). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
