/* Generated by scripts/build_library_index.py: the reader's tokens and family lockup, then the index's own rules. */
@font-face{font-family:"STIX Two Text";font-style:normal;font-display:swap;font-weight:400;src:url(/library/_index/fonts/stix-two-text-latin-400-normal.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:"STIX Two Text";font-style:normal;font-display:swap;font-weight:400;src:url(/library/_index/fonts/stix-two-text-latin-ext-400-normal.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:"STIX Two Text";font-style:normal;font-display:swap;font-weight:400;src:url(/library/_index/fonts/stix-two-text-greek-400-normal.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"STIX Two Text";font-style:normal;font-display:swap;font-weight:500;src:url(/library/_index/fonts/stix-two-text-latin-500-normal.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:"STIX Two Text";font-style:normal;font-display:swap;font-weight:500;src:url(/library/_index/fonts/stix-two-text-latin-ext-500-normal.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:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/library/_index/fonts/source-sans-3-latin-wght-normal.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:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url(/library/_index/fonts/source-sans-3-latin-ext-wght-normal.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}
/* Design tokens. DESIGN.md explains each group and the rules for using it.
   Colours were chosen in OKLCH and checked for WCAG contrast against the
   ground in both schemes. Night is the day theme with the lights off: the
   same hues, lightness inverted. The neutrals (ground, surfaces, rules and
   inks) are the family palette that Will Cook's websites share
   (https://github.com/wcook04/wcook04.github.io/blob/main/docs/family.md):
   warm paper and violet ink by day, violet ground and bone ink at night. */

/* A paper's first screen paints before its fonts land. These system faces, scaled to the same
   line widths, keep every line break when the fonts swap in. */
@font-face {
  font-family: "STIX fallback";
  src: local("Times New Roman"), local("Times");
  size-adjust: 105%;
}

@font-face {
  font-family: "Source Sans fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 93.2%;
}

:root {
  color-scheme: light;

  /* Three voices: mathematics and titles, controls, Lean. */
  --font-serif: "STIX Two Text", "STIX fallback", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3 Variable", "Source Sans 3", "Source Sans fallback", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale. Nothing a reader must read renders below --fs-sm on screen. */
  --fs-micro: 0.6875rem; /* 11px: small-caps kind words, never sentences */
  --fs-xs: 0.75rem; /* 12px */
  --fs-sm: 0.8125rem; /* 13px: metadata */
  --fs-ui: 0.875rem; /* 14px: controls */
  --fs-base: 1rem; /* 16px */
  --fs-card: 1.0625rem; /* 17px: a record's title on a card */
  --fs-read: 1.125rem; /* 18px: paper prose */
  --fs-h4: 1.0625rem;
  --fs-h3: 1.25rem; /* 20px */
  --fs-h2: 1.5rem; /* 24px */
  --fs-title: 1.625rem; /* 26px: the inspector's title */
  --fs-h1: 2.125rem; /* 34px */
  --fs-plate: clamp(1.75rem, 1.3rem + 1.1vw, 2.25rem); /* the goal's title */
  --fs-display: clamp(2rem, 1.35rem + 1.9vw, 3rem);
  --lh-tight: 1.16;
  --lh-snug: 1.32;
  --lh-ui: 1.45;
  --lh-read: 1.62;
  --tracking-caps: 0.075em;
  --measure: 40rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  --radius-s: 4px;
  --radius-card: 7px;
  --radius-m: 8px;
  --radius-l: 12px;

  /* Motion: each change says where something came from, then stops. */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-move: cubic-bezier(0.45, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --t-press: 120ms; /* press and hover feedback */
  --t-hover: 120ms;
  --t-state: 160ms; /* colour or label changes; account switches */
  --t-reveal: 180ms; /* a panel, popover or sheet appears */
  --t-panel: 200ms;
  --t-camera: 320ms; /* camera travel that accompanies a change */
  --t-unfold: 360ms; /* the map adds or removes records */
  --t-trace: 520ms; /* lighting a route, start to finish */

  /* Layout. */
  --topbar-h: 45px;
  --bar-h: 52px;
  --panel-w: clamp(440px, 34vw, 560px);
  --dock-h: 152px;
  --dock-bar-h: 44px;
  --target: 44px; /* primary touch targets */
  --reader-measure: 42.5rem; /* 680px */
  --reader-outline: 208px;
  --reader-inspector: 336px;
  --reader-gap: 32px;
  /* The reader's marks, each with one job (docs/reader-design.md). Aliases of the family's
     colours: a linked phrase's underline, the selection, the followed passage, and the
     inspector's type, which does not grow with the window. */
  --tie-rule: 1px;
  --tie-rest-line-opacity: 8%;
  --tie-rest-fill-opacity: 10%;
  --tie-rule-strong: 2px;
  --tie-end-gap: 3px;
  --sel-rule: 2px;
  --sel-ink: var(--lit);
  --sel-wash: var(--lit-wash);
  --sel-rail: 3px;
  --follow-ink: var(--ink-2);
  --evidence-fs: 1rem;
  --evidence-lh: 1.5;
  --evidence-measure: 38rem;
  --quote-fs: 1.0625rem;
  --code-fs: 0.875rem;
  --band-h: 56px;
  --held-bar-h: 56px;

  /* Day: the family's warm paper and violet ink. */
  --ground: #f8f0e2;
  --surface: #fffdf7;
  --raised: #fffefa;
  --sunk: #f1e7d4;
  --rule: #eaddc9;
  --rule-strong: #d9c7ae;
  --ink: #191520;
  --ink-2: #544d5d;
  --ink-3: #6d6473;
  /* The hairline that alone marks a quiet control (a ghost button, a field): 3:1 or
     more against every surface it sits on (WCAG 1.4.11). Decorative rules stay
     --rule and --rule-strong. Adapted from the Plectis site's --rule-control. */
  --rule-control: #938067;

  /* Amber is the reader's lamp: what you are attending to. Nothing else uses it.
     Deepened from #ac5b00 on the warm paper so amber words keep 4.5:1 on the
     ground and on sunk wells. */
  --lit: #a25200;
  --lit-wash: #fae4c7;
  --lit-line: #c9761a;
  --lit-glow: rgb(201 118 26 / 0);
  /* The wash under selected words: faint, so that the words keep their full contrast. */
  --pin-wash: color-mix(in oklab, var(--lit-line) 20%, transparent);
  --focus-ring: 2px solid var(--lit);

  /* A recorded failed outcome, and only that. */
  --fail: #a04034;

  /* Connectors. Each relation type has its own colour, at rest and lit, and its
     own pattern; every rest colour keeps at least 3:1 against the ground.
     A lit support route is amber (attention); lit assumptions and Lean
     correspondences keep their own hue, brightened. */
  --rel-supports: #7c858f;
  --rel-supports-lit: #b8650c;
  --rel-assumes: #8a6cc8;
  --rel-assumes-lit: #6d3fd4;
  --rel-formalizes: #3f8aa0;
  --rel-formalizes-lit: #0b6f86;
  --edge-rest: var(--rel-supports);
  --edge-strong: #47505b;
  --edge-lit: var(--rel-supports-lit);
  --edge-casing: var(--ground);
  --edge-w: 1.5px;
  --edge-w-lit: 2.25px;

  /* Cards on the map. */
  --card: var(--raised);
  --card-border: #d4c7b4;
  /* What the Lean holds: a soft green as a blueprint has it, and much paler for a part.
     Ink keeps 7:1 on both in each scheme, --ink-3 keeps 3.5:1, and the states stay apart. */
  --lean-fill: #cde4c8;
  --lean-fill-part: #e6f1dc;
  --lean-fill-line: #a3c79f;
  --card-shadow: 0 1px 0 rgb(25 21 32 / 0.03), 0 2px 6px -2px rgb(25 21 32 / 0.08);
  --card-shadow-lift: 0 1px 0 rgb(25 21 32 / 0.04), 0 10px 24px -10px rgb(25 21 32 / 0.22);
  --grid-dot: rgb(25 21 32 / 0.085);

  /* Regions of the argument: marks, then territories. */
  --region-support: #396791;
  --region-scalar: #30715d;
  --region-circuit: #7e517a;
  --field-support: #e0ebf5;
  --field-scalar: #deeee8;
  --field-circuit: #f1e5ef;
  --formal: #46496d;

  /* Where a step comes from: validated colour-blind safe as a set, both schemes.
     A small named square at reading size; the fill of a record's mark in overview. */
  --src-1: #2a78d6;
  --src-2: #e87ba4;
  --src-3: #008300;
  --src-0: #8a929b;
  --mark-mix: 64%;

  --shadow-sheet: 0 1px 0 rgb(25 21 32 / 0.04), 0 8px 28px -12px rgb(25 21 32 / 0.22);
  --shadow-panel: -1px 0 0 var(--rule), -18px 0 40px -28px rgb(25 21 32 / 0.28);
  --scrim: rgb(248 240 226 / 0.86);

  /* The family's shared parts (styles/family.css) read these names. Links on this
     site are ink, so a family link under the pointer turns ink; keyboard focus is
     amber here as everywhere on the site. A held film frame takes the quiet ink. */
  --fam-page: var(--ground);
  --fam-surface: var(--surface);
  --fam-ink: var(--ink);
  --fam-ink-soft: var(--ink-2);
  --fam-muted: var(--ink-2);
  --fam-faint: var(--ink-3);
  --fam-rule: var(--rule);
  --fam-rule-strong: var(--rule-strong);
  --fam-accent: var(--ink);
  --fam-film-ink: var(--ink-2);
  --fam-serif: var(--font-serif);
  --fam-sans: var(--font-sans);
}

:focus-visible {
  --fam-accent: var(--lit);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #1c1526;
  --surface: #272132;
  --raised: #2f2839;
  --sunk: #150f1e;
  --rule: #363040;
  --rule-strong: #484251;
  --ink: #f2e6d4;
  --ink-2: #bcb8c6;
  --ink-3: #a6a2b1;
  --rule-control: #787383;
  --lit: #fab250;
  --lit-wash: #3d290e;
  --lit-line: #f3a43a;
  --lit-glow: rgb(243 164 58 / 0.28);
  --fail: #ea8470;
  --pin-wash: color-mix(in oklab, var(--lit-line) 28%, transparent);
  --rel-supports: #6a7581;
  --rel-supports-lit: #f3a43a;
  --rel-assumes: #7d68b8;
  --rel-assumes-lit: #b49bff;
  --rel-formalizes: #3f8698;
  --rel-formalizes-lit: #55c7df;
  --edge-strong: #a7b0ba;
  --card-border: #413b4b;
  --lean-fill: #2f4b3b;
  --lean-fill-part: #32393b;
  --lean-fill-line: #4f7559;
  --card-shadow: 0 1px 0 rgb(0 0 0 / 0.25), 0 2px 8px -2px rgb(0 0 0 / 0.45);
  --card-shadow-lift: 0 1px 0 rgb(0 0 0 / 0.3), 0 14px 30px -12px rgb(0 0 0 / 0.75);
  --grid-dot: rgb(242 230 212 / 0.06);
  --region-support: #80b0de;
  --region-scalar: #79bba4;
  --region-circuit: #ca98c5;
  --field-support: #101d29;
  --field-scalar: #0d201a;
  --field-circuit: #241722;
  --formal: #a9aed7;
  --src-1: #3987e5;
  --src-2: #d55181;
  --src-3: #008300;
  --src-0: #6b737c;
  --mark-mix: 60%;
  --shadow-sheet: 0 1px 0 rgb(0 0 0 / 0.3), 0 12px 32px -14px rgb(0 0 0 / 0.7);
  --shadow-panel: -1px 0 0 var(--rule), -24px 0 48px -30px rgb(0 0 0 / 0.8);
  --scrim: rgb(28 21 38 / 0.86);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #1c1526;
    --surface: #272132;
    --raised: #2f2839;
    --sunk: #150f1e;
    --rule: #363040;
    --rule-strong: #484251;
    --ink: #f2e6d4;
    --ink-2: #bcb8c6;
    --ink-3: #a6a2b1;
    --rule-control: #787383;
    --lit: #fab250;
    --lit-wash: #3d290e;
    --lit-line: #f3a43a;
    --lit-glow: rgb(243 164 58 / 0.28);
    --fail: #ea8470;
    --pin-wash: color-mix(in oklab, var(--lit-line) 28%, transparent);
    --rel-supports: #6a7581;
    --rel-supports-lit: #f3a43a;
    --rel-assumes: #7d68b8;
    --rel-assumes-lit: #b49bff;
    --rel-formalizes: #3f8698;
    --rel-formalizes-lit: #55c7df;
    --edge-strong: #a7b0ba;
    --card-border: #413b4b;
    --lean-fill: #2f4b3b;
    --lean-fill-part: #32393b;
    --lean-fill-line: #4f7559;
    --card-shadow: 0 1px 0 rgb(0 0 0 / 0.25), 0 2px 8px -2px rgb(0 0 0 / 0.45);
    --card-shadow-lift: 0 1px 0 rgb(0 0 0 / 0.3), 0 14px 30px -12px rgb(0 0 0 / 0.75);
    --grid-dot: rgb(242 230 212 / 0.06);
    --region-support: #80b0de;
    --region-scalar: #79bba4;
    --region-circuit: #ca98c5;
    --field-support: #101d29;
    --field-scalar: #0d201a;
    --field-circuit: #241722;
    --formal: #a9aed7;
    --src-1: #3987e5;
    --src-2: #d55181;
    --src-3: #008300;
    --src-0: #6b737c;
    --mark-mix: 60%;
    --shadow-sheet: 0 1px 0 rgb(0 0 0 / 0.3), 0 12px 32px -14px rgb(0 0 0 / 0.7);
    --shadow-panel: -1px 0 0 var(--rule), -24px 0 48px -30px rgb(0 0 0 / 0.8);
    --scrim: rgb(28 21 38 / 0.86);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* One quiet scrollbar for every scroller, day and night. An element that wants none says so. */
* {
  scrollbar-width: thin;
}

html {
  scrollbar-color: var(--rule-strong) transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-ui);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Suppresses transitions for the frame in which the scheme flips. */
.no-transitions *,
.no-transitions *::before,
.no-transitions *::after {
  transition: none !important;
  animation: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: currentColor;
}

button {
  font: inherit;
  color: inherit;
}

:where(a, button, [tabindex], input, select, summary):where(:focus-visible) {
  outline: 2px solid var(--lit);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--lit-wash);
  color: var(--ink);
}

/* .sr-only is the family markup's name for the same thing (docs/family.md). */
.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--radius-s);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

/* A quiet control: text with a hairline, never a filled slab. */
.control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--rule-control);
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-ui);
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--t-press) var(--ease-out),
    border-color var(--t-press) var(--ease-out),
    transform var(--t-press) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.control:hover {
  border-color: var(--ink-3);
  background: color-mix(in oklab, var(--ink) 4%, transparent);
}

.control:active {
  transform: scale(0.97);
}

.control[aria-pressed="true"],
.control[aria-current="page"],
.control[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ground);
}

.control--plain {
  border-color: transparent;
}

.control--plain:hover {
  border-color: transparent;
}

.kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 1px 5px;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  line-height: 1.3;
  color: var(--ink-2);
  text-align: center;
}

.lean {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-variant-ligatures: none;
}

/* Region identity: a dot in the region's ink, always beside a word. */
[data-region="support"] {
  --region: var(--region-support);
  --field: var(--field-support);
}
[data-region="scalar"] {
  --region: var(--region-scalar);
  --field: var(--field-scalar);
}
[data-region="circuit"] {
  --region: var(--region-circuit);
  --field: var(--field-circuit);
}

/* Shared vocabulary. One visual channel per meaning; DESIGN.md has the rules. */

/* A record's kind, in words: CLAIM, ASSUMPTION, LEAN DECLARATION, MAIN RESULT. */
.caps {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink-3);
}

/* A source colour, for the strips and the front page figure. */
[data-slot="1"] {
  --cat: var(--src-1);
}
[data-slot="2"] {
  --cat: var(--src-2);
}
[data-slot="3"] {
  --cat: var(--src-3);
}

/* How an account treats a record: a shape and a word, never colour alone.
   own: a passage of its own · relied: used without a passage · outside: not in its selection. */
.cov-mark {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  flex: none;
  border-radius: 50%;
  background: var(--ink-2);
}
.cov-mark--relied {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}
.cov-mark--outside {
  border-radius: 1px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink-3);
  background-image: linear-gradient(var(--ink-3), var(--ink-3));
  background-size: 60% 1.5px;
  background-position: center;
  background-repeat: no-repeat;
}

/* A relation's line pattern, for keys and lists. Same patterns as the map. */
.rel-sample {
  display: inline-block;
  width: 26px;
  height: 0;
  flex: none;
  vertical-align: middle;
  border-top: 2px solid var(--rel-supports);
}
.rel-sample--assumes {
  border-top-style: dotted;
  border-top-width: 2.5px;
  border-top-color: var(--rel-assumes);
}
.rel-sample--formalizes {
  border-top-style: dashed;
  border-top-color: var(--rel-formalizes);
}
.rel-sample--lit {
  border-top-color: var(--rel-supports-lit);
}
.rel-sample--lit.rel-sample--assumes {
  border-top-color: var(--rel-assumes-lit);
}
.rel-sample--lit.rel-sample--formalizes {
  border-top-color: var(--rel-formalizes-lit);
}

/* A recorded outcome, in its own words. Only a recorded failure is coloured. */
.outcome {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.outcome--failed {
  color: var(--fail);
  font-weight: 600;
}
.outcome--passed {
  color: var(--ink);
  font-weight: 600;
}
.outcome--unavailable,
.outcome--not_run {
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

.faint {
  color: var(--ink-3);
}

.num {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* Will Cook's websites: the parts every site shares.

   One stylesheet for the three things that make the sites read as one family:
   the header's ladder up to the home page, the film slot, and the footer's
   list of sister sites. Each site copies this file unchanged and maps its own
   colour and type tokens onto the --fam-* names below (see docs/family.md).

   Adapted, not new. Every rule here comes from the Plectis site's accepted
   components (ai_workflow sites/microcosm/assets/style.css and film-map.css,
   28 October 2026):
     .fam-ladder          <- .brand-ladder, .brand-ladder__up, .brand-ladder__sep
     .film-slot__frame    <- .film-poster
     .film-slot__play     <- .film-poster .home-video__play (the plum chip)
     .film-slot__time     <- .film-poster .home-video__duration (solid chip)
     .film-slot--pending  <- .film-poster.film-pending (registration marks)
     .film-slot__title    <- .film__title and its outbound arrow
   Changes: the selectors are namespaced so they cannot collide with a site's
   own classes, colours read --fam-* tokens with the Plectis values as the
   fallback, and the frame's hover follows the film map's rule that a
   recording of a real screen never zooms. */

:where(.fam-root, :root) {
  --fam-page: var(--page, #f8f0e2);
  --fam-surface: var(--surface, #fffdf7);
  --fam-ink: var(--ink, #191520);
  --fam-ink-soft: var(--ink-soft, #342d3d);
  --fam-muted: var(--muted, #544d5d);
  --fam-faint: var(--faint, #6d6473);
  --fam-rule: var(--rule, #eaddc9);
  --fam-rule-strong: var(--rule-strong, #d9c7ae);
  --fam-accent: var(--accent, #29527b);
  --fam-serif: var(--font-serif, "Plectis Serif", "STIX Two Text", Georgia, serif);
  --fam-sans: var(--font-sans, "Plectis Sans", "Source Sans 3", system-ui, sans-serif);
  --fam-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* ---------------------------------------------------------------- ladder
   The ladder names the site this one hangs under: "Will Cook / <site>". The
   parent rung is quiet sans; the site's own wordmark keeps its own style.
   Baseline alignment, not centre, so the small parent text sits on the
   wordmark's line rather than floating at a mark's optical middle. */
.fam-ladder { display: inline-flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.fam-ladder__up {
  font-family: var(--fam-sans); font-size: 0.84rem; font-weight: 400;
  color: var(--fam-muted); white-space: nowrap; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--fam-ease), border-color 160ms var(--fam-ease);
}
.fam-ladder__up:hover { color: var(--fam-accent); border-bottom-color: var(--fam-accent); text-decoration: none; }
.fam-ladder__up:focus-visible { outline: 2px solid var(--fam-accent); outline-offset: 2px; border-radius: 2px; }
.fam-ladder__sep { color: var(--fam-faint); font-size: 0.95rem; user-select: none; }

/* ---------------------------------------------------------------- lockup
   The start of every site's header: the Plectis plait, which opens the home
   page (every website and film), a short upright rule, then this site's own
   mark and name, which open this site's front page. Two links, two jobs; the
   rule says they are two things. The plait is an image (assets/plectis.svg,
   copied beside the site), so it keeps its own day and night palettes; a site
   mark is inline SVG drawn in the site's inks (--fam-mark-warm, --fam-mark-cool,
   --fam-ink), so it follows the page's theme switch. */
.fam-lockup { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.fam-lockup__home {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; flex: none;
  height: 2.1rem; padding: 0 0.55rem 0 0.25rem; margin-left: -0.25rem; border-radius: 9px;
  color: var(--fam-ink); text-decoration: none;
  transition: background-color 160ms var(--fam-ease);
}
.fam-lockup__home img { display: block; flex: none; width: 1.6rem; height: 1.6rem; }
/* "Will Cook" beside the plait (19 November 2026): every site names whose it
   is, as the home page's own header does. Sans, heavier than the site's serif
   name, so the two links read as owner then site. */
.fam-lockup__owner {
  font-family: var(--fam-sans); font-size: 1.02rem; font-weight: 650; line-height: 1;
  letter-spacing: 0.005em; white-space: nowrap; color: var(--fam-ink);
}
@media (hover: hover) and (pointer: fine) {
  .fam-lockup__home:hover { background: color-mix(in srgb, var(--fam-ink) 8%, transparent); text-decoration: none; }
}
.fam-lockup__home:focus-visible { outline: 2px solid var(--fam-accent); outline-offset: 2px; }
.fam-lockup__rule { flex: none; width: 1px; height: 1.35rem; background: var(--fam-rule-strong); }
.fam-lockup__site {
  display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0;
  color: var(--fam-ink); text-decoration: none;
}
.fam-lockup__site:hover .fam-lockup__name { text-decoration: underline; text-decoration-color: var(--fam-rule-strong); text-underline-offset: 0.18em; }
.fam-lockup__site:focus-visible { outline: 2px solid var(--fam-accent); outline-offset: 3px; border-radius: 4px; }
.fam-lockup__name {
  font-family: var(--fam-serif); font-size: 1.18rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.008em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fam-mark { display: block; flex: none; width: 1.5rem; height: 1.5rem; overflow: visible; }
.fam-mark * { vector-effect: non-scaling-stroke; }
.fam-mark__ink { fill: none; stroke: var(--fam-ink); stroke-width: 1.8; stroke-linecap: round; }
.fam-mark__cool { fill: none; stroke: var(--fam-mark-cool, var(--fam-accent)); stroke-width: 1.8; stroke-linecap: round; }
.fam-mark__warm { fill: none; stroke: var(--fam-mark-warm, var(--fam-ink)); stroke-width: 1.4; }
.fam-mark__warm-fill { fill: var(--fam-mark-warm, var(--fam-ink)); }
.fam-mark__cool-fill { fill: var(--fam-mark-cool, var(--fam-accent)); }
.fam-mark__page-fill { fill: var(--fam-page); }
/* A phone keeps both links and both names; the site's mark and a long site
   name give way first. */
@media (max-width: 520px) { .fam-lockup__site .fam-mark { display: none; } }
@media (max-width: 420px) { .fam-lockup { gap: 0.5rem; } .fam-lockup__name { font-size: 1.05rem; } .fam-lockup__owner { font-size: 0.95rem; } }
@media (forced-colors: active) { .fam-lockup__rule { background: CanvasText; } }

/* ---------------------------------------------------------------- film slot
   A film's place on a page. A released film shows its still, the play chip
   and its running time; the picture and the title open the same video, so
   the title is the one link in the Tab order and the picture is hidden from
   assistive technology. A film in preparation holds its place with the
   site's registration marks and its short name, and has no link. */
.film-slot { margin: 0; min-width: 0; }
.film-slot__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px; background: #0d0a12;
  box-shadow: 0 0 0 1px var(--fam-rule-strong);
  /* The play mark is the film's control, not part of its picture, so it keeps
     one look over every still and in both themes: a chip in plum ink, a cream
     mark, a hairline and a short lift. */
  --play: 46px;
  --film-chip: rgba(18, 12, 24, 0.76);
  --film-chip-solid: #15101b;
  --film-mark: #f8f0e2;
  transition: box-shadow 160ms var(--fam-ease);
}
.film-slot__frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-slot__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: var(--play); height: var(--play); border-radius: 50%;
  background: var(--film-chip);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(248, 240, 226, 0.3), 0 6px 16px -8px rgba(8, 5, 12, 0.8);
}
.film-slot__play::after {
  content: ""; position: absolute; left: 53.5%; top: 50%; translate: -50% -50%;
  border-left: calc(var(--play) * 0.27) solid var(--film-mark);
  border-top: calc(var(--play) * 0.165) solid transparent;
  border-bottom: calc(var(--play) * 0.165) solid transparent;
}
/* Solid, unlike the mark: it carries words, and through a translucent fill a
   recording's own text showed through it. */
.film-slot__time {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  padding: 0.14rem 0.45rem; border-radius: 6px;
  font-family: var(--fam-sans); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--film-chip-solid); color: var(--film-mark);
  box-shadow: inset 0 0 0 1px rgba(248, 240, 226, 0.14);
}
.film-slot--small .film-slot__frame { --play: 34px; }
.film-slot--small .film-slot__time { right: 0.4rem; bottom: 0.4rem; padding: 0.05rem 0.35rem; font-size: 0.7rem; }
.film-slot--large .film-slot__frame { --play: 56px; }

/* The title is the link and carries the focus ring; the picture echoes it
   quietly, its hairline taking the accent. */
/* Caption rules carry .film-slot twice over a bare class, so a host page's
   paragraph margins (.docs-main p, say) cannot pull the caption apart. */
.film-slot .film-slot__caption { margin-top: 0.8rem; display: grid; gap: 0.3rem; }
.film-slot .film-slot__title {
  margin: 0; font-family: var(--fam-serif); font-weight: 400; color: var(--fam-ink);
  font-size: 1.12rem; line-height: 1.22; letter-spacing: -0.005em; text-wrap: balance;
}
.film-slot--large .film-slot__title, .film-slot.film-slot--large .film-slot__title { font-size: clamp(1.3rem, 1.02rem + 0.62vw, 1.6rem); line-height: 1.16; }
.film-slot.film-slot--small .film-slot__title { font-size: 1rem; }
.film-slot__title a { color: inherit; text-decoration: none; display: inline-block; }
.film-slot__title a::after {
  content: "\00a0\2197"; color: var(--fam-faint); font-family: var(--fam-sans); font-size: 0.62em;
}
.film-slot__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.film-slot__title a:focus-visible { outline: 2px solid var(--fam-accent); outline-offset: 3px; border-radius: 2px; }
.film-slot:has(.film-slot__title a:hover) .film-slot__frame,
.film-slot:has(.film-slot__title a:focus-visible) .film-slot__frame { box-shadow: 0 0 0 1px var(--fam-accent); }
@media (hover: hover) and (pointer: fine) {
  a.film-slot__frame:hover { box-shadow: 0 0 0 1px var(--fam-accent); }
}
.film-slot .film-slot__meta {
  margin: 0; font-family: var(--fam-sans); font-size: 0.84rem; line-height: 1.4;
  color: var(--fam-faint); font-variant-numeric: tabular-nums;
}
.film-slot .film-slot__text {
  margin: 0.1rem 0 0; max-width: 60ch; font-size: 0.95rem; line-height: 1.55;
  color: var(--fam-ink-soft); text-wrap: pretty;
}

/* A film in preparation: the frame held for it wears the site's registration
   marks at two corners (in print they mark where a picture will be laid
   down), a short rule in the site's ink along the top, the series name, the
   film's short name in the serif and its status. No image bytes. */
.film-slot__frame--pending {
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.35em;
  padding: 7% 8% 6%; color: var(--fam-ink); text-decoration: none;
  background:
    linear-gradient(var(--fam-film-ink, var(--fam-accent)), var(--fam-film-ink, var(--fam-accent))) 8% 0 / 30% 2px no-repeat,
    color-mix(in srgb, var(--fam-film-ink, var(--fam-accent)) 7%, color-mix(in srgb, var(--fam-surface) 70%, var(--fam-page)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fam-ink) 12%, transparent);
  border-radius: 8px;
}
.film-slot__frame--pending::before, .film-slot__frame--pending::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border: 0 solid color-mix(in srgb, var(--fam-ink) 40%, transparent);
  transition: transform 160ms var(--fam-ease), border-color 160ms var(--fam-ease);
}
.film-slot__frame--pending::before { right: 7px; top: 7px; border-width: 1px 1px 0 0; }
.film-slot__frame--pending::after { left: 7px; bottom: 7px; border-width: 0 0 1px 1px; }
.film-slot__frame--pending > span { display: block; min-width: 0; }
.film-slot__series, .film-slot__status {
  font-family: var(--fam-sans); font-size: 0.82rem; line-height: 1.3;
}
.film-slot__series { color: var(--fam-muted); }
.film-slot__status { color: var(--fam-film-ink, var(--fam-accent)); }
.film-slot__name {
  font-family: var(--fam-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 0.8rem + 1.2vw, 1.75rem); color: var(--fam-ink);
  text-wrap: balance; overflow-wrap: anywhere;
}
.film-slot--small .film-slot__name { font-size: 1rem; }
.film-slot--large .film-slot__name { font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
/* A held frame answers the pointer the way a print's registration marks close
   on the place for its picture: the two marks step in and take the ink. */
.film-slot:hover .film-slot__frame--pending::before { transform: translate(-3px, 3px); border-color: var(--fam-film-ink, var(--fam-accent)); }
.film-slot:hover .film-slot__frame--pending::after { transform: translate(3px, -3px); border-color: var(--fam-film-ink, var(--fam-accent)); }

/* Inline: a film about the apparatus, on a page whose subject is something
   else, is a small still beside its title rather than a frame of its own. */
.film-slot--inline { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: 0.4rem 1rem; align-items: start; }
.film-slot--inline .film-slot__frame { --play: 30px; border-radius: 7px; }
.film-slot--inline .film-slot__time { right: 0.35rem; bottom: 0.35rem; padding: 0.02rem 0.32rem; font-size: 0.68rem; }
/* Small and inline held frames carry the film's name alone, as the Plectis
   film map's small frames do; the caption beside them says "in preparation". */
.film-slot--small .film-slot__frame--pending, .film-slot--inline .film-slot__frame--pending { justify-content: center; padding: 6% 9%; }
.film-slot--small .film-slot__series, .film-slot--small .film-slot__status,
.film-slot--inline .film-slot__series, .film-slot--inline .film-slot__status { display: none; }
.film-slot.film-slot--inline .film-slot__name { font-size: 0.86rem; line-height: 1.15; }
.film-slot.film-slot--inline .film-slot__caption { margin-top: 0; }
.film-slot.film-slot--inline .film-slot__title { font-size: 1.02rem; }
.film-slot.film-slot--inline .film-slot__text { font-size: 0.9rem; }
/* On a phone the inline slot stacks: beside a small still the description
   became a column a dozen lines tall. */
@media (max-width: 40rem) {
  .film-slot--inline { display: block; }
  .film-slot--inline .film-slot__frame { max-width: 22rem; --play: 40px; }
  .film-slot.film-slot--inline .film-slot__caption { margin-top: 0.7rem; }
  .film-slot.film-slot--inline .film-slot__name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fam-ladder__up, .film-slot__frame, .film-slot__frame--pending::before, .film-slot__frame--pending::after { transition: none; }
}
/* Readers who ask for less transparency or more contrast get opaque chips. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root .film-slot__play, :root .film-slot__time {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--film-chip-solid);
  }
}
@media (forced-colors: active) {
  .film-slot__frame, .film-slot__frame--pending { border: 1px solid CanvasText; }
  .film-slot__play { border: 1px solid CanvasText; }
}

/* ---------------------------------------------------------------- sister sites
   The footer's list of the other websites, the same on every site. The site
   being read is marked, not linked. */
.fam-sites { font-family: var(--fam-sans); font-size: 0.9rem; line-height: 1.5; color: var(--fam-muted); }
.fam-sites__title { margin: 0 0 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--fam-ink); }
.fam-sites__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.fam-sites__list a { color: var(--fam-ink); text-decoration: none; border-bottom: 1px solid var(--fam-rule-strong); }
.fam-sites__list a:hover { color: var(--fam-accent); border-bottom-color: var(--fam-accent); }
.fam-sites__list a:focus-visible { outline: 2px solid var(--fam-accent); outline-offset: 2px; border-radius: 2px; }
.fam-sites__list [aria-current="page"] { color: var(--fam-muted); }

/* The library index's own rules. The tokens (tokens.css), the reader's base (base.css) and the
   family lockup (family.css) come before this file in the built stylesheet, so the index wears
   the reader's header, type and colours in both schemes. */

html,
body {
  height: auto;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:root {
  --wrap: 76rem;
  --gutter: var(--space-5);
}

.wrap,
.topbar__inner,
main > section,
.foot {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ header (the reader's bar) */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 100%;
}

.topbar__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.scheme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t-press) var(--ease-out), transform var(--t-press) var(--ease-out);
}

.scheme-toggle:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

.scheme-toggle:active {
  transform: scale(0.97);
}

.scheme-toggle__sun {
  display: none;
}

:root[data-theme="dark"] .scheme-toggle__sun {
  display: block;
}

:root[data-theme="dark"] .scheme-toggle__moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scheme-toggle__sun {
    display: block;
  }
  :root:not([data-theme="light"]) .scheme-toggle__moon {
    display: none;
  }
}

/* ------------------------------------------------------------------ introduction and search */

main {
  flex: 1;
  outline: none;
}

.intro {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}

.notice {
  margin-bottom: var(--space-4);
  color: var(--ink-2);
  font-size: var(--fs-ui);
}

.intro h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
}

.lede {
  max-width: 44rem;
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.search {
  max-width: 48rem;
  margin-top: var(--space-5);
}

.search__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--ink);
}

/* What the search covers, with its denominators. */
.search__scope {
  margin: 0 0 var(--space-2);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.search__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 52px;
  padding: 0 var(--space-4);
  border: 1px solid var(--rule-control);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color var(--t-hover) var(--ease-out);
}

.search__field:focus-within {
  border-color: var(--lit);
  box-shadow: 0 0 0 1px var(--lit);
}

.search__field svg {
  flex: none;
}

.search__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  outline: none;
}

.search__field input::placeholder {
  color: var(--ink-3);
}

/* The field draws the focus ring for its input (amber border and ring, :focus-within), so the
   input's own outline would double it. */
.search__field input:focus-visible {
  outline: none;
}

.search__field input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search__status:empty {
  display: none;
}

.search__status {
  margin-top: var(--space-2);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.caveat {
  max-width: 48rem;
  margin-top: var(--space-3);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

/* Results: grouped by paper, in the order of the list below. */
.results {
  margin-top: var(--space-1);
  border-top: 1px solid var(--rule);
}

.results__paper {
  padding: var(--space-4) 0 var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.results__head a {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.results__head a:hover {
  text-decoration: underline;
}

.results__where {
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.results__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.results__list a {
  display: block;
  padding: 6px var(--space-2);
  margin-inline: calc(-1 * var(--space-2));
  border-radius: var(--radius-s);
  text-decoration: none;
}

.results__list a:hover {
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}

.results__label {
  display: block;
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: 600;
}

.results__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.45;
}

.results__lean {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.results__plain {
  display: block;
  color: var(--ink-2);
  font-size: var(--fs-ui);
}

.results__kind {
  margin: var(--space-2) 0 2px;
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

.results__more {
  margin-top: var(--space-1);
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: var(--fs-ui);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.results__more:hover {
  color: var(--ink);
}

mark {
  background: var(--lit-wash);
  color: inherit;
  border-radius: 2px;
}

/* ------------------------------------------------------------------ provenance colours
   Who produced or supported the result. Every entry prints its provenance in words; the colour
   repeats the label so a skimming eye can group entries, and is never the only signal. Each hue
   keeps 3:1 or more against the ground and the card surface in its scheme (WCAG 1.4.11). */

:root {
  --prov-anthropic: #b9561f;
  --prov-openai: #5a5560;
  --prov-google: #2c66c4;
  --prov-academic: #2b7455;
  --prov-community: #7350bb;
  --prov-will: #94396a;
}

:root[data-theme="dark"] {
  --prov-anthropic: #ec8f5a;
  --prov-openai: #ece5dc;
  --prov-google: #7fa9f2;
  --prov-academic: #6cc39b;
  --prov-community: #b79ff2;
  --prov-will: #e594bd;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --prov-anthropic: #ec8f5a;
    --prov-openai: #ece5dc;
    --prov-google: #7fa9f2;
    --prov-academic: #6cc39b;
    --prov-community: #b79ff2;
    --prov-will: #e594bd;
  }
}

.prov-anthropic { --prov: var(--prov-anthropic); }
.prov-openai { --prov: var(--prov-openai); }
.prov-google { --prov: var(--prov-google); }
.prov-academic { --prov: var(--prov-academic); }
.prov-community { --prov: var(--prov-community); }
.prov-will { --prov: var(--prov-will); }

/* ------------------------------------------------------------------ masthead wordmark */

.lib-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--target);
  color: var(--ink);
  text-decoration: none;
}

.lib-mark img {
  flex: none;
}

.lib-mark .fam-lockup__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
}

/* ------------------------------------------------------------------ first screen */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) clamp(32px, 4vw, 64px);
  align-items: start;
  padding-bottom: var(--space-6);
}

@media (min-width: 64em) {
  .intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-ui);
}

.jump a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-control);
}

.jump a:hover {
  border-bottom-color: var(--ink);
}

/* The funnel video: the family's film slot (styles/family.css), at the width of the column. */
.intro__film {
  margin: 0;
}

.intro__film .film-slot__frame {
  display: block;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-sheet);
}

.intro__film img {
  display: block;
  width: 100%;
  height: auto;
}

.intro__film .film-slot__caption {
  margin-top: var(--space-3);
}

.intro__film-kicker {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.intro__film .film-slot__title {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.intro__film .film-slot__title a {
  color: var(--ink);
}

.intro__film-note {
  margin-top: var(--space-2);
  color: var(--ink-2);
  font-size: var(--fs-ui);
  line-height: 1.5;
}

.affiliation {
  max-width: 44rem;
  margin-top: var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--rule-strong);
  color: var(--ink-2);
  font-size: var(--fs-ui);
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ the label key */

.key {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
}

.key__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.key__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4) var(--space-7);
}

@media (min-width: 64em) {
  .key__cols {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  }
}

.key__head {
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-weight: 600;
}

.key__prov {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.key__prov li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.key__versions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1) var(--space-5);
  margin: 0;
}

@media (min-width: 40em) {
  .key__versions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.key__row dt {
  display: inline;
  color: var(--ink);
  font-weight: 600;
}

.key__row dt::after {
  content: ": ";
}

.key__row dd {
  display: inline;
  margin: 0;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ shelves */

.shelf {
  padding-top: var(--space-7);
  scroll-margin-top: calc(var(--topbar-h) + 8px);
}

.shelf__head {
  max-width: 48rem;
  margin-bottom: var(--space-5);
}

.shelf__head h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.008em;
}

.shelf__head p {
  margin-top: var(--space-2);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}

.shelf__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56em) {
  .shelf__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shelf--own:last-of-type {
  padding-bottom: var(--space-7);
}

/* ------------------------------------------------------------------ an entry */

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 2px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  background: var(--surface);
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}

/* The provenance stripe: the colour of the label printed at the top of the entry. */
.entry::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 4px;
  border-radius: var(--radius-l) 0 0 var(--radius-l);
  background: var(--prov, var(--rule-strong));
}

.entry--lead {
  padding: var(--space-6) var(--space-6) var(--space-6) calc(var(--space-6) + 2px);
  border-color: var(--rule-strong);
  background: var(--raised);
  box-shadow: var(--card-shadow);
}

.entry--lead::before {
  width: 6px;
}

.entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
}

.tag--prov {
  border-color: color-mix(in oklab, var(--prov) 55%, var(--rule));
  color: var(--ink);
}

.tag__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--prov, var(--ink-3));
}

.key__prov .tag__dot {
  width: 10px;
  height: 10px;
}

.entry__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.entry--lead .entry__title {
  font-size: clamp(1.625rem, 1.2rem + 1vw, 2.125rem);
  line-height: 1.15;
}

.entry__title a {
  color: var(--ink);
  text-decoration: none;
}

.entry__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--rule-control);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.out {
  display: inline-block;
  margin-left: 0.25em;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 0.75em;
  font-weight: 400;
  vertical-align: 0.12em;
}

.entry__by {
  margin-top: var(--space-2);
  color: var(--ink-2);
  font-size: 1rem;
}

.entry__what {
  max-width: 40rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.entry--lead .entry__what {
  font-size: var(--fs-read);
}

/* The versions a reader can open, as direct choices; the first is the main one. */
.versions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.version {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--rule-control);
  border-radius: var(--radius-m);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}

.version:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

.version--main {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ground);
}

.version--main:hover {
  background: color-mix(in oklab, var(--ink) 86%, var(--ground));
}

.version--main .out {
  color: inherit;
}

.version__label {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25;
}

.version__note {
  margin-top: 1px;
  font-size: var(--fs-xs);
  line-height: 1.3;
  opacity: 0.78;
}

.entry--lead .version {
  min-height: 52px;
  padding: 8px 16px;
}

.entry__meta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.credits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  margin: 0;
}

.credit dt {
  color: var(--ink-3);
  font-weight: 600;
}

.credit dd {
  margin: 0;
  color: var(--ink);
}

@media (min-width: 40em) {
  .credit {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    gap: var(--space-3);
  }
}

.credits--line {
  color: var(--ink-2);
}

.entry__facts {
  margin-top: var(--space-3);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.entry__checks {
  margin-top: var(--space-2);
  color: var(--ink-2);
}

.entry__checks summary {
  width: fit-content;
  color: var(--ink-3);
  font-weight: 600;
  cursor: pointer;
}

.entry__checks p {
  margin-top: var(--space-1);
}

.entry__where {
  margin-top: var(--space-2);
  color: var(--ink-3);
}

.caveat {
  max-width: 48rem;
  margin-top: 0;
  padding-bottom: var(--space-7);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}

/* ------------------------------------------------------------------ footer */

.foot {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: var(--fs-sm);
}

.foot p {
  max-width: 48rem;
}

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 40em) {
  :root {
    --gutter: var(--space-4);
  }
  .topbar__inner {
    gap: var(--space-3);
  }
  .intro {
    padding-top: var(--space-5);
  }
  .lede {
    font-size: 1.0625rem;
  }
  .search__field .kbd {
    display: none;
  }
  .specimen__pane {
    padding: var(--space-4);
  }
  .specimen__text {
    font-size: 1.0625rem;
  }
  .entry,
  .entry--lead {
    padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 4px);
  }
  .shelf {
    padding-top: var(--space-6);
  }
  .shelf__head h2 {
    font-size: 1.625rem;
  }
  .entry__title {
    font-size: 1.3125rem;
  }
  .versions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .versions li:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }
  .version {
    width: 100%;
  }
  .fam-lockup__owner {
    display: none;
  }
}

@media (min-width: 120em) {
  :root {
    --wrap: 84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* The label key sits between the lead papers and the rest of the shelf. */
.key {
  margin-top: var(--space-7);
}

.intro {
  padding-top: var(--space-5);
  padding-bottom: 0;
}

.shelf--lead {
  padding-top: var(--space-6);
}

@media (max-width: 40em) {
  .jump ul {
    gap: var(--space-2) var(--space-4);
  }
}
