/* ==========================================================================
   Evans Services — Design Tokens
   Palette derived from the logo: cool blue #1266D8, heat red #F83F20,
   anchor navy #0B1E3D. The brand is literally two temperatures — this
   system makes that the organizing idea.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  /* subset taken from Google Fonts latin block */
  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: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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 ramps ---- */
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --blue-200: #bcd3ff;
  --blue-300: #8eb6ff;
  --blue-400: #5a91fb;
  --blue-500: #2f6ef0;
  --blue-600: #1266d8; /* logo blue */
  --blue-700: #0f52ac;
  --blue-800: #0f4288;
  --blue-900: #0b1e3d; /* anchor navy */

  --heat-50: #fff2ee;
  --heat-100: #ffe0d6;
  --heat-200: #ffc0ad;
  --heat-300: #ff9878;
  --heat-400: #fb6a44;
  --heat-500: #f83f20; /* logo red */
  --heat-600: #e02c0e;
  --heat-700: #b82209;
  --heat-800: #932010;
  --heat-900: #781f11;

  /* ---- neutrals: cool slate, harmonises with the blue ---- */
  --n-0: #ffffff;
  --n-25: #fbfcfe;
  --n-50: #f6f8fb;
  --n-100: #eef1f6;
  --n-200: #dfe4ec;
  --n-300: #c6cedb;
  --n-400: #98a3b5;
  --n-500: #6b7688;
  --n-600: #4d5768;
  --n-700: #3a4252;
  --n-800: #262d3a;
  --n-900: #161c27;

  /* ---- semantic ---- */
  --bg: var(--n-0);
  --bg-alt: var(--n-50);
  --bg-sunken: var(--n-100);
  --surface: var(--n-0);
  --text: var(--n-900);
  --text-muted: var(--n-600);
  --text-subtle: var(--n-500);
  --text-invert: var(--n-0);
  --border: var(--n-200);
  --border-strong: var(--n-300);

  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-soft: var(--blue-50);
  --accent-text: var(--blue-700); /* AA on white */
  --heat: var(--heat-500);
  --heat-hover: var(--heat-600);
  --heat-soft: var(--heat-50);
  --heat-text: var(--heat-700); /* AA on white */

  --focus: var(--blue-500);
  --success: #0f7a4d;
  --success-soft: #e7f6ef;
  --danger: #c02626;

  /* ---- gradients (used sparingly, never behind body text) ---- */
  --grad-cool: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  --grad-heat: linear-gradient(135deg, var(--heat-600) 0%, var(--heat-400) 100%);
  /* Blue-dominant. Interpolating straight to heat-500 produced a muddy
     purple midtone, so the warm side lives in a radial accent instead. */
  --grad-brand: linear-gradient(
    125deg,
    #0a1c38 0%,
    var(--blue-800) 42%,
    var(--blue-600) 100%
  );

  /* ---- type ---- */
  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;

  --fs-100: 0.8125rem; /* 13 */
  --fs-200: 0.875rem; /* 14 */
  --fs-300: 1rem; /* 16 */
  --fs-400: 1.0625rem; /* 17 */
  --fs-500: 1.25rem; /* 20 */
  --fs-600: 1.5rem; /* 24 */
  --fs-700: 1.875rem; /* 30 */
  --fs-800: 2.25rem; /* 36 */
  --fs-900: clamp(2.25rem, 1.35rem + 4.2vw, 3.5rem);
  --fs-hero: clamp(2.5rem, 1.4rem + 5.6vw, 4.25rem);

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.65;

  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-wide: 0.08em;
  --ls-wider: 0.16em;

  /* ---- space: 4px base ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.5rem;
  --s-8: 3rem;
  --s-9: 4rem;
  --s-10: 5rem;
  --s-11: 6.5rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* ---- radius ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ---- elevation ---- */
  --sh-1: 0 1px 2px rgba(11, 30, 61, 0.06), 0 1px 3px rgba(11, 30, 61, 0.08);
  --sh-2: 0 2px 4px rgba(11, 30, 61, 0.05), 0 6px 14px rgba(11, 30, 61, 0.08);
  --sh-3: 0 8px 20px rgba(11, 30, 61, 0.1), 0 18px 40px rgba(11, 30, 61, 0.12);
  --sh-4: 0 18px 40px rgba(11, 30, 61, 0.16), 0 36px 80px rgba(11, 30, 61, 0.18);
  --sh-focus: 0 0 0 3px rgba(47, 110, 240, 0.4);

  /* ---- layout ---- */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --header-h: 68px;
  --tap: 44px; /* min touch target */

  /* ---- motion ---- */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 420ms;
}

/* ==========================================================================
   Dark theme — token-driven per the web-design skill
   ========================================================================== */
[data-theme="dark"] {
  --bg: var(--n-900);
  --bg-alt: var(--n-800);
  --bg-sunken: #0f141d;
  --surface: var(--n-800);
  --text: var(--n-50);
  --text-muted: var(--n-300);
  --text-subtle: var(--n-400);
  --text-invert: var(--n-900);
  --border: #2f3846;
  --border-strong: #414d5f;

  --accent: var(--blue-400);
  --accent-hover: var(--blue-300);
  --accent-soft: rgba(47, 110, 240, 0.16);
  --accent-text: var(--blue-300);
  --heat: var(--heat-400);
  --heat-hover: var(--heat-300);
  --heat-soft: rgba(248, 63, 32, 0.16);
  --heat-text: var(--heat-300);

  --focus: var(--blue-300);
  --success-soft: rgba(15, 122, 77, 0.2);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 8px 18px rgba(0, 0, 0, 0.4);
  --sh-3: 0 10px 26px rgba(0, 0, 0, 0.5), 0 22px 48px rgba(0, 0, 0, 0.45);
  --sh-4: 0 20px 46px rgba(0, 0, 0, 0.55), 0 40px 90px rgba(0, 0, 0, 0.5);
}
