/* ==========================================================================
   FormStar brand tokens: colors, type, spacing, corners, shadows and the font.
   Loaded by every public page (with formstar.css) and every form interview
   (with formstar-interview.css). Change a value here and it changes everywhere.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand */
  --fs-navy-950: #061730;
  --fs-navy-900: #0b2447;
  --fs-navy-800: #133466;
  --fs-navy-700: #1d4580;
  --fs-navy-100: #e3eaf5;
  --fs-navy-50: #f1f5fb;

  --fs-blue-700: #1646ad;
  --fs-blue-600: #1d5bdb;
  --fs-blue-500: #3b76ea;
  --fs-blue-100: #dbe7ff;
  --fs-blue-50: #eef4ff;

  --fs-gold-500: #f2b21b;
  --fs-gold-600: #d99a06;
  --fs-gold-100: #fff3d1;

  --fs-green-700: #136c3e;
  --fs-green-600: #1a8a50;
  --fs-green-50: #e8f6ee;

  --fs-red-700: #b42318;
  --fs-red-50: #fef1ef;

  --fs-amber-800: #8a5300;
  --fs-amber-50: #fff8e6;

  /* Neutrals */
  --fs-gray-900: #121b2b;
  --fs-gray-800: #263245;
  --fs-gray-700: #3a4658;
  --fs-gray-600: #4f5d73;
  --fs-gray-500: #6b788c;
  --fs-gray-400: #94a0b4;
  --fs-gray-300: #cbd3df;
  --fs-gray-200: #e2e7ef;
  --fs-gray-100: #f1f4f8;
  --fs-gray-50: #f8fafc;
  --fs-white: #ffffff;

  /* Roles: use these in components, not the raw colors above */
  --fs-bg: var(--fs-white);
  --fs-bg-page: #f2f5f9;          /* the page behind cards: cards are white on this */
  --fs-bg-subtle: var(--fs-gray-50);
  --fs-surface: var(--fs-white);
  --fs-text: var(--fs-gray-900);
  --fs-text-muted: var(--fs-gray-600);
  --fs-heading: var(--fs-navy-900);
  --fs-border: #d9e0ea;
  --fs-border-strong: #c2cbd8;
  --fs-primary: var(--fs-blue-600);
  --fs-primary-hover: var(--fs-blue-700);
  --fs-primary-soft: var(--fs-blue-50);
  --fs-accent: var(--fs-gold-500);
  --fs-link: var(--fs-blue-700);
  --fs-focus: #2f6bff;

  /* Type */
  --fs-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-text-xs: 0.8125rem;
  --fs-text-sm: 0.9375rem;
  --fs-text-base: 1.0625rem;
  --fs-text-lg: 1.1875rem;
  --fs-text-xl: 1.375rem;
  --fs-h1: clamp(2.1rem, 1.45rem + 2.6vw, 3.4rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem);
  --fs-h3: 1.25rem;
  --fs-leading: 1.6;
  --fs-leading-tight: 1.2;

  /* Space, shape, depth */
  --fs-space-1: 4px;
  --fs-space-2: 8px;
  --fs-space-3: 12px;
  --fs-space-4: 16px;
  --fs-space-5: 20px;
  --fs-space-6: 24px;
  --fs-space-8: 32px;
  --fs-space-10: 40px;
  --fs-space-12: 48px;
  --fs-space-16: 64px;
  --fs-space-20: 80px;

  --fs-radius-sm: 8px;
  --fs-radius: 12px;
  --fs-radius-lg: 18px;
  --fs-radius-pill: 999px;

  --fs-shadow-sm: 0 1px 2px rgba(11, 36, 71, 0.06), 0 2px 8px rgba(11, 36, 71, 0.07);
  --fs-shadow: 0 6px 18px rgba(11, 36, 71, 0.10), 0 2px 4px rgba(11, 36, 71, 0.06);
  --fs-shadow-lg: 0 18px 40px rgba(11, 36, 71, 0.14), 0 4px 12px rgba(11, 36, 71, 0.08);

  /* Category accents (data/catalog.json "color"): a strong tone for icons and edges, a soft one behind them */
  --fs-cat-blue: #1d5bdb;   --fs-cat-blue-soft: #e8f0ff;
  --fs-cat-green: #17804a;  --fs-cat-green-soft: #e3f5eb;
  --fs-cat-purple: #7339b0; --fs-cat-purple-soft: #f1e9fb;
  --fs-cat-teal: #0d7480;   --fs-cat-teal-soft: #e2f4f6;
  --fs-cat-rose: #b8325f;   --fs-cat-rose-soft: #fbe8ef;
  --fs-cat-indigo: #4450c4; --fs-cat-indigo-soft: #ebedfd;
  --fs-cat-amber: #96590a;  --fs-cat-amber-soft: #fdf1dc;
  --fs-cat-orange: #b5490c; --fs-cat-orange-soft: #fdeee3;
  --fs-cat-brown: #7a5a2e;  --fs-cat-brown-soft: #f5ede2;
  --fs-cat-slate: #4f5d73;  --fs-cat-slate-soft: #eceff4;

  --fs-container: 1160px;
  --fs-gutter: 20px;
  --fs-header-h: 72px;
  --fs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 600px) {
  :root { --fs-gutter: 16px; --fs-header-h: 64px; }
}

/* 2. Font (self-hosted, so no visitor data goes to a font service) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

