/* ==========================================================================
   PACARINA — Design Tokens ("El reino interior")
   Centralized visual, typographic, spacing, and motion tokens.
   ========================================================================== */

:root {
  /* Official Pacarina Palette (exclusive) */
  --color-ivory: #F3E9D7;
  --color-forest: #36452D;
  --color-sage: #A9AF8B;
  --color-peach: #F1C5AE;

  /* Derived translucent tints (strictly from the 4 official colors) */
  --color-ivory-90: rgba(243, 233, 215, 0.9);
  --color-ivory-70: rgba(243, 233, 215, 0.72);
  --color-ivory-35: rgba(243, 233, 215, 0.35);
  --color-ivory-15: rgba(243, 233, 215, 0.15);

  --color-forest-90: rgba(54, 69, 45, 0.9);
  --color-forest-75: rgba(54, 69, 45, 0.75);
  --color-forest-40: rgba(54, 69, 45, 0.4);
  --color-forest-20: rgba(54, 69, 45, 0.2);
  --color-forest-10: rgba(54, 69, 45, 0.1);

  --color-sage-50: rgba(169, 175, 139, 0.5);
  --color-sage-28: rgba(169, 175, 139, 0.28);
  --color-sage-15: rgba(169, 175, 139, 0.15);

  --color-peach-55: rgba(241, 197, 174, 0.55);
  --color-peach-30: rgba(241, 197, 174, 0.3);
  --color-peach-18: rgba(241, 197, 174, 0.18);

  /* Semantic Surface & Text Tokens — WCAG 2.2 AA (>= 4.5:1) */
  --bg-primary: var(--color-ivory);
  --bg-dark: var(--color-forest);
  --text-primary: var(--color-forest);
  --text-muted: #425238;
  --text-on-dark: var(--color-ivory);
  --text-on-dark-muted: #E4D7BF;
  --border-subtle: var(--color-forest-20);
  --border-on-dark: var(--color-ivory-35);
  --color-error: #7A2E1D;

  /* Typography — Centralized for effortless swap to official fonts */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid Type Scale (clamp) — Quiet, refined editorial hierarchy */
  --text-hero: clamp(2.8rem, 6.8vw, 7rem);
  --text-section: clamp(2.2rem, 4.8vw, 5.2rem);
  --text-editorial: clamp(1.85rem, 3.6vw, 4rem);
  --text-subtitle: clamp(1.5rem, 2.1vw, 2.15rem);
  --text-body: clamp(1rem, 1.05vw, 1.125rem);
  --text-label: clamp(0.8125rem, 0.85vw, 0.875rem);

  /* Leading & Tracking */
  --leading-display: 1;
  --leading-heading: 1.06;
  --leading-editorial: 1.15;
  --leading-body: 1.65;
  --tracking-display: -0.025em;
  --tracking-label: 0.14em;

  /* Layout & Spacing */
  --container-max: 1380px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-py: clamp(5rem, 11vh, 10rem);

  /* Radii */
  --radius-pill: 9999px;
  --radius-media: 12px;
  --radius-inline: 999px;

  /* Motion Tokens — Calm, organic, presence-oriented */
  --ease-organic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-micro: 240ms;
  --dur-content: 680ms;
  --dur-editorial: 1000ms;
  --dur-ambient: 16s;
  --shift-enter: 24px;
}
