/* Hallmark Design Tokens — 策略探索家 */
/* Theme: Almanac (editorial cluster) */

:root {
  /* Colors — OKLCH for perceptual accuracy */
  --color-paper:      oklch(97% 0.01 90);
  --color-paper-2:    oklch(94% 0.02 85);
  --color-ink:        oklch(25% 0.02 60);
  --color-ink-2:      oklch(45% 0.02 60);
  --color-rule:       oklch(85% 0.01 90);
  --color-accent:     oklch(52% 0.14 38);
  --color-accent-ink: oklch(97% 0.01 90);
  --color-focus:      oklch(52% 0.14 38);
  /* Accent variants for interactive UI (audience buttons) */
  --color-accent-light: oklch(92% 0.08 38);   /* light accent bg */
  --color-accent-dark:  oklch(25% 0.12 250);  /* dark accent fg */

  /* Typography */
  --font-display: 'Noto Serif TC', 'Source Han Serif TC', Georgia, serif;
  --font-body:    'Noto Sans TC', 'Noto Sans CJK TC', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-display: clamp(2.5rem, 5vw, 4rem);

  /* Spacing — 4pt scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-short:    150ms;
  --dur-medium:   300ms;
  --dur-long:     500ms;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:    8px;
  --radius-pill:  9999px;
  --radius-card:  var(--radius-md);
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-short: 0ms;
    --dur-medium: 0ms;
    --dur-long: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* N5 static nav-bar — used in blog pages and trip subdirectory headers */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-paper);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}