/* SourceText's design tokens: the colours, the type families, the shapes and the fonts every
   page uses.

   ONE FILE FOR ALL FOUR KINDS OF PAGE. The root site (`site.css`), the app (`styles.css`)
   and the generated passage pages (`passage.css`) each defined their own palette until
   2026-11-13, so the same brown was written four times and drifted. They now define no
   colours at all: each loads this file first and uses its names. Served at `/tokens.css`
   by both images (web-root/Dockerfile, web-corpus/Dockerfile), imported by the app through
   Vite (`src/main.tsx`), which bundles it and the fonts under hashed names.

   THE VALUES HERE ARE THE MASTER LOOK (2026-11-18): sourcetext.ai, the account, sign-up and
   the legal pages — deep navy, gold and the network's blue, Space Grotesk headings. Each
   corpus site wears its own look, which is data: its generated /corpus.css overrides the
   colours and shapes below by the same names (pipeline/identity_values.py, the `Look` rows;
   docs/corpus-sites.md, "A visual identity per site"). No stylesheet names a corpus or a
   look; they use these names, and a look changes what the names hold. What no look touches is
   THE METHOD: the claim colours and line styles, `--focus` and `--danger`. Every pair is proven
   at build time in both schemes, per look (pipeline/identity_contrast.py; `python -m
   pipeline.identity_contrast` prints the table), so a colour that fails cannot ship.

   Logical properties only, as everywhere else here. */

/* The fonts, self-hosted (Jack, 2026-11-13): loading them from Google's servers would send
   every visitor's address to Google, on a product whose readers' questions are Art. 9 data.
   Every face any look uses is declared here, once; a browser downloads a face only when a
   page sets text in it, so a site pays only for its own look's faces. Variable fonts where
   the family has one, so one file covers every weight. Each subset loads only when a page
   uses a character in its range: latin and latin-ext for the faces the interface uses, and
   the one script subset each original-language face exists for. SIL Open Font License 1.1
   throughout, the licence texts beside the files in fonts/ and linked from /credits; the
   files are fontsource's 5.3.0 builds. No stack names a system or licensed font, not even as
   a fallback: each ends in the generic family. */
@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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: "Source Serif 4";
  src: url("./fonts/source-serif-4-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-latin-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  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: "IBM Plex Sans";
  src: url("./fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
  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: "IBM Plex Sans";
  src: url("./fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  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: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* The master look's headings. */
@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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: "Space Grotesk";
  src: url("./fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* The rounded look's headings and controls. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("./fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  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: "Nunito Sans";
  src: url("./fonts/nunito-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* The flat look's one face, for headings, controls and the text of the law. */
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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: "Open Sans";
  src: url("./fonts/open-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  src: url("./fonts/open-sans-latin-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
  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: "Open Sans";
  src: url("./fonts/open-sans-latin-ext-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* The original languages, each in its script subset only. Polytonic Greek is Gentium Plus:
   Source Serif 4 has only monotonic Greek, so the New Testament's breathings and accents
   would fall back mid-word. */
@font-face {
  font-family: "Noto Serif Hebrew";
  src: url("./fonts/noto-serif-hebrew-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("./fonts/noto-naskh-arabic-arabic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Gentium Plus";
  src: url("./fonts/gentium-plus-greek-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Gentium Plus";
  src: url("./fonts/gentium-plus-greek-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1F00-1FFF;
}

/* Not colours, so they sit outside the two schemes (tests/test_stylesheets.py holds every
   property in the light block to have a dark twin). The type families, the shapes and the
   weights are a look's as much as its colours are, so a corpus's /corpus.css sets these too. */
:root {
  /* Each family has one job: `display` for headings, `serif` for what a reader reads (the
     text, answers), `sans` for what a reader operates, `mono` for references. */
  --font-display: "Space Grotesk", sans-serif;
  --font-serif: "Source Serif 4", serif;
  --font-sans: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-greek: "Gentium Plus", serif;
  --font-hebrew: "Noto Serif Hebrew", serif;
  --font-arabic: "Noto Naskh Arabic", serif;
  /* How a look sets its headings and its buttons: Space Grotesk 600 tracked tight here,
     Cormorant 600 on the rounded look, Open Sans Light on the flat one. */
  --weight-display: 600;
  --tracking-display: -0.015em;
  --weight-button: 600;
  /* Corners, by what they round: inside running text (a citation chip), a menu item or small
     well, a control (button, input, select), a container, a large surface, and a pill. A look
     that is square sets them all to 0; the rounded look makes every control a pill. */
  /* The master system v2 (2026-11-18): 3 px chips, 6 px controls, 10 px containers — crisp, no pills. */
  --radius-xs: 0.1875rem;
  --radius-sm: 0.375rem;
  --radius-control: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.625rem;
  --radius-pill: 999px;
  /* Only what floats over the page casts a shadow: menus and glance popovers. The flat look
     draws a 1 px outline instead. `light-dark()` is a colour, so it works inside a shadow. */
  --shadow-popover: 0 12px 32px light-dark(rgb(18 37 74 / 0.14), rgb(0 0 0 / 0.5)), 0 1px 3px light-dark(rgb(18 37 74 / 0.1), rgb(0 0 0 / 0.5));
  /* A card resting on the page: none here, where depth is borders and surface steps; the
     Bible's paper-on-paper lift (its design system's `shadow-card`). */
  --shadow-card: none;
  /* The bar's top strip in the accent (the flat look's 4 px; none here), and the thickness of
     the current tab's mark. */
  --header-strip: 0px;
  --tab-mark: 2px;
  --control-height: 2.5rem;
  /* The master's own motifs, as values a look switches off: the eyebrow's mono "machine
     voice" led by `// `, and the dot grid behind the hero. */
  --font-eyebrow: "IBM Plex Mono", monospace;
  --eyebrow-prefix: "// ";
  --hero-ground: radial-gradient(var(--rule) 1.2px, transparent 1.4px);
  /* The Allegro IT content width, 1320 px (Jack, 2026-10-16), in rem so it scales with the
     reader's font size. */
  --frame: 82.5rem;
  /* The header bar on every site: tall enough for the 36 px lockup. */
  --bar-height: 4rem;
  /* The spacing scale: the nine steps every SourceText design system names (space-1 … space-9),
     the master's 4–96 px here, each look its own (the Bible's airier, Danish law's tighter).
     Here rather than in the root's site.css since 2026-11-14, when the corpus sites' front
     pages began sharing the root's landing styles (landing.css). */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  /* The role names the stylesheets used before the scale had numbers, kept as steps of it so a
     look sets the nine steps and nothing else: inside a component, between components, between
     the sections of one page (space-7), between the bands of a front page. */
  --space-xs: var(--space-2);
  --space-s: var(--space-4);
  --space-m: var(--space-5);
  --space-l: var(--space-7);
  --space-xl: var(--space-8);
  /* The type scale: each design system's text styles by their names, as `font` shorthands
     (weight, size/leading, face) so a look sets a whole style at once — `font: var(--type-title-2)`.
     The master's values; each look sets its own (pipeline/identity_values.py). `reading` is an
     answer's body, `reading-lg` the text of the corpus on a passage page, `reading-sm` the Reader
     panel's; `ref` a reference, in mono everywhere but the Bible. */
  --type-display: 700 4.25rem/4.25rem var(--font-display);
  --type-title-1: 600 2.75rem/3rem var(--font-display);
  --type-title-2: 600 1.75rem/2.125rem var(--font-display);
  --type-title-3: 600 1.25rem/1.625rem var(--font-display);
  --type-reading-lg: 400 1.125rem/1.8125rem var(--font-serif);
  --type-reading: 400 1.125rem/1.8125rem var(--font-serif);
  --type-reading-sm: 400 1rem/1.625rem var(--font-serif);
  --type-ui: 400 0.9375rem/1.375rem var(--font-sans);
  --type-ui-strong: 600 0.9375rem/1.375rem var(--font-sans);
  --type-label: 500 0.8125rem/1.125rem var(--font-sans);
  --type-eyebrow: 500 0.75rem/1rem var(--font-eyebrow);
  --type-ref: 500 0.8125rem/1.125rem var(--font-mono);
  /* Letter-spacing has no place in the `font` shorthand, so the styles that track carry it here. */
  --tracking-hero: -0.035em;
  --tracking-title-1: -0.025em;
  --tracking-title-2: -0.015em;
  --tracking-title-3: -0.01em;
  --tracking-eyebrow: 0.08em;
  /* A reading measure: the widest line of text to read, an answer's or the corpus's own. */
  --measure: 42.5rem;
  /* The Reader panel's width beside the conversation, from the width where both fit. */
  --reader-width: 30rem;
  /* A corpus site's header lockup and its mark: the designer's drawings per scheme, and each
     one's width over its height so the header keeps its proportions (the Bible's book is
     wider than tall, the law tiles are square). The root has none; each corpus image's
     generated /corpus.css sets all six. */
  --corpus-logo-light: none;
  --corpus-logo-dark: none;
  --corpus-logo-ratio: 1;
  --corpus-mark-light: none;
  --corpus-mark-dark: none;
  --corpus-mark-ratio: 1;
}

/* THE SCHEME. Every colour below is `light-dark(light, dark)`, so each is written once and
   the browser picks by `color-scheme`: the device's setting by default, or the reader's
   choice, which /theme.js writes as `data-theme` on <html> before the first paint
   (web-shared/theme.js). Until 2026-11-13 the dark values sat in a
   `prefers-color-scheme` block, which no switch on the page can reach. */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

:root {
  /* THE MASTER LOOK. Dark is its natural ground: the logo's deep navy, with a cool white page
     in light. Raised regions (cards, menus, the Reader) and wells inside them. */
  --surface-page: light-dark(#f5f7fb, #0b1530);
  --surface-raised: light-dark(#ffffff, #121f42);
  --surface-sunken: light-dark(#e9eef6, #070f25);
  /* Hairlines that only separate, and a firmer line, 3:1 on every surface, for the borders
     that carry meaning: inputs, secondary buttons. */
  --rule: light-dark(#d5ddea, #22325c);
  /* A corpus's accent where the root shows it: the strip on its card. The build sets it on
     each card from the corpus's identity (pipeline/front_page.py dress_cards); this value,
     the rule's, is only ever seen on a card the build has not dressed. */
  --card-accent: light-dark(#d5ddea, #22325c);
  /* A corpus card's ground on the root's front page: the raised surface, unless the corpus's
     identity tints it (pipeline/front_page.py dress_cards; the master system v2's tints). */
  --card-tint: light-dark(#ffffff, #121f42);
  /* The label on a corpus card's accent button (the master system v2's on-corpus). */
  --on-corpus: light-dark(#ffffff, #0b1530);
  --rule-strong: light-dark(#74819b, #6c80ad);
  /* Text: the logo's navy and warm white, and a muted navy. */
  --ink: light-dark(#12254a, #f7f4ec);
  --ink-muted: light-dark(#4a5878, #a9b6d0);
  /* `--link` is what connects: links. `--accent` is a mark, never text — the current tab's
     underline, a rule, the hero's nodes; here both are the network's blue (`signal`). A
     corpus's look sets them to its own colour.
     `--accent-text` is the colour of what is MARKED and must be read: citations, counts —
     the logo's gold darkened until it holds 4.5:1. `--accent-soft` is their ground. */
  --link: light-dark(#2456b8, #8fb4ea);
  --accent: light-dark(#2456b8, #8fb4ea);
  --accent-text: light-dark(#7d5c12, #e8c26a);
  --accent-soft: light-dark(#f6eedb, #2a2c38);
  /* Gold where it must be read: counts (the systems' `gold-text`). The same as
     `--accent-text` here; apart on the Bible, whose marked text is the terracotta rubric while
     its counts stay the book's gold. The law looks set it to their accent. */
  --gold-text: light-dark(#7d5c12, #e8c26a);
  /* An eyebrow's colour, which each system picks for itself: muted ink here and on EU law (the
     master's `//` carries the colour instead), the Bible's gold-text, Danish law's red. */
  --ink-eyebrow: light-dark(#4a5878, #a9b6d0);
  /* The one action a view exists for: navy with white on light, gold with navy on dark. */
  --action: light-dark(#12254a, #e2b54e);
  --on-action: light-dark(#ffffff, #0b1530);
  /* The logo's gold as an ornament beside something that carries the meaning: a rule, a
     node. Never text. Light darkened in its hue from the designer's #c08d2b, which is under a
     mark's 3:1 on the page. */
  --brand-gold: light-dark(#ad7f27, #e2b54e);
  /* An open claim's colour is the look's muted ink (each design system: `claim-open` is
     `{ink-muted}`), so a look sets it with its ink. */
  --claim-open: light-dark(#4a5878, #a9b6d0);
  /* THE METHOD, the same on every site; no look touches these.
     The claim kinds' colours: the app's badge words (`.badge--text-asserted` …) and the
     front page's marks. Where a mark is a line, its style carries the kind as well — solid,
     dashed, dotted — so it never rests on colour alone. One mapping, here, for every page.
     Light asserted and inferred were darkened one step on 2026-11-17 (#1d6f8a, #b4531f), so
     they hold 4.5:1 on every site's sunken well. */
  --claim-asserted: light-dark(#1c6d87, #7cc4dc);
  --claim-inferred: light-dark(#a34b1c, #f0a06a);
  --claim-asserted-line: solid;
  --claim-inferred-line: dashed;
  --claim-open-line: dotted;
  --focus: light-dark(#1d6f8a, #7cc4dc);
  /* The only red: what cannot be taken back, always an outlined button with a verb label —
     never a fill, so it never reads as an action, even on a site whose action is red. */
  --danger: light-dark(#a4262c, #f2817a);
}

/* The flat look's 4 px strip in the accent across the top of every page (0 on the other
   looks): fixed over the window's top edge, so it spans the window and not only the frame,
   and takes no space — a border on <html> made the app's full-height layout 4 px taller than
   the window, and the page scrolled. It lies over the bar's top padding, never its content. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  block-size: var(--header-strip);
  background: var(--accent);
  pointer-events: none;
}

/* THE LOGO follows the same choice. A <picture>'s media query sees only the device's
   setting, never the reader's switch, so each header carries the light and the dark lockup
   (`.logo-light`, `.logo-dark`) and these rules show one. Here rather than in each page's
   stylesheet because every page has a header, and the four must not disagree. */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: inline; }
}

/* A CORPUS SITE'S LOCKUP (2026-11-18): the designer's outlined lockup — the corpus's mark, its
   name and SOURCETEXT — at 44 px, so the name stays legible, and on a phone the mark alone in
   a box of its own proportions. The same markup on every corpus site and in every header
   (engine/brand_lockup.py, web-corpus/src/siteHeader.tsx): two empty spans the site's
   /corpus.css paints, each drawing once per scheme, swapped by the reader's choice the way the
   logo is. Each box takes its drawing's proportions from the sheet, so the bar is laid out
   right before the image arrives. Here, beside the logo rules, for the reason those are. */
a:has(> .corpus-lockup) { align-items: center; text-decoration: none; }
.corpus-lockup { display: inline-flex; align-items: center; }
.corpus-lockup__logo,
.corpus-lockup__mark {
  flex: none;
  background: var(--corpus-logo-light) center / contain no-repeat;
}
.corpus-lockup__logo { block-size: 2.75rem; aspect-ratio: var(--corpus-logo-ratio); }
.corpus-lockup__mark {
  display: none;
  block-size: 2.25rem;
  aspect-ratio: var(--corpus-mark-ratio);
  background-image: var(--corpus-mark-light);
}
:root[data-theme="dark"] .corpus-lockup__logo { background-image: var(--corpus-logo-dark); }
:root[data-theme="dark"] .corpus-lockup__mark { background-image: var(--corpus-mark-dark); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .corpus-lockup__logo { background-image: var(--corpus-logo-dark); }
  :root:not([data-theme="light"]) .corpus-lockup__mark { background-image: var(--corpus-mark-dark); }
}
/* The phone width — engine/brand_lockup.py's PHONE_WIDTH — where the root's lockup becomes
   the monogram and a corpus's lockup its mark, so the mark and the Menu button share one row
   at 360 px. The monogram's width is its drawing's (259 × 248 at 2.25rem). */
@media (max-width: 40rem) {
  .site-bar .site-logo img { inline-size: 2.35rem; }
  .corpus-lockup__logo { display: none; }
  .corpus-lockup__mark { display: block; }
}
