/* =============================================================================
   DESIGN TOKENS — the ONLY place colors, fonts and scales are defined.
   To change the palette, edit the four brand colors below; everything else
   (hover, borders, muted tones) is derived from them.
   ============================================================================= */
/* Self-hosted variable fonts (latin subset incl. Spanish characters). No third-party requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* ---- Brand palette ---- */
  --navy: #14283D;   /* primary */
  --oak:  #C08A4B;   /* accent  */
  --bone: #F7F4EE;   /* background */
  --ink:  #1E2A36;   /* text */
  --white: #FFFFFF;

  /* ---- Derived tones ---- */
  --navy-700: color-mix(in srgb, var(--navy) 88%, black);
  --navy-600: color-mix(in srgb, var(--navy) 92%, white);
  --navy-100: color-mix(in srgb, var(--navy) 8%, white);
  --oak-hover: color-mix(in srgb, var(--oak) 86%, black);
  --oak-soft: color-mix(in srgb, var(--oak) 16%, var(--bone));
  --oak-text: color-mix(in srgb, var(--oak) 55%, black);   /* AA on bone/white for small text */
  --bone-2: color-mix(in srgb, var(--bone) 92%, var(--oak));
  --surface: var(--white);
  --muted: color-mix(in srgb, var(--ink) 72%, var(--bone));  /* secondary text, AA on bone */
  --border: color-mix(in srgb, var(--ink) 14%, var(--bone));
  --border-strong: color-mix(in srgb, var(--ink) 30%, var(--bone));
  --on-navy: #F3EFE7;
  --on-navy-muted: color-mix(in srgb, var(--on-navy) 76%, var(--navy));

  /* ---- Feedback ---- */
  --success: #1F6B45;
  --success-bg: #E6F2EA;
  --warn: #7A4B00;
  --warn-bg: #FBF0DA;
  --danger: #A12B24;
  --danger-bg: #F8E4E2;
  --focus: #1B6FD1;

  /* ---- Typography ---- */
  --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-4xl: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --lh-tight: 1.15;
  --lh-base: 1.6;

  /* ---- Spacing & layout ---- */
  --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: clamp(4rem, 3rem + 5vw, 7rem);
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

  /* ---- Shape & depth ---- */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(20 40 61 / 0.06), 0 1px 3px rgb(20 40 61 / 0.08);
  --shadow: 0 4px 12px rgb(20 40 61 / 0.08), 0 2px 4px rgb(20 40 61 / 0.05);
  --shadow-lg: 0 18px 40px rgb(20 40 61 / 0.14), 0 4px 10px rgb(20 40 61 / 0.06);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 600ms;

  --header-h: 72px;
}

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