/* ===================================================================
   POSTGRANTREVIEW.COM
   Editorial · Navy & Brass · Fraunces / Inter / IBM Plex Mono
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy:        #14203A;
  --navy-soft:   #22324f;
  --navy-line:   #2c3c5c;
  --brass:       #B08D3C;
  --brass-deep:  #8a6c26;
  --bg:          #F7F6F2;
  --paper:       #FFFFFF;
  --rule:        #D8D3C4;
  --rule-soft:   #E7E3D8;
  --text:        #1c2640;
  --muted:       #5c6678;
  --crimson:     #8a2331;

  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap:        1120px;
  --wrap-narrow: 720px;
  --radius:      4px;
  --shadow:      0 1px 2px rgba(20,32,58,.06), 0 12px 30px -16px rgba(20,32,58,.28);
  --shadow-lg:   0 18px 50px -20px rgba(20,32,58,.45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: .5rem; left: .5rem; width: auto; height: auto;
  clip: auto; background: var(--navy); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius); z-index: 200;
}

/* ---------- Draft / pre-publication banner (remove via site.draftBanner) ---------- */
.draft-banner {
  background: #c0182b; color: #fff; text-align: center;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  letter-spacing: .01em; padding: .55rem 1rem; line-height: 1.35;
}
.draft-banner a { color: #fff; text-decoration: underline; }
.draft-banner a:hover { color: #fff; opacity: .85; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--brass-deep);
  margin: 0 0 .9rem;
}
.section-h { font-size: clamp(1.5rem, 3vw, 2rem); }

.docket-no {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(176,141,60,.14);
  border: 1px solid rgba(176,141,60,.4);
  padding: .12rem .5rem;
  border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  text-decoration: none; padding: .72rem 1.25rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-soft); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-deep); }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 100; background: rgba(247,246,242,.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--rule); }
.masthead__rule { height: 4px; background: linear-gradient(90deg, var(--brass) 0%, var(--brass-deep) 55%, var(--navy) 100%); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand__mark img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brass); background: #fff; object-fit: cover; box-shadow: var(--shadow); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: .01em; }
.brand__tld { font-family: var(--font-display); font-weight: 600; color: var(--brass-deep); }
.brand__sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--navy); text-decoration: none; padding: .35rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brass-deep); }

.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #eef1f6; position: relative; overflow: hidden; border-bottom: 4px solid var(--brass); }
.hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 100% 0%, rgba(176,141,60,.18), transparent 55%); pointer-events: none; }
.hero__inner { padding-block: clamp(3rem, 8vw, 6rem); position: relative; max-width: 880px; }

/* Hero side images: stacked single column by default (small screens),
   text + one image on medium, image | text | image on large. */
/* Images are pinned to a common height (--aside-h) and let their width follow,
   so the portrait and landscape figures flank the text at equal height. */
.hero__layout { --aside-h: 300px; position: relative; display: grid;
  grid-template-columns: 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 1120px; }
.hero__inner { order: -1; }                          /* text first when stacked */
.hero__aside { margin: 0; justify-self: center; }
.hero__aside img { display: block; height: var(--aside-h); width: auto;
  max-width: 100%; object-fit: contain; }
@media (min-width: 760px) and (max-width: 1199px) {  /* medium: idea-thief beside text, cash wraps below */
  .hero__layout { --aside-h: 360px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text idea" "cash cash"; }
  .hero__inner { order: 0; grid-area: text; }
  .hero__aside--left { display: block; grid-area: idea; justify-self: end; }
  .hero__aside--right { grid-area: cash; justify-self: center; --aside-h: 340px; }
}
@media (min-width: 1200px) {                          /* large: image | text | image */
  .hero__layout { --aside-h: 440px; grid-template-areas: none;
    grid-template-columns: auto minmax(0, 680px) auto;
    justify-content: center; max-width: 1760px; }
  .hero__inner { grid-area: auto; order: 0; }          /* reset stacked order so source order (idea | text | cash) applies */
  .hero__aside--left { display: block; grid-area: auto; justify-self: end; }
  .hero__aside--right { grid-area: auto; justify-self: start; --aside-h: 440px; }
}
.eyebrow--hero { color: var(--brass); }
.hero__headline { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; line-height: 1.04; margin-bottom: 1.4rem; }
.hero__headline em { font-style: italic; color: var(--brass); }
.hero__body { max-width: 60ch; }
.hero__body p { color: #c9d2e0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin: 0 0 1rem; }
.hero__body strong { color: #fff; }
.hero__body a, .hero__body a:visited { color: var(--brass); text-decoration-color: rgba(201,163,94,.5); }
.hero__body a:hover { color: #fff; text-decoration-color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.fn-ref { font-size: .5em; line-height: 0; }
.fn-ref a { color: var(--brass); text-decoration: none; }
.fn-ref a:hover { color: #fff; }
.hero__footnote {
  margin: 1.8rem 0 0; max-width: 62ch; font-size: .82rem; line-height: 1.5;
  color: #9aa6bc; border-top: 1px solid rgba(255,255,255,.14); padding-top: .9rem;
}
.hero__footnote em { font-style: italic; color: #c9d2e0; }
.hero__footnote-mark { color: var(--brass); font-weight: 600; margin-right: .15rem; }
.hero__footnote .fn-back { color: var(--brass); text-decoration: none; margin-left: .25rem; }
.hero__footnote .fn-back:hover { color: #fff; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: .3rem;
  color: var(--brass); text-decoration: none;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-arrow {
  display: inline-block; font-size: 1.25rem; line-height: 1;
  animation: heroScrollBounce 1.8s ease-in-out infinite;
}
@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0);   opacity: .85; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow { animation: none; }
}
.fn-ref--dark a { color: var(--brass-deep); }
.fn-ref--dark a:hover { color: var(--navy); }
.footnote {
  margin: 1.2rem auto 0; max-width: 56ch; font-size: .82rem; line-height: 1.5;
  color: var(--muted); border-top: 1px solid var(--rule); padding-top: .8rem; text-align: left;
}
/* In dispatch prose: full-column-width footnotes, left-aligned with an 8px indent. */
.prose .footnote { margin-inline: 0; max-width: none; padding-left: 16px; }

/* Downloads list (/downloads/) */
.download-list { list-style: none; padding-left: 0; margin: 0; }
.download-list .download-item + .download-item { margin-top: .6rem; }
.download-item a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: 6px;
  background: #fff; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.download-item a:hover { border-color: var(--brass); box-shadow: var(--shadow); }
.download-item__text { display: flex; flex-direction: column; gap: .2rem; }
.download-item__name { font-weight: 600; color: var(--navy); }
.download-item__desc { font-size: .9rem; color: var(--muted); }
.download-item__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* Small screens: stack title/description above the date/stats instead of two columns. */
@media (max-width: 720px) {
  .download-item a { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .download-item__meta { white-space: normal; }
}
.download-divider { margin: 1.6rem 0 .6rem; border-bottom: 1px solid var(--rule); padding-bottom: .3rem; }
.download-divider:first-child { margin-top: 0; }
.download-divider span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brass-deep); font-weight: 600; }
.footnote-mark { color: var(--brass-deep); font-weight: 600; margin-right: .15rem; }
.footnote .fn-back { color: var(--brass-deep); text-decoration: none; margin-left: .25rem; }
.footnote .fn-back:hover { color: var(--navy); }
:target { scroll-margin-top: 90px; }

/* ---------- Story / scrollytelling ---------- */
.story { padding-block: clamp(3rem, 7vw, 5.5rem); }
.story__intro { text-align: center; max-width: 760px; }
.story__intro { margin-inline: auto; }
.story__title { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.scrolly { list-style: none; margin: 3rem auto 0; padding: 0; max-width: 1000px; display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 6rem); }
.scrolly__beat {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease;
}
.scrolly__beat.is-visible { opacity: 1; transform: none; }
.scrolly__beat--right { grid-template-columns: .85fr 1.15fr; }
.scrolly__beat--right .scrolly__figure { order: 2; }
.scrolly__beat--right .scrolly__caption { order: 1; }

.scrolly__figure { margin: 0; }
.scrolly__figure img {
  width: 100%; border-radius: 6px; border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg); background: #fff;
}
.scrolly__caption { position: relative; }
.scrolly__num { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 500; color: rgba(176,141,60,.45); line-height: 1; display: block; margin-bottom: .4rem; }
.scrolly__h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .5rem; }
.scrolly__caption p { color: var(--text); font-size: 1.06rem; margin: 0; }

.story__outro { text-align: center; max-width: 640px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.story__outro p { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-style: italic; color: var(--navy); margin-bottom: 1.4rem; }
.story__outro-lead {
  font-family: var(--font-body) !important; font-style: normal !important;
  font-size: 1.06rem !important; line-height: 1.65; color: var(--text) !important;
  max-width: 62ch; margin-inline: auto; text-align: left;
}
.story__outro-lead strong { color: var(--navy); }
.story__outro-h {
  font-family: var(--font-display); font-style: italic; color: var(--navy);
  font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 1rem;
}

/* ---------- LinkedIn embed ---------- */
.featured-li { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); text-align: center; }
.li-embed { max-width: 560px; margin: 1.5rem auto 0; }
.li-embed iframe { width: 100%; min-height: 560px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.featured-li__follow { margin-top: 1.2rem; }

/* ---------- Section: latest dispatches ---------- */
.latest { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
.latest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.latest__all { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; text-decoration: none; color: var(--brass-deep); }
.latest__all:hover { text-decoration: underline; }

.entry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.entry-list--full { grid-template-columns: 1fr; gap: 0; }
.entry {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .55rem;
}
.entry-list--full .entry { border-radius: 0; box-shadow: none; border-left: 0; border-right: 0; border-top: 0; }
.entry-list--full .entry:first-child { border-top: 1px solid var(--rule); }
.entry__meta { display: flex; align-items: center; gap: .8rem; margin: 0; }
.entry__meta time { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.entry__title { font-size: 1.35rem; margin: 0; }
.entry__title a { text-decoration: none; }
.entry__title a:hover { color: var(--brass-deep); }
.entry__lede { color: var(--muted); margin: 0; font-size: .98rem; }
.entry__more { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em; text-decoration: none; color: var(--brass-deep); margin-top: auto; }
.entry__more:hover { text-decoration: underline; }
.entry--empty { color: var(--muted); font-style: italic; }
/* Dispatches index (--full): banner thumbnail floated right inside the text,
   so the lede/description wraps around it. */
.entry-list--full .entry { position: relative; padding: 16px 8px; border-radius: 6px; transition: background-color .15s ease, box-shadow .15s ease; }
/* Highlight the whole row on hover with a thin border (inset shadow = no layout shift). */
.entry-list--full .entry:hover { background: rgba(0, 0, 0, 0.02); box-shadow: inset 0 0 0 1px var(--brass); }
/* Whole row clickable: stretch the title link's ::after over the entire entry
   (no nested anchors). The title link itself must stay UNpositioned so its
   ::after anchors to .entry (the positioned row), not to the link's own box.
   The other links sit above the overlay so they stay directly clickable —
   all three point at the same dispatch URL anyway. */
.entry-list--full .entry__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.entry-list--full .entry__more,
.entry-list--full .entry__thumb { position: relative; z-index: 2; }
.entry-list--full .entry__body { display: block; }
.entry-list--full .entry__body::after { content: ""; display: block; clear: both; }
/* First line of every row: docket + date on the left, "Read the dispatch →" on
   the right — in both expanded and collapsed views, all screen sizes. */
.entry-list--full .entry__topline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .9rem; margin-bottom: .5rem; }
.entry-list--full .entry__meta { margin: 0; }
.entry-list--full .entry__title { margin-bottom: .5rem; }
.entry-list--full .entry__lede { margin-bottom: 0; }
.entry-list--full .entry__more { margin: 0; white-space: nowrap; }
.entry__thumb { float: right; width: 240px; margin: 0 0 .6rem 1.4rem; display: block; line-height: 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
/* Latest-dispatches cards (home grid): banner sits full-width at the top of the
   card rather than floated beside the text. */
.entry-list:not(.entry-list--full) .entry__thumb { float: none; width: 100%; margin: 0; }
.entry__thumb img { width: 100%; height: auto; display: block; transition: filter .2s ease; }
.entry__thumb:hover img { filter: brightness(1.05); }
/* Alternate the thumbnail side row to row: odd entries float right (default),
   even entries float left. Scoped above the phone breakpoint so it doesn't
   override the ≤560px full-width stacked thumbnail. */
@media (min-width: 561px) {
  .entry-list--full .entry:nth-child(even) .entry__thumb { float: left; margin: 0 1.4rem .6rem 0; }
}

/* "Hide details" toggle — a CSS-only switch beside the page title. Default off
   (details shown); when checked it hides each entry's lede and thumbnail for a
   compact view. The checkbox is visually hidden but focusable; the label renders
   the switch. Hiding uses :has() so it works regardless of the switch's position. */
.page__title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; flex-wrap: wrap; }
.list-toggle__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.list-toggle { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em; color: var(--muted); user-select: none; }
.list-toggle__track { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: var(--rule); transition: background-color .15s ease; }
.list-toggle__thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.list-toggle__input:checked ~ .list-toggle .list-toggle__track { background: var(--brass); }
.list-toggle__input:checked ~ .list-toggle .list-toggle__thumb { transform: translateX(16px); }
.list-toggle__input:checked ~ .list-toggle { color: var(--text); }
.list-toggle__input:focus-visible ~ .list-toggle .list-toggle__track { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.page:has(.list-toggle__input:checked) .entry__lede,
.page:has(.list-toggle__input:checked) .entry__thumb { display: none; }

/* ---------- Home: "more content" link to all dispatches ----------
   A plain clickable image (no thumbnail border/shadow chrome), sized down to
   roughly thumbnail width and centered below the latest dispatches. */
.more-dispatches { text-align: center; margin-block: clamp(.75rem, 2vw, 1.25rem); }
.more-dispatches__link { display: inline-block; width: 100%; max-width: 360px; text-decoration: none; }
.more-dispatches__link img { width: 100%; height: auto; display: block; border-radius: 8px; transition: filter .2s ease, transform .2s ease; }
.more-dispatches__link:hover img,
.more-dispatches__link:focus-visible img { filter: brightness(1.05); transform: translateY(-2px); }
.more-dispatches__label { display: block; margin-top: .5rem; font-family: var(--font-mono); font-size: .85rem; letter-spacing: .03em; color: var(--brass-deep); }
.more-dispatches__link:hover .more-dispatches__label,
.more-dispatches__link:focus-visible .more-dispatches__label { text-decoration: underline; }

/* ---------- Subscribe ---------- */
.subscribe { background: var(--navy); color: #eef1f6; border-top: 4px solid var(--brass); }
.subscribe__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 3.5rem); flex-wrap: wrap; }
.subscribe__copy h2 { color: #fff; }
.subscribe__copy p { color: #c9d2e0; margin: 0; }
.subscribe__actions { display: flex; flex-direction: column; gap: .9rem; min-width: 280px; }
.subscribe__form { display: flex; gap: .5rem; }
.subscribe__form input { flex: 1; padding: .72rem .9rem; border-radius: var(--radius); border: 1px solid var(--navy-line); background: #0f1830; color: #fff; font: inherit; }
.subscribe__form input::placeholder { color: #8a95ab; }
.subscribe__hint { color: #c9d2e0; font-size: .9rem; margin: 0; }
.subscribe__hint code, .comments__placeholder code, .subscribe__hint em { color: #fff; }
.subscribe__alt { display: flex; gap: .6rem; flex-wrap: wrap; }
.subscribe .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.subscribe .btn--ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Page / prose ---------- */
.page, .post { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page__head, .post__head { margin-bottom: 2rem; }
.page__title, .post__title { font-size: clamp(2rem, 5vw, 3.1rem); }
.page__lede, .post__lede { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--muted); max-width: 60ch; margin: .4rem 0 0; }
.byline { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-top: 1rem; }
.post__head .eyebrow { display: flex; align-items: center; gap: .8rem; }
.post__head .eyebrow time { color: var(--muted); }
/* Banner hoisted out of the body to sit between the title and the lede. The figure's
   own bottom margin (.fig-full) supplies the gap before the lede. */
.post__banner, .page__banner { margin: 1.4rem 0 0; }

/* Wide static page (e.g. /about): full-bleed like the home page — there is no
   column wrapper. Running text (and anything floated beside it) sits in a
   readable, viewport-centered column; designated media break out wider to the
   home-page media width, also centered on the viewport. This mirrors how the
   home backstory composes (narrow text, wide scrolly), while keeping the
   floated .fig-thumb anchored to the text column. */
.page--wide {
  --wide-text: 940px;   /* running-text column (the banner rides at this width too) */
  --wide-media: 1120px; /* break-out width for the scrolly and full figures */
}
.page--wide .page__head,
.page--wide .prose {
  max-width: var(--wide-text); margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.page--wide .prose > .scrolly,
.page--wide .prose > figure.fig-full,
.page--wide .prose > .fig-row {
  width: min(var(--wide-media), 94vw); max-width: none;
  margin-left: 50%; transform: translateX(-50%);
}

.prose { font-size: 1.1rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.4rem; padding-top: .2rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose a { color: var(--brass-deep); }
.prose strong { color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose blockquote {
  margin: 1.6rem 0; padding: .8rem 1.4rem; border-left: 4px solid var(--brass);
  background: rgba(176,141,60,.08); font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: var(--navy);
}
.blockquotenote { font-style: normal; font-size: .8em; font-family: var(--font-body); color: var(--muted); vertical-align: middle; }
.blockquotetitle { font-style: normal; font-weight: 700; }
.point-arrow { display: inline-block; width: 2.4em; height: 1.3em; vertical-align: -0.3em; color: var(--crimson); }
.redbox { border: 2px dashed var(--crimson); border-radius: 6px; padding: .05em .35em; }
/* Shaded section: wrap a heading + its paragraphs in <div class="section-shaded">. */
.section-shaded { background: #d9dbe0; border-radius: var(--radius); padding: .4rem 1.4rem 1.2rem; margin: 2rem 0; }
.section-shaded > :first-child { margin-top: 1rem; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: rgba(20,32,58,.06); padding: .1rem .35rem; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
/* Wrap fenced code blocks (```…```) instead of overflowing horizontally.
   markdown-it emits <pre><code class="language-…">; <pre> defaults to
   white-space: pre, so wrapping must be turned on at the <pre>. */
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Inline float thumbnail (e.g. Constitution, charts) ---------- */
.fig-thumb {
  float: right; width: 210px; margin: .3rem 0 1rem 1.6rem; text-align: center;
}
.fig-thumb img {
  width: 100%; border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: var(--shadow-lg); background: #fff;
}
.fig-thumb figcaption {
  font-family: var(--font-mono); font-size: .68rem; line-height: 1.4; color: var(--muted);
  margin-top: .5rem;
}
.fig-thumb figcaption em { font-style: italic; color: var(--brass-deep); }
@media (max-width: 720px) {
  .fig-thumb { float: none; width: 180px; margin: 1rem auto; }
}
.fig-thumb--lg { width: 329px; }
@media (max-width: 720px) { .fig-thumb--lg { width: 281px; } }
.fig-thumb--left { float: left; margin: .3rem 1.6rem 1rem 0; }
@media (max-width: 720px) { .fig-thumb--left { float: none; margin: 1rem auto; } }
/* Bare variant: keep transparency, drop the frame (e.g. cut-out character art). */
.fig-thumb--plain { width: 105px; }
@media (max-width: 720px) { .fig-thumb--plain { width: 90px; } }
.fig-thumb--plain img { border: 0; border-radius: 0; box-shadow: none; background: transparent; }

/* Centered row of side-by-side figures (e.g. the three challenged-patent figures).
   Overrides the float/fixed-width of the .fig-thumb children so they sit inline and
   centered; wraps on narrow screens. */
.fig-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.25rem; margin: 1.5rem 0; clear: both; }
.fig-row .fig-thumb { float: none; width: auto; flex: 0 1 30%; max-width: 220px; margin: 0; }
@media (max-width: 720px) { .fig-row .fig-thumb { flex-basis: 44%; } }

/* Full-column figure (e.g. a dispatch header image) */
.fig-full { position: relative; margin: 0 0 1.8rem; text-align: center; }
.fig-full img {
  width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: var(--shadow); background: #fff; cursor: pointer; transition: filter .15s ease;
  display: block;
}
.fig-full:hover img, .fig-full:focus-within img { filter: brightness(1.04); }
.fig-full figcaption {
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.4; color: var(--muted);
  margin-top: .5rem;
}
.fig-full figcaption em { font-style: italic; color: var(--brass-deep); }
.fig-full::after {
  content: "\2922"; position: absolute; top: .5rem; right: .5rem; width: 1.7rem; height: 1.7rem;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(20,32,58,.78); color: #fff; border-radius: 50%; font-size: .95rem; line-height: 1;
  opacity: .85; transition: opacity .15s ease;
}
.fig-full:hover::after, .fig-full:focus-within::after { opacity: 1; }
.fig-thumb--zoom { position: relative; }
.fig-thumb--zoom img { cursor: pointer; transition: filter .15s ease; }
.fig-thumb--zoom:hover img,
.fig-thumb--zoom:focus-within img { filter: brightness(1.06); }
.fig-thumb--zoom::after {
  content: "\2922"; /* expand glyph */
  position: absolute; top: .4rem; right: .4rem; width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(20,32,58,.78); color: #fff; border-radius: 50%;
  font-size: .9rem; line-height: 1; opacity: .85; transition: opacity .15s ease;
}
.fig-thumb--zoom:hover::after,
.fig-thumb--zoom:focus-within::after { opacity: 1; }

/* Inline text link that opens a figure in the lightbox (no inline thumbnail).
   Styled like a body link with the same expand glyph the zoom thumbnails use. */
.fig-link { white-space: nowrap; }
.fig-link::after {
  content: " \2922"; /* expand glyph, matches .fig-thumb--zoom */
  font-size: .8em; opacity: .7;
}
.fig-link:hover::after, .fig-link:focus::after { opacity: 1; }

/* ---------- Banner carousel (multi-image .fig-full) ----------
   Opt-in: <figure class="fig-full fig-carousel"> wrapping a __track of __slide
   items. With no JS it's a horizontal scroll-snap gallery; main.js adds the
   .is-enhanced class plus prev/next arrows, dots, keyboard, and caption sync. */
.fig-carousel::after { display: none; }          /* per-figure zoom badge moves onto each slide */
.fig-carousel__track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow);
  background: #fff; scrollbar-width: none; -ms-overflow-style: none;
}
.fig-carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .fig-carousel__track { scroll-behavior: auto; } }
.fig-carousel__slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.fig-carousel__slide img { border: 0; border-radius: 0; box-shadow: none; }
.fig-carousel__slide::after {        /* mirrors the .fig-full zoom badge, per slide */
  content: "\2922"; position: absolute; top: .5rem; right: .5rem; width: 1.7rem; height: 1.7rem;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(20,32,58,.78); color: #fff; border-radius: 50%; font-size: .95rem; line-height: 1;
  opacity: .85;
}
/* Controls are hidden until JS enhances the carousel (no dead buttons w/o JS). */
.fig-carousel__nav, .fig-carousel__dots { display: none; }
.fig-carousel.is-enhanced .fig-carousel__nav { display: flex; }
.fig-carousel.is-enhanced .fig-carousel__dots { display: flex; }
.fig-carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center;
  background: rgba(20,32,58,.78); color: #fff; font-size: 1.4rem; line-height: 1;
  opacity: .85; transition: opacity .15s ease, background .15s ease;
}
.fig-carousel__nav:hover { opacity: 1; background: var(--navy); color: #fff; }
.fig-carousel__nav:disabled { opacity: 0; pointer-events: none; }
.fig-carousel__nav--prev { left: .6rem; }
.fig-carousel__nav--next { right: .6rem; }
.fig-carousel__dots { justify-content: center; gap: .45rem; margin-top: .6rem; }
.fig-carousel__dot {
  width: .55rem; height: .55rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--rule); transition: background .15s ease, transform .15s ease;
}
.fig-carousel__dot:hover { background: var(--brass-deep); }
.fig-carousel__dot.is-active { background: var(--brass); transform: scale(1.15); }
/* Thumbnail-scale carousel (.fig-thumb.fig-carousel): the float + width come from
   .fig-thumb; shrink the banner-sized arrows, zoom badge, and dots to fit.
   .fig-thumb has no positioning context of its own (unlike .fig-full), so add one
   here — otherwise the absolutely-positioned nav buttons anchor to the viewport. */
.fig-thumb.fig-carousel { position: relative; }
.fig-thumb.fig-carousel .fig-carousel__nav { width: 1.5rem; height: 1.5rem; font-size: .8rem; }
.fig-thumb.fig-carousel .fig-carousel__nav--prev { left: .3rem; }
.fig-thumb.fig-carousel .fig-carousel__nav--next { right: .3rem; }
.fig-thumb.fig-carousel .fig-carousel__slide::after { width: 1.2rem; height: 1.2rem; font-size: .65rem; top: .3rem; right: .3rem; }
.fig-thumb.fig-carousel .fig-carousel__dots { margin-top: .45rem; }

/* ---------- Lightbox (click-to-expand images) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
  justify-content: center; padding: 4vmin; cursor: zoom-out;
  background: rgba(20,32,58,.92);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 100%; border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff;
}
/* Transparent thumbnails stay transparent when expanded (no white box). */
.lightbox--plain img { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }

/* ---------- Stub / draft flag ---------- */
.stub-flag {
  font-size: .92rem; color: var(--brass-deep);
  background: rgba(176,141,60,.1); border: 1px dashed var(--brass);
  border-radius: 6px; padding: .75rem 1rem; margin: 0 0 1.6rem;
}
.stub-flag strong { color: var(--brass-deep); }

/* ---------- Callout (highlighted paragraph) ---------- */
.callout {
  background: rgba(138,35,49,.07); border-left: 4px solid var(--crimson);
  border-radius: 0 6px 6px 0; padding: 1rem 1.25rem; margin: 0 0 1.6rem;
  color: var(--text);
}
.callout p { margin: 0; }
.callout a { color: var(--crimson); }

/* ---------- Series-background lead-in (dispatch orientation note) ---------- */
.series-bg {
  background: #f0f0f0; border: 1px dashed #666;
  border-radius: 6px; padding: .75rem 1.1rem; margin: 0 0 1.6rem;
}
.series-bg p { margin: 0; }

/* ---------- Docket / timeline ---------- */
.docket { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.docket::before { content: ""; position: absolute; left: 7.5rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--rule); }
.docket__item { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding-bottom: 2rem; position: relative; }
.docket__when { text-align: right; }
.docket__date { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.docket__body { position: relative; padding-left: 1.6rem; }
.docket__body::before {
  content: ""; position: absolute; left: -0.52rem; top: .35rem; width: 13px; height: 13px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--brass);
  transform: translateX(-50%);
}
.docket__item--adverse .docket__body::before { border-color: var(--crimson); }
.docket__item--pgr .docket__body::before { border-color: var(--navy); background: var(--brass); }
.docket__item.is-pending .docket__body::before { animation: pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .docket__item.is-pending .docket__body::before { animation: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(176,141,60,.5);} 50%{ box-shadow: 0 0 0 6px rgba(176,141,60,0);} }
.docket__label { font-size: 1.25rem; margin: 0 0 .35rem; }
.docket__body p { margin: 0; color: var(--muted); }
.docket__item--adverse .docket__label { color: var(--crimson); }
.docket__foot { margin-top: 1rem; color: var(--muted); }

/* ---------- Share ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 2.5rem 0; padding: 1.1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.share__label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); margin-right: .3rem; }
.share__btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-size: .85rem; font-weight: 500; padding: .45rem .8rem; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper); color: var(--navy); cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.share__btn:hover { border-color: var(--brass); color: var(--brass-deep); }
.share__btn.is-copied { border-color: var(--brass); color: var(--brass-deep); background: rgba(176,141,60,.12); }

/* ---------- Comments ---------- */
.comments { margin-top: 3rem; }
.comments__h { font-size: 1.6rem; border-bottom: 2px solid var(--brass); display: inline-block; padding-bottom: .25rem; }
.comments__note { color: var(--muted); font-size: .95rem; }
.comments__linkedin { margin: 1.2rem 0 2rem; }
.comments__placeholder { color: var(--muted); font-size: .95rem; background: var(--rule-soft); border: 1px dashed var(--rule); border-radius: 6px; padding: 1rem 1.2rem; }
.comments__placeholder code { font-family: var(--font-mono); font-size: .85em; }

.post__topnav { margin-left: auto; display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: flex-end; }
.post__back-link {
  font-family: var(--font-mono); font-size: .85rem;
  text-decoration: none; color: var(--brass-deep); white-space: nowrap;
}
.post__back-link:hover { text-decoration: underline; }
/* Prev/Next dispatch links pinned in the wide-screen side margins. Fixed to the
   viewport so they stay put while scrolling, anchored just outside the 720px content
   column (--wrap-narrow, half = 360px), and hidden once the margin is too narrow.
   top clears the sticky masthead (~76px). */
.post__rail { display: none; }
@media (min-width: 1080px) {
  .post__rail { display: block; }
  .post__rail-link {
    position: fixed; top: 6rem; z-index: 50;
    font-family: var(--font-mono); font-size: .85rem; font-weight: 600;
    text-decoration: none; color: var(--brass-deep); white-space: nowrap;
  }
  .post__rail-link:hover { text-decoration: underline; }
  .post__rail-prev { right: calc(50% + 360px + 1.5rem); }
  .post__rail-next { left:  calc(50% + 360px + 1.5rem); }
}
.post__pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1.2rem;
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: .82rem;
}
.post__pager a { text-decoration: none; color: var(--brass-deep); }
.post__pager a:hover .post__pager-title { text-decoration: underline; }
.post__pager-prev { justify-self: start; text-align: left; }
.post__pager-all  { justify-self: center; align-self: center; white-space: nowrap; }
.post__pager-next { justify-self: end; text-align: right; }
.post__pager-label { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .15rem; }
.post__pager-title { display: block; }
@media (max-width: 560px) {
  /* Reflow dispatch header: docket + date on row 1, prev/all/next on row 2. */
  .post__head .eyebrow { flex-wrap: wrap; }
  .post__head .eyebrow time { margin-left: auto; }
  .post__topnav { flex: 0 0 100%; margin-left: 0; justify-content: space-between; }
  /* Stack the pager into a single column of blocks (prev / all / next). */
  .post__pager { grid-template-columns: 1fr; gap: 1rem; font-size: .78rem; }
  .post__pager > span:empty { display: none; }   /* drop placeholder for a missing prev/next */
  .post__pager-prev,
  .post__pager-all,
  .post__pager-next { justify-self: start; text-align: left; white-space: normal; }
  /* On phones, reflow the dispatch thumbnail into the normal flow: full-width,
     above the lede (it already precedes .entry__lede in the source order). */
  .entry__thumb { float: none; width: 100%; margin: 0 0 .8rem; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c9d2e0; margin-top: 0; }
.footer__divider { display: flex; justify-content: center; transform: translateY(-50%); margin-bottom: -1rem; }
.footer__divider img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--brass); background: #fff; box-shadow: var(--shadow-lg); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 1.5rem; }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; margin: 0 0 .4rem; }
.footer__tag { color: #9aa6bc; margin: 0; max-width: 36ch; }
.footer__h { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--brass); margin: 0 0 .8rem; }
.footer__col a { display: block; color: #c9d2e0; text-decoration: none; padding: .2rem 0; }
.footer__col a:hover { color: #fff; }
.footer__legal { border-top: 1px solid var(--navy-line); padding-block: 1.4rem 2.2rem; }
.footer__legal p { font-size: .82rem; color: #8a95ab; margin: 0; max-width: 90ch; }
.footer__legal a { color: var(--brass); text-decoration-color: rgba(176,141,60,.5); }
.footer__legal a:hover { color: #fff; }

/* ---------- 404 ---------- */
.error-page { text-align: center; }
.error-page__mug { display: inline-block; }
.error-page__mug img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--brass); margin: 0 auto 1.2rem; background: #fff; }
.error-page__links { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
  .nav-burger span { width: 26px; height: 2px; background: var(--navy); display: block; transition: transform .2s, opacity .2s; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule);
    max-height: 0; overflow: hidden; transition: max-height .25s ease; padding-inline: clamp(1.1rem, 4vw, 2.5rem);
  }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a::after { display: none; }
  .nav-toggle:checked ~ .nav { max-height: 60vh; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .scrolly__beat, .scrolly__beat--right { grid-template-columns: 1fr; gap: 1rem; }
  .scrolly__beat--right .scrolly__figure { order: 0; }
  .scrolly__beat--right .scrolly__caption { order: 0; }
  /* Images stay edge-to-edge; pad the caption text to match .wrap. */
  .scrolly__caption { padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
  .scrolly__num { font-size: 2rem; }
  .entry-list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .docket::before { left: 5.5rem; }
  .docket__item { grid-template-columns: 5.5rem 1fr; gap: 1rem; }
  .subscribe__actions { min-width: 0; width: 100%; }
}

/* ---------- Image archive (/image-archive/) ---------- */
.archive-subhead {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brass-deep); margin: 2.4rem 0 .7rem;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}
.archive-subhead__count { color: var(--muted); margin-left: .35rem; }

/* Lede row: size toggle floats to the right, top-aligned with the first line of
   the lede; it wraps below the lede on narrow screens. */
.archive-lede-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1.6rem; margin-top: .4rem; }
.archive-lede-row .page__lede { flex: 1 1 22rem; margin: 0; }

/* Thumbnail-size toggle (pure CSS; S / M / L set the grid column width) */
.archive-controls { flex: 0 0 auto; }
.archive-size { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.archive-size__label { flex-basis: 100%; text-align: center; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.archive-size__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.archive-size label {
  display: inline-grid; place-items: center; min-width: 1.9rem; padding: .22rem .55rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  color: var(--text); cursor: pointer; user-select: none;
  transition: background-color .12s ease, border-color .12s ease;
}
.archive-size label:hover { border-color: var(--brass); }
.archive-size__input:checked + label { background: var(--brass); border-color: var(--brass-deep); color: #fff; }
.archive-size__input:focus-visible + label { outline: 2px solid var(--brass-deep); outline-offset: 2px; }

.archive-grid {
  --col: 180px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--col), 44vw), 1fr));
  gap: .5rem;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}
.page:has(#arch-size-s:checked) .archive-grid { --col: 120px; }
.page:has(#arch-size-m:checked) .archive-grid { --col: 180px; }
.page:has(#arch-size-l:checked) .archive-grid { --col: 300px; }
.archive-item { margin: 0; display: flex; flex-direction: column; }
.archive-item img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: filter .12s ease, box-shadow .12s ease;
}
.archive-item img:hover, .archive-item img:focus-visible { filter: brightness(1.05); box-shadow: var(--shadow); }
.archive-item__cap {
  font-family: var(--font-mono); font-size: .68rem; line-height: 1.3; color: var(--muted);
  margin-top: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 720px) {
  .archive-grid { gap: .4rem; }
}

/* ---------- Print ---------- */
@media print {
  .masthead, .footer, .share, .comments, .subscribe, .featured-li, .hero__cta, .hero__scroll, .post__pager, .nav-burger, .lightbox { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: 100%; }
  a { color: #000; text-decoration: underline; }
  .scrolly__beat { opacity: 1 !important; transform: none !important; page-break-inside: avoid; }
}
