/* Yakusou Ressha tokens, round 2. Token names are the Cairns names.
   Colors from the footage: carriage paint, lacquer box, lace cloth, menu-card pencil.
   Measured contrast (WCAG 2.x) of the pairs below is in docs/QA.md. */
/* Round 2 fonts. All SIL OFL 1.1, self-hosted WOFF2, licence text beside each file (fonts/README.md).
   Latin: Kaushan Script (destination word only), Manrope 300/400/600/800 (all reading text), Caveat Brush (hand notes).
   Japanese: Zen Maru Gothic 500/700, Yomogi (hand), subset to the page characters (tools/make_font_subsets.py). */
@font-face { font-family:'Kaushan Script'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/kaushan-script.woff2) format('woff2'); }
@font-face { font-family:'Manrope'; font-style:normal; font-weight:300; font-display:swap; src:url(../fonts/manrope-300.woff2) format('woff2'); }
@font-face { font-family:'Manrope'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/manrope-400.woff2) format('woff2'); }
@font-face { font-family:'Manrope'; font-style:normal; font-weight:600; font-display:swap; src:url(../fonts/manrope-600.woff2) format('woff2'); }
@font-face { font-family:'Manrope'; font-style:normal; font-weight:800; font-display:swap; src:url(../fonts/manrope-800.woff2) format('woff2'); }
@font-face { font-family:'Caveat Brush'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/caveat-brush.woff2) format('woff2'); }
@font-face { font-family:'Zen Maru Gothic'; font-style:normal; font-weight:500; font-display:swap; src:url(../fonts/zen-maru-gothic-500.woff2) format('woff2'); }
@font-face { font-family:'Zen Maru Gothic'; font-style:normal; font-weight:700; font-display:swap; src:url(../fonts/zen-maru-gothic-700.woff2) format('woff2'); }
@font-face { font-family:'Yomogi'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/yomogi.woff2) format('woff2'); }

:root {
  --color-ink:#14201f;
  --color-paper:#f6f0e2;
  --color-white:#fff;
  --color-surface:#fffaf0;
  --color-accent:#7fd0e0;
  --color-accent-ink:#1a6577;
  --color-pop:#d2452f;
  --color-second:#a3482a;
  --color-sun:#f2c14e;
  --color-muted:#55615d;
  --color-line:rgba(20,32,31,.18);
  /* round-1 names kept so the old rules still resolve */
  --color-lacquer:var(--color-second);
  --color-stripe:var(--color-pop);
  --color-herb:#4c6a2f;
  --color-rail:#34444a;
  --font-sans:'Manrope','Zen Maru Gothic',system-ui,sans-serif;
  --font-script:'Caveat Brush','Yomogi',cursive;
  --font-destination:'Kaushan Script','Caveat Brush',cursive;
  --font-ja:'Zen Maru Gothic','Manrope',sans-serif;
  --radius-card:1.3rem;
  /* Type scale (01_shared_system.md section 2). Presets use these in the layout CSS. */
  --fs-destination:clamp(5.5rem,17vw,17rem);
  --lh-destination:.95;
  --fs-film:clamp(2.5rem,6vw,5.5rem);
  --fs-editorial:clamp(2.125rem,4.4vw,4rem);
  --fs-day:clamp(1.375rem,2vw,1.75rem);
  --fs-body:clamp(1.0625rem,1.2vw,1.125rem);
  --lh-body:1.65;
  --fs-lead:clamp(1.25rem,1.7vw,1.5rem);
  --fs-note:clamp(1.5rem,2.3vw,2.125rem);
  --fs-caption:.875rem;
  --fs-meta:.78rem;
  --text-small:.78rem;
  --text-body:1.0625rem;
  --measure:38em;
  --shadow-soft:0 12px 30px rgba(40,30,10,.14);
  --space-1:.5rem;
  --space-2:1rem;
  --space-3:1.5rem;
  --space-4:2.5rem;
  --space-5:4rem;
  --space-6:6rem;
  --space-7:9rem;
  --gutter:clamp(1rem,5vw,6rem);
  --content:1320px;
  --line:1px;
  --overlay-opacity:.42;
  --motion-fast:480ms;
  --motion-medium:1050ms;
  --motion-cinematic:1600ms;
  --ease-out-cinematic:cubic-bezier(.19,1,.22,1);
  --ease-soft:cubic-bezier(.25,.46,.45,.94)
}

/* Transitional guard: Japanese text must never use the Latin destination script face.
   Round-1 rules set [lang="ja"] to --font-destination; the specificity here wins until the layout CSS is rebuilt. */
html [lang="ja"] { font-family:var(--font-ja); }
