/* ============================================================
   FINCA — Design Tokens (canonical source of truth)
   finca.fan · Ibiza property browser
   Identity ported from hike.fan (Assouline-poster "Ibiza chic"),
   adapted for Vroom's UK car picker.
   ============================================================ */

:root {
  /* Warm stone-grey surfaces with a restrained orange undertone. */
  --paper: #F1EBE5;
  --paper-deep: #E5DAD1;
  --bone: #FFFCF9;
  --linen: #D5C7BC;
  --rule: #332B27;
  --rule-soft: #CBBDB2;

  /* Ink */
  --ink: #211B18;
  --ink-soft: #635A54;
  /* Reserved for supporting copy; still clears WCAG AA on the light surfaces. */
  --ink-faint: #6A605A;

  /* Legacy forest aliases now provide the warm-charcoal navigation range. */
  --forest: #332B27;
  --forest-deep: #211B18;
  --forest-mid: #514740;

  /* Legacy magenta aliases retained for compatibility; Vroom's accent is orange. */
  --magenta: #C6531C;
  --magenta-deep: #9E3C0A;

  /* Supporting accents */
  --butter: #F3D7C4;
  --butter-deep: #E4B08D;
  --clay: #8B7568;
  --clay-deep: #624D42;
  --clay-light: #C4AA99;
  --blue: #C6531C;
  --blue-deep: #9E3C0A;
  --blue-wash: #F4DAC8;

  /* Typography */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-caps: "Jost", system-ui, -apple-system, sans-serif;
  --font-body: "Jost", system-ui, -apple-system, sans-serif;

  --fs-wall: clamp(3.75rem, 14vw + 0.5rem, 11rem);
  --fs-hero: clamp(3rem, 10vw, 8.5rem);
  --fs-h1: clamp(2.25rem, 3.5vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.5rem, 2vw + 0.8rem, 2.5rem);
  --fs-h3: clamp(1.125rem, 0.4vw + 1rem, 1.375rem);
  --fs-body: clamp(0.9375rem, 0.2vw + 0.875rem, 1rem);
  --fs-caption: 0.75rem;
  --fs-eyebrow: 0.6875rem;
  --fs-price: clamp(1.25rem, 1vw + 1rem, 1.75rem);

  --track-tighter: -0.05em;
  --track-tight: -0.035em;
  --track-normal: 0;
  --track-wide: 0.08em;
  --track-wider: 0.18em;

  --lh-tight: 0.95;
  --lh-snug: 1.15;
  --lh-body: 1.55;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Layout */
  --content-max: 1240px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --nav-h: 72px;
  --nav-h-mobile: 58px;
  --tabbar-h: 64px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-pill: 999px;
  --r-photo: 6px;
  --r-card: 10px;

  --bd-hair: 1px solid var(--rule-soft);
  --bd-ink: 1px solid var(--rule);
  --bd-ink-thick: 1px solid var(--ink);

  /* Soft elevation replaces the former poster-offset shadows. */
  --shadow-poster: 0 18px 40px -26px rgba(33, 27, 24, 0.30),
    0 4px 12px -8px rgba(33, 27, 24, 0.14);
  --shadow-card: 0 12px 28px -22px rgba(33, 27, 24, 0.24),
    0 2px 6px -4px rgba(33, 27, 24, 0.12);
  --shadow-polaroid: 0 18px 36px -22px rgba(33, 27, 24, 0.30),
    0 4px 10px -6px rgba(33, 27, 24, 0.14);
  --shadow-float: 0 28px 56px -28px rgba(33, 27, 24, 0.34),
    0 8px 18px -12px rgba(33, 27, 24, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.9, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.42, 0.6, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 500ms;

  /* Layering */
  --z-map: 10;
  --z-nav: 50;
  --z-tabbar: 60;
  --z-sheet: 80;
  --z-toast: 90;
  --z-modal: 100;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 1ms;
    --t-med: 1ms;
    --t-slow: 1ms;
  }
}
