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

   Architecture:
   - Tokens (colors, type, rules) live in :root and are OVERRIDDEN by
     theme files (theme-default.css / theme-substrate.css / theme-mist.css /
     theme-bio.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); }

/* =================================================================
   substrate plate — the full-bleed image hero used on -index pages
   ================================================================= */
.substrate-plate {
  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);
}
.substrate-plate .img-wrap {
  position: relative;
  width: 100%;
  height: var(--plate-height, 520px);
  overflow: hidden;
}
.substrate-plate 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 */
.substrate-plate .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%);
}
.substrate-plate .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;
}
.substrate-plate .caption .right { color: var(--plate-caption-mute, var(--ink-mute)); }
.substrate-plate .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-mark { width: 38px; height: 38px; color: var(--np-mark, var(--quince)); }
.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; }
.np-nav a {
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink);
  border: 0;
}
.np-nav a:hover { color: var(--quince); }
.np-nav .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 .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
   ================================================================= */
.essay {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px 120px;
  display: grid;
  grid-template-columns: 1fr 660px 320px 1fr;
  column-gap: 0;
}
.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; }

/* Haru toggle */
.haru-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);
}
.haru-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));
}
.haru-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;
}
.haru-toggle .label b { font-style: normal; font-weight: 500; color: var(--indigo); }
.haru-toggle .switch {
  position: relative; width: 38px; height: 20px; background: var(--rule);
  border-radius: 999px; cursor: pointer; transition: background .2s ease;
}
.haru-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.haru-on .haru-toggle .switch { background: var(--indigo); }
body.haru-on .haru-toggle .switch::after { transform: translateX(18px); }
.haru-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;
}

/* 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.haru-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-haru {
  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-haru::before {
  content: "Haru "; 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(.haru-on) .body .inline-haru { 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(.haru-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 CONVENTIONS — three voices

   The system distinguishes three authorship modes:
   1. Solo human (default; no marker)
   2. Cooperative — written with AI in the room. Signaled by a small
      "with Haru" attribution in the byline meta. No chrome.
   3. AI-led / guest — Haru (or another AI) is the primary author.
      Treated like a guest column in a magazine: inset framing,
      sister serif (Newsreader), inverted byline.

   Marginalia (the gutter notes) is orthogonal to all three modes.
   ================================================================= */

/* Cooperative byline marker — sits inline within .post-meta */
.post-meta .with-mark {
  display: inline-flex; align-items: baseline; gap: 8px;
}
.post-meta .with-mark::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 8px 0 0 0 var(--indigo);
  margin-right: 8px;
  position: relative; top: -1px;
}
.post-meta .with-mark .with-label {
  font-style: normal; letter-spacing: .12em; color: var(--ink-mute);
}
.post-meta .with-mark .with-name { color: var(--indigo); font-weight: 500; }

/* =================================================================
   GUEST ESSAY — AI-led writing, framed as a guest column
   Apply with: <article class="essay essay-guest">
   ================================================================= */
.essay-guest {
  /* Inset the whole article slightly and frame it */
  max-width: 1180px;
  margin-top: 24px;
  position: relative;
}
.essay-guest::before {
  /* a hairline frame, set in from the page edge */
  content: "";
  position: absolute;
  inset: 0 24px;
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: 0;
}
.essay-guest > * { position: relative; z-index: 1; }
.essay-guest {
  padding: 56px 64px 100px;
}

/* The guest-column kicker — appears above the post-kicker line.
   Spans the content columns of the essay grid, both desktop and narrow. */
.essay-guest > .guest-banner {
  grid-column: 2 / 4;
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--indigo);
}
.essay-guest .guest-banner .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--indigo);
  flex: none;
}
.essay-guest .guest-banner .label-end {
  margin-left: auto;
  color: var(--ink-mute);
  font-style: normal;
}

/* Body type shifts to the sister serif (Newsreader) — same color, same
   weight, slightly different hand. Optical-size is enabled. */
.essay-guest .body,
.essay-guest .body p,
.essay-guest .body blockquote,
.essay-guest .post-title,
.essay-guest .post-dek,
.essay-guest .head h1,
.essay-guest .body h2 {
  font-family: var(--serif-guest, 'Newsreader', 'Iowan Old Style', Georgia, serif);
  font-variation-settings: "opsz" 18;
}
.essay-guest .post-title {
  font-variation-settings: "opsz" 144;
  font-weight: 400;
}
.essay-guest .body h2 {
  font-variation-settings: "opsz" 36;
  font-weight: 500;
}

/* Inverted byline foot — primary credit goes to the AI; human gets
   "with" or "edited by" billing at the bottom. */
.essay-guest .foot .author .name { color: var(--indigo); }
.essay-guest .foot .author .ava {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-soft) 100%);
}

@media (max-width: 880px) {
  .essay-guest { padding: 36px 28px 80px; }
  .essay-guest::before { inset: 0 8px; }
}

/* =================================================================
   /authorship conventions
   ================================================================= */

/* =================================================================
   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; }
}

@media (max-width: 1080px) {
  .essay { grid-template-columns: 1fr; max-width: 720px; }
  .essay > .head, .essay > .body, .essay > .marg, .essay > .foot { grid-column: 1; }
  .essay-guest > .guest-banner { grid-column: 1; }
  .haru-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(.haru-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; }
}
