@layer tokens {
  :root {
    /* color (hex only: tools/check-contrast.mjs reads these) */
    --color-bg: #ffffff;
    --color-surface: #f7f8f7;
    --color-line: #e5e7eb;
    --color-line-strong: #8a919c;
    --color-ink: #111827;
    --color-ink-2: #4b5563;
    --color-ink-3: #5b6370;
    --color-accent: #0a7a3d;
    --color-accent-strong: #075c2d;
    --color-accent-tint: #eaf6ee;
    --color-cover-bg: #fdfbf6;
    --color-gold: #e4d3aa;
    --color-sage: #a9b89b;
    --color-sage-strong: #8fa382;
    /* Keywords half-circle: a deeper sage of the same hue, so white text on it keeps 4.5:1 */
    --color-sage-deep: #5f7353;
    /* circles that pass behind cover text are lightened just enough for ink-2 and the
       cover link (accent-strong) to keep 4.5:1 (user chose: text stays centred, circles lighter) */
    --color-orb-2: #cccbaa;
    --color-sage-soft: #c3cdb7;

    /* spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --gutter: clamp(16px, 5vw, 32px);
    --wrap-max: 1200px;

    /* type */
    --font-sans: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --text-body: 1rem;
    --text-label: 0.875rem;
    --text-heading: clamp(24px, 2.4vw + 16px, 36px);
    --text-display: clamp(48px, 6vw + 8px, 96px);
    --weight-regular: 400;
    --weight-semibold: 600;

    /* shape */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 2px rgb(17 24 39 / 0.04), 0 4px 16px rgb(17 24 39 / 0.04);
    --shadow-card-hover: 0 2px 4px rgb(17 24 39 / 0.06), 0 8px 24px rgb(17 24 39 / 0.08);
    --shadow-header: 0 1px 0 var(--color-line);

    /* motion */
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --dur: 200ms;
    --dur-header: 250ms;
    --dur-switch: 500ms;
    /* keyword dial turn (user revision 2026-11-22) */
    --dur-dial: 700ms;
    --dur-enter: 600ms;
    --stagger-enter: 150ms;
    --orb-dur: 2000ms;
    --orb-stagger: 500ms;
    /* user request: slow opacity fade, 3.5s in total; last circle ends at orb-dur + 3 x orb-stagger = 3500ms.
       the circles ease out, so the last one looks complete at about 3.0s (about 90% opaque);
       the text starts there, with no visible pause after the circles (user request) */
    --cover-text-start: 3000ms;
    --color-overlay: rgb(17 24 39 / 0.32);
    --color-overlay-strong: rgb(17 24 39 / 0.88);

    /* fixed header height: bar only */
    --header-h: 64px;
  }

  @media (min-width: 900px) {
    :root {
      --header-h: 72px;
    }
  }

  /* no JS below 900px: the nav row stays visible under the bar */
  @media (max-width: 899.98px) {
    html:not(.js) {
      --header-h: 112px;
    }
  }
}
