/* Self-hosted variable fonts (SIL Open Font License 1.1): Inter, JetBrains Mono, Work Sans.
   Latin + Latin Extended (covers Romanian ă â î ș ț). Sourced from Google Fonts; see assets/fonts/. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-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: "Work Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/work-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/work-sans-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 — Polaris (Swiss / editorial). Kontext overrides live in kontext.css
   ========================================================================== */
:root {
  color-scheme: light dark;

  /* Colour — light */
  --canvas: #F8F8FC;
  --ink: #212529;
  --muted: #555B66;
  --rule: #E5E5EB;
  --tint: #EEEEF6;
  --accent: #0A1F9C;          /* fills: buttons, dark cards */
  --accent-text: #0A1F9C;     /* text / links / small labels */
  --accent-deep: #071570;
  --on-accent: #FFFFFF;
  --lime: #C8FF00;
  --blush: #FDC3CE;
  --fill-bg: #FFF6D6;         /* placeholder chip */
  --fill-ink: #6B4E00;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-body: clamp(17px, 0.4vw + 15.5px, 19px);
  --fs-lede: clamp(19px, 0.8vw + 15px, 24px);
  --fs-h1: clamp(40px, 7.2vw, 96px);
  --fs-h2: clamp(32px, 4.4vw, 64px);
  --fs-h3: clamp(24px, 2.4vw, 34px);
  --fs-mono: 12px;

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --col-gap: clamp(16px, 2vw, 28px);
  --space-section: clamp(72px, 8vw + 40px, 160px);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur: 560ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0E0F14;
    --ink: #ECECF2;
    --muted: #A5A9B8;
    --rule: #2A2C36;
    --tint: #171821;
    --accent: #2236C4;
    --accent-text: #A3AFFF;
    --accent-deep: #0A1F9C;
    --on-accent: #FFFFFF;
    --fill-bg: #3A2F0B;
    --fill-ink: #FFD978;
  }
}
