/* Titan Defence: fonts, tokens, reset. Components live in style.css.
   Token names below are a shared contract with viz.css (see temp/webflow-defenseflow/STYLE-SPEC.md). */
@layer reset, base, layout, components, utilities;

/* IBM Plex Sans (variable wght 100-700) + IBM Plex Mono 400/500, self-hosted, latin + latin-ext */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/plex-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;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/fonts/plex-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-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("/assets/fonts/plex-mono-latin-400.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-latin-ext-400.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("/assets/fonts/plex-mono-latin-500.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-latin-ext-500.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;
}

/* Tokens: unlayered so nothing can shadow them */
:root {
  color-scheme: dark;

  /* neutrals (exact, template :root) */
  --n-100: #ffffff;
  --n-200: #f4f4f4;
  --n-300: #dddddd;
  --n-400: #b4b4b4;
  --n-500: #585859;
  --muted: #8c8c8c; /* informational text: 5.6:1 on n800, 5.2:1 on n700 (n500 is decoration only) */
  --n-600: #414141;
  --n-700: #191919;
  --n-800: #0f0f0f;

  /* system colours: status only, never decoration */
  --ok: #74d184;     /* online / in service / available */
  --warn: #efc42c;   /* alert / threat / prototype / concept */
  --bad: #fe566b;    /* negative delta, form errors */
  --info: #64a7ff;   /* field trials, info */

  /* roles */
  --bg: var(--n-800);
  --surface: var(--n-700);
  --text: var(--n-400);
  --heading: var(--n-100);
  --accent: var(--n-100);
  --line: var(--n-600);
  --border: 1px solid var(--n-600);
  --radius: 0.25rem;
  --shadow: 0 0.125rem 0.25rem #07070780;

  --font-sans: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* fluid type scale, 360 -> 1440 (max = template desktop rem) */
  --d1: 0.875rem;
  --d2: 1rem;
  --d3: clamp(1.069rem, 1.050rem + 0.083vw, 1.125rem);
  --d4: clamp(1.125rem, 1.083rem + 0.185vw, 1.25rem);
  --d5: clamp(1.275rem, 1.200rem + 0.333vw, 1.5rem);
  --d6: clamp(1.500rem, 1.375rem + 0.556vw, 1.875rem);
  --d7: clamp(1.850rem, 1.633rem + 0.963vw, 2.5rem);
  --d8: clamp(2.160rem, 1.880rem + 1.244vw, 3rem);
  --d9: clamp(2.475rem, 2.050rem + 1.889vw, 3.75rem);
  --d10: clamp(2.700rem, 2.100rem + 2.667vw, 4.5rem);
  --lh-display: 1.1;
  --lh-heading: 1.25;
  --lh-body: 1.55;
  --ls-heading: -0.03em;

  /* spacing scale (tiny .. 3xl) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 3.5rem;
  --space-11: 4rem;
  --space-12: 4rem;

  --section: clamp(4.5rem, 3.917rem + 2.593vw, 6.25rem);
  --section-y: var(--section);              /* section interval read by the rhythm guard */
  --gutter: clamp(1rem, 0.833rem + 0.741vw, 1.5rem);
  --container: 80.375rem;
  --gap: clamp(1rem, 0.833rem + 0.741vw, 1.5rem);
  --card-pad: clamp(1.5rem, 1.333rem + 0.741vw, 2rem);

  --logo-h: clamp(3.2rem, 3.067rem + 0.593vw, 3.6rem);
  --header-pad: clamp(0.6rem, 0.53rem + 0.3vw, 0.8rem);
  --header-h: calc(var(--logo-h) + 2 * var(--header-pad));
  --control: 2.75rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  img, svg, video { display: block; max-inline-size: 100%; }
  img { block-size: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  [hidden] { display: none !important; }
}
