/* Hop Safari — the open-volume design system.
 *
 * WHAT IT'S FOR: one place for the site's typography, palette and chrome, so the three
 * mustache templates stop carrying three copies of the same 80-line <style> block that
 * had already drifted apart from one another.
 *
 * The site is a photography archive that is still being added to, presented as a bound
 * volume that is open rather than finished. Every choice below comes from bookmaking:
 * cloth for the covers and chrome, uncoated stock for reading, brass foil for the
 * accents, and plate numbering for the structure. The previous theme asserted "hardbound
 * photo book" and built a white rounded card with a soft shadow, which is the universal
 * card rather than a page.
 *
 * NOTE ON TAILWIND: the site still loads the Tailwind CDN, and renderer.py injects
 * `leading-relaxed text-lg mb-4` into every <p> it emits, so Tailwind cannot simply be
 * dropped — removing it would unstyle all body copy. This sheet therefore layers on top
 * and overrides where it must. Replacing the CDN with a compiled stylesheet is a separate
 * step (see docs/plan-open-volume-redesign.md step 9).
 */

/* ---------------------------------------------------------------- faces
 * Self-hosted rather than fetched from Google Fonts: two render-blocking requests to a
 * third party on every page load, on a site that is otherwise entirely static files.
 * Latin subsets only, 182 KB for all five.
 */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/bodoni-moda-400.woff2') format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('/fonts/bodoni-moda-700.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/fonts/newsreader-400.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('/fonts/newsreader-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('/fonts/archivo-500.woff2') format('woff2'); }

/* ---------------------------------------------------------------- reset
 * The markup on this site was authored against Tailwind's Preflight, so dropping the CDN
 * takes its reset away too. These are the parts the markup actually depended on — found
 * by removing the CDN and looking: without them the body regains its 8px margin (so the
 * masthead stops spanning the window) and every link is underlined again, including the
 * wordmark and the nav.
 */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
/* Links are undecorated by default and underlined deliberately — in prose, in the footer,
 * and anywhere carrying the .underline utility. The wordmark and the nav are links too. */
a { text-decoration: none; }

/* ---------------------------------------------------------------- tokens */
:root {
  --cloth:      #14301c;   /* bookcloth: chrome, mastheads, the colophon */
  --cloth-deep: #0a1c10;
  --paper:      #ece2d0;   /* uncoated warm stock: the page ground */
  --plate:      #fdfaf3;   /* the brighter sheet a plate is printed on */
  --ink:        #241f19;   /* warm near-black; replaces Tailwind's cool #374151 */
  --pencil:     #6e6052;   /* captions, folios, dates */
  --brass:      #9d6c22;   /* foil stamping: rules, plate numbers, links */
  --brass-lift: #b9832f;
  --rule:       rgba(36, 31, 25, .16);
  --measure:    38rem;     /* comfortable line length for sustained reading */
}

/* ---------------------------------------------------------------- base */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

/* The display face, used with restraint: title blocks, plate numbers, chapter names. */
h1, h2, h3, h4, .display {
  font-family: 'Bodoni Moda', Didot, Georgia, serif;
  text-wrap: balance;
  color: var(--ink);
}

/* Museum-label voice: folios, plate numbers, eyebrows, dates. */
.label {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  color: var(--pencil);
}

a { color: var(--brass); }
a:hover { color: var(--brass-lift); }

/* Keyboard users get the same affordance mouse users do. */
/* --brass-lift measures 2.58:1 against --paper, below the 3:1 WCAG needs for a non-text
 * indicator; --brass is 3.55:1. Measured, not eyeballed. */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
/* On the cloth surfaces the ring needs the opposite treatment to stay visible. */
.spine-header :focus-visible, .frontispiece :focus-visible,
.colophon :focus-visible, .foredge :focus-visible {
  outline-color: var(--brass-lift);
}

/* ---------------------------------------------------------------- chrome
 * Flat cloth and a single brass rule. The previous masthead stacked eight radial
 * gradients under a 35px blur with mix-blend-mode:screen, which read as a 2015 hero
 * gradient — and it was the first thing on every page.
 */
.spine-header {
  background: var(--cloth);
  border-bottom: 3px solid var(--brass);
}
.spine-header a { color: #e9e0c9; }
.spine-header a:hover { color: #fff; }

/* Blind stamping: a highlight above and a shadow below, the way a title is pressed into
 * a cover rather than printed on it. */
.wordmark {
  font-family: 'Bodoni Moda', Didot, serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #cfc4a6;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .10), 0 -1px 1px rgba(0, 0, 0, .55);
}

.site-nav a {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }

/* ---------------------------------------------------------------- the page surface
 * Square corners, not `rounded-lg`. A book page has a squared edge; the radius was the
 * single most card-like thing about the old treatment.
 */
.book-page {
  /* The page surface needs its own width. Tailwind Typography's `prose` was supplying it
   * indirectly, so removing the CDN left every article spanning the whole viewport. */
  max-width: 62rem;
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: 0 1px 2px rgba(10, 28, 16, .06), 0 10px 30px rgba(10, 28, 16, .08);
}

/* ---------------------------------------------------------------- prose */
/* The measure. Tailwind Typography's `prose` set max-width:65ch, and it was the only
 * thing constraining essay text — the article carries no max-w-* class. Dropping the CDN
 * with `max-width: none` here let paragraphs run 1502px at a 1600px viewport, roughly 200
 * characters a line. Restored explicitly so it cannot be lost with a dependency again. */
.prose { color: var(--ink); }
/* The measure goes on the TEXT, not the container, so photographs still run the full width
 * of the page surface — they are the point of the site. renderer.py wraps every image in a
 * <p>, so that paragraph has to be exempted by what it contains. */
/* Descendant selectors, not child: renderer.py nests the body inside a <section>, so
 * `.prose > p` matches nothing at all. */
.prose p, .prose ul, .prose ol, .prose blockquote,
.prose h1, .prose h2, .prose h3, .prose h4 { max-width: 68ch; }
/* Only a paragraph that is NOTHING BUT a photograph. `p:has(img)` also matched the 43
 * paragraphs that mix an image with real text, and stripped their measure too. */
.prose p:has(> img:only-child),
.prose p:has(> a:only-child > img:only-child) { max-width: none; }
.prose h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;               /* Bodoni at display size wants air, not weight */
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 .6rem;
  color: var(--ink);
}
.prose h2 {
  font-size: 1.75rem; font-weight: 700; line-height: 1.15;
  margin: 2.6rem 0 .9rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.prose h3 {
  font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .6rem; color: var(--ink);
}
.prose a { color: var(--brass); text-decoration: underline;
           text-decoration-color: rgba(157, 108, 34, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brass); }
.prose p { color: var(--ink); }
/* Specificity: `.prose p` outranks `.label`, so a date marked up as both lost its
 * pencil colour. Restated at equal-or-higher specificity rather than with !important. */
.prose p.label { color: var(--pencil); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }

/* Photographs are the point — but NEVER upscaled. `width: 100%` stretched every image to
 * the column regardless of its real size, so the Kenya guide's 500px Flickr embeds were
 * being blown up to ~900px and rendered visibly soft. max-width lets a large photograph
 * fill the column and leaves a small one at its natural size, which is sharp. */
.prose img { max-width: 100%; height: auto; display: block; }
.prose figcaption { margin-top: .5rem; }
/* The reset zeroes blockquote margins, and Tailwind Typography used to style these. Only
 * elements the essays actually contain are restyled here. */
.prose blockquote {
  margin: 1.5rem 0; padding-left: 1.1rem;
  border-left: 3px solid var(--brass); color: var(--pencil); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose code { font-family: 'Archivo', ui-monospace, monospace; font-size: .9em; }

/* ---------------------------------------------------------------- footer */
.site-footer { color: var(--pencil); }
.site-footer a { color: var(--pencil); text-decoration: underline; }
.site-footer a:hover { color: var(--brass); }

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

/* ---------------------------------------------------------------- the plate grid
 * The essays index was 86 identical text links on a photography site, while every essay
 * already carried a lead image and a description that toc-renderer.py was handing to the
 * template and the template was discarding.
 */
.plates-head { padding: 3rem 0 2rem; }
.plates-head h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; line-height: .98;
  margin: .5rem 0 0; letter-spacing: -.01em;
}
.plates-blurb { max-width: 30rem; margin: 1rem 0 0; color: var(--pencil); }

.plates {
  list-style: none; margin: 0 0 4rem; padding: 0;
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.plate a {
  display: block; color: inherit; text-decoration: none;
}
/* height:auto is load-bearing wherever an aspect-ratio is set: the HTML height
 * attribute applies as a presentational hint, and with both dimensions specified the
 * browser ignores aspect-ratio entirely. */
.plate-img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--rule);
}
/* The 15 essays with no photograph — interviews, a conference schedule. A deliberate
 * tile rather than a broken image or a gap in the grid: the archive is honest about
 * where it is text. */
.plate-img--none {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #e3d8c4 0 6px, #e8ddc9 6px 12px);
  border: 1px solid var(--rule);
}
.plate-img--none span {
  font-family: 'Archivo', system-ui, sans-serif; font-size: .6rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--pencil);
}
.plate-meta {
  display: flex; justify-content: space-between; gap: .5rem;
  margin-top: .6rem;
  font-family: 'Archivo', system-ui, sans-serif; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .11em;
}
.plate-no { color: var(--brass); }
.plate-date { color: var(--pencil); font-variant-numeric: tabular-nums; }
.plate-title {
  display: block; margin-top: .25rem;
  font-family: 'Bodoni Moda', Didot, serif; font-size: 1.05rem; line-height: 1.2;
}
.plate a:hover .plate-title,
.plate a:focus-visible .plate-title {
  text-decoration: underline; text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}
.plate a:hover .plate-img { filter: brightness(1.04); }

/* ---------------------------------------------------------------- the homepage
 * An OPEN volume: a fixed beginning, a plate count that climbs, and no closing date
 * anywhere. A recency feed would put "2014" in the hero and read as abandoned after any
 * quiet stretch; a finished-volume treatment would read as embalmed. This is the shape
 * that survives both states.
 */

/* The fore-edge index — the closed book seen from the side. New plates append at the
 * right, so the strip physically lengthens as work is published. */
.foredge { background: var(--cloth-deep); padding: .6rem 0 .4rem; }
.foredge-readout {
  font-family: 'Archivo', system-ui, sans-serif; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(233, 224, 201, .75); text-align: right; min-height: 1.1rem;
}
.foredge-strip {
  list-style: none; margin: .25rem 0 0; padding: 0;
  display: flex; gap: 1px; align-items: flex-end; height: 34px;
}
.foredge-strip li { flex: 1 1 0; display: flex; }
.sliver {
  flex: 1 1 0; height: 26px; display: block;
  transition: height .18s ease, filter .18s ease;
}
.sliver:hover, .sliver:focus-visible { height: 34px; filter: brightness(1.35); }
/* The 15 essays with no photograph: hatched rather than absent, so the gaps are honest. */
.sliver--none {
  background: repeating-linear-gradient(45deg, #2a2a22 0 2px, #33322a 2px 4px);
}
.foredge-years { display: flex; margin-top: .3rem; }
.foredge-years span {
  font-family: 'Archivo', system-ui, sans-serif; font-size: .58rem; letter-spacing: .1em;
  color: rgba(233, 224, 201, .45);
  border-left: 1px solid rgba(233, 224, 201, .22); padding-left: .3rem;
}

/* The frontispiece: a photograph you chose, not whatever is newest. */
.frontispiece { background: var(--cloth); color: #efe7d2; padding: clamp(2rem, 5vw, 3.6rem) 0; }
.frontispiece-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 780px) { .frontispiece-grid { grid-template-columns: 1fr; } }
.frontispiece-eyebrow { color: rgba(239, 231, 210, .6); }
.frontispiece-title {
  font-family: 'Bodoni Moda', Didot, serif; font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5rem); line-height: .95; margin: .7rem 0 0;
  letter-spacing: -.01em; color: #f6f0df;
}
.frontispiece-rule { height: 1px; background: linear-gradient(90deg, var(--brass), rgba(157,108,34,0)); margin: 1.3rem 0; }
.frontispiece-lede { font-size: 1.05rem; color: rgba(239, 231, 210, .86); max-width: 26rem; margin: 0; }
.frontispiece-vol {
  margin-top: 1.2rem; font-family: 'Archivo', system-ui, sans-serif; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(239, 231, 210, .62); line-height: 1.9;
}
.frontispiece-actions { display: flex; gap: .7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn {
  font-family: 'Archivo', system-ui, sans-serif; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .7rem 1.15rem; border: 1px solid var(--brass);
  color: #f6f0df; background: transparent; cursor: pointer; text-decoration: none;
}
.btn--solid { background: var(--brass); color: #14301c; }
.btn:hover { background: var(--brass); color: #14301c; }
.frontispiece-plate { margin: 0; }
.frontispiece-plate img {
  width: 100%; height: auto; display: block; border: 6px solid #f6f0df;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.frontispiece-plate figcaption { margin-top: .7rem; color: rgba(239, 231, 210, .62); }

.home-sec { padding: clamp(2.2rem, 5vw, 3.4rem) 0 0; }
.home-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.home-sec-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; margin: .3rem 0 0; line-height: 1.1; }
.more {
  font-family: 'Archivo', system-ui, sans-serif; font-size: .7rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--brass); border-bottom: 1px solid var(--brass);
  padding-bottom: 2px; text-decoration: none;
}

/* The latest plate, at plate scale. One dated item reads as "where the book is open";
 * a row of three reads as "last updated", which is the thing to avoid. */
.latest--noimage { grid-template-columns: 1fr !important; }
.latest { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--plate); border: 1px solid var(--rule); text-decoration: none; color: inherit; }
@media (max-width: 780px) { .latest { grid-template-columns: 1fr; } }
.latest img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.latest-body { padding: clamp(1.1rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; justify-content: center; }
.latest-no { color: var(--brass); }
.latest-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.15; margin: .35rem 0 .5rem; }
.latest-body p { margin: 0; color: var(--pencil); font-size: .95rem; }
.latest-go { margin-top: .9rem; font-family: 'Archivo', system-ui, sans-serif; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); border-bottom: 1px solid var(--brass); align-self: flex-start; padding-bottom: 2px; }
.latest:hover { box-shadow: 0 12px 26px rgba(10, 28, 16, .14); }

.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 880px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .chapters { grid-template-columns: 1fr; } }
.chapter { display: flex; flex-direction: column; background: var(--plate); border: 1px solid var(--rule); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.chapter:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10, 28, 16, .16); }
.chapter img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.chapter-body { padding: .85rem .95rem 1.05rem; flex: 1; display: flex; flex-direction: column; }
.chapter-num { font-family: 'Bodoni Moda', Didot, serif; color: var(--brass); font-size: .95rem; }
.chapter-body h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.16; margin: .2rem 0 .35rem; }
.chapter-body p { margin: 0; font-size: .86rem; color: var(--pencil); line-height: 1.45; }
.chapter-count { margin-top: auto; padding-top: .55rem; }

.selection { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.05rem; }
@media (max-width: 880px) { .selection { grid-template-columns: repeat(2, 1fr); } }
.selection a { text-decoration: none; color: inherit; display: block; }
.selection img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--rule); }
.sel-meta { display: flex; gap: .5rem; margin-top: .45rem; align-items: baseline; }
.sel-no { font-family: 'Archivo', system-ui, sans-serif; font-size: .62rem; letter-spacing: .1em; color: var(--brass); font-variant-numeric: tabular-nums; }
.sel-title { font-size: .87rem; line-height: 1.3; }
.selection a:hover .sel-title { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 700px) { .guides { grid-template-columns: 1fr; } }
.guide { background: var(--plate); border: 1px solid var(--rule); border-left: 3px solid var(--brass); padding: 1.15rem 1.3rem; text-decoration: none; color: inherit; display: block; }
.guide h3 { font-size: 1.15rem; font-weight: 700; margin: .3rem 0 .35rem; }
.guide p { margin: 0; font-size: .9rem; color: var(--pencil); }
.guide:hover { box-shadow: 0 12px 26px rgba(10, 28, 16, .14); }

.colophon { background: var(--cloth); color: rgba(239, 231, 210, .82); padding: clamp(2rem, 4.5vw, 3rem) 0; margin-top: clamp(2rem, 5vw, 3.5rem); }
.colophon-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .colophon-grid { grid-template-columns: 1fr; } }
.colophon-label { color: rgba(239, 231, 210, .45); }
.colophon h2 { color: #f6f0df; font-size: 1.3rem; font-weight: 700; margin: .4rem 0 .6rem; }
.colophon p { margin: 0 0 .8rem; font-size: .95rem; max-width: 32rem; }
.colophon a { color: var(--brass); }
.colophon dl { margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; line-height: 2; }
.colophon dt { color: rgba(239, 231, 210, .45); }
.colophon dd { margin: 0 0 .5rem; color: rgba(239, 231, 210, .85); }

/* ---------------------------------------------------------------- utilities
 * The exact set of Tailwind classes this site actually used — 38 of them, hand-written
 * here so `cdn.tailwindcss.com` can be dropped entirely.
 *
 * Why this beats keeping the CDN: that script ships Tailwind's JIT COMPILER to every
 * visitor and generates the stylesheet in their browser, on a site that is otherwise
 * static files served straight from App Engine. It is a render-blocking request to a
 * third party, a flash of unstyled content while it works, and Tailwind's own
 * documentation says the CDN build is for development only.
 *
 * Why hand-writing rather than a compiled Tailwind build: 38 classes across 4,242 uses is
 * small enough to state outright, and a build step would add a toolchain (node, a config,
 * a content scan) to a repo whose whole build is Python and pandoc. If this list grows
 * past what is comfortable to read, that trade flips.
 *
 * `renderer.py` injects `leading-relaxed text-lg mb-4` into every <p> and
 * `list-disc leading-relaxed list-inside text-lg mb-4` into every <ul>, so those must keep
 * working exactly as before — they are in the generated HTML of all three sites.
 */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pl-0 { padding-left: 0; }
@media (min-width: 768px) { .md\:p-12 { padding: 3rem; } }

.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

.font-serif { font-family: 'Newsreader', Georgia, serif; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* The three colour utilities left in the markup, mapped onto the design tokens rather
 * than Tailwind's palette — that is why the old cool grey stopped fighting the warm ground. */
.text-amber-50 { color: #e9e0c9; }
.text-amber-800 { color: var(--brass); }
.text-gray-500 { color: var(--pencil); }

.list-none { list-style: none; }
.list-disc { list-style: disc; }
.list-inside { list-style-position: inside; }
.shadow { box-shadow: 0 1px 3px rgba(10, 28, 16, .1), 0 1px 2px rgba(10, 28, 16, .06); }

/* `prose` and `prose-lg` came from the typography plugin. The element styles this site
 * relies on are defined in the prose section above; these only set the measure. */
.prose-lg { font-size: 1.125rem; line-height: 1.7; }

/* Chapter filter on the contents page. The four chapters used to be four links to the
 * same unfiltered page — four ways in that were one way in. */
.chapter-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip {
  font-family: 'Archivo', system-ui, sans-serif; font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .45rem .8rem;
  border: 1px solid var(--rule); color: var(--pencil); background: var(--plate);
}
.chip span { color: var(--brass); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--brass); color: var(--ink); }
.chip[aria-current="true"] { background: var(--cloth); color: #e9e0c9; border-color: var(--cloth); }
.chip[aria-current="true"] span { color: #d8b26a; }
.filter-status { margin-top: .7rem; color: var(--pencil); font-size: .9rem; min-height: 1.2rem; }
.plate[hidden] { display: none; }

/* "Read next" — three related essays at the foot of each one, ranked by shared tags and
 * then by nearness in publication order. The archive is 86 essays deep; without this the
 * only way from one plate to another is back out to the contents. */
.read-next { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.read-next h2 { margin: 0 0 1rem; font-family: 'Archivo', system-ui, sans-serif; }
.read-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
                background: var(--rule); border: 1px solid var(--rule); }
.read-next li { background: var(--plate); }
.read-next a { display: block; padding: .9rem 1.1rem; text-decoration: none; color: inherit; }
.read-next a:hover { background: #fffdf7; }
.read-next-title { display: block; font-family: 'Bodoni Moda', Didot, serif;
                   font-size: 1.05rem; line-height: 1.2; }
.read-next a:hover .read-next-title { text-decoration: underline;
  text-decoration-color: var(--brass); text-underline-offset: 3px; }
.read-next-sub { display: block; margin-top: .25rem; font-size: .88rem; color: var(--pencil);
                 line-height: 1.4; }
