/* ASM theme: FINAL brand v1, approved by Oliver on 17 Nov 2026 (/mnt/project-files/asm-brand/).
   Change only with Oliver's approval. Fonts are self-hosted IBM Plex (SIL Open Font License),
   so no reader data goes to Google. */
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(/fonts/ibm-plex-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(/fonts/ibm-plex-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(/fonts/ibm-plex-serif-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --font-head: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --head-stretch: 100%;
  --head-weight: 700;
  --font-body: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-ui: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --magenta: #A3195B;      /* identical in light and dark mode: never lighten it */
  --bg: #FFFFFF;
  --surface: #F6F7F8;      /* boxes such as Agreed facts, footer */
  --box: #F6F7F8;
  --ink: #16181C;
  --ink-soft: #5C6169;     /* slate */
  --line: #E3E5E8;
  --brand: #FFFFFF;        /* header bar is white, with a magenta rule underneath */
  --brand-ink: #16181C;
  --accent: #A3195B;
  --accent-ink: #FFFFFF;
  --link: #A3195B;
  --link-underline: #A3195B;
  --breaking: #A3195B;
  --breaking-ink: #FFFFFF;
  --stance-border: #5C6169; /* stance tags: grey outline only, never coloured */
  --opinion: #16181C; --explainer: #16181C; --debate: #A3195B; --news: #16181C;
  --ok: #1e6b3a;
  --radius: 2px;
  --measure: 70ch;
  --logo-light: block; --logo-dark: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1013; --surface: #16181C; --box: #16181C; --ink: #ECEEF0; --ink-soft: #9AA0A8; --line: #2A2E34;
    --brand: #0E1013; --brand-ink: #ECEEF0;
    --link: #FFFFFF; --link-underline: #A3195B;  /* magenta text is only 2.4:1 on dark */
    --stance-border: #9AA0A8; --opinion: #ECEEF0; --explainer: #ECEEF0; --debate: #ECEEF0; --news: #ECEEF0; --ok: #5fcf86;
    --logo-light: none; --logo-dark: block;
    color-scheme: dark;
  }
}

/* Reader's own choice (the Light / Device / Dark switch) wins over the device setting. */
:root[data-theme="dark"] {
  --bg: #0E1013; --surface: #16181C; --box: #16181C; --ink: #ECEEF0; --ink-soft: #9AA0A8; --line: #2A2E34;
  --brand: #0E1013; --brand-ink: #ECEEF0;
  --link: #FFFFFF; --link-underline: #A3195B;  /* magenta text is only 2.4:1 on dark */
  --stance-border: #9AA0A8; --opinion: #ECEEF0; --explainer: #ECEEF0; --debate: #ECEEF0; --news: #ECEEF0; --ok: #5fcf86;
  --logo-light: none; --logo-dark: block;
  color-scheme: dark;
}
