/* Design tokens: the single source of truth. A full recolor only touches this file. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: deep maritime blues, one fresh accent, no grey surfaces */
  --natt: #07183a;          /* deepest navy: hero scrim, footer */
  --natt-rgb: 7, 24, 58;
  --marine: #0b2a5b;        /* dark blue surface */
  --hav: #0f5fd0;           /* ocean blue: links on light */
  --aksent: #3ddbd9;        /* aqua, the only accent */
  --aksent-sterk: #7cecea;  /* accent on hover / title tint on dark */
  --aksent-dyp: #087f84;    /* accent as text on light surfaces (the hero strip and the dropdown) */
  --aksent-tekst: #07787d;  /* accent as small text on the light surfaces under the hero: 4.84:1 on sea mist, 5.26:1 on white */
  --skum: #eef7fa;          /* light sea-mist surface */
  --hvit: #ffffff;
  --blekk: #0a1c3a;         /* text on light */
  --dis: #4c5f7c;           /* muted text on light */
  --linje: #d5e5ed;         /* hairlines on light */
  --tekst-lys: #ffffff;
  --tekst-lys-dempet: rgba(255, 255, 255, 0.84);
  --linje-lys: rgba(255, 255, 255, 0.22);
  --dyp-rgb: 30, 88, 196;       /* blue the hero photo is multiplied with */
  --hav-lys: #e2efff;       /* pale ocean tint: chips, table hover, soft panels */
  --aksent-lys: #d6f6f5;    /* pale aqua tint: tags and icon discs on light */
  --hav-dyp: #0a47a6;       /* ocean blue, one step deeper: gradient partner of --hav */
  --feil: #b3261e;          /* form errors only */
  --tekst-lys-svak: rgba(255, 255, 255, 0.68);

  /* Type */
  --font-tittel: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-tekst: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-kode: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --vekt-tittel: 650;
  --vekt-tittel-lett: 500;
  --tekst: 1.0625rem;        /* 17px on phones */
  --tekst-stor: 1.1875rem;
  --linjehoyde: 1.5;

  /* Space and shape */
  --ramme: 77.5rem;          /* 1240px content width */
  --marg: clamp(1.25rem, 4vw, 2.5rem);
  --topp: 5rem;              /* header height */
  --radius: 1.125rem;
  --radius-pille: 999px;
  --skygge-kort: 0 1.75rem 3.75rem -1.5rem rgba(3, 12, 36, 0.6);
  --skygge-lett: 0 1rem 2.25rem -1.25rem rgba(var(--natt-rgb), 0.28);
  --seksjon-y: clamp(3rem, 6.2vw, 5rem);        /* vertical padding of a section */
  --luft: clamp(1.5rem, 3vw, 2.5rem);           /* gap between columns and cards */
  --radius-liten: 0.75rem;
  --tittel-2: clamp(1.75rem, 1.15rem + 2.3vw, 2.75rem);
  --tittel-3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --tittel-side: clamp(2.125rem, 1.3rem + 3.4vw, 3.75rem);
  --tekst-liten: 0.9375rem;                     /* labels, table meta, footer */

  /* Motion */
  --lett: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --tekst: 1.125rem;       /* 18px from tablet up */
    --tekst-stor: 1.25rem;
  }
}
