/* self-hosted fonts (public/k8/fonts; generated by scripts/build-k8-blocks-css.ts) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/geist-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: 'Merriweather';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/merriweather-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/merriweather-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: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/merriweather-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/merriweather-italic-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;
}

/*
 * Hluthafinn (Ghost) header + type configuration. SOURCE of public/k8/header.css (generated by scripts/build-k8-blocks-css.ts, which
 * prepends the @font-face rules for the woff2 files present in public/k8/fonts and writes the content hash into the @import of
 * public/k8/blocks.css). Owner decisions 10.11.2026; hotfix 10.11.2026 night: reaches plain visitors with NO Ghost edit because
 * blocks.css (loaded on every Ghost page by the footer loader) @imports this file with a version parameter.
 * Rules apply WITHOUT any class on <html> (the old html.k8-fonts scope is gone). `html:root` only raises specificity to that of the
 * old html.k8-fonts rules, so these win over the theme and over blocks.css (an @import is applied BEFORE the importing sheet's own rules).
 * Colours: tokens only (public/k8/tokens.css); no raw colours here.
 *
 * C. HEADER (same measures as markadir: app/markadir/markadir.module.css): top row 88px, wordmark 38px (the whole wordmark, the SVG
 *    from /k8/ as background, so nothing is cropped), search 44px; no gap above the tab row; the tab row transparent and on the same
 *    left/right edges as the header (1400px container, 32px side padding); Ghost Portal's floating pill hidden for everyone.
 * D. FONTS: Merriweather ONLY for post titles and reading text; Geist for everything else (--font-body / --font-head).
 */

html:root {
  --k8-head: var(--font-head, 'Geist', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif);
  --k8-body: var(--font-body, 'Geist', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif);
  --k8-ahead: var(--font-head-article, 'Merriweather', Georgia, 'Times New Roman', serif);
  --k8-abody: var(--font-body-article, 'Merriweather', Georgia, 'Times New Roman', serif);
  --k8-logo-h: 38px;
  --k8-top-h: 88px;
  /* the theme's sans variable = Geist (nav, buttons, byline, meta, tags, captions, forms, footer); its serif variable = Merriweather */
  --font-family-sansSerif: var(--k8-body);
  --font-family-serif: var(--k8-abody);
}

/* ---- dark mode: the theme's colour variables follow the shared tokens (tokens.css defines the dark token values) ---- */
html:root[data-user-color-scheme="dark"] {
  --color-background-primary: var(--bg);
  --color-background-secondary: var(--surface);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-border-primary: var(--rule);
  --color-border-secondary: var(--rule);
}
@media (prefers-color-scheme: dark) {
  html:root.is-darkModeAdminSetting-enabled:not([data-user-color-scheme]) {
    --color-background-primary: var(--bg);
    --color-background-secondary: var(--surface);
    --color-text-primary: var(--ink);
    --color-text-secondary: var(--muted);
    --color-border-primary: var(--rule);
    --color-border-secondary: var(--rule);
  }
}

/* ---- header: top row ---- */
html:root .c-header .c-header__top { padding-top: 0; padding-bottom: 0; }
html:root .c-header .c-header__top-inner { height: var(--k8-top-h); min-height: 0; align-items: center; }
html:root .c-header .c-header__top-block { align-items: center; align-self: center; }
html:root .c-header .c-logo { display: flex; align-items: center; margin: 0; }
/* wordmark: the SVGs of /k8/ (viewBox 3275 x 627) as background of the link; the theme's PNG stays in the page, invisible, for the alt text */
html:root .c-header .c-logo .u-block { display: block; position: relative; line-height: 0; height: var(--k8-logo-h); width: calc(var(--k8-logo-h) * 5.2233); background: url(wordmark_black.svg) no-repeat left center / contain; }
html:root .c-header .c-logo__dark .u-block { background-image: url(wordmark_white.svg); }
html:root .c-header .c-logo__img { position: absolute; left: 0; top: 0; width: 1px; height: 1px; max-height: none; opacity: 0; overflow: hidden; pointer-events: none; }
/* Registur search (the HTML card in the top-center slot keeps its width and content; only the height is pinned to 44px) */
html:root .c-header .hf-hs { height: 44px; margin: 0; }
html:root .c-header .c-header__top-right { align-items: center; align-self: center; }
html:root .c-header .c-header__top-right > * { align-self: center; }

/* ---- front page: no gap between the header and the tab row; the tab row on the header's edges and without a strip of its own ---- */
html:root body.home-template .c-header { margin-bottom: 0; }
html:root .k8-ghost-host { box-sizing: border-box !important; max-width: 1400px !important; margin-left: auto !important; margin-right: auto !important; padding: 0 20px !important; }
@media (min-width: 64em) {
  html:root .k8-ghost-host { padding: 0 32px !important; }
}
html:root .k8-ghost-host :is(.k8-frag, .k8-f8-frag):has([class*="MarkadirNav_nav"]) { background: transparent; }
html:root .k8-ghost-host [class*="MarkadirNav_nav"] { margin-top: 0; }
/* tabs: Geist 15px / 600 with normal tracking (blocks.css has -0.035em, which squeezed them) */
html:root .k8-frag [class*="MarkadirNav_link"] { font-family: var(--k8-body); font-size: 15px; font-weight: 600; letter-spacing: 0; }

/* ---- Ghost Portal's floating pill: hidden for everyone ---- */
html:root iframe.gh-portal-triggerbtn-iframe { display: none !important; }

@media (max-width: 63.99em) {
  html:root { --k8-logo-h: 34px; --k8-top-h: 68px; }
}

/* ---- fonts: Geist for all interface text ---- */
html:root body { font-family: var(--k8-body); }
html:root :is(.c-header__button, .c-header__button *, .c-btn, .c-nav__link, .c-nav, .c-header__bottom, .c-footer, .c-footer *, .hf-hs, .hf-hs *, .hf-hs__input) { font-family: var(--k8-body); }
html:root :is(.c-topper__meta, .c-topper__byline, .c-byline, .c-byline *, .c-meta, .c-meta *, .c-tag, .c-tags, .c-tags *, .c-card__meta, .c-card__byline, .c-card__date, .c-card__tag, time, figcaption, .c-section-heading__title) { font-family: var(--k8-body); }
html:root :is(button, input, select, textarea, label) { font-family: var(--k8-body); }
/* Ghost call-to-action cards anywhere (the ISNIC sponsor card on the front page too): Geist */
html:root :is(.kg-cta-card, .kg-cta-card *, .kg-button-card .kg-btn) { font-family: var(--k8-body); }
/* subscription, account and Ghost portal text where the theme controls it */
html:root :is(.gh-portal-content, .gh-portal-content *, .c-subscribe, .c-subscribe *, .c-account, .c-account *, .c-pricing, .c-pricing *, .c-tier, .c-tier *) { font-family: var(--k8-body); }
html:root .c-section-heading__title { font-weight: 700; letter-spacing: -0.02em; }

/* ---- fonts: Merriweather ONLY for post titles and reading text ---- */
/* article page: title 44/700 (-0.015em, lh 1.14); 32px on phones, 38px on tablets */
html:root .c-topper__headline { font-family: var(--k8-ahead); font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
@media (min-width: 48em) { html:root .c-topper__headline { font-size: 38px; line-height: 1.16; } }
@media (min-width: 64em) { html:root .c-topper__headline { font-size: 44px; line-height: 1.14; } }
/* standfirst 19/400, lh 1.55 */
html:root .c-topper__standfirst { font-family: var(--k8-abody); font-size: 19px; line-height: 1.55; font-weight: 400; }
/* body 18/400, lh 1.7 (direct children of the content; pull quotes keep their own rule below) */
html:root .c-content > :is(p, ul, ol), html:root .c-content > :is(ul, ol) > li { font-family: var(--k8-abody); font-size: 18px; line-height: 1.7; font-weight: 400; }
/* Ghost content cards inside articles (the ISNIC sponsor card, kg-cta-card): interface text = Geist 400 14/1.45, label and button Geist */
html:root .c-content .kg-cta-card :is(.kg-cta-text, .kg-cta-text p, .kg-cta-text span, .kg-cta-text strong, .kg-cta-text b) { font-family: var(--k8-body); font-weight: 400; font-size: 14px; line-height: 1.45; }
html:root .c-content .kg-cta-card .kg-cta-text :is(strong, b) { font-weight: 600; }
html:root .c-content .kg-cta-card .kg-cta-sponsor-label, html:root .c-content .kg-cta-card .kg-cta-sponsor-label * { font-family: var(--k8-body); }
html:root .c-content .kg-cta-card .kg-cta-button { font-family: var(--k8-body); font-size: 14px; font-weight: 500; }
/* in-article headings: h2 25/700 (h3 22, h4 18) */
html:root .c-content > :is(h1, h2, h3, h4) { font-family: var(--k8-ahead); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
html:root .c-content > :is(h1, h2) { font-size: 25px; }
html:root .c-content > h3 { font-size: 22px; }
html:root .c-content > h4 { font-size: 18px; }
html:root .c-content > :is(h1, h2, h3, h4) :is(strong, b) { font-weight: inherit; }
/* pull quotes: Merriweather italic ~23px */
html:root .c-content :is(blockquote, .kg-blockquote-alt) { font-family: var(--k8-abody); font-style: italic; font-weight: 400; font-size: 23px; line-height: 1.55; }
/* post titles and excerpts on tag, archive, author and home tiles rendered by the theme */
html:root :is(.c-card__headline, .c-teaser__headline, .c-editors-pick__headline, .c-card-archive__title) { font-family: var(--k8-ahead); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
html:root :is(.c-card__standfirst, .c-teaser__standfirst) { font-family: var(--k8-abody); font-weight: 400; line-height: 1.55; }
