/* 黑潮 KUROSHIO — design tokens
   Design frame 1600 × 1000. Every measure runs against --u,
   which is 1/1600 of the viewport width, capped at 1600px. */
:root{
  --u: calc(min(100vw, 1600px) / 1600);

  /* surfaces */
  --bg: #0f1012;          /* page, hero scrim base, footer */
  --bg-2: #15171a;        /* raised rows, cards */
  --bg-3: #1b1e22;        /* hover fills, chips */
  --menu-bg: #fcfcfc;     /* full-screen menu panel */
  --menu-ink: #1a1a1a;    /* type on the panel */

  /* ink */
  --ink: #f6f7f8;
  --muted: #9aa1ab;
  --muted-2: #7f8792;

  /* the one accent — a cold signal blue */
  --accent: #93c5fd;
  --accent-ink: #0d1620;

  /* hairlines */
  --line: rgba(246,247,248,.16);
  --line-soft: rgba(246,247,248,.07);

  /* type ladder (floor / fluid) */
  --fs-140: max(64px, calc(140 * var(--u)));
  --fs-96: max(46px, calc(96 * var(--u)));
  --fs-64: max(32px, calc(64 * var(--u)));
  --fs-40: max(24px, calc(40 * var(--u)));
  --fs-28: max(19px, calc(28 * var(--u)));
  --fs-20: max(15px, calc(20 * var(--u)));
  --fs-17: max(14px, calc(17 * var(--u)));
  --fs-14: max(12.5px, calc(14 * var(--u)));
  --fs-12: max(11px, calc(12 * var(--u)));
  --fs-11: max(10px, calc(11 * var(--u)));

  /* families */
  --display: "Instrument Serif", "Noto Serif TC", "Songti TC", Georgia, serif;
  --font: "Geist", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* tracking — Latin display is open, CJK keeps its own width */
  --track: .01em;
  --track-cjk: .04em;
  --track-micro: .22em;

  /* spacing ladder: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 72 / 96 / 148 */
  --s1: max(3px, calc(4 * var(--u)));
  --s2: max(6px, calc(8 * var(--u)));
  --s3: max(9px, calc(12 * var(--u)));
  --s4: max(12px, calc(16 * var(--u)));
  --s5: max(18px, calc(24 * var(--u)));
  --s6: max(24px, calc(32 * var(--u)));
  --s7: max(36px, calc(48 * var(--u)));
  --s8: max(54px, calc(72 * var(--u)));
  --s9: max(72px, calc(96 * var(--u)));
  --s10: max(96px, calc(148 * var(--u)));

  --gutter: max(20px, calc(96 * var(--u)));
  --r-pill: 999px;

  /* motion */
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-sweep: cubic-bezier(.76,0,.24,1);
  --ease-slot: cubic-bezier(.19,1,.22,1);

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
