/* ============================================================
   FONT FACES — self-hosted woff2 (font-display:swap)
   ============================================================ */

/* Space Grotesk — variable (wght 300–700); covers declared 500 + 700 as TRUE weights */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk-variable.woff2') format('woff2');
}

/* Inter — variable (wght 100–900); covers declared 400/500/600 as TRUE weights */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

/* IBM Plex Mono 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-latin-ext.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-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;
}

/* IBM Plex Mono 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-latin-ext.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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-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;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root{
  /* color */
  --c-base:#FAFAF8; --c-surface:#FFFFFF; --c-surface-2:#F4F4F1; --c-ink:#14151A; --c-graphite:#6B6F76;
  --c-hairline:#ECECE6; --c-red:#E2001A; --c-red-700:#B80016;
  --c-dark:#0E0E10; --c-dark-surface:#16171B; --c-on-dark:#F4F4F2;
  /* type */
  --font-display:"Space Grotesk",system-ui,sans-serif;
  --font-body:"Inter",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,monospace;
  --fs-display:clamp(2.75rem,6vw,5.5rem);
  --fs-h1:clamp(2rem,4vw,3.25rem); --fs-h2:clamp(1.5rem,2.6vw,2.25rem);
  --fs-h3:1.25rem; --fs-body:1.0625rem; --fs-small:.875rem; --fs-label:.75rem;
  --lh-tight:1.05; --lh-snug:1.25; --lh-body:1.6;
  /* space (4px base) */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.25rem;
  --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem; --space-12:3rem; --space-16:4rem;
  --space-24:6rem; --space-32:8rem;
  /* layout */
  --maxw:1280px; --gutter:clamp(1rem,4vw,3rem);
  --radius-sm:8px; --radius:12px; --radius-lg:18px; --radius-xl:28px; --radius-pill:999px;
  --hair:1px solid var(--c-hairline);
  --header-h:72px;
  /* soft layered shadows */
  --shadow-sm:0 1px 2px rgba(20,21,26,.04),0 1px 1px rgba(20,21,26,.03);
  --shadow-md:0 2px 6px rgba(20,21,26,.04),0 14px 32px rgba(20,21,26,.07);
  --shadow-lg:0 6px 12px rgba(20,21,26,.05),0 28px 60px rgba(20,21,26,.10);
  /* motion */
  --dur:.7s; --dur-fast:.35s;
  --ease:cubic-bezier(.16,1,.3,1); --ease-soft:cubic-bezier(.33,1,.68,1);
}
@media (prefers-reduced-motion:reduce){ :root{ --dur:0s; --dur-fast:0s; } }
