/* FRAME public site: a quiet, image-led archive. Inter and IBM Plex Mono
   are named first so a visitor who has them installed sees the brand
   system exactly; the long system-font fallbacks mean nobody without
   them still gets a legible page, and the site makes no third-party
   font or script requests either way. */

:root {
  /* FRAME brand palette (archive-black / evidence-red / archive-ivory /
     document-gray / scan-gray), mapped onto the site's existing tokens. */
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --mount: #d9d9d6;
  --ink: #0b0b0b;
  --ink-2: #4a4a4a;
  --muted: #6f6f6f;
  --rule: #dcdad4;
  --accent: #c8102e;
  --logo-red: #e30613;
  --accent-ink: #ffffff;
  --gray-badge: #4a4a4a;
  --serif: var(--sans);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 42rem;
  --wide: 76rem;
  --radius: 2px;
}

/* Dark palette: applied automatically by system preference, or explicitly
   by the header toggle (site.js sets data-theme and remembers the choice
   in localStorage; :not([data-theme="light"]) lets an explicit light
   choice still override a dark system preference). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0b0b;
    --paper-2: #161615;
    --mount: #262625;
    --ink: #f7f5f0;
    --ink-2: #d9d9d6;
    --muted: #9a9a98;
    --rule: #2e2e2c;
    --accent: #e14a5f;
    --logo-red: #e30613;
    --accent-ink: #0b0b0b;
    --gray-badge: #9a9a98;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0b0b;
  --paper-2: #161615;
  --mount: #262625;
  --ink: #f7f5f0;
  --ink-2: #d9d9d6;
  --muted: #9a9a98;
  --rule: #2e2e2c;
  --accent: #e14a5f;
  --logo-red: #e30613;
  --accent-ink: #0b0b0b;
  --gray-badge: #9a9a98;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-weight: normal; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 0.8rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
article.wrap, .prose-page { max-width: calc(var(--measure) + 2.5rem); margin-left: max(0px, calc((100% - var(--wide)) / 2)); margin-right: auto; }

/* Labels, meta and navigation use a small sans in caps. */
.eyebrow, .breadcrumb, .site-nav a, .brief-kicker, .object-meta,
.technique-counts, .stats, dt, .button, .filter, .chip, .color, .quiet, .note, .legend,
.section-head a, .filter-status, .lineage, .aliases, .pager, .footer-inner {
  font-family: var(--sans);
}
.eyebrow, .breadcrumb, dt, .day-head {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb { margin: 2.5rem 0 1rem; }
.breadcrumb a { text-decoration: none; }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.wordmark .frame-logo { flex: none; height: 2.9rem; width: auto; display: block; }
.frame-logo-brackets { fill: var(--logo-red); }
.frame-logo-word { fill: var(--ink); }
.wordmark:hover .frame-logo-brackets { fill: var(--accent); }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark .expansion { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; max-width: 15rem; line-height: 1.5; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.site-nav a { font-size: 0.85rem; text-decoration: none; color: var(--ink-2); padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a:hover { color: var(--accent); }
/* Maps dropdown: a disclosure button and a list of links. */
.nav-menu { position: relative; }
.nav-menu-button { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--sans); font-size: 0.85rem; line-height: inherit; color: var(--ink-2); background: none; border: 0; border-bottom: 1px solid transparent; padding: 0.25rem 0; cursor: pointer; }
.nav-menu-button:hover { color: var(--accent); }
.nav-menu-button[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-menu-button svg { transition: transform 0.15s; }
.nav-menu-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu-list { display: none; position: absolute; top: 100%; left: -0.9rem; min-width: 15rem; margin: 0.35rem 0 0; padding: 0.35rem; list-style: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14); z-index: 30; }
.nav-menu-list.is-open { display: block; }
.site-nav .nav-menu-list a { display: block; padding: 0.55rem 0.7rem; border-bottom: 0; border-radius: 3px; white-space: nowrap; }
.site-nav .nav-menu-list a:hover, .site-nav .nav-menu-list a:focus-visible { background: var(--rule); color: var(--ink); }
.site-nav .nav-menu-list a[aria-current] { color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.nav-menu-note { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.search-link { display: inline-flex; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; margin: 0; color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile nav toggle: hidden on desktop, shown under the 860px breakpoint
   below, where .site-nav becomes a collapsible dropdown panel. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  order: 2;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero and page heads */
.hero { padding-top: 4rem; padding-bottom: 3rem; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 16ch; margin: 0.6rem 0 1.4rem; }
.hero-lede { max-width: 38rem; font-size: 1.25rem; color: var(--ink-2); }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; }
.stats { display: flex; gap: 2rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; margin: 0; }
.stats strong { color: var(--ink); font-family: var(--serif); font-size: 1.5rem; font-weight: normal; margin-right: 0.35rem; }
.page-head { padding-top: 3.5rem; padding-bottom: 1.5rem; }
.page-head h1 { margin: 0.5rem 0 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40rem; }

/* Collage backdrop: a black-and-white "redacted newspaper" dossier photo
   (2026-09-29, supplied directly by the project owner) as a real <img alt>
   (announced to screen readers, per the manifest in site/static/generated/),
   with a dark gradient layered over it so the overlaid headline stays
   legible regardless of which photo is in play. When no image is present
   (image="" in page_hero()), this still reads fine as a plain dark panel. */
.collage-bg {
  position: relative;
  background-color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.collage-bg-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.collage-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.4) 68%, rgba(0, 0, 0, 0.62) 100%);
}
.collage-bg > .wrap { position: relative; z-index: 2; }
.collage-illustration-note { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247, 245, 240, 0.55); margin: 1.4rem 0 0; }
.collage-bg .button-quiet { color: #f7f5f0; border-color: rgba(247, 245, 240, 0.4); }
.collage-bg .button-quiet:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  /* Busier photo detail needs a stronger, flatter overlay on a narrow
     phone column so the wrapped headline stays readable. */
  .collage-bg::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.8)); }
}

/* Homepage hero band: generalized dossier imagery behind the headline. */
.hero-band { padding: 4.5rem 0 3rem; color: #f7f5f0; }
.hero-band .hero-eyebrow-band { display: block; color: rgba(247, 245, 240, 0.65); }
.hero-band .hero-title { color: #f7f5f0; }
.hero-band .hero-lede { color: rgba(247, 245, 240, 0.82); }
.hero-band .stats { border-top-color: rgba(247, 245, 240, 0.25); color: rgba(247, 245, 240, 0.65); }
.hero-band .stats strong { color: #f7f5f0; }
@media (max-width: 860px) {
  .hero-band { padding: 3rem 0 2.25rem; }
}

/* Generic page-hero: used on cross-cutting index pages (techniques, Learn,
   Write, case studies, campaigns, then-and-now) so no single country or
   institution is pictured behind pages that cover every side at once. */
.page-hero { padding: 2.75rem 0 1.75rem; min-height: 21rem; display: flex; align-items: flex-end; color: #f7f5f0; margin-bottom: 3.25rem; }
.page-hero > .wrap { width: 100%; }
.page-hero h1 { max-width: 46rem; }
.page-hero .eyebrow { color: rgba(247, 245, 240, 0.65); }
.page-hero h1 { color: #f7f5f0; margin: 0.5rem 0 0.9rem; }
.page-hero .lede { color: rgba(247, 245, 240, 0.85); }
.page-hero .legend { color: rgba(247, 245, 240, 0.85); }
.page-hero .color-white { background: transparent; color: #f7f5f0; border-color: #f7f5f0; }
.page-hero .color-gray { background: rgba(247, 245, 240, 0.28); color: #f7f5f0; border-color: #f7f5f0; }
.page-hero .color-black { background: #f7f5f0; color: #0b0b0b; border-color: #f7f5f0; }
/* Detail-page variant: a shorter banner carrying the breadcrumb and title
   of an individual page over one of the generated dossier heroes. */
.page-hero.detail-hero .breadcrumb { margin: 0 0 0.6rem; color: rgba(247, 245, 240, 0.7); }
.page-hero.detail-hero .breadcrumb a { color: inherit; }
.page-hero.detail-hero h1 { margin: 0; max-width: 46rem; overflow-wrap: anywhere; }
.page-hero.detail-hero .collage-illustration-note { margin-top: 1.1rem; }
@media (max-width: 640px) {
  .page-hero, .page-hero.detail-hero { padding: 2rem 0 1.25rem; min-height: 16rem; margin-bottom: 2.25rem; }
}

.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; padding: 0.7rem 1.2rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; border-radius: 4px; border: 1px solid var(--accent); }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-quiet:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.load-more { display: block; font-family: var(--sans); font-size: 0.85rem; padding: 0.7rem 1.4rem; margin: 2rem auto 0; background: transparent; color: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.load-more[hidden] { display: none; }
.load-more:hover { border-color: var(--accent); color: var(--accent); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; border-bottom: 1px solid var(--rule); margin: 3.5rem 0 1.5rem; padding-bottom: 0.6rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.85rem; white-space: nowrap; }
.section-intro { color: var(--ink-2); max-width: 40rem; }
.band { padding-bottom: 1rem; }

/* Collection grid: a masonry of mounted objects at their natural shapes. */
.object-grid { columns: 4 15rem; column-gap: 1.75rem; }
.object-grid-small { columns: 5 11rem; column-gap: 1.25rem; }
.object-card { display: inline-block; width: 100%; margin: 0 0 2rem; text-decoration: none; break-inside: avoid; }
.object-card[hidden] { display: none; }
.mount { display: block; background: var(--mount); padding: 1.1rem; }
.object-card img { width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 6px 18px rgba(0,0,0,0.08); transition: transform 0.2s ease; }
.object-card:hover img { transform: translateY(-3px); }
.object-title { display: block; margin-top: 0.7rem; font-size: 1.05rem; line-height: 1.3; }
.object-card:hover .object-title { color: var(--accent); }
.object-meta { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* Object page: image on its mount, museum label beside it. */
.object-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.object-figure { margin: 0; padding: 2.5rem; }
.object-figure img { margin: 0 auto; max-height: 82vh; width: auto; box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 12px 32px rgba(0,0,0,0.12); }
.object-label { position: sticky; top: 1.5rem; }
.object-label h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.object-caption { font-size: 1.1rem; color: var(--ink-2); }
.tombstone, .facts { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.65rem 1.25rem; margin: 1.5rem 0; padding: 1.25rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.98rem; }
.tombstone dt, .facts dt { padding-top: 0.25rem; }
.tombstone dd, .facts dd { margin: 0; }
.facts dd ul { margin: 0; padding-left: 1.1rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.85rem; }
.pager a { text-decoration: none; }
.related h2 { margin-top: 3.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; margin-bottom: 1.5rem; }

/* Chips, badges */
.chips { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { font-size: 0.75rem; padding: 0.15rem 0.55rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink-2); background: var(--paper); white-space: nowrap; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.color { display: inline-block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.1rem 0.5rem; border-radius: var(--radius); border: 1px solid var(--ink); vertical-align: 0.1em; white-space: nowrap; flex: none; line-height: 1.5; }
.color-white { background: transparent; color: var(--ink); border-color: var(--ink); }
.color-gray { background: color-mix(in srgb, var(--ink) 22%, var(--paper)); color: var(--ink); border-color: var(--ink); }
.color-black { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quiet { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Filters */
.filters { display: grid; gap: 0.8rem; margin: 0.5rem 0 2.25rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filter-status { font-size: 0.8rem; color: var(--muted); margin: 0; min-height: 1.2em; }
.filters-select { grid-template-columns: repeat(auto-fit, minmax(14rem, max-content)); align-items: end; gap: 1rem 1.5rem; }
.filters-select > label, .ms-label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: grid; gap: 0.3rem; }
.filters-select select, .ms-button { font: 0.9rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.45rem 0.6rem; letter-spacing: 0; text-transform: none; }
.filters-select .filter-status { grid-column: 1 / -1; }
.filters-advanced .more-filters, .filters-advanced .filter-active { grid-column: 1 / -1; }
.more-filters summary { cursor: pointer; font: 0.78rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); padding: 0.35rem 0; width: fit-content; }
.more-filters summary:hover { color: var(--accent, var(--ink)); }
.more-filters .filter-count { letter-spacing: 0; color: var(--muted); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem 1.5rem; padding-top: 0.9rem; }
.filter-grid .ms-button { width: 100%; }
.ms { position: relative; display: grid; gap: 0.3rem; align-content: end; min-width: 14rem; }
.ms-label { display: block; }
.ms-button { text-align: left; cursor: pointer; width: 100%; position: relative; padding-right: 1.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-button::after { content: ""; position: absolute; right: 0.7rem; top: 50%; width: 0.4rem; height: 0.4rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
.ms-button[aria-expanded="true"]::after { transform: translateY(-20%) rotate(225deg); }
.ms-button.ms-active { border-color: var(--ink); font-weight: 600; }
.ms-panel { position: absolute; top: 100%; left: 0; z-index: 20; width: max(100%, 18rem); max-width: 90vw; margin-top: 0.2rem; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.ms-panel[hidden] { display: none; }
.ms-search { display: block; width: calc(100% - 1rem); margin: 0.5rem; font: 0.9rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.4rem 0.6rem; }
.ms-list { max-height: 16rem; overflow-y: auto; padding: 0.25rem 0; }
.ms-opt { display: flex; align-items: baseline; gap: 0.55rem; padding: 0.45rem 0.8rem; font: 0.9rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.ms-opt:hover { background: color-mix(in srgb, var(--ink) 8%, var(--paper)); }
.ms-opt[hidden] { display: none; }
.ms-opt input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--ink); align-self: center; }
.ms-opt .ms-n { color: var(--muted); margin-left: auto; }
.ms-opt.ms-empty { opacity: 0.45; cursor: default; }
.filter-active { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-active[hidden], .more-filters .filter-count[hidden] { display: none; }
.filter-chip { font: 0.78rem var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 999px; padding: 0.25rem 0.7rem; cursor: pointer; }
.filter-chip:hover { background: var(--ink); color: var(--paper); }
.filter-clear { border-color: var(--rule); color: var(--muted); }
@media (max-width: 640px) {
  .filters-advanced { grid-template-columns: 1fr 1fr; gap: 0.9rem 0.8rem; }
  .filters-advanced label:first-child { grid-column: 1 / -1; }
  .filters-advanced select { width: 100%; }
  .ms-button { width: 100%; }
  .filter-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .ms { min-width: 0; }
  /* On phones the list opens in the page flow, full width, instead of floating. */
  .ms-panel { position: static; width: 100%; max-width: none; box-shadow: none; }
  .filter-grid .ms:has(.ms-panel:not([hidden])) { grid-column: 1 / -1; }
  .ms-opt { padding: 0.65rem 0.8rem; }
}
.note { font-size: 0.85rem; color: var(--muted); max-width: 44rem; margin-top: 1rem; }

/* Technique index and pages */
.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; }
.family h3 { margin-bottom: 0.4rem; }
.family-blurb { color: var(--muted); font-size: 0.95rem; }
.family ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.family li { padding: 0.25rem 0; border-bottom: 1px solid var(--rule); }
.family li a { text-decoration: none; }
.family-block h2 { margin-top: 3rem; }
.technique-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.technique-card { display: flex; flex-direction: column; background: var(--paper-2); border-top: 2px solid var(--ink); text-decoration: none; overflow: hidden; }
.technique-card:hover { border-top-color: var(--accent); }
.technique-card-img { width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; }
.technique-card-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.2rem; flex: 1; }
.technique-name { font-size: 1.2rem; }
.technique-def { font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }
.technique-counts { font-size: 0.75rem; color: var(--muted); margin-top: auto; padding-top: 0.3rem; }
.aliases, .lineage { font-size: 0.85rem; color: var(--muted); }
.aliases { margin-top: 0.6rem; }
.definition { font-size: 1.45rem; line-height: 1.4; margin: 1.5rem 0 2rem; }
.tell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tell { background: var(--paper-2); padding: 1.1rem 1.25rem; border-left: 3px solid var(--accent); }
.tell-not { border-left-color: var(--rule); }
.tell h2 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.tell p { margin: 0; }
.technique-more { max-width: calc(var(--measure) + 2.5rem); }

/* Brief lists and pages */
.brief-list { list-style: none; padding: 0; margin: 0; }
.brief-row { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--rule); }
.brief-row[hidden], .day[hidden] { display: none; }
.brief-kicker { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }
.brief-headline { display: block; font-size: 1.12rem; line-height: 1.35; text-decoration: none; margin-bottom: 0.5rem; }
.brief-headline:hover { color: var(--accent); }
.day-head { margin: 2.25rem 0 0; padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink); font-size: 0.78rem; }
.legend { font-size: 0.85rem; color: var(--ink-2); line-height: 2; }
.brief h1, .campaign h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.2; }
.summary p:first-child { font-size: 1.2rem; line-height: 1.55; }
.tells li, .evidence li { margin-bottom: 0.5rem; }
.evidence { font-size: 0.98rem; }
.counter { background: var(--paper-2); border-left: 3px solid var(--accent); padding: 0.4rem 1.5rem 0.6rem; margin: 2.5rem 0; }
.counter h2 { margin-top: 1rem; }
.quiet-note { color: var(--muted); font-style: italic; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.plain-list a { text-decoration: none; }
.definition-card { margin-top: 2.5rem; padding: 1.4rem 1.5rem; background: var(--paper-2); border-top: 2px solid var(--accent); }
.definition-card h3 { margin-bottom: 0.6rem; }
.definition-card p { font-size: 1rem; }
.campaign-list { list-style: none; padding: 0; margin: 0; }
.campaign-row { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0.5rem 1.6rem; align-items: start; }
.campaign-text { display: grid; gap: 0.5rem; min-width: 0; }
.campaign-thumb { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mount); }
.campaign-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.campaign-thumb-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.25rem 0.5rem; font-family: var(--mono, var(--sans)); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.62); }
.campaign-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 0 0 2rem; }
.campaign-strip figure { margin: 0; }
.campaign-strip a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mount); }
.campaign-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.campaign-strip figcaption { font-family: var(--sans); font-size: 0.78rem; line-height: 1.35; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 640px) { .campaign-strip { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; } .campaign-strip figcaption { display: none; } .campaign-row { grid-template-columns: 1fr; } .campaign-thumb { aspect-ratio: 16 / 9; } }
.campaign-title { font-size: 1.45rem; text-decoration: none; }
.campaign-title:hover { color: var(--accent); }
.transcription { margin: 2rem 0; padding: 1.4rem 1.5rem; background: var(--paper-2); border-top: 2px solid var(--accent); max-width: var(--measure); }
.transcription h2 { margin: 0 0 0.9rem; font-size: 1.1rem; }
.transcription-meta { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 0.4rem; }
.transcription-meta:first-of-type { margin-top: 0; }
.transcription pre { white-space: pre-wrap; overflow-wrap: break-word; font-family: inherit; font-size: 0.98rem; line-height: 1.55; margin: 0; }
.transcription-note { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }

/* Long-form prose */
/* Long URLs and ids in source lists break rather than widen the page on phones. */
.prose { overflow-wrap: break-word; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; vertical-align: top; overflow-wrap: anywhere; }
.prose th { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: normal; }
.prose code { font-size: 0.85em; background: var(--paper-2); padding: 0.05em 0.3em; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.two-col .facts { grid-template-columns: 6rem 1fr; }

/* Search */
.search-form input { width: 100%; font: 1.3rem var(--serif); padding: 0.8rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); margin: 0.5rem 0 1rem; }
.search-results { list-style: none; padding: 0; margin: 1rem 0 0; }
.search-results li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.search-results .kind { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; }
.search-results a { font-size: 1.12rem; text-decoration: none; }
.search-results p { font-size: 0.92rem; color: var(--ink-2); margin: 0.25rem 0 0; }
.search-results li.has-thumb { display: flex; gap: 1rem; align-items: flex-start; }
.search-results li.has-thumb > div { min-width: 0; flex: 1; }
.search-results .result-thumb { flex: 0 0 auto; width: 5.5rem; height: 5.5rem; background: var(--rule); overflow: hidden; }
.search-results .result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Footer */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--rule); background: var(--paper-2); }
.footer-inner { padding-top: 2.5rem; padding-bottom: 3rem; font-size: 0.85rem; color: var(--ink-2); max-width: var(--wide); }
.footer-inner p { max-width: 44rem; }
.motto { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }

@media (max-width: 860px) {
  .object-layout, .split, .tell-grid, .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .object-label { position: static; }
  .object-figure { padding: 1.25rem; }
  .wordmark .frame-logo { height: 2.4rem; }
  .wordmark .expansion { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { padding-top: 2.5rem; }

  /* Hamburger nav: the toggle button appears, and .site-nav becomes a
     dropdown panel under the header instead of wrapping inline. site.js
     toggles .is-open and the button's aria-expanded together. */
  .header-inner { flex-wrap: nowrap; position: relative; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0.25rem 1.25rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav .search-link { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current] { border-bottom-color: var(--rule); }
  .nav-menu-button { width: 100%; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .nav-menu-button[aria-current] { border-bottom-color: var(--rule); }
  .nav-menu-list { position: static; min-width: 0; margin: 0; padding: 0 0 0 1rem; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .site-nav .nav-menu-list a { white-space: normal; border-radius: 0; border-bottom: 1px solid var(--rule); padding: 0.7rem 0; }
  .theme-toggle { align-self: flex-start; padding: 0.7rem 0; }
}
/* Home "From the collection": a shuffled carousel over the staggered (masonry)
   grid. Slides keep their natural shapes, like the grid. */
.carousel .object-card { display: block; margin: 0; }
.carousel .object-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.carousel .object-meta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.carousel { position: relative; margin-bottom: 1.25rem; }
.carousel .mount { display: flex; justify-content: center; }
.carousel .object-card img { width: auto; max-width: 100%; max-height: 15rem; }
#home-grid { column-gap: 1.25rem; }
#home-grid .object-card { margin-bottom: 1.1rem; }
.load-more-row { margin: 2rem 0 0; text-align: center; font-size: 0.95rem; }
.load-more-row[hidden] { display: none; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 0.6rem; }
.carousel-controls[hidden] { display: none; }
.carousel-btn { font: inherit; font-size: 0.85rem; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.35rem 0.85rem; cursor: pointer; }
.carousel-btn:hover, .carousel-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.carousel-track { overflow-anchor: none; display: flex; align-items: flex-start; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; padding-bottom: 0.4rem; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.carousel-track .object-card { flex: 0 0 15rem; scroll-snap-align: start; }
@media (max-width: 560px) {
  .carousel-track { gap: 0.9rem; }
  .carousel-track .object-card { flex-basis: 62vw; }
}
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .object-grid { columns: 2 9rem; column-gap: 1rem; }
  .object-grid-small { columns: 2 8rem; }
  .mount { padding: 0.6rem; }
  .site-nav { gap: 0.9rem; }
  .tombstone, .facts { grid-template-columns: 1fr; gap: 0.15rem; }
  .tombstone dd, .facts dd { margin-bottom: 0.6rem; }
  .stats { gap: 1rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Home hero: text beside three mounted posters. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3.5rem; align-items: end; }
.hero .stats { grid-column: 1 / -1; }
.hero-eyebrow { display: none; }
.hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 1.25rem; padding: 2.5rem 2rem 2rem; background: var(--mount); }
.hero-piece { flex: 1 1 0; min-width: 0; }
.hero-piece img { width: 100%; box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 10px 26px rgba(0,0,0,0.12); transition: transform 0.2s ease; }
.hero-piece:nth-child(2) { flex-grow: 1.25; margin-bottom: 1.25rem; }
.hero-piece:hover img { transform: translateY(-3px); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-eyebrow { display: block; }
  .hero-art { order: -1; padding: 1rem; margin-bottom: 0.5rem; }
  .hero-title { font-size: 2.2rem; margin-top: 0.4rem; }
  .hero-lede { font-size: 1.1rem; }
}

/* Why we built this */
section.why .prose { max-width: 40rem; }
.wrap.why { padding-top: 1rem; padding-bottom: 1rem; }
.wrap.why .prose p { font-size: 1.15rem; line-height: 1.6; }

/* Content notes: the object is always shown; the note only says what is coming */
.content-note { border-left: 3px solid var(--accent); background: var(--mount); padding: .6rem .9rem; margin: 0 0 1.25rem; font-family: var(--sans); font-size: .9rem; max-width: 48rem; }
.content-note a { color: inherit; }
.prose span.content-note { display: block; }
.content-flag { display: inline-block; margin-top: .3rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Archive sub-nav: one section picker at every width */
.sub-nav { border-top: 1px solid var(--rule, rgba(0,0,0,.08)); }
.sub-nav-picker { padding-top: .5rem; padding-bottom: .5rem; }
.sub-nav-picker select { display: block; width: 100%; max-width: 20rem; font: 0.9rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.5rem 0.65rem; }

/* Learn / Write cross-links on technique pages */
.go-deeper { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 2rem; background: var(--mount); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.go-deeper h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .4rem; }
.go-deeper h2 a { color: var(--ink-2); text-decoration: none; }
.go-deeper ul { list-style: none; margin: 0; padding: 0; }
.go-deeper li { margin: .2rem 0; }

/* Learn / Write index pages */
.section-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.section-list li { border-top: 1px solid var(--rule, rgba(0,0,0,.08)); padding: .8rem 0; }
.section-list li > a { font-size: 1.15rem; }
.section-list p { margin: .25rem 0 0; color: var(--ink-2); font-size: .95rem; }
.placeholder-note { font-family: var(--sans); font-size: .9rem; color: var(--ink-2); border-left: 3px solid var(--rule, rgba(0,0,0,.15)); padding-left: .9rem; }

/* Technique map links */
.head-links { display: inline-flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.section-actions { margin: 1rem 0 0; }

/* Evidence ratings on Learn pages */
.evidence { display: inline-block; margin-left: .5rem; padding: .05rem .45rem; border: 1px solid var(--rule); border-radius: 2px; font-family: var(--sans); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); vertical-align: middle; }
.evidence-strong { border-color: var(--ink-2); color: var(--ink); }
.evidence-contested { border-color: var(--accent); color: var(--accent); }

/* "At a glance" summary box at the top of long pages */
.glance { border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--mount); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .98rem; }
.glance-label { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .5rem; }
.glance-line { font-size: 1.08rem; line-height: 1.5; margin: 0 0 .9rem; }
.glance-facts { display: grid; grid-template-columns: 6.5rem 1fr; gap: .4rem 1.1rem; margin: 0; }
.glance-facts dt { font-family: var(--sans); font-size: .8rem; color: var(--ink-2); padding-top: .15rem; }
.glance-facts dd { margin: 0; }
.glance-full { margin-top: .9rem; font-family: var(--sans); font-size: .85rem; }
.glance-full summary { cursor: pointer; color: var(--ink-2); }
.glance-full .facts { border: 0; padding: .6rem 0 0; margin: 0; }
.glance + .on-page-nav { margin-top: 1rem; }
@media (max-width: 40rem) { .glance-facts { grid-template-columns: 1fr; gap: .1rem; } .glance-facts dd { margin-bottom: .5rem; } }

/* "On this page" jump nav on long technique / case-study pages */
h2[id] { scroll-margin-top: 4.5rem; }
.on-page-nav { position: sticky; top: 0; z-index: 5; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .6rem 0; margin: 2rem 0; }
.on-page-nav p { margin: 0 0 .4rem; }
.on-page-picker select { display: block; width: 100%; max-width: 24rem; font: 0.9rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.5rem 0.65rem; }

/* Folded "How to spot it" section on long pages */
.fold { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 2rem 0; padding: .4rem 0; }
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--ink-2); }
.fold[open] > summary::after { content: "\2212"; }
.fold > summary h2 { margin: .4rem 0; }

/* Detail pages: hero title and text share one left edge; long pages get a sticky right rail */
.detail-layout { display: grid; grid-template-columns: minmax(0, 46rem); gap: 0 3.5rem; align-items: start; }
.detail-layout.has-rail { grid-template-columns: minmax(0, 46rem) minmax(15rem, 1fr); grid-template-areas: "main rail"; }
.detail-layout .detail-main { grid-area: main; max-width: none; padding: 0; margin: 0; }
.detail-layout .detail-rail { grid-area: rail; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; margin-top: 1rem; }
.detail-rail .glance { margin: 0 0 1rem; }
.detail-rail .glance-facts { grid-template-columns: 5.5rem 1fr; }
.rail-nav ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .85rem; }
.rail-nav li { border-top: 1px solid var(--rule); }
.rail-nav a { display: block; padding: .4rem 0; text-decoration: none; color: var(--ink-2); }
.rail-nav a:hover { color: var(--accent); }
.rail-nav .glance-label { margin-bottom: .4rem; }
.rail-card { margin: 0 0 1rem; }
.rail-card img { display: block; width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; }
.rail-card figcaption { font-family: var(--sans); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: .35rem; }
.rail-related { margin-top: 1.25rem; }
.rail-related .glance-label { margin-bottom: .5rem; }
.detail-layout.has-rail .detail-main .on-page-nav { display: none; }
@media (max-width: 64rem) {
  .detail-layout.has-rail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "main"; }
  .detail-layout .detail-rail { position: static; max-height: none; overflow: visible; }
  .rail-nav, .rail-card, .rail-related { display: none; }
  .detail-layout.has-rail .detail-main .on-page-nav { display: block; }
}

/* Identity page: labelled thumbnails of the generated images. */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.asset-grid figure { margin: 0; }
.asset-grid img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.asset-grid figcaption { font-size: 0.85rem; margin-top: 0.35rem; }
.asset-grid .illustration-label { display: block; font-family: var(--mono, ui-monospace, monospace); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }

/* Long hero titles: the subtitle after the first colon sits smaller on its own line */
.page-hero h1 .title-sub { display: block; margin-top: .5rem; font-size: .58em; line-height: 1.3; letter-spacing: 0; color: rgba(247, 245, 240, 0.82); }
@media (max-width: 640px) {
  .page-hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); line-height: 1.15; }
}

/* Card grids (About parts, Write start-here / handbook / templates) and
   callouts. Cards are one link each: an image on top (a collection object
   or a technique card), then a small kicker, a title and a short text. */
.card-grid { display: grid; gap: 1.1rem; margin: 1rem 0 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frame-card { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--rule); text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
.frame-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.frame-card:hover .frame-card-title { color: var(--accent); }
.frame-card-media { display: flex; background: var(--mount); aspect-ratio: 16 / 10; overflow: hidden; }
.frame-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.frame-card-split img { width: 50%; }
.frame-card-body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.85rem 1rem 1.05rem; flex: 1; }
.frame-card-kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.frame-card-title { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.frame-card-text { font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.card-grid-feature .frame-card { flex-direction: row; }
.card-grid-feature .frame-card-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 11rem; }
.card-grid-feature .frame-card-body { justify-content: center; }
.card-grid-feature .frame-card-title { font-size: 1.2rem; }
.card-grid-feature .frame-card-text { font-size: 0.95rem; }
.section-cards .card-grid-4 .frame-card-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card-span-2 { grid-column: span 2; }
.frame-card-callout { border-left: 3px solid var(--accent); justify-content: center; background: transparent; }
.frame-card-callout .frame-card-title { font-size: 1.35rem; }
.frame-card-callout .frame-card-text { display: block; -webkit-line-clamp: unset; font-size: 0.98rem; }
.frame-card-more { font-family: var(--sans); font-size: 0.85rem; color: var(--accent); margin-top: 0.4rem; }
.frame-card-more::after { content: " \2192"; }
.about-parts { margin-bottom: 1rem; }
.about-parts h2 { margin: 1.5rem 0 0.25rem; }
.section-cards .prose h3, .section-cards > h3, .section-cards h3 { margin: 1.6rem 0 0.2rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.callout { border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--paper-2); padding: 1rem 1.35rem 0.4rem; margin: 2rem 0; }
.callout h2 { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 600; }
.callout-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; align-items: start; margin: 2rem 0 3rem; }
.callout-row .callout { margin: 0; }
.callout-row > :first-child:nth-last-child(3) { grid-column: span 2; }
.callout-row > :first-child:nth-last-child(3) ~ .callout { grid-column: span 1; }
.section-cards > h2 { margin-top: 2.2rem; }
.callout .prose > :last-child { margin-bottom: 0.9rem; }
@media (max-width: 68rem) { .callout-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .callout-row > :first-child:nth-last-child(3) { grid-column: span 2; } .card-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-span-2 { grid-column: span 3; } }
@media (max-width: 48rem) { .card-grid-feature { grid-template-columns: 1fr; } .card-grid-4, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-span-2 { grid-column: span 2; } }
@media (max-width: 36rem) {
  .card-grid, .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; gap: 0.8rem; }
  .card-span-2 { grid-column: auto; }
  .callout-row { grid-template-columns: 1fr; }
  .callout-row > :first-child:nth-last-child(3) { grid-column: auto; }
  .frame-card { flex-direction: row; }
  .frame-card-media, .card-grid-feature .frame-card-media { flex: 0 0 6.5rem; aspect-ratio: auto; min-height: 6.5rem; }
  .frame-card-split { flex-basis: 6.5rem; }
  .frame-card-body { padding: 0.7rem 0.85rem; }
  .frame-card-callout { flex-direction: column; }
}
.callout-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.callout-row-2 > .callout, .callout-row-2 > :first-child:nth-last-child(2) { grid-column: auto; }
.section-cards .section-list { columns: 2; column-gap: 2.5rem; }
.section-cards .section-list li { break-inside: avoid; }
.section-cards > h2 { margin-top: 2.2rem; }
@media (max-width: 48rem) { .section-cards .section-list { columns: 1; } .callout-row-2 { grid-template-columns: 1fr; } }
.card-grid-1 { grid-template-columns: 1fr; }

/* About: alternating bands of text, figures, cards and callouts. */
.about-band { display: grid; grid-template-columns: minmax(0, 46rem) minmax(15rem, 1fr); gap: 0 3.5rem; align-items: start; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.about-figure { margin: 1.2rem 0 0; }
.about-figure img { display: block; width: 100%; max-height: 24rem; object-fit: contain; object-position: top left; background: var(--mount); padding: 0.6rem; }
.about-figure figcaption { font-family: var(--sans); font-size: 0.75rem; color: var(--ink-2); margin-top: 0.4rem; }
.about-pullquote { margin: 1.4rem 0 0; padding: 0.4rem 0 0.4rem 1.2rem; border-left: 3px solid var(--accent); font-size: 1.35rem; line-height: 1.4; font-weight: 500; color: var(--ink); }
.about-break { position: relative; min-height: 11rem; margin: 2.5rem 0; overflow: hidden; }
.about-break .collage-illustration-note { position: absolute; left: 1.25rem; bottom: 0.7rem; margin: 0; z-index: 2; }
.about-read { margin: 2rem auto; }
.about-read .prose { max-width: 46rem; }
.about-read .two-col { margin-top: 1.4rem; }
.about-doctrine { columns: 2; column-gap: 2.5rem; }
.about-doctrine li { break-inside: avoid; }
.callout-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.callout-row-4 > .callout, .callout-row-4 > :first-child:nth-last-child(4) { grid-column: auto; }
@media (max-width: 56rem) { .about-band { grid-template-columns: 1fr; } .about-doctrine { columns: 1; } .about-read .two-col { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .callout-row-4 { grid-template-columns: 1fr; } .about-pullquote { font-size: 1.2rem; } .about-break { min-height: 8rem; margin: 1.5rem 0; } }
/* About on a phone: each card group is one swipeable row, so text, cards and
   images alternate instead of one long stack of cards. */
@media (max-width: 36rem) {
  .about-parts .card-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.8rem; margin: 0.8rem -1.25rem 1.5rem; padding: 0 1.25rem 0.6rem; scroll-padding-left: 1.25rem; -webkit-overflow-scrolling: touch; }
  .about-parts .frame-card { flex: 0 0 78%; flex-direction: column; scroll-snap-align: start; }
  .about-parts .frame-card-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .about-parts .frame-card-callout { justify-content: flex-start; }
}
.about-read .two-col .facts { grid-template-columns: 8.5rem 1fr; }
