/* ─────────────────────────────────────────────────────────────────
   hesreallyhim · site.css
   Two themes share one DOM:
     [data-theme="light"]  → clinical lab (paper, chrome, fluorescent blue)
     [data-theme="dark"]   → night studio (purple/magenta/gold, particle ambient)
   Tokens flip; structure does not.
   ───────────────────────────────────────────────────────────────── */

/* ── Web fonts ───────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Unbounded:wght@500;600;700&display=swap");

/* ── Token: shared ───────────────────────────────────────────── */
:root {
  --sans:    "Space Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, Menlo, monospace;
  --display: "Unbounded", sans-serif;

  --r-chip: 6px;
  --r-input: 10px;
  --r-card: 14px;
  --r-pill: 999px;

  --dur-fast: 0.15s;
  --dur:      0.2s;
  --dur-slow: 0.35s;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Token: LIGHT (clinical lab) ─────────────────────────────── */
[data-theme="light"] {
  --bg:         #f4f6fa;
  --bg-2:       #ffffff;
  --surface:    #ffffff;
  --surface-2:  #f7f9fc;
  --surface-3:  #eef2f8;
  --rule:       rgba(10, 20, 34, 0.10);
  --rule-2:     rgba(10, 20, 34, 0.06);
  --chrome-1:   #f7f9fc;
  --chrome-2:   #dfe5ee;
  --chrome-3:   #c2cad7;
  --steel:      #8794a7;
  --slate:      #4a5466;
  --ink:        #0a1422;

  --fg:         #0a1422;
  --fg-2:       #4a5466;
  --fg-3:       #5f6670;

  --accent:       #1d6dff;
  --accent-2:     #00a3ff;
  --accent-glow:  rgba(29, 109, 255, 0.22);
  --accent-soft:  rgba(29, 109, 255, 0.06);
  --hi:           #d4ff3a;

  --btn-bg:      #ffffff;
  --btn-fg:      #0a1422;
  --btn-bd:      #0a1422;
  --btn-solid-bg:#0a1422;
  --btn-solid-fg:#ffffff;

  --status-live: #1d6dff;
}

/* ── Token: DARK (night studio) ──────────────────────────────── */
[data-theme="dark"] {
  --bg:         #0a0f1c;
  --bg-2:       #0e1322;
  --surface:    rgba(255, 255, 255, 0.045);
  --surface-2:  rgba(255, 255, 255, 0.07);
  --surface-3:  rgba(255, 255, 255, 0.10);
  --rule:       rgba(255, 255, 255, 0.12);
  --rule-2:     rgba(255, 255, 255, 0.06);
  --chrome-1:   rgba(255, 255, 255, 0.04);
  --chrome-2:   rgba(255, 255, 255, 0.10);
  --chrome-3:   rgba(255, 255, 255, 0.20);
  --steel:      #8a93a8;
  --slate:      #b3bccd;
  --ink:        #f5f7fb;

  --fg:         #f5f7fb;
  --fg-2:       #b3bccd;
  --fg-3:       #c8ccd5;

  --brand-purple-300: #c084fc;
  --brand-purple-400: #a855f7;
  --brand-purple-600: #7c3aed;
  --brand-magenta:    #ff4fd8;
  --brand-gold:       #f6c548;

  --accent:       #f6c548;
  --accent-2:     #ff4fd8;
  --accent-glow:  rgba(246, 197, 72, 0.30);
  --accent-soft:  rgba(168, 85, 247, 0.10);
  --hi:           #d4ff3a;

  --brand-gradient: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
  --hot-gradient:   linear-gradient(135deg, #c084fc 0%, #ff4fd8 60%, #f6c548 100%);

  --btn-bg:      rgba(255,255,255,0.05);
  --btn-fg:      #f5f7fb;
  --btn-bd:      rgba(255,255,255,0.20);
  --btn-solid-bg:#f6c548;
  --btn-solid-fg:#1a1404;

  --status-live: #86efac;
}

/* ── Reset & body ────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--fg);
  font-family: var(--sans);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-slow) var(--ease-smooth), color var(--dur-slow) var(--ease-smooth);
}

[data-theme="light"] body {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  background-attachment: fixed;
}
[data-theme="dark"] body {
  background:
    radial-gradient(1200px 700px at 12% 78%, rgba(168,85,247,0.16), transparent),
    radial-gradient(900px 700px at 92% 8%, rgba(255,79,216,0.10), transparent),
    radial-gradient(800px 600px at 58% 110%, rgba(246,197,72,0.10), transparent),
    linear-gradient(160deg, #0a0f1c 0%, #0e1322 45%, #070912 100%);
  background-attachment: fixed;
}

/* graph-paper grid (light only) */
[data-theme="light"] body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,20,34,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,34,0.04) 1px, transparent 1px),
    linear-gradient(rgba(10,20,34,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,34,0.025) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  opacity: 0.85;
}
/* fluorescent ceiling (light only) */
[data-theme="light"] body::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 220px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(29,109,255,0.08), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
}

/* ambient canvas wrapper (dark only) */
.ambient { display: none; }
[data-theme="dark"] .ambient {
  display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
}

/* theme-only show/hide */
.in-light { display: none; }
.in-dark  { display: none; }
[data-theme="light"] .in-light { display: revert; }
[data-theme="dark"]  .in-dark  { display: revert; }

/* ── Wireframe flag ──────────────────────────────────────────── */
.wf-banner {
  position: fixed; bottom: 16px; left: 16px; z-index: 50;
  padding: 8px 12px; border: 1px solid var(--fg);
  background: var(--bg-2); color: var(--fg);
  font-family: var(--mono); font-weight: 700; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* ── Page shell ──────────────────────────────────────────────── */
.page { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 28px 80px; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; gap: 24px; border-bottom: 1px solid var(--rule); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.nav-brand .mark {
  width: 38px; height: 38px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--chrome-3); background: var(--bg-2);
  display: grid; place-items: center;
  flex: 0 0 38px;
}
[data-theme="light"] .nav-brand .mark { box-shadow: inset 0 0 0 2px var(--bg-2), 0 0 0 1px var(--rule); }
.nav-brand .mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.nav-brand .name {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg);
}
.nav-brand .name b { color: var(--accent); }
[data-theme="dark"] .nav-brand .name {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 0.4px; font-size: 16px;
}

.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); border-bottom-color: var(--accent); }

.nav-end { display: flex; align-items: center; gap: 10px; }

.nav-icon-link,
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--rule);
  color: var(--fg); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast);
}
.nav-icon-link { text-decoration: none; }
.nav-icon-link:hover,
.theme-toggle:hover { transform: scale(1.06); background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.nav-icon-link svg,
.theme-toggle svg { width: 18px; height: 18px; display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.nav-cta {
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--btn-bd); color: var(--btn-solid-fg); background: var(--btn-solid-bg);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--btn-solid-fg); box-shadow: 0 0 0 4px var(--accent-glow); }
[data-theme="light"] .nav-cta:hover { color: #ffffff; }

/* ── Ribbon ──────────────────────────────────────────────────── */
.ribbon {
  padding: 10px 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3);
  border: 1px solid var(--rule); border-top: none;
  background: var(--chrome-1);
}
.ribbon .mid { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.4em; color: var(--fg); text-align: center; }
.ribbon .right { text-align: right; }
.ribbon .dot {
  display: none; width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
  margin-right: 6px; vertical-align: middle;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 56px 0 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; border-bottom: 1px solid var(--rule); }
.hero.solo { grid-template-columns: 1fr; }

.field {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); padding: 6px 10px; border: 1px solid var(--accent); background: var(--accent-soft);
  margin-bottom: 22px;
}
.field::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(60px, 6.6vw, 80px); line-height: 0.98;
  letter-spacing: -1.4px; margin: 0 0 26px; color: var(--fg); max-width: 14ch;
}
[data-theme="dark"] .h1 { letter-spacing: 0.2px; line-height: 1.02; }
.h1 .accent { color: var(--accent); }
.h1 .stroke { -webkit-text-stroke: 1.5px var(--fg); color: transparent; }
[data-theme="dark"] .h1 .stroke { -webkit-text-stroke: 1.5px var(--fg-2); }
[data-theme="dark"] .h1 .grad {
  background: var(--hot-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.dek {
  font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.55;
  color: var(--fg-2); max-width: 56ch; margin: 0 0 26px;
}
.dek strong { color: var(--fg); font-weight: 600; }

.meta-line { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); }
.meta-line strong { color: var(--fg); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid var(--btn-bd); color: var(--btn-fg); background: var(--btn-bg);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
  display: inline-flex; align-items: center; gap: 8px;
}
[data-theme="light"] .btn { box-shadow: 0 1px 0 rgba(10,20,34,0.06); }
.btn:hover { background: var(--fg); color: var(--bg-2); border-color: var(--fg); }
[data-theme="dark"] .btn:hover { background: var(--surface-2); color: var(--fg); border-color: var(--accent); }

.btn.solid { background: var(--btn-solid-bg); color: var(--btn-solid-fg); border-color: var(--btn-solid-bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--btn-solid-fg); box-shadow: 0 0 0 4px var(--accent-glow); }
[data-theme="light"] .btn.solid:hover { color: #ffffff; }
.btn:active { transform: scale(0.97); }

/* ── Section heads ───────────────────────────────────────────── */
.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.section.last { border-bottom: none; }
.section-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: baseline; margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--fg); }
[data-theme="dark"] .section-head { border-bottom-color: var(--rule); }
.section-head .num {
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bg-2); background: var(--fg); padding: 6px 10px;
}
[data-theme="dark"] .section-head .num { background: var(--brand-purple-400); color: #1a1404; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 0; letter-spacing: -0.4px; color: var(--fg); }
.section-head .right { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.section-head .right a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-glow); }
.section-head .right a:hover { border-bottom-color: var(--accent); }

/* ── Stand (about) ───────────────────────────────────────────── */
.stand { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.stand .lead { font-family: var(--sans); font-size: 18px; line-height: 1.55; color: var(--fg); margin: 0 0 18px; max-width: 44ch; }
.stand p { font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--fg-2); margin: 0 0 14px; }
.stand p strong { color: var(--fg); font-weight: 600; }
.stand p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-glow); }
.stand p a:hover { border-bottom-color: var(--accent); }

.specs { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--fg-2); border-top: 1px solid var(--fg); }
[data-theme="dark"] .specs { border-top-color: var(--rule); }
.specs .row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs .row dt { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); padding-top: 2px; }
.specs .row dd { margin: 0; color: var(--fg); }

/* ── Plates (projects) ───────────────────────────────────────── */
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plate {
  position: relative; padding: 0;
  border: 1px solid var(--rule);
  background: var(--surface);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
[data-theme="light"] .plate { box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 0 rgba(10,20,34,0.04); }
.plate:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 0 var(--accent-soft), 0 0 0 1px var(--accent-glow); }

.plate .id-strip {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
  background: var(--chrome-1);
}
.plate .id-strip .id { color: var(--fg); }
.plate .id-strip .status { color: var(--accent); }
.plate .id-strip .status.archive { color: var(--fg-3); }
.plate .id-strip .status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: currentColor; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px var(--accent-glow); }
.plate .id-strip .status.archive::before { box-shadow: none; }

.plate .dish {
  aspect-ratio: 1/1; display: grid; place-items: center; padding: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-3) 100%);
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.plate .dish svg { width: 100%; height: 100%; display: block; }
.plate .dish .project-logo {
  width: min(54%, 128px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.plate .info { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.plate .info h3 { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; margin: 0; color: var(--fg); letter-spacing: -0.2px; }
.plate .info p { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--fg-2); margin: 0; }
.plate .info .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.plate .info .foot .read { color: var(--accent); }

.plate.featured { grid-column: span 2; }
.plate.featured .dish { aspect-ratio: 21/9; }
.plate.featured .info h3 { font-size: 22px; }
.writing-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}
.writing-cover {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  border-left: 1px solid var(--rule);
}

/* ── Dispatches ──────────────────────────────────────────────── */
.dispatches { border-top: 1px solid var(--fg); }
[data-theme="dark"] .dispatches { border-top-color: var(--rule); }
.dispatch {
  display: grid; grid-template-columns: 130px 1.4fr 1.6fr 90px; gap: 18px;
  padding: 16px 12px; border-bottom: 1px solid var(--rule); align-items: baseline;
  text-decoration: none; color: inherit;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.dispatch:hover { background: var(--chrome-1); }
.dispatch:hover .title { color: var(--accent); }
.dispatch .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); }
.dispatch .vol { display: block; font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.dispatch .title { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--fg); transition: color var(--dur-fast); }
.dispatch .summary { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--fg-2); margin: 0; }
.dispatch .read { grid-column: 4; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); text-align: right; }

/* ── Article pages ───────────────────────────────────────────── */
.article-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 740px) 180px;
  gap: 36px;
  align-items: start;
  padding-top: 36px;
}
.article-shell-solo {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.article-main { min-width: 0; }
.article-rail {
  position: sticky;
  top: 24px;
  padding-top: 10px;
}
.article-rail h2,
.article-rail .rail-h {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.toc { display: flex; flex-direction: column; gap: 8px; }
.toc a,
.source-list a {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--fg-2);
  text-decoration: none;
  border-left: 1px solid var(--rule);
  padding: 6px 0 6px 12px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.toc a:hover,
.toc a.active,
.source-list a:hover {
  color: var(--fg);
  border-left-color: var(--accent);
}
.toc .n { color: var(--accent); margin-right: 6px; }
.source-list { display: flex; flex-direction: column; gap: 8px; }
.post-header {
  padding: 16px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.article-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  margin-bottom: 28px;
}
.post-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.meta-pill,
.tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 6px 10px;
}
.meta-pill.primary { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.post-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--fg);
  margin: 0 0 22px;
}
[data-theme="dark"] .post-title { letter-spacing: 0.2px; }
.post-title .grad {
  color: var(--accent);
}
[data-theme="dark"] .post-title .grad {
  background: var(--hot-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.post-dek {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 66ch;
  margin: 0 0 28px;
}
.byline {
  display: flex;
  gap: 12px;
  align-items: center;
}
.byline .ava {
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.byline .ava img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.byline .who {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-3);
}
.byline .who strong { color: var(--fg); }
.edition-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.edition-links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-glow);
}
.edition-links a:hover { border-bottom-color: var(--accent); }
.post-body {
  padding: 36px 0 24px;
  font-family: var(--sans);
}
.post-body p,
.post-body ul,
.post-body ol {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-2);
  margin: 0 0 22px;
}
.post-body .lead {
  font-size: 18px;
  color: var(--fg);
}
.post-body strong { color: var(--fg); font-weight: 600; }
.post-body em { color: var(--accent); font-style: normal; }
.post-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-glow); }
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body h2 {
  margin: 54px 0 18px;
  scroll-margin-top: 24px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  color: var(--fg);
}
.post-body h3 {
  margin: 32px 0 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
}
.post-body ul,
.post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body code {
  font-family: var(--mono);
  font-size: 0.94em;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--fg);
}
.post-body pre {
  margin: 30px 0;
  padding: 20px 22px;
  overflow-x: auto;
  background: #07090f;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  color: #f5f7fb;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}
.post-body pre code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.post-body pre .c { color: #8a93a8; }
.post-body pre .k { color: #c084fc; }
.post-body pre .s { color: #f6c548; }
.post-body pre .f { color: #ff4fd8; }
[data-theme="light"] .post-body pre {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(247,249,252,0.88)),
    var(--surface);
  border-color: var(--chrome-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 0 rgba(10,20,34,0.04);
  color: var(--fg);
}
[data-theme="light"] .post-body pre .c { color: var(--fg-3); }
[data-theme="light"] .post-body pre .k { color: #7c3aed; }
[data-theme="light"] .post-body pre .s { color: #9a6500; }
[data-theme="light"] .post-body pre .f { color: #c026d3; }
.post-body blockquote {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 72%);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.45;
  color: var(--fg);
}
.post-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.post-body figure {
  margin: 32px 0;
  border: 1px solid var(--rule);
  background: var(--surface);
  overflow: hidden;
}
.post-body figure .ph {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, var(--rule-2) 0 8px, transparent 8px 16px),
    radial-gradient(520px 320px at 35% 55%, var(--accent-soft), transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.post-body figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-3);
}
.callout {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}
.callout strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-foot {
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.related {
  padding: 34px 0 0;
}
.related-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.related-h h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}
.related-h a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-glow);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-card {
  padding: 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.related-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.related-card .date,
.related-card .read {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.related-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--fg);
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 20;
  background: var(--rule-2);
}
.progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ── OSS strip ───────────────────────────────────────────────── */
.oss {
  padding: 22px 24px; border: 1px solid var(--rule); background: var(--surface);
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
[data-theme="light"] .oss { box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
.oss .text { font-family: var(--sans); font-size: 15px; color: var(--fg-2); line-height: 1.55; max-width: 70ch; }
.oss .text strong { font-weight: 600; color: var(--fg); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--fg); margin: 0 0 12px; letter-spacing: -0.3px; }
.contact p { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0 0 14px; max-width: 52ch; }
.contact form { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 460px; margin-top: 12px; }
.contact input, .contact textarea, .contact select {
  padding: 12px 14px; border: 1px solid var(--btn-bd); background: var(--surface);
  color: var(--fg); font-family: var(--mono); font-size: 13px;
}
.contact input:focus, .contact textarea:focus, .contact select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.channels { display: flex; flex-direction: column; gap: 0; padding-top: 4px; border-top: 1px solid var(--fg); }
[data-theme="dark"] .channels { border-top-color: var(--rule); }
.channel {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--fg); text-decoration: none;
  transition: color var(--dur-fast);
}
.channel:hover { color: var(--accent); }
.channel .lab { font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); padding-top: 2px; }
.channel .val { font-family: var(--sans); font-size: 15px; }
.channel .arr { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }

/* ── Long-form contact form ──────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3);
  display: block; margin-bottom: 6px;
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--btn-bd);
  background: var(--surface); color: var(--fg); font-family: var(--mono); font-size: 13px;
}
.form-grid textarea { min-height: 140px; resize: vertical; font-family: var(--mono); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Colophon ────────────────────────────────────────────────── */
.colophon {
  padding: 20px 24px; margin-top: 56px; border: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 24px; align-items: center;
  background: var(--chrome-1);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3);
}
.colophon strong { color: var(--fg); font-weight: 700; display: block; margin-bottom: 4px; }
.colophon .seal {
  width: 64px; height: 64px; border-radius: 999px; border: 1px dashed var(--fg-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  color: var(--fg); line-height: 1;
  font-family: var(--display); font-weight: 600; font-size: 9px; letter-spacing: 0.12em;
  background: radial-gradient(circle at 30% 30%, var(--bg-2), var(--surface-3));
}
.colophon .seal span { display: block; }

/* ── Petri dish (homepage hero) ──────────────────────────────── */
.petri {
  position: relative; aspect-ratio: 1/1; max-width: 380px; margin-left: auto; margin-bottom: 44px; padding: 18px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 1px 0 rgba(10,20,34,0.04);
  overflow: visible;
}
.petri::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid var(--rule);
}
.petri::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.34), transparent 38%),
    linear-gradient(rgba(10,20,34,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,34,0.035) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  opacity: 0.72;
}
[data-theme="dark"] .petri {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.02);
}
[data-theme="dark"] .petri::after {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
}
.petri-svg { width: 100%; height: 100%; display: block; }
.petri-img { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: contain; }
.petri-title-card {
  position: absolute; left: 22px; right: 22px; bottom: -36px; z-index: 3;
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  box-shadow: 0 8px 18px rgba(10,20,34,0.06), inset 0 1px 0 rgba(255,255,255,0.88);
}
.petri-title-kicker,
.petri-title-name {
  font-family: var(--mono); font-size: 10px; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase;
}
.petri-title-kicker { font-weight: 700; color: var(--fg); white-space: nowrap; }
.petri-title-name { color: var(--fg-3); text-align: right; }
[data-theme="dark"] .petri-title-card {
  background: color-mix(in srgb, var(--bg-2) 84%, transparent);
  box-shadow: 0 12px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Gallery plates ──────────────────────────────────────────── */
.gallery-page-header { padding-bottom: 30px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  margin: 4px 0 72px;
  align-items: start;
}
.gallery-plate {
  min-width: 0;
  color: inherit;
}
.gallery-plate--hero { grid-column: 1 / -1; }
.gallery-plate--wide { grid-column: span 6; }
.gallery-plate--square { grid-column: span 3; }
.gallery-glass {
  position: relative;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-3) 100%), var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 1px 0 rgba(10,20,34,0.04);
  overflow: hidden;
}
.gallery-plate--hero .gallery-glass { aspect-ratio: 4 / 1; }
.gallery-plate--wide .gallery-glass { aspect-ratio: 2 / 1; }
.gallery-plate--square .gallery-glass { aspect-ratio: 1 / 1; }
.gallery-glass::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: 2;
}
.gallery-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.30), transparent 35%),
    linear-gradient(rgba(10,20,34,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,20,34,0.032) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  opacity: 0.78;
}
[data-theme="dark"] .gallery-glass {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.20);
}
[data-theme="dark"] .gallery-glass::after {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 35%),
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
}
.motion-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 38%),
    radial-gradient(circle at 18% 22%, rgba(15,118,110,0.10), transparent 26%),
    radial-gradient(circle at 78% 72%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 28%);
}
.motion-field::before,
.motion-field::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid var(--rule);
  transform: rotate(-4deg);
  opacity: 0.62;
}
.motion-field::after {
  inset: 28%;
  transform: rotate(7deg);
  opacity: 0.38;
}
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.86;
  box-shadow: 0 0 14px var(--accent-glow);
  animation: plate-drift 8s var(--ease-smooth) infinite alternate;
}
.particle:nth-child(3n) { background: var(--accent-2); }
.particle:nth-child(4n) { background: #0f766e; }
.particle:nth-child(1) { left: 12%; top: 30%; animation-delay: -0.2s; }
.particle:nth-child(2) { left: 19%; top: 62%; animation-delay: -1.2s; }
.particle:nth-child(3) { left: 26%; top: 44%; animation-delay: -2.1s; }
.particle:nth-child(4) { left: 34%; top: 72%; animation-delay: -3.2s; }
.particle:nth-child(5) { left: 41%; top: 24%; animation-delay: -4.1s; }
.particle:nth-child(6) { left: 48%; top: 52%; animation-delay: -5.3s; }
.particle:nth-child(7) { left: 55%; top: 36%; animation-delay: -6.2s; }
.particle:nth-child(8) { left: 62%; top: 67%; animation-delay: -7.4s; }
.particle:nth-child(9) { left: 69%; top: 29%; animation-delay: -1.8s; }
.particle:nth-child(10) { left: 77%; top: 56%; animation-delay: -2.8s; }
.particle:nth-child(11) { left: 83%; top: 39%; animation-delay: -3.8s; }
.particle:nth-child(12) { left: 88%; top: 70%; animation-delay: -4.8s; }
.particle:nth-child(13) { left: 23%; top: 22%; animation-delay: -5.8s; }
.particle:nth-child(14) { left: 38%; top: 50%; animation-delay: -6.8s; }
.particle:nth-child(15) { left: 58%; top: 78%; animation-delay: -7.8s; }
.particle:nth-child(16) { left: 74%; top: 18%; animation-delay: -8.8s; }
.plate-motion--loom .particle {
  width: 22px;
  height: 2px;
  border-radius: 0;
  transform-origin: left center;
}
.plate-motion--weather .motion-field {
  background:
    radial-gradient(ellipse at 38% 44%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 35%),
    radial-gradient(ellipse at 64% 58%, rgba(15,118,110,0.16), transparent 32%);
}
.plate-motion--orbit .particle,
.plate-motion--current .particle { animation-name: plate-orbit; }
.plate-motion--notes .particle {
  width: 3px;
  height: 12px;
  border-radius: 1px;
}
.plate-motion--stack .motion-field::before,
.plate-motion--stack .motion-field::after {
  inset: 20%;
  border-color: color-mix(in srgb, var(--accent) 38%, var(--rule));
}
.gallery-title-card {
  position: relative;
  z-index: 4;
  width: calc(100% - 36px);
  margin: -18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  background-color: var(--bg-2);
  box-shadow: 0 8px 18px rgba(10,20,34,0.06), inset 0 1px 0 rgba(255,255,255,0.88);
}
[data-theme="dark"] .gallery-title-card {
  background: color-mix(in srgb, var(--bg-2) 84%, transparent);
  background-color: var(--bg-2);
  box-shadow: 0 12px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}
.gallery-plate-number,
.gallery-plate-meta {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gallery-plate-number {
  display: block;
  margin-bottom: 5px;
  color: var(--fg-3);
}
.gallery-title-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
}
.gallery-plate-meta {
  display: grid;
  gap: 5px;
  text-align: right;
  color: var(--fg-3);
}
.gallery-caption {
  width: calc(100% - 36px);
  margin: 10px auto 0;
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}
.gallery-plate--square .gallery-title-card {
  grid-template-columns: 1fr;
  gap: 8px;
}
.gallery-plate--square .gallery-plate-meta { text-align: left; }
@keyframes plate-drift {
  0% { transform: translate3d(-8px, 7px, 0) scale(0.78); }
  100% { transform: translate3d(12px, -10px, 0) scale(1.18); }
}
@keyframes plate-orbit {
  0% { transform: rotate(0deg) translateX(12px) rotate(0deg) scale(0.86); }
  100% { transform: rotate(360deg) translateX(12px) rotate(-360deg) scale(1.08); }
}

/* ── Filter bar ──────────────────────────────────────────────── */
.filterbar {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 24px;
  border-bottom: 1px solid var(--rule); margin-bottom: 28px;
}
.filterbar .chip {
  font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--rule); color: var(--fg-2); background: var(--surface);
  cursor: pointer; user-select: none;
  transition: all var(--dur-fast);
}
.filterbar .chip:hover { color: var(--fg); border-color: var(--fg); }
.filterbar .chip.is-active { background: var(--fg); color: var(--bg-2); border-color: var(--fg); }
[data-theme="dark"] .filterbar .chip.is-active { background: var(--accent); color: #1a1404; border-color: var(--accent); }
.filterbar .grow { flex: 1; }
.filterbar .search {
  padding: 7px 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--fg);
  font-family: var(--mono); font-size: 11px; min-width: 220px;
}
.filterbar .search:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .petri { margin: 0 auto; }
  .stand, .contact { grid-template-columns: 1fr; gap: 32px; }
  .plates { grid-template-columns: 1fr 1fr; }
  .plate.featured { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .gallery-plate--hero,
  .gallery-plate--wide { grid-column: 1 / -1; }
  .gallery-plate--square { grid-column: span 4; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .dispatch { grid-template-columns: 110px 1fr 80px; }
  .dispatch .summary { display: none; }
  .dispatch .read { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .article-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-rail { display: none; }
  .article-main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .ribbon { grid-template-columns: 1fr; text-align: left; }
  .ribbon .mid, .ribbon .right { text-align: left; }
  .dispatch {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .dispatch .read { text-align: left; }
  .plates { grid-template-columns: 1fr; }
  .plate.featured { grid-column: span 1; }
  .gallery-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-plate--hero,
  .gallery-plate--wide,
  .gallery-plate--square { grid-column: 1; }
  .gallery-title-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gallery-plate-meta { text-align: left; }
  .writing-feature { grid-template-columns: 1fr; }
  .writing-cover {
    border-left: none !important;
    border-top: 1px solid var(--rule);
  }
  .contact form { grid-template-columns: 1fr; }
  .oss { grid-template-columns: 1fr !important; }
  .oss .search {
    width: 100%;
    min-width: 0 !important;
  }
  .colophon { grid-template-columns: 1fr; }
  .post-title { font-size: clamp(34px, 11vw, 48px); }
  .post-body p,
  .post-body ul,
  .post-body ol { font-size: 15px; }
  .post-foot { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
