/* ============================================================================
   Charles Knight — abacollc.com

   Design note: the palette is sampled from his own photographs — the cool studio
   backdrop, the oxblood-and-navy tweed, and the blue pocket square — so the
   portraits sit inside the page rather than on top of it. The structural device
   throughout is the question: sections open with one, and /ask/ is nothing but.
   ========================================================================== */

/* --- Fonts. Self-hosted, latin subset. The page makes no third-party requests. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../fonts/plex-sans-cond-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  --paper:    #E9EAEC;  /* studio backdrop */
  --card:     #F4F2EE;  /* warm surface */
  --ink:      #17191C;
  --ink-soft: #565B63;
  --rule:     #CBCDD2;
  --blue:     #2E5C8A;  /* pocket square */
  --oxblood:  #6B2E3B;  /* jacket */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-label:   "IBM Plex Sans Condensed", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shell:   72rem;
  --measure: 36rem;
  /* The plaque every organisation mark is fitted into. One box, so mixed aspect ratios
     share a footprint; sized so the smallest wordmarks are still legible. */
  --mark-w:  19rem;
  --mark-h:  8.5rem;
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --radius:  1rem;

  /* Deliberately restrained. An earlier pass ran much larger and the pages read as
     mostly air; body size is unchanged because that's the one thing not to shrink. */
  --step-xl: clamp(2.25rem, 5.2vw, 3.75rem);
  --step-l:  clamp(1.75rem, 3.2vw, 2.4rem);
  --step-m:  clamp(1.2rem, 1.9vw, 1.5rem);
  --step-s:  clamp(1.05rem, 1.1vw, 1.15rem);
  --step-b:  clamp(1.0625rem, 0.35vw + 1rem, 1.125rem);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #14161A;
    --card:     #1C1F24;
    --ink:      #E8E6E1;
    --ink-soft: #9BA1AA;
    --rule:     #2E333A;
    --blue:     #8FB6DE;
    --oxblood:  #D69AA6;
  }
}

/* --- Reset and base ----------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-b);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--blue); color: var(--paper); }

/* --- Utilities ---------------------------------------------------------- */

.label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-label);
}
.skip:focus { left: 0; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

/* Sections stack with one consistent rhythm. Nothing else sets these margins. */
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--tint { background: var(--card); }

/* --- Masthead ----------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

@supports (backdrop-filter: blur(1px)) {
  .masthead {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: blur(10px);
  }
}

.masthead__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.masthead__name {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.masthead__nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.masthead__nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

/* --- Hero --------------------------------------------------------------- */

.hero {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

.hero__text { min-width: 0; }

.hero__name {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.hero__line {
  font-size: var(--step-xl);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  margin: 0;
}

/* The one flourish on the site: Fraunces' wonk axis on the accented clause. */
.hero__line em {
  font-style: italic;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  color: var(--blue);
}

.hero__lede {
  max-width: 30rem;
  margin: clamp(1.25rem, 2vw, 1.75rem) 0 0;
  color: var(--ink-soft);
  font-size: var(--step-s);
  line-height: 1.5;
}

.hero__meta {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 2rem 0 0;
}
.hero__meta a { color: var(--ink); }

/* Photographs are shown whole — no forced aspect ratio, no cropping. The intrinsic
   width/height attributes on the <img> reserve the right space, so nothing shifts. */
.hero__portrait {
  margin: 0;
  justify-self: start;
  width: 100%;
  max-width: 15rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  rotate: 2deg;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.10);
}

@media (min-width: 56rem) {
  .hero__portrait { justify-self: end; max-width: 24rem; }
}

.hero__portrait img { width: 100%; height: auto; }

/* --- Now: the concurrent roles ------------------------------------------ */

.now__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.now__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.now__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  padding: clamp(1rem, 2vw, 1.4rem) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 42rem) {
  .now__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; }
}

/* The rule that draws left-to-right on hover. */
.now__row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.now__row:hover::after,
.now__row:focus-visible::after { transform: scaleX(1); }

.now__role {
  font-family: var(--font-display);
  font-size: var(--step-m);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.now__org {
  color: var(--ink-soft);
  line-height: 1.35;
}

@media (min-width: 42rem) {
  .now__org { text-align: right; }
}

.now__since {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.now__note {
  grid-column: 1 / -1;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
  max-width: 42rem;
}

/* --- Organisation marks -------------------------------------------------- */

/* The logos arrive as whatever each organisation publishes — SVG wordmarks, a near-square
   PNG badge, a 6:1 lockup. Normalising on height alone would let the wide wordmarks run
   away with the row, so the mark gets a fixed box and `contain` fits each one inside it.
   That equalises the footprint rather than any single dimension. */
.now__mark {
  align-self: center;   /* the row is baseline-aligned; an image has no useful baseline */
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--mark-w);
  height: var(--mark-h);
  padding: 0.8rem 1.2rem;
  border-radius: 0.375rem;
  /* Deliberately a fixed light ground in BOTH themes. Most of these marks are dark ink on
     transparency and none ship a dark-theme variant, so a plaque that flipped with the
     theme would swallow Platt Park and South Pearl whole on the dark page. */
  background: #F4F2EE;
  border: 1px solid rgba(23, 25, 28, 0.08);
  opacity: 0.82;
  transition: opacity 0.4s var(--ease);
}

/* For marks drawn white-on-transparent, which the light plaque would erase. */
.now__mark--dark {
  background: #1C1F24;
  border-color: rgba(232, 230, 225, 0.14);
}

.now__row:hover .now__mark,
.now__row:focus-visible .now__mark { opacity: 1; }

.now__mark img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .now__mark { transition: none; }
}

@media (min-width: 42rem) {
  .now__list--marked .now__row {
    grid-template-columns: var(--mark-w) minmax(0, 1fr) minmax(0, 1fr);
  }
  /* Hang the note under the text, not under the mark. */
  .now__list--marked .now__note { grid-column: 2 / -1; }
}

/* Rows without a link get no hover affordance. */
.now__row--static { cursor: default; }
.now__row--static::after { display: none; }

/* In a half-width column the two-up row is too cramped, so stack it regardless of
   viewport. Media queries can't see container width; this is the honest override. */
.now__list--stacked .now__row { grid-template-columns: 1fr; }
.now__list--stacked .now__org { text-align: left; }

/* --- Question spine ----------------------------------------------------- */

.spine__q {
  font-size: var(--step-l);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 100;
  max-width: 20ch;
  margin: 0.75rem 0 clamp(1.5rem, 3vw, 2rem);
}

/* Question and answer sit side by side once there's room, so the band isn't half empty. */
.spine {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (min-width: 58rem) {
  .spine {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

.spine__a { max-width: var(--measure); }
.spine__a p { margin: 0 0 1.1em; }
.spine__a p:last-child { margin-bottom: 0; }

/* --- Home two-column ----------------------------------------------------- */

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 4vw, 3rem);
}

@media (min-width: 60rem) {
  .home-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
  }
}

.home-grid__side {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.sidecard {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 1.8vw, 1.35rem);
  background: var(--card);
}

/* On the tinted band the card would vanish, so flip it to the page ground. */
.section--tint .sidecard { background: var(--paper); }

.sidecard__title {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}

.sidecard__list,
.sidecard__questions { list-style: none; margin: 0; padding: 0; }

.sidecard__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.sidecard__row:first-child { border-top: 0; padding-top: 0; }

.sidecard__role {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
}

.sidecard__org {
  grid-column: 1 / -1;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* Pinned to the first row so the year sits beside the role, not under the org
   (which spans both columns). */
.sidecard__since {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.sidecard__questions li { padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.sidecard__questions li:first-child { border-top: 0; padding-top: 0; }

.sidecard__questions a {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.28;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  text-decoration: none;
  text-wrap: pretty;
  transition: color 0.2s var(--ease);
}
.sidecard__questions a:hover { color: var(--blue); }

.sidecard__more {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.sidecard__more a { color: var(--ink); }

/* --- Writing ------------------------------------------------------------ */

.writing__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.writing__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.writing__item { isolation: isolate; }

.writing__link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: clamp(1rem, 1.8vw, 1.25rem);
  text-decoration: none;
  color: inherit;
}

/* Soft panel that scales in behind the row on hover — Spotlight's card affordance. */
.writing__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--card);
  border-radius: var(--radius);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.writing__link:hover::before,
.writing__link:focus-visible::before { opacity: 1; transform: scale(1); }

.section--tint .writing__link::before { background: var(--paper); }

@media (min-width: 48rem) {
  .writing__link {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.35rem 2rem;
  }
}

/* Reads as a link affordance, but the whole row is already the link — so it's
   aria-hidden in the markup and never announced twice. */
.readmore {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0.9rem 0 0;
}
.readmore::after {
  content: " →";
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.writing__link:hover .readmore::after { transform: translateX(3px); }

.writing__meta {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 0.35em;
}

.writing__title {
  font-family: var(--font-display);
  font-size: var(--step-m);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.writing__link:hover .writing__title,
.writing__link:focus-visible .writing__title { color: var(--blue); }

.writing__excerpt {
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  max-width: 44rem;
  line-height: 1.5;
}

/* Small outbound marker for pieces hosted elsewhere. */
.writing__out {
  display: block;
  margin-top: 0.3em;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.writing__out::before { content: "↗ "; }

/* --- Ask ---------------------------------------------------------------- */

/* Questions are the reading material here, so hold them to a comfortable measure
   rather than letting them run the full shell width. */
.ask { max-width: 52rem; }

.ask__theme { margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem); }
.ask__theme:last-child { margin-bottom: 0; }

.ask__theme-title {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin: 0 0 1.5rem;
}

.ask__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ask__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(0.95rem, 1.7vw, 1.2rem) clamp(1.1rem, 1.9vw, 1.35rem);
  /* Deep links land clear of the sticky masthead. */
  scroll-margin-top: 6rem;
  transition: border-left-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ask__item:hover { border-left-color: var(--blue); transform: translateX(2px); }
.ask__item:focus-within { border-left-color: var(--blue); }

/* Arriving via a shared link should land on something obviously highlighted. */
.ask__item:target {
  border-left-color: var(--blue);
  border-left-width: 3px;
  box-shadow: 0 0 0 1px var(--blue);
}

.ask__body { min-width: 0; }

/* The envelope: a sibling of the disclosure, never inside its summary. Visible at rest
   rather than hover-only, because touch has no hover. */
.ask__mail {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.35rem -0.4rem 0 0;
  border-radius: 999px;
  color: var(--ink-soft);
  opacity: 0.75;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ask__mail:hover,
.ask__mail:focus-visible {
  color: var(--blue);
  opacity: 1;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.ask__q {
  font-family: var(--font-display);
  font-size: var(--step-s);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 60;
  margin: 0;
  text-wrap: pretty;
}

/* Questions with an answer become a disclosure. Cursor and marker only appear there. */
.ask__item details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.ask__item details > summary::-webkit-details-marker { display: none; }

/* Narrow screens: the toggle beside the question leaves it two words wide, so drop it
   onto its own line instead. Scoped to .ask__item so it outranks the `margin-left: auto`
   on .ask__toggle below regardless of source order. */
@media (max-width: 36rem) {
  .ask__item details > summary { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .ask__item .ask__toggle { margin-left: 0; }
}

.ask__toggle {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-left: auto;
  white-space: nowrap;
}
.ask__toggle::after { content: " +"; }
.ask__item details[open] .ask__toggle::after { content: " –"; }

.ask__a {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.ask__cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

/* --- Photography -------------------------------------------------------- */

.figure { margin: clamp(2rem, 4vw, 3rem) 0; }
.figure img { border-radius: 2px; width: 100%; }

@media (min-width: 60rem) {
  .figure--wide { width: min(56rem, 90vw); }
}

.figure__caption,
.band__caption {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
  max-width: 34rem;
}

.band { margin: clamp(3rem, 7vw, 5rem) 0; }
.band__img { width: 100%; max-height: 34rem; object-fit: cover; }
.band__caption { margin-inline: auto; padding-inline: var(--gutter); max-width: var(--shell); }

/* --- Page and prose ----------------------------------------------------- */

.page {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vw, 6rem);
}

/* The head carries the top padding so it works inside .page and inside a bare .shell. */
.page__head {
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Shared interior-page opener: text left, a tilted portrait right. */
.page-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

@media (min-width: 52rem) {
  .page-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.page-header__text { min-width: 0; }

/* Kept smaller than the home hero portrait on phones — on an interior page it's an accent,
   and at 15rem a 2:3 portrait eats most of the first screen before any content. */
.page-header__portrait {
  margin: 0;
  justify-self: start;
  max-width: 11rem;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  rotate: 3deg;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.10);
}

@media (min-width: 52rem) {
  .page-header__portrait { justify-self: end; max-width: 17rem; }
}

.page-header__portrait img { width: 100%; height: auto; }

.page__title {
  font-size: var(--step-l);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  margin: 0.6rem 0 0;
  max-width: 18ch;
}

.page__standfirst {
  max-width: var(--measure);
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: var(--step-s);
  line-height: 1.5;
}

/* Credit line under an archived article. */
.post__source {
  max-width: var(--measure);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-label);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.post__source a { color: var(--blue); }

.page__back {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: clamp(3rem, 6vw, 4rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* Long-form reading measure. .about__prose widens this later for its floated portrait. */
.prose { max-width: var(--measure); }

/* Rhythm comes from one rule. Order matters: the reset must precede the stack, and
   nothing below may use a type selector to set these margins or it wins on specificity. */
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }

.prose > h2 {
  font-size: var(--step-m);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 72;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.6em;
  max-width: 22ch;
}

.prose > h3 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2.5rem;
  margin-bottom: 0.4em;
}

.prose a { color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }

.prose blockquote {
  margin: clamp(2rem, 4vw, 2.75rem) 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--oxblood);
  font-family: var(--font-display);
  font-size: var(--step-s);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 60;
  line-height: 1.35;
  color: var(--ink);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
}

/* Prose figures may exceed the measure. */
.prose .figure--wide { margin-inline: 0; }

/* --- About -------------------------------------------------------------- */

/* Wider than the default measure because a floated portrait eats into the text column;
   this must stay after `.prose` in the file, since both have the same specificity. */
.about__prose {
  max-width: 46rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.about__prose::after { content: ""; display: block; clear: both; }

.about__figure { margin: 0 0 1.5rem; width: 100%; max-width: 15rem; }

@media (min-width: 46rem) {
  .about__figure {
    float: right;
    width: 17rem;
    max-width: 40%;
    margin: 0.4rem 0 1.5rem 2.5rem;
    shape-outside: inset(0 round var(--radius));
  }
}

.about__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.10);
}

.about__figure .figure__caption { margin-top: 0.7rem; }

.about__cols {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .about__cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.about__cols .label { margin-bottom: 1.25rem; }
.about__label-gap { margin-top: 2.5rem; }

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.plain-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  line-height: 1.4;
}
.plain-list a { color: var(--ink); }

/* Trailing note under an index list. */
.list-note {
  max-width: var(--measure);
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.list-note p { margin: 0; }

/* --- Footer ------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--rule);
  background: var(--card);
}

.footer__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: end;
  justify-content: space-between;
}

.footer__ask { margin: 0; display: grid; gap: 0.5rem; }

.footer__email {
  font-family: var(--font-display);
  font-size: var(--step-m);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 72;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__email:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Same three destinations as the masthead, reachable from the bottom of any page. */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.footer__nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

.footer__meta-bar { border-top: 1px solid var(--rule); }

.footer__meta {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__meta a { color: var(--ink); }
.footer__dot { color: var(--rule); }

/* The builder credit is the quietest thing in the bar — it sits back until you look for it,
   alone at the right edge, clear of the dot-separated run. Needs to out-specify
   `.footer__meta a` above, hence the compound selector. */
.footer__meta a.footer__by { margin-left: auto; color: var(--ink-soft); text-decoration: none; }
.footer__meta a.footer__by:hover { color: var(--ink); text-decoration: underline; }

/* --- Motion -------------------------------------------------------------
   One orchestrated moment, on load, in the hero. Nothing else animates in. */

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.995); }
  to   { opacity: 1; transform: none; }
}

.hero__name     { animation: rise 0.6s var(--ease) both; }
.hero__line     { animation: rise 0.7s var(--ease) 0.08s both; }
.hero__lede     { animation: rise 0.7s var(--ease) 0.18s both; }
.hero__meta     { animation: rise 0.7s var(--ease) 0.26s both; }
.hero__portrait { animation: settle 0.9s var(--ease) 0.14s both; }

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