/* PawValet — Design Tokens
   Warm Editorial Modern. Aesop meets Headspace. */

:root {
  /* — Color (warm palette, off-white base, deep ink, sage + terracotta accents) — */
  --color-bg:          oklch(97.5% 0.008 80);      /* #FAF7F2  warm off-white */
  --color-surface:     oklch(94% 0.012 80);        /* #F0EBE2  cream subtle surface */
  --color-surface-2:   oklch(91% 0.014 80);        /* deeper cream for layered cards */
  --color-border:      oklch(88% 0.013 80);        /* #E5DDD0  hairline */
  --color-border-strong: oklch(75% 0.013 80);      /* visible divider */

  --color-ink:         oklch(20% 0.012 60);        /* #1E1B16  deep warm ink */
  --color-ink-2:       oklch(40% 0.010 60);        /* #5C5650  warm gray (body) */
  --color-ink-3:       oklch(58% 0.008 60);        /* warm mid-gray (meta) */

  --color-sage:        oklch(58% 0.045 145);       /* #7C8471  sage primary accent */
  --color-sage-deep:   oklch(42% 0.045 145);       /* darker sage for hover */
  --color-sage-soft:   oklch(92% 0.015 145);       /* sage tint surface */

  --color-terracotta:  oklch(62% 0.105 38);        /* #C4715C  warm secondary accent */
  --color-terracotta-deep: oklch(48% 0.105 38);
  --color-terracotta-soft: oklch(93% 0.025 38);

  --color-gold:        oklch(78% 0.10 75);         /* trust signal accent */

  /* — Typography — */
  --font-serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Fluid type scale — clamp(min, fluid, max) */
  --text-xs:    clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);   /* 12 → 13 */
  --text-sm:    clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);  /* 14 → 15 */
  --text-base:  clamp(1rem, 0.96rem + 0.25vw, 1.125rem);       /* 16 → 18 */
  --text-lg:    clamp(1.125rem, 1.08rem + 0.3vw, 1.25rem);     /* 18 → 20 */
  --text-xl:    clamp(1.375rem, 1.3rem + 0.5vw, 1.625rem);     /* 22 → 26 */
  --text-2xl:   clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);        /* 28 → 40 */
  --text-3xl:   clamp(2.25rem, 1.7rem + 2.5vw, 3.75rem);       /* 36 → 60 */
  --text-hero:  clamp(2.75rem, 1rem + 8vw, 8rem);              /* 44 → 128 */
  --text-display: clamp(3.5rem, 2rem + 7vw, 9rem);             /* for super-large */

  --leading-tight:  1.05;
  --leading-snug:   1.2;
  --leading-normal: 1.45;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.03em;
  --tracking-snug:  -0.015em;
  --tracking-normal: 0;
  --tracking-wide:  0.05em;
  --tracking-eyebrow: 0.18em;

  /* — Spacing — */
  --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;
  --space-section: clamp(4rem, 3rem + 5vw, 9rem);
  --space-gutter: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);

  /* — Layout — */
  --max-width-prose: 60ch;
  --max-width-content: 1240px;
  --max-width-narrow: 880px;

  /* — Radii — */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* — Shadows (warm, subtle) — */
  --shadow-sm: 0 1px 2px oklch(20% 0.012 60 / 0.06);
  --shadow-md: 0 4px 14px oklch(20% 0.012 60 / 0.08), 0 1px 2px oklch(20% 0.012 60 / 0.04);
  --shadow-lg: 0 14px 40px oklch(20% 0.012 60 / 0.10), 0 4px 12px oklch(20% 0.012 60 / 0.06);
  --shadow-hover: 0 18px 50px oklch(20% 0.012 60 / 0.14), 0 6px 16px oklch(20% 0.012 60 / 0.08);

  /* — Motion — */
  --duration-fast: 150ms;
  --duration-normal: 280ms;
  --duration-slow: 520ms;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* — Z layers — */
  --z-nav: 50;
  --z-modal: 100;
  --z-toast: 200;
}

@media (prefers-color-scheme: dark) {
  /* PawValet stays in warm light mode by design. Dark mode reserved for future. */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
