@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Variable.woff2") format("woff2-variations"),
       url("/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-VariableItalic.woff2") format("woff2-variations"),
       url("/fonts/Switzer-VariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Type — Switzer primary, system fallback */
  --font-sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Switzer", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;

  /* Modular scale */
  --fs-0: 0.875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: 1.5rem;
  --fs-4: clamp(1.875rem, 2.4vw + 1rem, 3rem);
  --fs-5: clamp(2.75rem, 6.2vw + 1rem, 6.5rem);
  --fs-h: clamp(2.75rem, 7vw + 1rem, 8.75rem);          /* 44px → 140px */
  --fs-body-lg: clamp(1.125rem, 0.6vw + 1rem, 1.75rem); /* 18px → 28px */
  /* About + welcome marquee copy: the 28px design size taken down 10%. */
  --fs-about: clamp(1.0125rem, 2.88vw, 1.575rem);       /* 16.2px → 25.2px */
  --about-line: 1.511;                                  /* 47/28 taken down 10% */
  /* Green section title -> the copy under it. One value so the About and
     Contact blocks breathe identically. */
  --title-gap: 5.625rem;                                /* 90px */

  /* Spacing — fluid */
  --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: clamp(3rem, 6vw, 6rem);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  /* Palette — warm, considered, AA-contrast on dark surface */
  --color-bg: #000086;
  --color-surface: #14171c;
  --color-surface-2: #1c2026;
  --color-text: #f4eee0;          /* ~13:1 on bg */
  --color-text-muted: #b6ad99;    /* ~7:1 on bg */
  --color-accent: #00FF37;        /* neon green */
  --color-accent-ink: #0b0d10;
  --color-border: #2a2f37;
  --color-focus: #00ff37;      /* heading green */
  --color-error: #00ff37;   /* green, not red - no warm hues anywhere */
  --color-scrim: rgba(8, 9, 11, 0.72);
  --color-overlay: rgba(0, 0, 0, 0.4);
  --color-overlay-strong: rgba(0, 0, 0, 0.6);
  --color-overlay-ink: #fff;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
}

:root[data-theme="light"] {
  color-scheme: light;

  /* Palette — warm cream, AA-contrast on light surface */
  --color-bg: #5a97ff;
  --color-surface: #f3ecdc;
  --color-surface-2: #e8dfca;
  --color-text: #1a1d22;          /* dark ink on cream */
  --color-text-muted: #5c5648;
  --color-accent: #00ff37;        /* heading green */
  --color-accent-ink: #0b0d10;
  --color-border: #d6cbb1;
  --color-focus: #00ff37;      /* heading green */
  --color-error: #00ff37;   /* green, not red - no warm hues anywhere */
  --color-scrim: rgba(40, 30, 18, 0.55);
  --color-overlay: rgba(20, 16, 8, 0.35);
  --color-overlay-strong: rgba(20, 16, 8, 0.55);
  --color-overlay-ink: #fbf7ee;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px rgba(40,30,18,0.12);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
