/* ==========================================================================
   CELL FRONT — site.css
   Design direction: "Pathology Atlas". The site is a histology slide:
   eosin-stained mounting medium as the page ground, hematoxylin ink for
   type, specimen labels for structure, coverslip cards for imagery.
   Every colour below comes from a real stain used to look at cells.
   ========================================================================== */

/* --- 1. DESIGN TOKENS ----------------------------------------------------
   Change a value here and it changes everywhere on the site.
   ----------------------------------------------------------------------- */
:root {
  /* Colour: named after the stains they come from */
  --slide:      #f3e4e9;  /* mounting medium — page background          */
  --tissue:     #e7cfd8;  /* eosin-washed tissue — alternating sections */
  --coverslip:  #fdf8f9;  /* glass — cards, panels                     */
  --ink:        #2b1a33;  /* hematoxylin nuclei — body text            */
  --ink-soft:   #6d5567;  /* faded ink — captions, secondary text      */
  --eosin:      #a6304e;  /* primary accent — the one loud colour      */
  --methylene:  #1e4e66;  /* counter-stain — links, interactive cool   */
  --hairline:   rgba(43, 26, 51, 0.16);

  /* Per-unit stain swatches (used on the cell roster) */
  --stain-neutrophil: #a6304e;
  --stain-macrophage: #1e4e66;
  --stain-dendritic:  #7a5b16;
  --stain-platelet:   #4b6b3c;

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Newsreader", Georgia, serif;
  --mono:    "Azeret Mono", ui-monospace, monospace;

  /* Rhythm */
  --shell:   min(1240px, 92vw);
  --band-y:  clamp(4.5rem, 9vw, 8.5rem);
  --radius:  2px;          /* slides have square corners, not pills */
}

/* --- 2. RESET + BASE ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--slide);
  /* Two soft stain blooms so the ground is never a flat colour */
  background-image:
    radial-gradient(60rem 40rem at 12% -8%, rgba(166, 48, 78, 0.16), transparent 65%),
    radial-gradient(50rem 38rem at 92% 18%, rgba(30, 78, 102, 0.11), transparent 65%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.16rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--methylene); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

/* Film grain, so the page feels like stained paper rather than a screen */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--slide);
  padding: 0.7rem 1.1rem; font-family: var(--mono); font-size: 0.8rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 200; }

/* --- 3. SHARED PIECES -------------------------------------------------- */
.shell { width: var(--shell); margin-inline: auto; }

.band { padding-block: var(--band-y); }
.band--tissue { background: var(--tissue); }
.band--edged { border-top: 1px solid var(--hairline); }

/* The specimen label. Every section is introduced by one. */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eosin);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}
.section-dek {
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0 0 3rem;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.btn--solid { background: var(--ink); color: var(--slide); }
.btn--solid:hover { background: var(--eosin); border-color: var(--eosin); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--slide); transform: translateY(-2px); }

/* --- 4. HEADER --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 228, 233, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand__mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--eosin);
  box-shadow: 0 0 0 3px var(--slide), 0 0 0 4px var(--eosin);
  position: relative;
}
.brand__mark::after {  /* a nucleus inside the cell */
  content: "";
  position: absolute; inset: 7px 8px 10px 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.75;
}
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}
.nav__link:hover, .nav__link[aria-current="page"] {
  border-bottom-color: var(--eosin);
  color: var(--eosin);
}
.site-header .btn { padding: 0.75rem 1.2rem; }

/* Live status line — tells a visitor where the project actually stands */
.status-strip {
  background: var(--ink);
  color: rgba(243, 228, 233, 0.78);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-block: 0.55rem;
}
.status-strip span { color: var(--slide); }
.status-strip__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }

.nav-toggle { display: none; }

/* --- 5. HERO + THE SIGNATURE PLATE ------------------------------------- */
.hero { padding-block: clamp(3.5rem, 7vw, 7rem) clamp(5rem, 9vw, 9rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 7.2vw, 6.2rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 90, "WONK" 1;
  color: var(--eosin);
}
.hero__dek {
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.4rem);
  max-width: 40ch;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* --- The signature: a mounted coverslip with a ×400 magnified inset,
       joined by a leader line, exactly like a figure in an atlas plate. */
.plate { position: relative; padding-bottom: 3.5rem; }
.plate__frame {
  position: relative;
  background: var(--coverslip);
  padding: 12px;
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 0 rgba(253, 248, 249, 0.9) inset,
    18px 22px 0 rgba(43, 26, 51, 0.06),
    0 30px 60px -30px rgba(43, 26, 51, 0.5);
  transform: rotate(-1.4deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plate:hover .plate__frame { transform: rotate(0deg); }
/* 16:9 matches the in-engine captures, so cover crops ~3% off the sides
   instead of the ~21% a 3:2 box would take. */
.plate__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.plate__sheen {  /* glass reflection across the coverslip */
  position: absolute; inset: 12px;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(255,255,255,0.16) 100%);
}
/* FOCAL POINT — the crosshair, the leader line and the inset below all aim
   at one spot in artery-breach.webp: the cell ring, at 73% across / 43% down.
   Change the image and these three rules must move together, or the ×400
   circle magnifies empty tissue. The calc() offsets cancel out .plate__frame's
   12px padding, so the percentages are of the image, not the frame. */
.plate__marker {  /* the crosshair on the slide showing what is magnified */
  position: absolute;
  top: calc(43% + 1.7px); left: calc(73% - 5.5px);
  width: 62px; height: 62px;
  border: 1px solid var(--eosin);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-1.4deg);
}
.plate__marker::before, .plate__marker::after {
  content: ""; position: absolute; background: var(--eosin);
}
.plate__marker::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.plate__marker::after  { top: 50%; left: -8px; right: -8px; height: 1px; }
.plate__lead {  /* thin line from the marker down-left, stopping at the inset rim */
  position: absolute;
  top: 43%; left: 73%;
  width: 46%; height: 1px;
  background: var(--eosin);
  transform-origin: left center;
  transform: rotate(152.5deg);
  opacity: 0.65;
}
.plate__inset {
  position: absolute;
  bottom: 0; left: 4%;
  width: clamp(120px, 15vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 6px var(--slide), 0 18px 34px -14px rgba(43, 26, 51, 0.55);
  background-size: 420%;          /* this is the magnification */
  background-position: 80% 38%;   /* puts image point 73%/43% at the circle's centre */
  background-repeat: no-repeat;
}
.plate__inset span {  /* the magnification readout */
  position: absolute;
  right: -0.4rem; bottom: -0.4rem;
  background: var(--ink); color: var(--slide);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em;
  padding: 0.25rem 0.45rem;
}
.plate__cap {
  position: absolute;
  bottom: 0.4rem; right: 0;
  max-width: 22rem;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0;
}

/* --- 6. THESIS --------------------------------------------------------- */
.thesis__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.thesis__lead {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0;
}
.thesis__lead strong { color: var(--eosin); font-weight: 600; }
.notes { display: grid; gap: 1.6rem; }
.note { border-top: 1px solid var(--hairline); padding-top: 1rem; }
.note__label {
  font-family: var(--mono);
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--eosin);
  margin: 0 0 0.4rem;
}
.note p { margin: 0; color: var(--ink-soft); }

/* --- 7. CELL ROSTER ---------------------------------------------------- */
.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
.cell {
  --stain: var(--eosin);
  background: var(--coverslip);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--stain);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex; flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
/* Staircase offset: breaks the grid without making it chaotic */
.roster .cell:nth-child(2) { transform: translateY(1.6rem); }
.roster .cell:nth-child(3) { transform: translateY(3.2rem); }
.roster .cell:nth-child(4) { transform: translateY(4.8rem); }
.cell:hover { box-shadow: 0 24px 44px -26px rgba(43, 26, 51, 0.6); }
.roster .cell:hover              { transform: translateY(-6px); }
.roster .cell:nth-child(2):hover { transform: translateY(1.0rem); }
.roster .cell:nth-child(3):hover { transform: translateY(2.6rem); }
.roster .cell:nth-child(4):hover { transform: translateY(4.2rem); }

.cell__id {
  font-family: var(--mono);
  font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stain);
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.1rem;
}
.cell__swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--stain); }
.cell__name { font-size: 1.55rem; margin-bottom: 0.35rem; }
.cell__role {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--ink-soft); margin: 0 0 1.3rem;
}
.cell__rows { display: grid; gap: 0.9rem; margin-top: auto; }
.cell__row { border-top: 1px solid var(--hairline); padding-top: 0.7rem; }
.cell__rowlabel {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
  display: block; margin-bottom: 0.3rem;
}
.cell__row p { margin: 0; font-size: 0.95rem; line-height: 1.5; }

/* --- 8. ANATOMY OF A RUN ---------------------------------------------- */
.run { display: grid; gap: 0; counter-reset: step; }
.run__step {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  padding-block: 1.7rem;
  border-top: 1px solid var(--hairline);
}
.run__step:last-child { border-bottom: 1px solid var(--hairline); }
.run__num {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--eosin);
}
.run__title { font-size: 1.5rem; }
.run__body { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* --- 9. DEVLOG ENTRIES ------------------------------------------------- */
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.entry {
  background: var(--coverslip);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.entry:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -28px rgba(43, 26, 51, 0.6); }
.entry__thumb { aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--hairline); }
.entry__inner { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.entry__meta {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--eosin);
  display: flex; gap: 0.9rem; margin-bottom: 0.9rem;
}
.entry__meta .tag { color: var(--ink-soft); }
.entry__title { font-size: 1.32rem; margin-bottom: 0.7rem; }
.entry__excerpt { margin: 0 0 1.3rem; color: var(--ink-soft); font-size: 0.97rem; }
.entry__more {
  margin-top: auto;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.entry:hover .entry__more { color: var(--eosin); }
.entries-foot { margin-top: 2.6rem; }

/* --- 10. NEWSLETTER --------------------------------------------------- */
.signal {
  background: var(--ink);
  color: var(--slide);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.signal .eyebrow { color: #e8a7b6; }
.signal .eyebrow::after { background: rgba(243, 228, 233, 0.22); }
.signal__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
.signal__title { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 20ch; }
.signal__form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signal__input {
  flex: 1 1 16rem;
  background: transparent;
  border: 1px solid rgba(243, 228, 233, 0.4);
  border-radius: var(--radius);
  color: var(--slide);
  font-family: var(--mono); font-size: 0.82rem;
  padding: 1rem 1.1rem;
}
.signal__input::placeholder { color: rgba(243, 228, 233, 0.45); }
.signal__input:focus { border-color: #e8a7b6; outline: none; }
.signal .btn--solid { background: var(--slide); color: var(--ink); border-color: var(--slide); }
.signal .btn--solid:hover { background: #e8a7b6; border-color: #e8a7b6; }
.signal__note {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.1em;
  color: rgba(243, 228, 233, 0.55);
  margin: 1rem 0 0;
}

/* --- 11. FOOTER ------------------------------------------------------- */
.site-footer { background: var(--tissue); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.facts { display: grid; gap: 0; margin: 0; }
.facts__row {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
}
.facts dt {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  padding-top: 0.2rem;
}
.facts dd { margin: 0; }
.foot-col h3 {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--eosin); font-weight: 500;
  margin-bottom: 1rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot-col a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.foot-col a:hover { color: var(--eosin); border-bottom-color: var(--eosin); }
.foot-bottom {
  margin-top: 3rem; padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* --- 12. BLOG ARCHIVE ------------------------------------------------- */
.page-head { padding-block: clamp(3rem, 6vw, 5.5rem) 2.5rem; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 24ch; }
.page-head p { max-width: 52ch; color: var(--ink-soft); margin: 1.2rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.6rem 1rem; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--slide); border-color: var(--ink); }

.archive { display: grid; gap: 0; }
.archive__item {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--hairline);
  text-decoration: none; color: inherit;
  transition: background-color 200ms ease;
}
.archive__item:last-of-type { border-bottom: 1px solid var(--hairline); }
.archive__item:hover { background: rgba(253, 248, 249, 0.6); }
.archive__thumb { aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--hairline); }
.archive__item:hover .archive__title { color: var(--eosin); }
.archive__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 0.7rem; }
.archive__excerpt { color: var(--ink-soft); margin: 0 0 1rem; max-width: 62ch; }
.archive__empty {
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft);
  padding: 3rem 0;
}

/* --- 13. SINGLE POST -------------------------------------------------- */
.post { padding-block: clamp(2.5rem, 5vw, 4rem) var(--band-y); }
.post__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.post__title { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 1.3rem; }
.post__dek { font-size: 1.18rem; color: var(--ink-soft); margin: 0 auto; max-width: 46ch; }
.post__byline {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap;
}
.post__hero { margin: clamp(2.5rem, 5vw, 4rem) auto; max-width: 62rem; }
.post__hero img { width: 100%; border: 1px solid var(--hairline); background: var(--coverslip); }

.prose { max-width: 40rem; margin-inline: auto; }
.prose > * + * { margin-top: 1.4rem; }
.prose p { margin: 0; }
.prose h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin-top: 3.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
.prose h3 { font-size: 1.3rem; margin-top: 2.2rem; }
.prose > p:first-of-type::first-letter {
  font-family: var(--display);
  font-variation-settings: "SOFT" 90, "WONK" 1;
  font-size: 3.9rem;
  float: left;
  line-height: 0.82;
  padding: 0.1em 0.1em 0 0;
  color: var(--eosin);
}
.prose ul, .prose ol { padding-left: 1.3rem; margin-top: 1.2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--coverslip); border: 1px solid var(--hairline);
  padding: 0.1em 0.35em;
}
.prose pre {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.6;
  background: var(--ink); color: var(--slide);
  padding: 1.3rem; overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose blockquote {
  margin: 2.4rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--eosin);
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: 1.4rem; line-height: 1.3;
}
.prose figure { margin: 2.6rem 0; }
.prose figure img { border: 1px solid var(--hairline); background: var(--coverslip); }
.prose figcaption {
  font-family: var(--mono); font-size: 0.66rem; line-height: 1.6;
  letter-spacing: 0.04em; color: var(--ink-soft);
  margin-top: 0.7rem; padding-top: 0.5rem;
  border-top: 1px solid var(--hairline);
}
.prose figcaption b { color: var(--eosin); font-weight: 500; }

.post-nav {
  max-width: 40rem; margin: 4rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.post-nav a { color: var(--ink); text-decoration: none; }
.post-nav a:hover { color: var(--eosin); }

/* --- 14. MOTION -------------------------------------------------------
   One orchestrated load sequence, then quiet scroll reveals.
   -------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mount { from { opacity: 0; transform: rotate(-5deg) translateY(30px) scale(0.97); } to { opacity: 1; transform: rotate(-1.4deg); } }

.load > * { animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.load > *:nth-child(1) { animation-delay: 0.05s; }
.load > *:nth-child(2) { animation-delay: 0.16s; }
.load > *:nth-child(3) { animation-delay: 0.27s; }
.load > *:nth-child(4) { animation-delay: 0.38s; }
.plate .plate__frame { animation: mount 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.plate__inset, .plate__cap, .plate__marker, .plate__lead {
  animation: rise 800ms ease 1.05s both;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- 15. RESPONSIVE --------------------------------------------------- */
@media (max-width: 1080px) {
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .roster .cell:nth-child(2) { transform: translateY(1.6rem); }
  .roster .cell:nth-child(3) { transform: none; }
  .roster .cell:nth-child(4) { transform: translateY(1.6rem); }
  .roster .cell:hover, .roster .cell:nth-child(3):hover { transform: translateY(-6px); }
  .roster .cell:nth-child(2):hover, .roster .cell:nth-child(4):hover { transform: translateY(1rem); }
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entries .entry:last-child { display: none; }
}

@media (max-width: 860px) {
  .hero__grid, .thesis__grid, .signal__grid, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 2.5rem 4rem; }
  .plate { padding-bottom: 5rem; }
  .plate__cap { position: static; text-align: left; max-width: none; margin-top: 4.5rem; }
  .plate__inset { bottom: 3.2rem; }
  .run__step { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .run__body { grid-column: 2; }
  .archive__item { grid-template-columns: 1fr; gap: 1.2rem; }
  .archive__thumb { max-width: 22rem; }
  .foot-grid { gap: 2.5rem; }

  /* Collapse the nav into a toggle */
  .nav-toggle {
    display: block;
    background: transparent; border: 1px solid var(--ink);
    border-radius: var(--radius); color: var(--ink);
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 0.6rem 0.9rem; cursor: pointer;
  }
  .site-header__inner { flex-wrap: wrap; }
  .site-header .btn { display: none; }
  .nav {
    order: 3; flex-basis: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 300ms ease;
  }
  .nav[data-open="true"] { max-height: 22rem; }
  .nav__link { width: 100%; padding-block: 0.9rem; border-bottom: 1px solid var(--hairline); }
}

@media (max-width: 560px) {
  .roster { grid-template-columns: 1fr; }
  .roster .cell, .roster .cell:nth-child(n) { transform: none; }
  .roster .cell:hover, .roster .cell:nth-child(n):hover { transform: translateY(-4px); }
  .entries { grid-template-columns: 1fr; }
  .entries .entry:last-child { display: flex; }
  .facts__row { grid-template-columns: 1fr; gap: 0.1rem; }
}
