/* therealcat.ai · src/styles/global.css
   v1.0 · 18NOV2026 · Flame  (v0.1, 19OCT2026, the Manrope/Literata "ruled notebook", is retired)

   Practical: the whole look of the site in one hand-written sheet. The design is the
   "illustrated lab notebook" Angela chose on 18 NOV 2026, built on the lab's own brand:
   Inter, the purple bar, the real logo and favicon, cream paper, and the four colours of
   R, L, H and F. The rules for using it live in .claude/skills/trcl-design-system.

   Philosophical: October's version invented a look and threw away the one people already
   knew. This one starts from what the lab already owns and adds only what a notebook would
   have: graph paper, labels, numbered figures, notes in the margin. If a component here
   is not something you could find in a real lab notebook, it should have to argue for
   its place. */

/* ---------- Inter, self-hosted (OFL), variable weight and optical size ---------- */
@font-face { font-family: "Inter TRCL"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-opsz-normal.woff2) format("woff2-variations");
  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: "Inter TRCL"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-opsz-italic.woff2) format("woff2-variations");
  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: "Inter TRCL"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext-opsz-normal.woff2) format("woff2-variations");
  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: "Inter TRCL"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext-opsz-italic.woff2) format("woff2-variations");
  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; }

/* ---------- Tokens. Brand values are the WordPress theme's; -lg and -ink are contrast-safe shades ---------- */
:root {
  --purple: #4a0873;
  --purple-deep: #3a0660;
  --night: #1d0b26;
  --ink: rgba(74, 8, 115, 0.82);
  --ink-soft: rgba(74, 8, 115, 0.68);
  --cream: #fafaf5;
  --sand: #f5f1e8;
  --paper: #fffdf8;
  --green: #5bb545;
  --green-lg: #47993a;
  --green-ink: #3a7d2a;
  --orange: #f5841f;
  --orange-lg: #cf690f;
  --gold: #b8860b;
  --gold-lg: #a87a08;
  --lilac: #9b7dad;
  --lilac-pale: #ece4f1;
  --on-night: #c9b6d6;
  --hair: rgba(74, 8, 115, 0.16);
  --sans: "Inter TRCL", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier New", Courier, ui-monospace, monospace;   /* the book's data face */
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3, h4 { color: var(--purple); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--purple); padding: 10px 14px; font-weight: 700; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- Header: the live site's, kept. Purple bar, white logo, orange Donate with purple type ---------- */
.site-head { background: var(--purple); color: #fff; position: relative; z-index: 5; }
.site-head__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 78px; display: flex; align-items: center; gap: 32px; }
.logo { display: block; flex: none; }
.logo img { height: 48px; width: auto; }
.nav-main { margin-left: auto; }
.nav-main ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-main a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav-main a:hover { color: var(--green); }
.nav-main a[aria-current] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
/* white on this orange is 2.6:1, so the button's type is purple-black (5.2:1 and up) */
.donate { display: inline-block; background: var(--orange); color: var(--night) !important; font-weight: 800 !important; font-size: 13px !important; letter-spacing: 0.09em; text-transform: uppercase; padding: 12px 18px; text-decoration: none !important; }
.donate:hover { background: #ff9a3d; }
.nav-phone { display: none; margin-left: auto; }
.nav-phone summary { list-style: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 15px; padding: 10px 14px; border: 2px solid rgba(255, 255, 255, 0.7); }
.nav-phone summary::-webkit-details-marker { display: none; }
.nav-phone[open] summary { background: #fff; color: var(--purple); }
.nav-phone ul { position: absolute; left: 0; right: 0; top: 100%; background: var(--purple-deep); list-style: none; margin: 0; padding: 8px var(--gutter) 20px; border-top: 4px solid var(--green); }
.nav-phone li a { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.nav-phone li:last-child a { border: 0; margin-top: 12px; display: inline-block; }
@media (max-width: 1000px) {
  .nav-main { display: none; }
  .nav-phone { display: block; }
  .site-head__in { height: 68px; }
  .logo img { height: 42px; }
}

/* ---------- Footer, kept from the live site, plus the drawing credit ---------- */
.site-foot { background: var(--night); color: var(--on-night); padding: 72px 0 28px; font-size: 14.5px; line-height: 1.6; }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-foot img { height: 44px; width: auto; margin-bottom: 18px; }
.site-foot h2 { color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--on-night); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot address { font-style: normal; margin-top: 14px; }
.site-foot__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(201, 182, 214, 0.18); display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 13px; }
.site-foot__base a { text-decoration: underline; }
.site-foot__base em { color: #fff; font-style: normal; }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Buttons: square corners, solid or ruled ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 14px 24px; font: 700 16px/1.2 var(--sans); text-decoration: none; border: 2px solid var(--purple); color: var(--purple); background: transparent; cursor: pointer; }
.btn--solid { background: var(--purple); color: #fff; }
.btn--solid:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn--line:hover { background: var(--purple); color: #fff; }
.btn--wait { border-style: dashed; color: var(--ink-soft); border-color: var(--lilac); cursor: default; }
.btn--green { background: var(--green); border-color: var(--green); color: var(--night); }
.btn--green:hover { background: #6cc757; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- The notebook's materials ---------- */
.band { padding: 96px 0; }
.band--sand { background: var(--sand); }
.band--snug { padding: 64px 0; }
/* graph paper: under big moments only, never under body text */
.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(155, 125, 173, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 125, 173, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(155, 125, 173, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 125, 173, 0.26) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position: -1px -1px;
}
.k { font: 400 14px/1.3 var(--mono); color: var(--ink-soft); letter-spacing: 0.02em; }
.k b { color: var(--purple); font-weight: 700; }
.h1 { font-weight: 900; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.03; letter-spacing: -0.032em; }
.h2 { font-weight: 850; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -0.03em; margin-top: 10px; }
.h1 em, .h2 em { font-style: normal; color: var(--green-lg); font-weight: 300; }
.head { margin-bottom: 48px; max-width: 54rem; }
.head > p:not(.k) { margin-top: 16px; font-size: 18px; max-width: 44rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center > p:not(.k) { margin-inline: auto; }

/* the specimen label: white card, purple rule, a punched hole, Courier fields */
.label { position: relative; display: inline-grid; gap: 3px; background: #fff; border: 1.5px solid var(--purple); padding: 12px 40px 11px 14px; font: 400 13px/1.45 var(--mono); color: var(--purple); box-shadow: 3px 3px 0 rgba(74, 8, 115, 0.12); }
.label::after { content: ""; position: absolute; top: 11px; right: 12px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--purple); background: var(--cream); }
.label b { font-weight: 700; letter-spacing: 0.06em; }
.label span { color: var(--ink-soft); }
.label a { color: var(--purple); }

/* figures and captions */
.fig { margin: 0; }
.fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; max-width: 34rem; }
.fig figcaption b { font: 700 13.5px var(--mono); color: var(--purple); margin-right: 6px; }

/* annotations: green italic with a drawn arrow, always true about what they point at */
.ann { position: absolute; font-style: italic; font-weight: 650; font-size: 15.5px; line-height: 1.3; color: var(--green-ink); max-width: 15rem; }
.ann svg { position: absolute; overflow: visible; }
.ann svg path, .mnote svg path { fill: none; stroke: var(--green-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* the thumbnail: graph paper, the entry's ink doodle, the colour of its question in the corner */
.gt { position: relative; aspect-ratio: 1; border: 1.5px solid var(--purple); background-color: #fff; overflow: hidden; }
.gt.paper { background-size: 12px 12px, 12px 12px, 60px 60px, 60px 60px; }
.gt img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.gt__no { position: absolute; left: 12px; bottom: 10px; font: 700 14px var(--mono); color: var(--purple); }
.gt__q { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; background: var(--c); }
.gt--lg img { inset: 8% 8% 12%; width: 84%; height: 80%; }
.gt--lg .gt__q { width: 36px; height: 36px; }
.q-r { --c: var(--lilac); }
.q-l { --c: var(--green); }
.q-h { --c: var(--orange); }
.q-f { --c: var(--gold); }

/* bylines: human and AI names side by side, the AI tag said plainly */
.by { font-size: 14px; font-weight: 600; color: var(--purple); }
.by a { text-decoration: none; }
.by a:hover { text-decoration: underline; }
.by i { font-style: normal; font-weight: 500; color: var(--ink-soft); }

/* ---------- Home ---------- */
.hero { padding: 72px 0 0; border-bottom: 2px solid var(--purple); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero__text { padding-bottom: 88px; }
.hero h1 { margin: 18px 0 24px; }
.hero__lead { font-size: 19px; line-height: 1.6; max-width: 33rem; }
.hero__fig { position: relative; }
.hero__fig img { width: 100%; max-width: 560px; margin: 0 auto -2px; }
.hero__fig figcaption { position: absolute; right: 0; top: 0; text-align: right; margin: 0; }
/* the robots stand in the lower two thirds of their square, so the note lives in the sky above them */
.hero__fig .ann { left: 2%; top: 9%; }
.hero__fig .ann svg { left: 150px; top: 40px; width: 56px; height: 70px; }

.clip-band { padding: 56px 0; }
.clip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; background: #fff; border: 1px solid var(--hair); box-shadow: 0 10px 24px -16px rgba(29, 11, 38, 0.35); padding: 28px 36px; position: relative; }
.clip::before, .clip::after { content: ""; position: absolute; top: -12px; width: 92px; height: 24px; background: rgba(155, 125, 173, 0.32); }
.clip::before { left: 40px; }
.clip::after { right: 40px; }
.clip img { height: 40px; width: auto; }
.clip p { font-size: 18px; font-style: italic; line-height: 1.5; }
.clip .k { text-align: right; }

.dividers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.divider { position: relative; background: #fff; border: 1.5px solid var(--hair); border-top: 4px solid var(--c); padding: 26px 24px; margin-top: 42px; }
.divider__art { position: absolute; right: 6px; top: -78px; width: 104px; height: 104px; pointer-events: none; }
.divider__tab { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 4px; display: flex; align-items: baseline; gap: 10px; background: var(--c); color: var(--on-c); padding: 8px 16px 7px; }
.divider__tab b { font-weight: 900; font-size: 22px; line-height: 1; }
.divider__tab span { font-weight: 700; font-size: 14px; }
.divider h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.divider p { font-size: 15.5px; line-height: 1.6; margin-top: 10px; }
.divider a { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 15px; }
.divider--r { --c: var(--purple); --on-c: #fff; }
.divider--l { --c: var(--green); --on-c: var(--night); }
.divider--h { --c: var(--orange); --on-c: var(--night); }
.divider--f { --c: var(--gold); --on-c: var(--night); }

.book-band .head { margin-bottom: 104px; }
.book__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.book__fig { position: relative; }
.book__fig .ann--tab { left: 26%; top: -72px; max-width: 18rem; }
.book__fig .ann--tab svg { left: -44px; top: 10px; width: 40px; height: 60px; }
.book__fig .ann--verdict { right: -24px; bottom: -78px; }
.book__fig .ann--verdict svg { left: -62px; top: -48px; width: 56px; height: 56px; }
/* a real two-page spread with a soft fold in the gutter */
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 30px 50px -24px rgba(29, 11, 38, 0.55); background: #fff; }
.spread img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 64px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(29, 11, 38, 0.18) 45%, rgba(29, 11, 38, 0.28) 50%, rgba(29, 11, 38, 0.12) 56%, transparent); pointer-events: none; }
.book__side { padding-top: 8px; }
.book__side .potato { width: 190px; margin: -40px 0 4px -8px; }
.book__side p { font-size: 17px; margin-top: 14px; }
.book__meta { font: 400 14.5px var(--mono); color: var(--purple); margin-top: 18px; }
.book__side .actions { margin-top: 22px; }
.book__side .btn { padding: 12px 18px; font-size: 15px; }
.contact { margin-top: 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.contact figure { margin: 0; background: #fff; padding: 10px 10px 12px; border: 1px solid var(--hair); }
.contact img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.contact figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.contact figcaption b { font: 700 12.5px var(--mono); color: var(--purple); display: block; }

/* the projects as a drawer of specimens: one logo height, a Courier name, one sentence */
.drawer { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.spec { background: #fff; border: 1.5px solid var(--purple); padding: 22px 18px 16px; display: grid; grid-template-rows: 70px auto auto 1fr; gap: 10px; position: relative; box-shadow: 3px 3px 0 rgba(74, 8, 115, 0.12); text-decoration: none; color: inherit; }
.spec::after { content: ""; position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--purple); }
.spec img { height: 52px; width: auto; max-width: 100%; align-self: center; }
.spec b { font: 700 12.5px var(--mono); color: var(--purple); letter-spacing: 0.06em; text-transform: uppercase; }
.spec__kind { font: 400 12.5px var(--mono); color: var(--ink-soft); }
.spec span { font-size: 14.5px; line-height: 1.5; }
.spec:hover { box-shadow: 5px 5px 0 rgba(74, 8, 115, 0.22); }
.cast { margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cast figure { margin: 0; }
.cast .pic { height: 200px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 2px solid var(--purple); }
.cast .pic img { max-height: 200px; width: auto; }
.cast .k { margin-top: 16px; }
.cast h3 { font-size: 20px; font-weight: 750; margin-top: 6px; line-height: 1.25; }
.cast h3 a { text-decoration: none; }
.cast h3 a:hover { text-decoration: underline; }
.cast p { font-size: 15.5px; margin-top: 8px; }

.head-art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; margin-bottom: 8px; }
.head-art .head { margin-bottom: 40px; }
.head-art img { width: 300px; margin-bottom: -2px; }

/* the contents page: number, title, dot leaders, date */
.toc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--purple); }
.toc-list > li { border-bottom: 1px solid var(--hair); }
.toc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 18px 0; align-items: center; }
.toc-row__line { display: flex; align-items: baseline; gap: 10px; }
.toc-row__no { font: 700 14px var(--mono); color: var(--purple); flex: none; }
.toc-row h3 { font-size: 19px; font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; }
.toc-row h3 a { text-decoration: none; }
.toc-row h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole row is the link */
.toc-row { position: relative; }
.toc-row h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.toc-row .by { position: relative; z-index: 1; margin-top: 6px; font-size: 13.5px; }
.toc-row__dots { flex: 1; border-bottom: 2px dotted rgba(74, 8, 115, 0.35); transform: translateY(-5px); min-width: 24px; }
.toc-row__date { font: 400 14px var(--mono); color: var(--ink-soft); flex: none; }
.toc-row p { font-size: 15px; line-height: 1.5; margin-top: 4px; max-width: 46rem; }
.toc-row__shelf { font: 700 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--night); background: var(--green); padding: 2px 6px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.k-date { display: none; }
.more { margin-top: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

.give { padding: 72px 0; border-top: 2px solid var(--purple); }
.give__grid { display: grid; grid-template-columns: 220px minmax(0, 40rem); gap: 56px; align-items: center; justify-content: center; }
.give img { width: 220px; }
.give p:not(.k) { margin-top: 14px; font-size: 18px; }

.mail { background: var(--purple); color: #fff; padding: 80px 0; }
.mail__grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.mail img { width: 230px; }
.mail h2 { color: #fff; font-weight: 850; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.mail p { color: #efe6f5; margin-top: 14px; max-width: 34rem; }
.mail small { display: block; margin-top: 10px; font: 400 13px var(--mono); color: var(--on-night); }

/* ---------- Page heads (Lab Notes, standing pages, authors) ---------- */
.ph { padding: 64px 0 56px; border-bottom: 2px solid var(--purple); }
.ph__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.ph h1 { margin-top: 12px; }
.ph__lead { margin-top: 18px; max-width: 40rem; font-size: 18.5px; }
.ph__fig { margin: 0; display: flex; align-items: flex-end; gap: 18px; }
.ph__fig img { width: 210px; }
.ph__fig .label { margin-bottom: 92px; flex: none; }
.ph__art { width: 300px; }
.ph__art--wide { width: 380px; }
.crumbs { font: 400 13.5px var(--mono); color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a { color: var(--ink-soft); }
.filters { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; font-weight: 600; align-items: baseline; }
.filters a { text-decoration: none; color: var(--ink); padding-bottom: 2px; }
.filters a:hover { color: var(--purple); text-decoration: underline; }
.filters a[aria-current] { color: var(--purple); border-bottom: 3px solid var(--green); }
.lead-entry { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: center; padding: 48px 0; position: relative; }
.lead-entry h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 850; letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 14px; }
.lead-entry h2 a { text-decoration: none; }
.lead-entry h2 a::after { content: ""; position: absolute; inset: 0; }
.lead-entry h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lead-entry p { font-size: 17.5px; }
.lead-entry .by { position: relative; z-index: 1; margin-top: 10px; }

/* pagination: the numbered pages are the notebook's edge tabs */
.pager { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pager a, .pager span { text-decoration: none; }
.pager__wrap { border-bottom: 2px solid var(--purple); padding: 0 8px; }
.pager__nums { display: flex; align-items: flex-end; }
.pager__num, .pager__gap { min-width: 46px; height: 40px; display: inline-grid; place-items: center; font: 700 15px var(--mono); color: var(--purple); border: 1.5px solid var(--hair); border-bottom: 0; margin-left: -1.5px; background: #fff; }
.pager__gap { border-color: transparent; background: transparent; }
.pager__num[aria-current] { background: var(--purple); color: #fff; height: 48px; border-color: var(--purple); }
a.pager__num:hover { background: var(--lilac-pale); }
.pager__step { font-weight: 700; font-size: 16px; color: var(--purple); padding: 10px 4px; }
.pager__step[aria-disabled] { color: var(--ink-soft); opacity: 0.6; }
.pager__phone { display: none; font: 400 14px var(--mono); color: var(--ink-soft); }

/* ---------- Entries and pages: a centred reading column with a margin on the right ---------- */
.eh { padding: 56px 0; border-bottom: 2px solid var(--purple); }
.eh__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center; }
.eh h1 { font-weight: 880; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.028em; }
.eh .dek { margin-top: 18px; font-size: 19px; max-width: 38rem; }
.eh .label { margin-top: 28px; }
.e-grid { display: grid; grid-template-columns: minmax(0, 680px) 260px; gap: 64px; justify-content: center; padding: 64px var(--gutter) 40px; }
.e-grid--solo { grid-template-columns: minmax(0, 720px); }
.margin { align-self: start; display: grid; gap: 34px; padding-top: 8px; position: sticky; top: 24px; }
.margin h2 { font: 700 12.5px var(--mono); color: var(--purple); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.margin ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; counter-reset: t; font-size: 14.5px; }
.margin li { counter-increment: t; display: grid; grid-template-columns: 30px 1fr; }
.margin li::before { content: "\00A7" counter(t); font: 700 13px/1.6 var(--mono); color: var(--green-ink); }
.margin a { color: var(--ink); text-decoration: none; line-height: 1.4; }
.margin a:hover { color: var(--purple); text-decoration: underline; }
.mnote { font-style: italic; font-weight: 650; color: var(--green-ink); font-size: 15.5px; line-height: 1.4; position: relative; padding-top: 30px; }
.mnote svg { position: absolute; left: -6px; top: 0; width: 46px; height: 26px; overflow: visible; }
.who { font-size: 14.5px; line-height: 1.55; }
.who img { width: 44px; margin-bottom: 10px; }
.who .who__portrait { width: 170px; margin: 0 0 6px -8px; }
.author-side { display: grid; gap: 18px; justify-items: end; }
.author-fig { width: 400px; }
.author-fig img { width: 400px; }
.author-fig figcaption { font-size: 13.5px; }
@media (max-width: 1000px) { .author-side { justify-items: start; } .author-fig, .author-fig img { width: 240px; } }
.who b { color: var(--purple); }
.who p + p { margin-top: 8px; }

.prose { font-size: 18.5px; line-height: 1.72; color: var(--ink); counter-reset: sec; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { counter-increment: sec; font-weight: 800; color: var(--purple); font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; margin-top: 2.1em; scroll-margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.prose h2::before { content: "\00A7" counter(sec); font: 700 17px var(--mono); color: var(--green-ink); }
.prose h3 { font-size: 22px; font-weight: 750; line-height: 1.3; margin-top: 1.8em; letter-spacing: -0.01em; }
.prose h4 { font-size: 18.5px; font-weight: 750; margin-top: 1.5em; }
.prose strong { color: var(--purple); font-weight: 700; }
.prose a { color: var(--purple); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose code { font: 400 0.88em var(--mono); background: var(--lilac-pale); padding: 1px 5px; color: var(--purple); }
.prose pre { background: #fff; border: 1.5px solid var(--hair); padding: 16px 18px; overflow-x: auto; font-size: 14.5px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 2px dotted rgba(74, 8, 115, 0.35); margin: 2.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--hair); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--purple); font-weight: 750; border-bottom: 2px solid var(--purple); }
/* a quotation is a slip of paper taped in straight, never a coloured left edge */
.prose blockquote { position: relative; margin: 2.2em 0; background: #fff; border: 1px solid var(--hair); box-shadow: 0 10px 22px -16px rgba(29, 11, 38, 0.4); padding: 30px 32px 26px; }
.prose blockquote::before { content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: rgba(155, 125, 173, 0.32); }
.prose blockquote p { font-size: 19px; font-style: italic; line-height: 1.55; color: var(--purple); }
.prose blockquote > * + * { margin-top: 0.8em; }
/* hanging markers by padding, not grid: a grid would make every bold word and link its own cell */
.prose ol { padding-left: 0; list-style: none; counter-reset: n; }
.prose ol > li { counter-increment: n; position: relative; padding-left: 40px; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; top: 0; font: 700 18px/1.72 var(--mono); color: var(--purple); }
.prose ul { padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 30px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 14px; border: 2px solid var(--purple); background: #fff; }
.prose li + li { margin-top: 0.7em; }
.prose li > ul, .prose li > ol { margin-top: 0.6em; }
/* photographs are prints: a white border, their own shape, never cropped to a box */
.prose img { margin: 0.4em auto; background: #fff; padding: 10px; border: 1px solid var(--hair); box-shadow: 0 10px 22px -16px rgba(29, 11, 38, 0.4); max-height: 640px; width: auto; }
/* project logos are specimens' name tags, not pictures */
.prose img[src$="-logo.svg"] { height: 56px; width: auto; padding: 0; border: 0; box-shadow: none; background: none; margin: 2.4em 0 -0.4em; }
.prose p:has(> img:only-child) { text-align: center; }
/* a project logo introduces the heading right under it */
.prose p:has(> img[src$="-logo.svg"]) + h2 { margin-top: 0.5em; }

.signoff { margin-top: 48px; padding-top: 22px; border-top: 2px solid var(--purple); }
.provenance { margin-top: 40px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); display: grid; gap: 8px; }
.provenance a { color: var(--purple); }
.next { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.next a { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; text-decoration: none; color: inherit; }
.next__k { display: block; font: 400 13px var(--mono); color: var(--ink-soft); margin-bottom: 4px; }
.next span { font-weight: 750; color: var(--purple); font-size: 17px; line-height: 1.3; }
.next a:hover span { text-decoration: underline; }
.next > :last-child { text-align: right; }
.next > :last-child a { grid-template-columns: 1fr 88px; }
.next > :last-child .gt { order: 2; }

/* ---------- Book ---------- */
.bk-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.bk-hero__book { margin: 0; }
.bk-hero__book img { width: 100%; max-width: 600px; margin-left: auto; }
.bk-sub { margin-top: 12px; font-size: 24px; font-weight: 300; color: var(--green-lg); line-height: 1.3; }
.bk-pitch { margin-top: 20px; font-size: 18.5px; }
.bk-aside { margin-top: 12px; font-size: 15px; font-style: italic; color: var(--green-ink); font-weight: 650; }
.order { margin-top: 30px; display: grid; gap: 4px; padding: 20px 44px 20px 20px; }
.order__price { font: 850 34px/1 var(--sans); color: var(--purple); letter-spacing: -0.02em; margin: 6px 0 4px; }
.order__price small { font: 400 13px var(--mono); color: var(--ink-soft); letter-spacing: 0; }
.order p { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); margin-top: 6px; }
.parts .divider h3 { font-size: 20px; }
.praise { columns: 2 320px; column-gap: 36px; }
.slip { break-inside: avoid; position: relative; margin: 0 0 34px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 10px 22px -16px rgba(29, 11, 38, 0.4); padding: 26px 26px 20px; }
.slip::before { content: ""; position: absolute; top: -11px; left: 28px; width: 80px; height: 22px; background: rgba(155, 125, 173, 0.32); }
.slip blockquote { margin: 0; font-size: 18px; font-style: italic; line-height: 1.5; color: var(--purple); }
.slip figcaption { margin-top: 10px; font: 400 13px var(--mono); color: var(--ink-soft); }

/* ---------- Donate facts ---------- */
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.donate-grid .prose { font-size: 17.5px; }
.donate-grid .prose h2:first-child { margin-top: 0; }
/* a prose heading without its § number, for short pages that are not documents */
.prose h2.plain { display: block; font-size: 24px; }
.prose h2.plain::before { content: none; }
.donate-facts { padding: 18px 44px 18px 20px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 10px 0 0; font-size: 14px; }
.facts dt { font-weight: 700; color: var(--purple); }
.facts dd { margin: 0; color: var(--ink); font-family: var(--sans); }

/* ---------- The drawings page ---------- */
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.art-card { margin: 0; background: #fff; border: 1.5px solid var(--purple); box-shadow: 3px 3px 0 rgba(74, 8, 115, 0.12); }
.art-card__pic { aspect-ratio: 1; display: grid; place-items: center; padding: 14px; border-bottom: 1.5px solid var(--purple); }
.art-card__pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.art-card figcaption { padding: 12px 14px 14px; font-size: 14px; line-height: 1.45; }
.art-card b { display: block; font: 700 13px var(--mono); color: var(--purple); }
.art-card span { display: block; margin-top: 4px; }
.art-card summary { margin-top: 8px; cursor: pointer; font-weight: 700; color: var(--purple); font-size: 13.5px; }
.art-card details p { margin-top: 6px; font: 400 12.5px/1.45 var(--mono); color: var(--ink-soft); }
@media (max-width: 1000px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .donate-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .art-grid { gap: 14px; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .drawer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book__stage { grid-template-columns: 1fr; gap: 72px; }
  .book__fig .ann { display: none; }
}
@media (max-width: 1000px) {
  .hero__grid, .mail__grid, .lead-entry, .eh__grid, .ph__grid, .bk-hero__grid { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 8px; }
  .hero__fig .ann { display: none; }
  .hero__fig figcaption { position: static; text-align: left; margin-bottom: 16px; }
  .dividers { grid-template-columns: 1fr 1fr; }
  .cast { grid-template-columns: 1fr; max-width: 30rem; gap: 48px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .e-grid { grid-template-columns: minmax(0, 680px); }
  .margin { display: none; }
  .clip { grid-template-columns: 1fr; justify-items: start; }
  .clip .k { text-align: left; }
  .mail img { width: 170px; }
  .give__grid { grid-template-columns: 1fr; gap: 24px; }
  .give img { width: 170px; }
  .head-art { grid-template-columns: 1fr; }
  .head-art img { width: 220px; justify-self: end; margin-bottom: 0; }
  .lead-entry .gt { max-width: 300px; }
  .ph__fig { width: 100%; }
  .ph__fig img { width: 150px; order: 2; margin-left: auto; }
  .ph__fig .label { margin-bottom: 0; }
  .ph__art, .ph__art--wide { width: min(100%, 360px); }
  .bk-hero__book img { margin: 0 auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .band { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .hero__lead { font-size: 17.5px; }
  .dividers { grid-template-columns: 1fr; }
  .divider__art { width: 84px; height: 84px; top: -66px; }
  .drawer { grid-template-columns: 1fr 1fr; gap: 14px; }
  .spec { padding: 18px 14px 14px; grid-template-rows: 56px auto auto 1fr; }
  .spec img { height: 40px; }
  .contact { gap: 14px; margin-top: 64px; }
  .toc-row { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .toc-row__dots, .toc-row__date { display: none; }
  .toc-row__line { display: block; }
  .toc-row__no { display: block; }
  .k-date { display: inline; }
  .clip { padding: 26px 20px; }
  .ph { padding: 44px 0 40px; }
  .ph__fig { flex-wrap: wrap; }
  .ph__fig img { width: 110px; }
  .pager__num { display: none; }
  .pager__gap { display: none; }
  .pager__wrap { display: none; }
  .pager__phone { display: inline-block; }
  .prose { font-size: 17.5px; }
  .prose h2 { font-size: 25px; }
  .prose blockquote { padding: 26px 20px 20px; }
  .next { grid-template-columns: 1fr; }
  .next > :last-child { text-align: left; }
  .next > :last-child a { grid-template-columns: 88px 1fr; }
  .next > :last-child .gt { order: 0; }
  .order { padding-right: 36px; }
}
