/*
 * Fonts and type tokens for every page (marketing, research and opret).
 * One place: change a family or weight here, never in a page.
 *
 * Files: the Wiith 2026 design system's variable fonts (tokens.json type.fonts),
 * latin subset, byte for byte: Crimson Pro normal and italic, DM Sans normal and
 * italic (with its optical-size axis, so letters are drawn for their size). Rare
 * extended-Latin characters use Google's latin-ext subsets. Self-hosted, so no
 * visitor data goes to Google. Licence: SIL Open Font License 1.1 (OFL-*.txt).
 * Each file has one rule with its full weight range, so every weight is drawn
 * exactly as asked.
 *
 * Loading: the shared fonts partial preloads the two main files. The signup
 * page loads this stylesheet directly. font-display: optional gives the browser
 * a short initial wait and no late swap; slow first visits may keep a fallback.
 * Content-hashed filenames allow one-year immutable caching (vercel.json).
 * The local fallback faces reduce differences in width and line metrics.
 */
:root {
  --font-display: "Crimson Pro", "Crimson Pro Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Design system weights */
  --weight-regular: 400;
  --weight-strong: 900;   /* Black: titles, labels, buttons, strong text */
  /* Site additions used by approved designs */
  --weight-medium: 500;   /* short guiding lines; Crimson Pro titles on the Forside */
  --weight-semibold: 600; /* card and group titles (title-3); research links */
  --weight-bold: 700;     /* research reading pages: article section titles and prose bold */
}

/* Crimson Pro italic, latin-ext */
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 200 900;
  font-display: optional;
  src: url(fonts/crimson-pro-italic-latin-ext.0ad667be0c.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;
}

/* Crimson Pro italic, latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: italic;
  font-weight: 200 900;
  font-display: optional;
  src: url(fonts/crimson-pro-italic-latin.f6e3468880.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;
}

/* Crimson Pro normal, latin-ext */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 200 900;
  font-display: optional;
  src: url(fonts/crimson-pro-normal-latin-ext.0ff3122e67.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;
}

/* Crimson Pro normal, latin */
@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 200 900;
  font-display: optional;
  src: url(fonts/crimson-pro-normal-latin.89374859da.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;
}

/* DM Sans normal, latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: optional;
  src: url(fonts/dm-sans-normal-latin-ext.219b02c7d8.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;
}

/* DM Sans normal, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: optional;
  src: url(fonts/dm-sans-normal-latin.aa530716b0.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;
}

/* DM Sans italic, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: optional;
  src: url(fonts/dm-sans-italic-latin.06596e9317.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;
}

/* Stand-ins sized to the web fonts (widths weighted by the site's Danish text;
   Gelasio and Arimo have the same metrics as Georgia and Arial). */
@font-face {
  font-family: 'Crimson Pro Fallback';
  font-style: normal;
  font-weight: 200 599;
  src: local("Georgia"), local("Gelasio");
  size-adjust: 89.56%;
  ascent-override: 100.10%;
  descent-override: 23.99%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Crimson Pro Fallback';
  font-style: normal;
  font-weight: 600 900;
  src: local("Georgia Bold"), local("Georgia-Bold"), local("Gelasio Bold"), local("Gelasio-Bold");
  size-adjust: 86.10%;
  ascent-override: 104.12%;
  descent-override: 24.95%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Crimson Pro Fallback';
  font-style: italic;
  font-weight: 200 599;
  src: local("Georgia Italic"), local("Georgia-Italic"), local("Gelasio Italic"), local("Gelasio-Italic");
  size-adjust: 81.47%;
  ascent-override: 110.04%;
  descent-override: 26.37%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Crimson Pro Fallback';
  font-style: italic;
  font-weight: 600 900;
  src: local("Georgia Bold Italic"), local("Georgia-BoldItalic"), local("Gelasio Bold Italic"), local("Gelasio-BoldItalic");
  size-adjust: 83.68%;
  ascent-override: 107.13%;
  descent-override: 25.67%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  font-style: normal;
  font-weight: 100 599;
  src: local("Arial"), local("ArialMT"), local("Arimo");
  size-adjust: 103.54%;
  ascent-override: 95.81%;
  descent-override: 29.94%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  font-style: normal;
  font-weight: 600 1000;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arimo Bold"), local("Arimo-Bold");
  size-adjust: 103.64%;
  ascent-override: 95.72%;
  descent-override: 29.91%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  font-style: italic;
  font-weight: 100 1000;
  src: local("Arial Italic"), local("Arial-ItalicMT"), local("Arimo Italic"), local("Arimo-Italic");
  size-adjust: 104.31%;
  ascent-override: 95.11%;
  descent-override: 29.72%;
  line-gap-override: 0%;
}
