/* ============================================================
   recursive-gift.css — shared stylesheet for all phyllotaxis.life pages

   Architecture:
   - Tokens (colors, type, rules) live in :root and are OVERRIDDEN by
     theme files (e.g. theme-default.css). Anything register-specific
     belongs in those files.
   - This stylesheet is theme-agnostic. Every color reference uses a
     var(--token).
   - Plate fade colors and hairline accents are themed via dedicated
     plate-specific tokens so registers can shift them independently of
     core ink/paper.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--serif); font-size: 19px; line-height: 1.62;
  font-variation-settings: "opsz" 14, "SOFT" 50;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a {
  color: var(--quince); text-decoration: none;
  border-bottom: 1px solid var(--link-underline, rgba(194,96,58,.3));
}
a:hover { border-bottom-color: var(--quince); }

/* =================================================================
   hero plate — the full-bleed image hero used on -index pages
   ================================================================= */
.plate-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--paper-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.plate-hero .img-wrap {
  position: relative;
  width: 100%;
  height: var(--plate-height, 520px);
  overflow: hidden;
}
.plate-hero img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center var(--plate-offset-y, 50%);
  transform: scale(var(--plate-zoom, 1));
  transform-origin: center center;
  filter: saturate(var(--plate-saturation, 0.95))
          contrast(var(--plate-contrast, 1.05))
          brightness(var(--plate-brightness, 1));
  transition: transform .2s ease, filter .2s ease, object-position .2s ease;
}
/* Bottom-edge fade — color comes from theme via --plate-fade-rgb */
.plate-hero .img-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: var(--plate-fade-strength, 1);
  background:
    linear-gradient(180deg,
      rgba(var(--plate-fade-rgb), .45) 0%,
      rgba(var(--plate-fade-rgb), 0) 18%,
      rgba(var(--plate-fade-rgb), 0) 60%,
      rgba(var(--plate-fade-rgb), .85) 92%,
      rgba(var(--plate-fade-rgb), 1) 100%);
}
.plate-hero .caption {
  position: absolute; left: 40px; bottom: 22px; right: 40px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--plate-caption, var(--gold)); z-index: 2;
}
.plate-hero .caption .right { color: var(--plate-caption-mute, var(--ink-mute)); }
.plate-hero .accent-hair {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--plate-accent-rgb), 0) 6%,
    rgba(var(--plate-accent-rgb), .55) 50%,
    rgba(var(--plate-accent-rgb), 0) 94%,
    transparent 100%);
}

/* =================================================================
   nameplate — Variant C, the lean interior strip used on every page
   ================================================================= */
.nameplate {
  border-bottom: 1px solid var(--rule);
  background: var(--nameplate-bg, var(--paper));
}
.nameplate-inner {
  max-width: 1280px; margin: 0 auto; padding: 22px 40px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
.np-home { display: contents; color: inherit; text-decoration: none; border: 0; }
.np-mark { width: 38px; height: 38px; color: var(--np-mark, var(--quince)); cursor: pointer; }
.np-wm { cursor: pointer; }
.np-wm {
  font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1;
  letter-spacing: -.005em; font-variation-settings: "opsz" 72;
}
.np-wm em { font-style: italic; font-weight: 400; color: var(--quince); }
.np-wm .tld { color: var(--ink-mute); font-weight: 400; }
.np-wm .sub {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; font-weight: 400;
}
.np-nav { display: flex; gap: 26px; align-items: center; }
/* Only the underline reset belongs here. Font family, size and style are
   site.css's to set — it styles `.np-nav` as small mono block caps and lets
   the anchors inherit, so restating them here silently overrode the design of
   record with the older serif-italic nav. */
.np-nav a { border: 0; }
.np-nav a:hover { color: var(--quince); }
.np-nav a.sub-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sub-btn-fg, var(--paper));
  background: var(--sub-btn-bg, var(--ink));
  padding: 8px 14px; font-style: normal; border: 0;
}
.np-nav a.sub-btn:hover {
  background: var(--sub-btn-bg-hover, var(--quince));
  color: var(--sub-btn-fg-hover, var(--paper));
}

/* =================================================================
   Variant B — herbarium-plate masthead. Used by bio-page-index.
   ================================================================= */
.mast-b {
  background: var(--paper);
  border: 1px solid var(--rule);
  margin: 32px auto 0;
  max-width: 1180px;
  padding: 56px 64px 48px;
  position: relative;
}
.mast-b .mast-b-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: end;
}
.mast-b .plate-svg {
  width: 220px; height: 220px;
  color: var(--quince);
  display: block;
}
.mast-b .plate-svg .ring { stroke: var(--rule); fill: none; }
.mast-b h1.mast-b-wm {
  font-family: var(--serif); font-weight: 400; font-size: 84px; line-height: .92;
  margin: 0 0 20px; letter-spacing: -0.02em; color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.mast-b h1.mast-b-wm em { font-style: italic; color: var(--quince); font-weight: 400; }
.mast-b h1.mast-b-wm .tld { color: var(--ink-mute); font-weight: 400; }
.mast-b .mast-b-tag {
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45;
  color: var(--ink-soft); max-width: 56ch; margin: 0 0 22px;
}
.mast-b .mast-b-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); display: flex; gap: 20px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.mast-b .mast-b-meta .sep { color: var(--rule); }
.mast-b .mast-b-corners {
  position: absolute; inset: 8px;
  pointer-events: none;
  border: 1px solid var(--rule-soft);
}
@media (max-width: 880px) {
  .mast-b { padding: 36px 32px; }
  .mast-b .mast-b-grid { grid-template-columns: 1fr; gap: 28px; }
  .mast-b .plate-svg { width: 140px; height: 140px; }
  .mast-b h1.mast-b-wm { font-size: 56px; }
}

/* =================================================================
   breadcrumb
   ================================================================= */
.crumb {
  max-width: 1280px; margin: 0 auto; padding: 22px 40px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.crumb a { color: var(--ink-mute); border: 0; }
.crumb a:hover { color: var(--quince); }
.crumb .here { color: var(--quince); }

/* =================================================================
   essay layout

   NOTE (2026-08-22): the bare `.essay` container rules were removed.
   Nothing in this engine uses class="essay" as a page container — the
   reading column is site.css's `.reader`. What DOES carry the class is the
   category chip, <span class="r-cat essay">, on the homepage, /essays/ and
   /change-history/. Those chips were inheriting `padding: 56px 40px 120px`
   and `display: grid`, which is what put a band of empty space around every
   essay row in the recent-updates list.

   site.css (the mockup, and the design of record) owns this component as
   `.arch-rows .r-cat.essay`. Leave it there.
   ================================================================= */
.essay > .head { grid-column: 2 / 4; }
.essay > .body { grid-column: 2 / 3; position: relative; }
.essay > .marg { grid-column: 3 / 4; position: relative; padding-left: 40px; }
.essay > .foot { grid-column: 2 / 4; }

/* head */
.head { margin-bottom: 56px; }
.post-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--quince); margin: 0 0 18px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.post-kicker .sep { color: var(--rule); }
.post-title {
  font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.0;
  letter-spacing: -0.018em; margin: 0 0 18px; max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.post-title em { font-style: italic; font-weight: 400; }
.post-dek {
  font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.4;
  color: var(--ink-soft); margin: 0 0 32px; max-width: 56ch;
}
.post-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-mute); display: flex; gap: 18px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.post-meta .sep { color: var(--rule); }
.post-meta b { color: var(--ink); font-weight: 500; letter-spacing: .12em; }

/* Marginalia toggle */
.marg-toggle {
  grid-column: 2 / 4;
  margin: 0 0 32px;
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px;
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink-mute);
}
.marg-toggle .swatch {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-halo, rgba(42,60,95,.12));
}
.marg-toggle .label {
  font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-soft);
  letter-spacing: 0; text-transform: none;
  margin-right: auto;
}
.marg-toggle .label b { font-style: normal; font-weight: 500; color: var(--indigo); }
.marg-toggle .switch {
  position: relative; width: 38px; height: 20px; background: var(--rule);
  border-radius: 999px; cursor: pointer; transition: background .2s ease;
}
.marg-toggle .switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--paper); border-radius: 50%; transition: transform .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
body.marg-on .marg-toggle .switch { background: var(--indigo); }
body.marg-on .marg-toggle .switch::after { transform: translateX(18px); }
.marg-toggle .hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* body */
.body p { margin: 0 0 1.05em; font-size: 19px; line-height: 1.7; }
.body p.lead {
  font-size: 23px; line-height: 1.5; color: var(--ink-soft);
  font-style: italic; margin-bottom: 1.4em;
}
.body p:first-of-type:not(.lead)::first-letter,
.body p.dropcap::first-letter {
  font-family: var(--serif); font-weight: 500; float: left; font-size: 78px;
  line-height: .82; padding: 8px 12px 0 0; color: var(--dropcap, var(--quince));
  font-variation-settings: "opsz" 144;
}
.body em { color: var(--ink); }
.body h2 {
  font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.2;
  margin: 64px 0 18px; letter-spacing: -.005em;
  font-variation-settings: "opsz" 72;
}
.body h2 + p { margin-top: 0; }
.body blockquote {
  margin: 32px 0 32px -24px; padding: 6px 0 6px 22px;
  border-left: 2px solid var(--quince);
  font-style: italic; color: var(--ink-soft); font-size: 22px; line-height: 1.45;
}
.body blockquote cite {
  display: block; margin-top: 10px; font-family: var(--mono); font-style: normal;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}
.body hr.rule {
  display: block; width: 40px; height: 1px; background: var(--quince);
  border: 0; margin: 56px auto;
}

/* inline floated images — blogger-era right/left float pattern.
   Use via HTML card: <img class="float-right" src="…" alt="…" width="280" /> */
.body img.float-right,
.body img.float-left {
  max-width: 40%;
  height: auto;
  margin-top: 6px;
  margin-bottom: 14px;
}
.body img.float-right { float: right; margin-left: 28px; clear: right; }
.body img.float-left  { float: left;  margin-right: 28px; clear: left; }
@media (max-width: 720px) {
  .body img.float-right,
  .body img.float-left { float: none; max-width: 100%; margin: 14px 0; }
}

/* note-anchored paragraphs */
.body p.has-note {
  transition: background .25s ease, padding .25s ease;
  border-left: 2px solid transparent;
  margin-left: -16px; padding-left: 14px;
}
body.marg-on .body p.has-note {
  border-left-color: var(--indigo-soft);
  background: linear-gradient(90deg, var(--indigo-tint, rgba(42,60,95,.04)), transparent 80%);
}

/* inline interjection */
.body .inline-marg {
  display: inline;
  font-family: var(--serif); font-style: italic; color: var(--indigo);
  background: var(--indigo-tint, rgba(42,60,95,.06));
  padding: 0 6px;
  border-bottom: 1px dotted var(--indigo-soft);
  transition: opacity .25s ease;
}
.body .inline-marg::before {
  content: ""; font-family: var(--mono); font-style: normal; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--indigo-soft);
  margin-right: 6px;
}
body:not(.marg-on) .body .inline-marg { opacity: .35; }

/* marginalia */
.marg {
  font-family: var(--serif); font-size: 15px; line-height: 1.5;
  color: var(--indigo); font-style: italic;
}
.marg .note {
  position: absolute;
  width: 280px;
  padding: 14px 0 14px 18px;
  border-left: 1px solid var(--indigo-soft);
  transition: opacity .3s ease, transform .3s ease;
}
body:not(.marg-on) .marg .note { opacity: 0; pointer-events: none; transform: translateX(-6px); }
.marg .note .by {
  display: block;
  font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--indigo-soft);
  margin-bottom: 8px;
}
.marg .note .by b { color: var(--indigo); font-weight: 500; }
.marg .note p { margin: 0 0 .65em; }
.marg .note p:last-child { margin-bottom: 0; }
.marg .note em { color: var(--ink); font-style: italic; }
.marg .note::before {
  content: "";
  position: absolute; left: -1px; top: 22px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--indigo);
  transform: translateX(-2px);
}

/* mobile-friendly inline notes */
.body .mobile-note { display: none; }

/* footer */
.foot {
  margin-top: 80px; padding-top: 36px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.foot .next { font-family: var(--serif); }
.foot .next .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px; display: block;
}
.foot .next h3 {
  font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2;
  margin: 0 0 6px; letter-spacing: -.005em;
}
.foot .next h3 em { font-style: italic; font-weight: 400; }
.foot .next .dek { font-style: italic; color: var(--ink-soft); margin: 0; }
.foot .author {
  border: 1px solid var(--rule); background: var(--paper-soft); padding: 22px;
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
}
.foot .author .ava {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--quince) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; color: var(--paper); font-size: 22px;
}
.foot .author .name {
  font-family: var(--serif); font-weight: 500; font-size: 17px; margin: 0;
}
.foot .author .bio {
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft);
  margin: 4px 0 0; line-height: 1.5;
}
.foot .author .links {
  grid-column: 1 / 3; margin-top: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-mute); display: flex; gap: 16px;
}

/* designer's notes */
.design-notes {
  max-width: 1280px; margin: 80px auto 0; padding: 40px;
  border-top: 1px solid var(--rule);
}
.design-notes h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--quince); margin: 0 0 12px;
}
.design-notes h3 {
  font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 24px;
  letter-spacing: -.005em;
}
.design-notes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.design-notes-grid > div {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.design-notes-grid p {
  font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  margin: 0;
}
.design-notes-grid b { color: var(--ink); font-weight: 500; }

/* =================================================================
   AUTHORSHIP — by author ID

   Authorship is a stable author ID for any author/entity; an author is an
   author, with no type distinction at the data layer. The byline simply
   names the author. Marginalia (gutter notes) is the one author-attached
   mechanism: built and styled, but held out of published content for now.
   ================================================================= */

/* =================================================================
   FIGURES with provenance — Arts & Crafts inset border + corner badge
   ================================================================= */
.figure {
  margin: 36px 0;
  position: relative;
  /* outer paper field */
  background: var(--paper);
  padding: 14px;
  /* the inset solid border, sitting a few px inside the image edge */
  box-shadow:
    inset 0 0 0 1px var(--rule),
    inset 0 0 0 14px transparent,
    inset 0 0 0 15px var(--figure-border, var(--ink-soft));
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
}
.figure figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 14px 4px 4px;
  max-width: 64ch;
}
/* the small mono badge sitting in the bottom-right of the image, like a print signature */
.figure::after {
  content: attr(data-mode-label);
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 4px 8px;
  background: var(--paper);
  border: 1px solid var(--figure-border, var(--ink-soft));
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--figure-border, var(--ink-soft));
  pointer-events: none;
  /* explanation lives in data-mode-explain, revealed on hover via ::before below */
  z-index: 1;
}
/* the explanation popover, shown on hover */
.figure::before {
  content: attr(data-mode-explain);
  position: absolute;
  right: 22px;
  bottom: 50px;
  max-width: 280px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2;
  text-align: left;
}
.figure:hover::before,
.figure:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

/* mode-specific border + badge color */
.figure-photo     { --figure-border: var(--ink-soft); }
.figure-composed  { --figure-border: var(--quince); }
.figure-render    { --figure-border: var(--gold); }
.figure-augmented { --figure-border: var(--indigo); }

/* =================================================================
   provenance key — small visual legend usable on any meta page
   ================================================================= */
.provenance-key {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
}
.provenance-key .key-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
}
.provenance-key .key-swatch {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  margin-top: 4px;
}
.provenance-key .key-row.photo     { color: var(--ink-soft); }
.provenance-key .key-row.composed  { color: var(--quince); }
.provenance-key .key-row.render    { color: var(--gold); }
.provenance-key .key-row.augmented { color: var(--indigo); }
.provenance-key .key-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: currentColor;
  margin-bottom: 4px;
}
.provenance-key .key-desc {
  font-family: var(--serif); font-size: 14px; line-height: 1.5;
  color: var(--ink-soft); font-style: italic;
}
@media (max-width: 720px) {
  .provenance-key { grid-template-columns: 1fr; }
}

/* =================================================================
   voices key — the writing-mode legend
   ================================================================= */
.voices-key {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
}
.voices-key .voice-row .voice-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--quince);
  margin-bottom: 8px;
}
.voices-key .voice-row .voice-sample {
  font-family: var(--serif); font-size: 17px; line-height: 1.5;
  color: var(--ink); margin-bottom: 8px;
}
.voices-key .voice-row.cooperative .voice-label { color: var(--indigo); }
.voices-key .voice-row.guest .voice-label { color: var(--gold); }
.voices-key .voice-row.guest .voice-sample {
  font-family: var(--serif-guest, var(--serif));
}
.voices-key .voice-desc {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  line-height: 1.5; color: var(--ink-soft);
}
@media (max-width: 880px) {
  .voices-key { grid-template-columns: 1fr; }
}

/* =================================================================
   series TOC — list of posts in a series, shown above the body
   ================================================================= */
.essay > .series-toc {
  grid-column: 2 / 4;
  margin: 24px 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
}
.series-toc h4 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.series-toc ol {
  margin: 0;
  padding-left: 1.4em;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.series-toc li { margin: 2px 0; }
.series-toc li.is-current {
  color: var(--ink);
  font-style: italic;
}
.series-toc li.is-current::after {
  content: " · you are here";
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 1080px) {
  /* `.essay` container rules removed with the block above — the class only ever
     lands on a category chip here, never on a page container. */
  .essay-guest > .guest-banner { grid-column: 1; }
  .marg-toggle { grid-column: 1; }
  .marg { display: none; }
  .body .mobile-note {
    display: block; margin: 24px 0; padding: 14px 16px;
    border-left: 2px solid var(--indigo-soft); background: var(--indigo-tint, rgba(42,60,95,.04));
    font-family: var(--serif); font-style: italic; color: var(--indigo); font-size: 16px;
    line-height: 1.55;
  }
  body:not(.marg-on) .body .mobile-note { display: none; }
  .body .mobile-note .by {
    display: block; font-family: var(--mono); font-style: normal; font-size: 10px;
    letter-spacing: .18em; text-transform: uppercase; color: var(--indigo-soft);
    margin-bottom: 6px;
  }
  .body .mobile-note .by b { color: var(--indigo); font-weight: 500; }
  .kg-width-wide {}
  .kg-width-full {}
}

/* =================================================================
   notes & queries — strip on homepage, full stream at /notes/,
   and single-note permalink. All in the default register; ported
   from the design memo. Categories color-coded via .cat-<slug>.
   ================================================================= */

/* category pill — the color encoding is shared between strip and stream */
.cat-reading { color: var(--indigo); border-color: var(--indigo); }
.cat-query   { color: var(--gold);   border-color: var(--gold); }
.cat-note    { color: var(--quince); border-color: var(--quince); }

/* ---- homepage strip ---- */
.nq-strip {
  max-width: 1100px; margin: 0 auto;
  padding: 38px 36px 24px;
}
.nq-strip .section-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px; margin-bottom: 18px;
}
.nq-strip .section-head .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--quince);
}
.nq-strip .section-head .name {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; color: var(--ink-soft);
  font-variation-settings: "opsz" 36;
}
.nq-strip .section-head .all {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
  border: 0;
}
.nq-strip .section-head .all:hover { color: var(--quince); }

.nq-strip ul {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 0;
}
.nq-strip li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule-soft);
  display: grid;
  grid-template-columns: 110px 90px 1fr;
  gap: 18px; align-items: baseline;
}
.nq-strip li:last-child { border-bottom: 0; }
.nq-strip .nq-date {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink-mute); text-transform: uppercase;
}
.nq-strip .nq-cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--quince);
}
.nq-strip .nq-line {
  font-family: var(--serif); font-size: 16px; line-height: 1.5;
  color: var(--ink); font-style: italic;
  font-variation-settings: "opsz" 14;
  border: 0;
}
.nq-strip .nq-line:hover { color: var(--quince); }
.nq-strip .nq-line .src { font-style: normal; color: var(--ink-mute); }

@media (max-width: 720px) {
  .nq-strip li { grid-template-columns: 90px 1fr; }
  .nq-strip .nq-cat { display: none; }
}

/* ---- coming cluster (homepage WIP band) ----
   The header (.cc-head) lives on the active register's paper. Each card
   below carries its own palette via locally-scoped CSS variables, so the
   register tokens (--paper, --ink, --quince, etc.) inside that card
   resolve to night / mist-cedar values regardless of the
   ambient theme. Same mechanism as theme-*.css, just element-scoped.
*/
.coming-cluster {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.coming-cluster .cc-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: baseline;
  padding: 18px 28px 12px;
  border-bottom: 1px dashed var(--rule);
}
.coming-cluster .cc-head .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--quince);
}
.coming-cluster .cc-head .name {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--ink-soft);
  font-variation-settings: "opsz" 36;
}
.coming-cluster .cc-head .meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.cc-cols { display: grid; grid-template-columns: 1fr 1fr; }
.cc-col {
  padding: 22px 28px 26px;
  background: var(--paper);
  color: var(--ink);
}
.cc-col .cc-name {
  font-family: var(--serif); font-weight: 500; font-size: 19px;
  color: var(--ink); margin: 0 0 8px;
}
.cc-col .cc-name a { color: inherit; border: 0; }
.cc-col .cc-name a:hover { color: var(--quince); }
.cc-col .cc-msg {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft); font-style: italic;
  max-width: 36ch; margin: 0;
}
.cc-col .cc-msg b { color: var(--ink); font-style: normal; font-weight: 500; }

/* Feature card — night register
   Plate image (spiral-night.png) sits under a same-color overlay
   so the cream text remains comfortably readable. Bump the alpha if
   the image starts to compete with the title. */
.cc-col.cc-night {
  --paper:      #0f1620;
  --paper-soft: #1a2332;
  --paper-deep: #0a0d12;
  --ink:        #ece1c7;
  --ink-soft:   #b3a687;
  --ink-mute:   #8a7e66;
  --rule:       #2a3548;
  --quince:     #d4a23a;
  --gold:       #d4a23a;

  background:
    linear-gradient(105deg,
      rgba(15, 22, 32, 0.92) 0%,
      rgba(15, 22, 32, 0.78) 50%,
      rgba(15, 22, 32, 0.55) 100%),
    url('spiral-night.png') center / cover no-repeat;
}

/* Mist card — cedar fog register */
.cc-col.cc-mist {
  --paper:      #c9cfc9;
  --paper-soft: #e2e3dd;
  --paper-deep: #b8c0ba;
  --ink:        #2e3a36;
  --ink-soft:   #5a6660;
  --ink-mute:   #818b85;
  --rule:       #8e9890;
  --quince:     #a25e3a;
  --gold:       #a25e3a;

  background:
    linear-gradient(105deg,
      rgba(201, 207, 201, 0.94) 0%,
      rgba(201, 207, 201, 0.82) 50%,
      rgba(201, 207, 201, 0.55) 100%);
}

.cc-col.cc-mist .cc-name { color: rgb(46, 58, 54); }

@media (max-width: 720px) {
  .cc-cols { grid-template-columns: 1fr; }
}

/* ---- /notes/ page + single-note permalink ---- */
.nq-page {
  padding: 28px 36px 56px;
  max-width: 880px; margin: 0 auto;
}
.nq-page .nq-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 22px; margin-bottom: 36px;
}
.nq-page .nq-head .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--quince);
  margin-bottom: 10px;
}
.nq-page .nq-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 38px; line-height: 1.05; letter-spacing: -.012em;
  margin: 0 0 12px; font-variation-settings: "opsz" 96;
}
.nq-page .nq-head h2 em { font-style: italic; color: var(--ink-soft); }
.nq-page .nq-head .dek {
  font-style: italic; color: var(--ink-soft);
  font-size: 17px; line-height: 1.5; max-width: 56ch; margin: 0;
}

.nq-page .stream { display: grid; gap: 0; }
.nq-page .stream-note {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 36px;
}
.nq-page .stream-note:last-of-type { border-bottom: 0; }
.nq-page .col-meta {
  display: grid; gap: 8px; align-content: start;
  padding-top: 4px;
}
.nq-page .col-meta .date {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink-mute); text-transform: uppercase;
}
.nq-page .col-meta .cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--quince);
  display: inline-block;
  border: 1px solid var(--rule); padding: 3px 7px;
  width: max-content;
}
.nq-page .col-meta .perma {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute);
  border: 0;
  margin-top: auto;
}
.nq-page .col-meta .perma:hover { color: var(--quince); }

.nq-page .col-body {
  font-family: var(--serif-guest, var(--serif)); font-size: 17.5px; line-height: 1.65;
  color: var(--ink);
}
.nq-page .col-body h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 21px; line-height: 1.25; letter-spacing: -.005em;
  margin: 0 0 10px; color: var(--ink);
  font-variation-settings: "opsz" 36;
}
.nq-page .col-body h3 em { font-style: italic; color: var(--ink-soft); }
.nq-page .col-body h3 a { color: inherit; border: 0; }
.nq-page .col-body h3 a:hover { color: var(--quince); }
.nq-page .col-body p { margin: 0 0 12px; }
.nq-page .col-body p:last-child { margin-bottom: 0; }
.nq-page .col-body .src {
  display: block;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--ink-mute); margin-top: 16px;
  text-transform: none;
}
.nq-page .col-body .src a {
  color: var(--quince); border-bottom: 1px solid var(--rule);
}

.nq-page .earlier {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--quince);
}
.nq-page .earlier a { color: inherit; border: 0; }
.nq-page .earlier a:hover { color: var(--ink); }
.nq-page .earlier .ghost {
  display: block; color: var(--ink-mute); margin-top: 8px;
  font-size: 10px; font-style: normal;
  letter-spacing: .12em;
}

.nq-page .crumb {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 24px;
}
.nq-page .crumb a { color: var(--ink-soft); border: 0; }
.nq-page .crumb a:hover { color: var(--quince); }
.nq-page .crumb .here { color: var(--quince); }

.nq-page .nq-empty {
  padding: 64px 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .nq-page { padding: 20px 22px 48px; }
  .nq-page .nq-head h2 { font-size: 30px; }
  .nq-page .stream-note { grid-template-columns: 1fr; gap: 14px; }
  .nq-page .col-meta { grid-auto-flow: column; gap: 14px; align-items: baseline; }
  .nq-page .col-meta .perma { margin-top: 0; margin-left: auto; }
}

/* ---- /archive/ — auto-generated essay TOC ---- */
.archive-page { max-width: 1000px; }
.archive-list {
  list-style: none; padding: 0; margin: 0;
}
.archive-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule-soft);
}
.archive-row:last-child { border-bottom: 0; }
.archive-row .date {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink-mute); text-transform: uppercase;
}
.archive-row .ttl {
  font-family: var(--serif); font-size: 17px; line-height: 1.4;
  color: var(--ink); letter-spacing: -.005em;
  border: 0;
}
.archive-row .ttl:hover { color: var(--quince); }
.archive-row .cat {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-mute);
  border: 0;
}
.archive-row .cat:hover { color: var(--quince); }

@media (max-width: 720px) {
  .archive-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .archive-row .cat { justify-self: start; margin-top: 2px; }
}

/* =================================================================
   series landing page — /tag/series-<slug>/
   Used by tag.hbs when the tag.slug starts with "series-".
   ================================================================= */
.series-page {
  max-width: 960px; margin: 0 auto;
  padding: 36px 36px 64px;
}
.series-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px; margin-bottom: 36px;
}
.series-head .kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--quince);
  margin-bottom: 14px;
  display: flex; gap: 10px; align-items: baseline;
}
.series-head .kicker .sep { color: var(--rule); }
.series-head .title {
  font-family: var(--serif); font-weight: 400;
  font-size: 42px; line-height: 1.05; letter-spacing: -.012em;
  margin: 0 0 16px;
  font-variation-settings: "opsz" 144;
}
.series-head .title em { font-style: italic; color: var(--ink-soft); }
.series-head .dek {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  line-height: 1.55; color: var(--ink-soft);
  max-width: 60ch; margin: 0;
}

.series-manifest {
  list-style: none; padding: 0; margin: 0;
}
.series-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px; align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.series-row:last-child { border-bottom: 0; }
.series-row .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--ink-mute); text-transform: uppercase;
}
.series-row .body {
  display: grid; gap: 6px;
}
.series-row .ttl {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  line-height: 1.25; letter-spacing: -.005em; color: var(--ink);
  border: 0;
  font-variation-settings: "opsz" 36;
}
.series-row .ttl:hover { color: var(--quince); }
.series-row .body .dek {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  line-height: 1.5; color: var(--ink-soft);
  max-width: 56ch; margin: 0;
}
.series-row .date {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--ink-mute); text-transform: uppercase;
  align-self: start; padding-top: 4px;
}

@media (max-width: 720px) {
  .series-page { padding: 24px 22px 48px; }
  .series-head .title { font-size: 32px; }
  .series-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .series-row .num { order: 1; }
  .series-row .body { order: 2; }
  .series-row .date { order: 3; align-self: start; padding-top: 4px; }
}

