/* =====================================================================
   MyBlink — design tokens
   Warm Neutral Editorial palette. Fraunces (display) / Inter (body,UI) /
   IBM Plex Mono (metadata: dates, locations, tags).
   ===================================================================== */

:root {
  /* Color */
  --color-bg: #F7F4EF;
  --color-surface: #EDE8DF;
  --color-surface-raised: #FFFFFF;
  --color-border: #DDD5C7;
  --color-border-strong: #C9BEA9;
  --color-ink: #22201C;
  --color-ink-muted: #5C564A;
  --color-ink-faint: #857C6C;
  --color-accent: #8A6D4E;
  --color-accent-dark: #6B5439;
  --color-accent-light: #A98B69;
  --color-on-accent: #FBF9F5;
  --color-error: #A63B32;
  --color-error-bg: #F7E9E6;
  --color-success: #3F6B4A;
  --color-success-bg: #E8F0E7;

  /* Typography */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: clamp(2.25rem, 1.9rem + 1.5vw, 3rem);
  --text-4xl: clamp(2.75rem, 2.1rem + 2.8vw, 4.25rem);
  --text-5xl: clamp(3.25rem, 2.3rem + 4vw, 5.5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;

  /* Spacing (8px rhythm) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1320px;
  --container-narrow: 760px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(34, 32, 28, 0.06);
  --shadow-md: 0 4px 16px rgba(34, 32, 28, 0.10);
  --shadow-lg: 0 12px 40px rgba(34, 32, 28, 0.16);

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-nav: 100;
  --z-overlay: 500;
  --z-lightbox: 1000;
  --z-toast: 1100;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
