/* ==========================================================================
   MSWtech Design Tokens
   --------------------------------------------------------------------------
   THE single source of truth for colour, type, spacing, radius, motion.
   Change a value here and it changes everywhere on the site.
   Visual world: "patent drawing" — fine ink line-art in MSW blue (#1b5083)
   on warm drafting paper; dark sections are the same drawings reproduced
   as a blueprint (paper-white lines on deep ink).
   ========================================================================== */

/* ---- Self-hosted fonts (no third-party requests, GDPR-safe) ------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 300 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;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-ext-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-var.woff2") format("woff2");
  font-weight: 100 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;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-ext-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Brand colour ramp (derived from #1b5083) ---------------------- */
  --ink: #1b5083;          /* brand / patent ink — links, lines, primary buttons */
  --ink-600: #22609c;      /* hover lift on light ground */
  --ink-700: #164270;      /* pressed / strong text on paper */
  --ink-800: #10345a;      /* blueprint ground (dark sections) */
  --ink-900: #0b2440;      /* deepest blueprint ground, footer */
  --ink-200: #b9cde2;      /* light line on blueprint */
  --ink-100: #dfe8f2;      /* tint fills, selection */
  --ink-50:  #eef3f8;      /* faint tint panel */

  /* Copper trace — the one warm accent, reserved for reference numerals,
     active markers and focus. Never for large surfaces. */
  --copper: #b4581f;
  --copper-light: #e59a63; /* copper on blueprint ground */

  /* Paper — warm drafting paper, never pure white for the page ground */
  --paper: #f7f5ef;
  --paper-2: #efece3;      /* alternate section ground */
  --paper-3: #e5e1d5;      /* deeper paper, borders on paper */
  --sheet: #fffefb;        /* card / figure sheet */

  /* Text */
  --text: #13263b;         /* body on paper  (contrast ≈ 14:1) */
  --text-muted: #46586b;   /* secondary on paper (≈ 6.9:1) */
  --text-on-ink: #f3f6fa;  /* body on blueprint */
  --text-on-ink-muted: #b9c9da; /* secondary on blueprint (≈ 8:1 on ink-800) */

  /* Lines */
  --line: rgb(27 80 131 / 0.22);       /* hairline on paper */
  --line-strong: rgb(27 80 131 / 0.55);
  --line-on-ink: rgb(223 232 242 / 0.22);

  /* ---- Typography ----------------------------------------------------- */
  --font-display: "Space Grotesk", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid type scale (min @ 360px → max @ 1440px) */
  --fs-hero: clamp(2.6rem, 1.5rem + 4.4vw, 5.25rem);
  --fs-h1: clamp(2.4rem, 1.7rem + 3.2vw, 4.5rem);
  --fs-h2: clamp(1.95rem, 1.45rem + 2.1vw, 3.25rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;     /* mono labels: FIG., dates, booth numbers */

  --lh-tight: 1.04;
  --lh-heading: 1.15;
  --lh-body: 1.62;

  --tracking-display: -0.03em;
  --tracking-label: 0.08em;

  --measure: 68ch;

  /* ---- Spacing (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: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);  /* vertical padding of sections */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem); /* page side padding (≥16px on phones) */
  --container: 1320px;
  --container-narrow: 860px;

  /* ---- Shape ----------------------------------------------------------- */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;
  --radius-pill: 999px;

  /* Depth — soft, offset, ink-tinted. Never a zero-offset glow. */
  --shadow-1: 0 1px 2px rgb(11 36 64 / 0.06), 0 2px 6px rgb(11 36 64 / 0.05);
  --shadow-2: 0 2px 4px rgb(11 36 64 / 0.06), 0 12px 28px -8px rgb(11 36 64 / 0.18);
  --shadow-3: 0 4px 8px rgb(11 36 64 / 0.08), 0 28px 60px -18px rgb(11 36 64 / 0.32);

  /* Hatching — patent-drawing section fill used for decorative shapes */
  --hatch: repeating-linear-gradient(-45deg, var(--line-strong) 0 1px, transparent 1px 7px);
  --hatch-on-ink: repeating-linear-gradient(-45deg, rgb(223 232 242 / 0.28) 0 1px, transparent 1px 7px);

  /* ---- Motion (Emil Kowalski curves) --------------------------------- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-reveal: 700ms;

  /* ---- Layers ---------------------------------------------------------- */
  --z-header: 50;
  --z-nav: 60;
  --z-skip: 100;

  --header-h: 84px;
}
