/* ==========================================================================
   Aurea — Design Tokens
   The single source of visual truth. Nothing else in the codebase should
   hard-code a colour, spacing step, radius, shadow or duration.
   ========================================================================== */

:root {
  /* ---------- Ink & surface -------------------------------------------- */
  /* Warm neutrals — near-black rather than pure black reads more premium. */
  --c-ink-900: #0f1115;
  --c-ink-800: #1b1f27;
  --c-ink-700: #2a2e37;
  --c-ink-600: #434955;
  --c-ink-500: #5b616e;
  --c-ink-400: #7a8090;
  --c-ink-300: #9aa0ac;
  --c-ink-200: #c7cbd3;
  --c-ink-100: #e3e5ea;
  --c-ink-50:  #f1f2f5;

  --c-surface:       #ffffff;
  --c-surface-alt:   #faf8f5;
  --c-surface-sunk:  #f2efea;
  --c-surface-inver: #0f1115;

  --c-border:        #e6e3de;
  --c-border-strong: #d3cfc8;

  /* ---------- Accent & semantics --------------------------------------- */
  /* One deep accent carries the whole brand. */
  --c-accent:        #1b4d3e;
  --c-accent-hover:  #143b2f;
  --c-accent-active: #0e2b22;
  --c-accent-soft:   #e8f0ec;
  --c-accent-ring:   rgba(27, 77, 62, 0.32);

  --c-sale:          #b3261e;
  --c-sale-soft:     #fdeceb;
  --c-success:       #1e7a4b;
  --c-success-soft:  #e7f4ed;
  --c-warning:       #b26a00;
  --c-warning-soft:  #fdf1e0;
  --c-error:         #b3261e;
  --c-error-soft:    #fdeceb;
  --c-info:          #1f5f8b;
  --c-info-soft:     #e8f1f7;

  --c-star:          #e0a326;

  /* ---------- Typography ------------------------------------------------ */
  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Fluid scale — no per-breakpoint font-size overrides needed. */
  --fs-2xs: 0.6875rem;
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-base: 1rem;
  --fs-lg:  clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-xl:  clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-2xl: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem);
  --fs-3xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.75rem);
  --fs-4xl: clamp(2.6rem, 1.7rem + 3.8vw, 4.75rem);

  --lh-tight: 1.12;
  --lh-snug:  1.3;
  --lh-base:  1.6;
  --lh-loose: 1.75;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;

  --ls-tight: -0.02em;
  --ls-snug:  -0.01em;
  --ls-wide:  0.02em;
  --ls-caps:  0.09em;

  /* ---------- Spacing (4px base) ---------------------------------------- */
  --sp-0:  0;
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Vertical rhythm between page sections — fluid. */
  --sp-section: clamp(3rem, 2rem + 5vw, 6.5rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);

  /* ---------- Radii ----------------------------------------------------- */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 999px;

  /* ---------- Elevation -------------------------------------------------- */
  --sh-xs: 0 1px 2px rgba(15, 17, 21, 0.05);
  --sh-sm: 0 2px 6px rgba(15, 17, 21, 0.06);
  --sh-md: 0 4px 16px rgba(15, 17, 21, 0.08);
  --sh-lg: 0 12px 40px rgba(15, 17, 21, 0.12);
  --sh-xl: 0 24px 64px rgba(15, 17, 21, 0.16);
  --sh-ring: 0 0 0 3px var(--c-accent-ring);

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

  /* ---------- Layers ------------------------------------------------------ */
  --z-base:    1;
  --z-sticky:  50;
  --z-header:  100;
  --z-drawer:  200;
  --z-modal:   300;
  --z-toast:   400;

  /* ---------- Layout ------------------------------------------------------ */
  --w-container: 1280px;
  --w-wide:      1600px;
  --w-narrow:    760px;
  --h-header:    76px;
  --h-header-mobile: 60px;
  --h-topbar:    38px;
}

/* Wider container on very large screens so 1920px+ doesn't look empty. */
@media (min-width: 1600px) {
  :root {
    --w-container: 1480px;
    --h-header: 84px;
  }
}

/* Reduced motion: collapse every transition token to a no-op. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 1ms linear;
    --t-base: 1ms linear;
    --t-slow: 1ms linear;
  }
}
