/*
 * svrn_alpha base: fonts, tokens and body defaults for every page.
 * Values from the svrn_alpha Brand Kit, Draft 3 (27 October 2026).
 * The kit's svrn-tokens.css declares --svrn-mist twice; here the underscore
 * blue is --svrn-mist-blue and the text-on-Midnight tint is --svrn-mist.
 */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-700.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-400.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-400-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  /* core */
  --svrn-black: #14171c;
  --svrn-midnight: #12203f;
  --svrn-white: #ffffff;
  --svrn-mist-blue: #7fa3bd;
  /* neutral */
  --svrn-ink: #15213a;
  --svrn-slate: #45526a;
  --svrn-steel: #5b6880;
  --svrn-line: #d6dee8;
  --svrn-fill: #e4e9f0;
  --svrn-ground: #eef2f6;
  /* secondary */
  --svrn-mist: #abc4d2;
  --svrn-harbour: #2b5f94;
  --svrn-deep-midnight: #0b1428;
  --svrn-pale-mist: #c4d6e0;
  /* charts, in this order; benchmark in grey */
  --svrn-chart-1: #12203f;
  --svrn-chart-2: #7fa3bd;
  --svrn-chart-3: #2b5f94;
  --svrn-chart-4: #c4d6e0;
  --svrn-benchmark: #8794a8;
  /* type */
  --svrn-font-sans: "Schibsted Grotesk", Arial, sans-serif;
  --svrn-font-serif: Newsreader, Georgia, serif;
  /* radius and shadow */
  --svrn-radius-input: 4px;
  --svrn-radius-button: 8px;
  --svrn-radius-card: 12px;
  --svrn-radius-panel: 14px;
  --svrn-shadow-sheet: 0 1px 2px rgba(21, 33, 58, .05), 0 0 0 1px rgba(21, 33, 58, .06);
  --svrn-shadow-raised: 0 1px 2px rgba(21, 33, 58, .08), 0 6px 18px rgba(21, 33, 58, .10);

  /* Older variable names still used by page-specific article CSS. */
  --navy: var(--svrn-midnight);
  --navy-mpcm: var(--svrn-midnight);
  --red: var(--svrn-midnight);
  --bg: var(--svrn-white);
  --surface: var(--svrn-ground);
  --surface-alt: var(--svrn-fill);
  --border: var(--svrn-line);
  --text: var(--svrn-ink);
  --text-secondary: var(--svrn-slate);
  --text-muted: var(--svrn-steel);

  color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Large screens scale the whole page, so a desktop monitor shows the laptop
   layout bigger instead of a narrow column in white. The step is about
   min(width / 1600, height / 780). Zoom multiplies vw and vh, so divide those
   by --svrn-zoom; canvases multiply their pixel ratio by it (svrnPixelRatio
   in /research/_header.js). */
@media screen and (min-width: 1760px) and (min-height: 858px) { html { zoom: 1.1; --svrn-zoom: 1.1; } }
@media screen and (min-width: 1920px) and (min-height: 936px) { html { zoom: 1.2; --svrn-zoom: 1.2; } }
@media screen and (min-width: 2080px) and (min-height: 1014px) { html { zoom: 1.3; --svrn-zoom: 1.3; } }
@media screen and (min-width: 2240px) and (min-height: 1092px) { html { zoom: 1.4; --svrn-zoom: 1.4; } }
@media screen and (min-width: 2400px) and (min-height: 1170px) { html { zoom: 1.5; --svrn-zoom: 1.5; } }
@media screen and (min-width: 2560px) and (min-height: 1248px) { html { zoom: 1.6; --svrn-zoom: 1.6; } }
@media screen and (min-width: 2880px) and (min-height: 1404px) { html { zoom: 1.8; --svrn-zoom: 1.8; } }
@media screen and (min-width: 3200px) and (min-height: 1560px) { html { zoom: 2; --svrn-zoom: 2; } }
@media screen and (min-width: 3520px) and (min-height: 1716px) { html { zoom: 2.2; --svrn-zoom: 2.2; } }

body {
  margin: 0;
  font-family: var(--svrn-font-sans);
  font-size: 15px;
  line-height: 24px;
  color: var(--svrn-ink);
  background: var(--svrn-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Opt-in tabular figures. Schibsted makes its full stop and comma tabular
   too, which opens gaps inside decimals, so tables keep proportional figures. */
.tnum { font-variant-numeric: tabular-nums; }
::marker { font-variant-numeric: normal; }

/* Reserve the top bar before its script runs, so nothing jumps. */
site-header { display: block; min-height: 72px; position: sticky; top: 0; z-index: 200; background: var(--svrn-white); }
site-footer { display: block; }

/* Live brand art: /brand/motion.js draws the hero's art on this canvas and
   fades it in over the still image, behind the hero's content. */
.art-host { position: relative; isolation: isolate; }
.art-motion { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s ease-out; }
.art-motion.on { opacity: 1; }

/* Links in Harbour blue. In the base layer, so Tailwind's reset and
   utilities on the homepage still win; static pages get the default. */
@layer base {
  a { color: var(--svrn-harbour); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  a:hover { color: var(--svrn-midnight); }
}

:focus-visible { outline: 2px solid var(--svrn-harbour); outline-offset: 2px; }

::selection { background: var(--svrn-pale-mist); color: var(--svrn-ink); }

@media print {
  site-header, site-footer, .art-motion { display: none !important; }
}
