:root {
  --lime: #FBFCFC;
  --foam: #F1F6F9;
  --mist: #DCE9F1;
  --shallow: #A9CCE0;
  --aegean: #1B6CA8;
  --deep: #0F3F66;
  --ink: #1A2F40;
  --slate: #4A6175;
  --section-space: 3.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--lime); scroll-padding-top: 2rem; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: transparent;
  isolation: isolate;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: break-word;
}
::selection { color: var(--deep); background: var(--mist); }
h1, h2, h3, .empty-state {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  color: var(--deep);
}
h1, h2, h3, p, figure { margin: 0; }
main { flex: 1; }
h1 { font-size: 2.2rem; line-height: 1.2; letter-spacing: normal; text-align: left; }
h2 {
  color: var(--aegean);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.4;
}
h3 { font-size: 1.1rem; line-height: 1.4; }
p + p { margin-top: 1rem; }
strong { font-weight: 500; }
a {
  color: var(--aegean);
  text-decoration: underline;
  text-decoration-color: var(--shallow);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
a:hover { color: var(--deep); text-decoration-color: var(--aegean); }
:focus-visible { outline: 2px solid var(--aegean); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.content { width: min(820px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: 1rem; left: 1.5rem; z-index: 5; padding: 0.6rem 1rem; background: var(--lime); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.notebook-main { padding-top: 4.5rem; }
.hero, .page-header { text-align: left; }
/* Hero sits on the same 150px label column as the sections below. */
.hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
.hero h1 { grid-column: 2; grid-row: 1; align-self: end; font-size: 2.6rem; }
.hero-ornament {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 112px;
  height: auto;
  margin: 0;
  border-radius: 12px;
}
.hero-tagline { grid-column: 1 / -1; }
.hero-sub { grid-column: 2; grid-row: 2; align-self: start; }
.hero-tagline { margin-top: 1rem; }
.hero-sub { margin-top: 0.75rem; color: var(--slate); font-size: 14px; }
.page-intro { margin-top: 1rem; }
.notebook-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0.6rem 1.5rem; margin-bottom: 2.5rem; font-size: 14px; }
.notebook-nav a { text-decoration: none; }
.notebook-nav a[aria-current="page"] { color: var(--deep); font-weight: 500; }
.notebook-section, .post-list { margin-top: var(--section-space); }
.section-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
.section-layout > h2 { position: sticky; top: 2rem; align-self: start; }
.section-body, .rows { min-width: 0; }
.entry + .entry { margin-top: 2.75rem; }
.entry-body { min-width: 0; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; }
.entry-heading > :first-child { min-width: 0; }
.entry-heading > div > h3 { display: inline; }
.entry-date, .entry-meta, .entry-role { color: var(--slate); font-size: 14px; }
.entry-date { flex: 0 0 auto; text-align: right; }
.entry-description, .entry-meta { margin-top: 0.5rem; }
.entry-link { display: inline-block; margin-top: 0.5rem; font-size: 14px; }
.entry-title { margin: 0; color: var(--deep); font-size: 1.1rem; font-style: normal; }
.empty-state { font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.content-column, .post-list { width: calc(100% - 150px); margin-left: 150px; }
.site-footer { position: relative; margin-top: var(--section-space); padding-bottom: 230px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem clamp(0.6rem, 3vw, 1.5rem); font-size: 14px; }
.copyright { margin-top: 0.75rem; color: var(--slate); font-size: 14px; text-align: left; }
.post-header { margin-block: 0 2.5rem; text-align: left; }
.post-meta { color: var(--slate); font-size: 14px; margin-top: 1rem; }
.prose > * + * { margin-top: 1.5rem; }
.prose > h2 { margin-top: 3.5rem; }
.prose > h3 { margin-top: 2.5rem; }
.prose li + li { margin-top: 0.5rem; }
.prose blockquote { margin-inline: 0; padding: 0.5rem 0 0.5rem 1.25rem; border-left: 2px solid var(--shallow); color: var(--slate); font-style: italic; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--foam); border: 1px solid var(--mist); font-size: inherit; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose code { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.prose :not(pre) > code { padding: 0.1em 0.25em; background: var(--foam); }
.post-image { width: 100%; border: 1px solid var(--mist); }
.post-back { margin-top: 3.5rem; }
figcaption { margin-top: 0.75rem; color: var(--slate); font-size: 14px; }

/* Wrapped flow is the default; only measured pieces become absolute. */
.scattered-gallery { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2rem; margin-top: var(--section-space); width: 100%; }
.gallery-piece { flex: 0 1 auto; width: min(var(--piece-width, 270px), 100%); min-width: 0; }
.gallery-photo { --piece-width: 195px; }
.photo-frame { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--foam); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { background: linear-gradient(to bottom, var(--foam), var(--shallow)); }
.gallery-note { padding: 1.1rem; background: var(--foam); border: 1px solid var(--mist); border-radius: 4px; }
.gallery-song { --piece-width: 240px; padding: 0.9rem; font-size: 14px; }
.gallery-song h3 { font-size: 1rem; }
.song-artist { color: var(--slate); font-size: 14px; margin-top: 0.35rem; }
.gallery-song .entry-link { margin-top: 0.35rem; }
.gallery-song .empty-state { font-size: 1.1rem; }
.scattered-gallery.is-scattered { display: block; }
.is-scattered .gallery-piece { position: absolute; transform: rotate(var(--piece-rotation, 0deg)); transition: transform 200ms ease; }
.gallery-piece:hover, .gallery-piece:focus-within { z-index: 3; transform: rotate(0deg); }
@media (min-width: 1240px) {
  .scattered-gallery { width: min(1200px, calc(50vw + 410px - 40px)); }
}
@media (max-width: 759.98px) {
  .section-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .section-layout > h2 { position: static; }
  .content-column, .post-list { width: 100%; margin-left: 0; }
  .hero { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; }
  .hero-ornament { width: 88px; }
  .entry-heading { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .entry-date { text-align: left; }
}

/* The ocean is composited as one faint group. Even fully overlapping crests
   cannot exceed 16% shallow over lime (#EEF4F8, lighter than #E8F1F6). */
.shore-ocean {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse at bottom left, var(--lime), transparent 90%);
  mask-image: radial-gradient(ellipse at bottom left, var(--lime), transparent 90%);
}
.shore-current {
  position: absolute;
  width: 200vmax;
  height: 200vmax;
  left: calc(50% - 100vmax);
  top: calc(50% - 100vmax);
  transform: rotate(45deg);
}
.shore-swell {
  position: absolute;
  left: 0;
  top: -160px;
  width: 100%;
  height: calc(100% + 320px);
  animation: shore-flow 72s linear infinite;
  fill: none;
  stroke: var(--shallow);
  stroke-width: 2;
}
.shore-swell:nth-child(2) { animation-duration: 96s; stroke: var(--mist); stroke-width: 14; }
.shore-swell:nth-child(3) { animation-duration: 120s; stroke-width: 4; }
@keyframes shore-flow { from { transform: translateY(0); } to { transform: translateY(160px); } }
.shore-paused .shore-swell, .shore-paused .shore-foam { animation-play-state: paused; }
.shore-scene {
  --sand: #F4EBDC;
  --sand-shade: #E9DCC6;
  --wet-sand: #EDE6D8;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 260px;
  aspect-ratio: 26 / 19;
  z-index: 2;
  pointer-events: none;
  contain: layout paint;
}
.shore-beach, .shore-butterflies { position: absolute; inset: 0; width: 100%; height: 100%; }
.shore-sand { fill: var(--sand); }
.shore-wet { fill: none; stroke: var(--wet-sand); stroke-width: 5; }
.shore-sand-shade { fill: var(--sand-shade); }
.shore-foam {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  animation: shore-lapping 9s ease-in-out infinite;
}
@keyframes shore-lapping {
  0%, 100% { transform: translate(0, 0); opacity: 0.65; }
  50% { transform: translate(-3px, 4px); opacity: 1; }
}
.shore-cat {
  position: absolute;
  left: 0;
  top: 0;
  width: 18.46154%;
  height: 25.26316%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.shore-cat:focus-visible { outline: 2px solid var(--aegean); outline-offset: 3px; }
.shore-cat canvas { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
.shore-cat canvas, .shore-butterflies { image-rendering: pixelated; }
/* Reserve the mobile scene’s space before scripts run to avoid layout shift. */
@media (min-width: 1240px) {
  .shore-scene {
    position: fixed;
    width: min(260px, calc((100vw - 820px) / 2 - 16px));
  }
  .site-footer { padding-bottom: 2.5rem; }
}
@media (max-width: 519px) {
  body { font-size: 15px; }
  .content { width: calc(100% - 2.5rem); }
  .hero h1 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
  .hero-ornament { width: 68px; }
  .notebook-nav { column-gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Posts as small tabs: a cover, a title and a date. */
.post-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.post-tab {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--mist);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 63, 102, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.post-tab:hover, .post-tab:focus-visible { color: inherit; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 63, 102, 0.14); }
.post-tab-cover { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(to bottom, var(--foam), var(--shallow)); }
.post-tab-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.post-tab:hover .post-tab-cover img { transform: scale(1.04); }
.post-tab-body { display: flex; flex: 1; flex-direction: column; gap: 0.4rem; padding: 1rem 1.1rem 1.15rem; }
.post-tab-title { color: var(--deep); font-family: "Newsreader", Georgia, serif; font-size: 1.2rem; font-style: normal; font-weight: 500; line-height: 1.3; }
.post-tab-date { color: var(--slate); font-size: 12px; letter-spacing: 0.02em; }
.post-tab-summary { color: var(--ink); font-size: 13.5px; line-height: 1.6; }
.prose figure img, .prose > img { margin-inline: auto; border-radius: 12px; }
.prose figure { text-align: center; }

/* Long-form post details: contents, glossary, setup lists and equations. */
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li > p, .prose li > ul { margin-top: 0.5rem; }
.prose hr { margin-block: 3.5rem 0; border: 0; border-top: 1px dashed var(--shallow); }
.prose h4 { margin: 0 0 0.5rem; color: var(--deep); font-family: "Newsreader", Georgia, serif; font-size: 1.05rem; font-weight: 500; text-align: left; }
.prose video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }
.post-toc { padding: 1.1rem 1.4rem; background: rgba(241, 246, 249, 0.85); border: 1px solid var(--mist); border-radius: 16px; font-size: 14px; }
.post-toc h2 { margin: 0 0 0.4rem; font-size: 1rem; }
.post-toc ol { margin: 0; }
.post-toc a { text-decoration: none; }
.glossary { display: grid; gap: 0.75rem; margin-block: 1.5rem 0; }
.glossary > div { padding: 0.75rem 1rem; background: rgba(241, 246, 249, 0.7); border-left: 3px solid var(--shallow); border-radius: 0 10px 10px 0; }
.glossary dt { color: var(--deep); font-weight: 500; }
.glossary dd { margin: 0.2rem 0 0; font-size: 14.5px; }
.setup, .symbols { padding-left: 0 !important; list-style: none; font-size: 14.5px; }
.setup li + li, .symbols li + li { margin-top: 0.3rem !important; }
.prose math { font-size: 1.12em; }
.prose math[display="block"] { margin-block: 1.5rem; padding: 0.9rem 1rem; overflow-x: auto; background: rgba(241, 246, 249, 0.7); border-radius: 12px; font-size: 1.3em; }
.prose > h2:not(.post-toc h2) { font-size: 1.6rem; font-style: normal; color: var(--deep); line-height: 1.3; }
.prose > h3 { color: var(--aegean); font-size: 1.2rem; }
@media (min-width: 760px) { .glossary { grid-template-columns: 1fr 1fr; } }
.post-tab-cover.is-contained { background: #fff; }
.post-tab-cover.is-contained img { object-fit: contain; padding: 0.5rem; }
.references { font-size: 14.5px; } .references a { overflow-wrap: anywhere; }


/* Masthead: a small wordmark on the left, the pages on the right, a hairline below. */
.notebook-nav { padding-bottom: 0.9rem; border-bottom: 1px solid var(--mist); }
.notebook-nav .wordmark {
  margin-right: auto;
  color: var(--deep);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.01em;
}
.notebook-nav .wordmark::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 0.75em;
  margin-right: 0.45em;
  vertical-align: -0.02em;
  image-rendering: pixelated;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 5' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='1' y='0' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='5' y='0' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='6' y='0' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='0' y='1' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23A9CCE0'/%3E%3Crect x='2' y='1' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='5' y='1' width='1' height='1' fill='%23A9CCE0'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='3' y='2' width='1' height='1' fill='%231A2F40'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='0' y='3' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='1' y='3' width='1' height='1' fill='%23A9CCE0'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%231A2F40'/%3E%3Crect x='4' y='3' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23A9CCE0'/%3E%3Crect x='6' y='3' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='1' y='4' width='1' height='1' fill='%231B6CA8'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%231B6CA8'/%3E%3C/svg%3E");
}

/* Post pages: the index on the left, the reading column on the right,
   centred together like a notebook spread. */
html { scroll-behavior: smooth; }
.post-page { --index-width: 200px; --index-gap: clamp(2rem, 5vw, 4.5rem); }
.post-page .content { width: min(992px, calc(100% - 3rem)); }
.post-page .site-footer .section-layout { grid-template-columns: var(--index-width) minmax(0, 1fr); column-gap: var(--index-gap); }
.post { display: grid; grid-template-columns: var(--index-width) minmax(0, 1fr); column-gap: var(--index-gap); }
.post > * { grid-column: 2; min-width: 0; }
.post-header { margin-block: 1.5rem 3.5rem; }
.post-kicker { color: var(--slate); font-size: 13px; letter-spacing: 0.03em; }
.post-kicker span[aria-hidden] { margin-inline: 0.2rem; color: var(--shallow); }
.post-header h1 { margin-top: 0.9rem; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.post-dek { margin-top: 1.25rem; color: var(--slate); font-size: 15px; line-height: 1.8; }
.prose > h2, .prose > h3 { scroll-margin-top: 2rem; }

.post-index { grid-column: 1; grid-row: 1 / span 3; padding-top: 2.4rem; }
.post-index-inner { position: sticky; top: 2.5rem; max-height: calc(100vh - 5rem); overflow-y: auto; font-size: 12.5px; line-height: 1.5; }
.post-index-title { margin-bottom: 0.8rem; color: var(--aegean); font-family: "Newsreader", Georgia, serif; font-size: 1rem; font-style: italic; }
.post-index ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--mist); }
.post-index a { display: flex; gap: 0.5rem; margin-left: -1px; padding: 0.3rem 0 0.3rem 0.9rem; color: var(--slate); text-decoration: none; border-left: 2px solid transparent; transition: color 180ms ease, border-color 180ms ease; }
.post-index a:hover { color: var(--deep); }
.post-index a[aria-current] { color: var(--deep); border-left-color: var(--aegean); }
.post-index-number { flex: 0 0 auto; color: var(--shallow); }
.post-index a[aria-current] .post-index-number { color: var(--aegean); }

.post .prose { counter-reset: section figure; }
.prose > h2:not(.post-toc h2) { margin-top: 4.5rem; font-size: 1.75rem; }
.prose > h2::before {
  counter-increment: section;
  content: "§ " counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  color: var(--aegean);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.06em;
}
.prose figure { margin-block: 2.25rem; }
.prose figcaption::before { counter-increment: figure; content: "fig. " counter(figure, decimal-leading-zero) " — "; color: var(--aegean); }
.prose blockquote { font-family: "Newsreader", Georgia, serif; font-size: 1.15rem; line-height: 1.6; }

.post-end { display: grid; justify-items: center; gap: 0.6rem; margin-top: 5rem; color: var(--shallow); text-align: center; }
.post-end svg { width: 96px; height: 16px; overflow: visible; }
.post-end p { color: var(--deep); font-family: "Newsreader", Georgia, serif; font-size: 1.15rem; font-style: italic; }
.post-end a { font-size: 14px; }

.read-progress { position: fixed; top: 0; left: 0; z-index: 10; width: 100%; height: 2px; background: var(--aegean); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

@media (min-width: 1240px) {
  .post-page .shore-scene { width: min(260px, calc((100vw - 992px) / 2 - 16px)); }
}
/* Narrow screens: one column, with the index as a small box above the text. */
@media (max-width: 899.98px) {
  .post, .post-page .site-footer .section-layout { grid-template-columns: minmax(0, 1fr); }
  .post > * { grid-column: 1; }
  .post-index { grid-row: 2; padding: 1.1rem 1.3rem; margin-bottom: 2.5rem; background: rgba(241, 246, 249, 0.85); border: 1px solid var(--mist); border-radius: 16px; }
  .post-index-inner { position: static; max-height: none; }
  .post-index ol { border-left: 0; }
  .post-index a { padding-left: 0; border-left: 0; }
}
@media (max-width: 519px) {
  .post-header { padding-right: 0; }
  .notebook-nav .wordmark { flex-basis: 100%; }
}
.post-tab-meta { color: var(--slate); font-size: 12px; letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Blog water (lagoon.js): the page colour stays; soft wave shadows move on it. */
.lagoon-water { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.lagoon .shore-ocean { display: none; }

/* Posts stacked one below another, each with a wide banner cover. */
.post-tabs { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.post-tab-cover { aspect-ratio: 12 / 5; }
.post-tab-body { padding: 1.25rem 1.5rem 1.4rem; }
.post-tab-title { font-size: 1.45rem; }
.post-tab-summary { font-size: 14px; }
@media (max-width: 519px) { .post-tab-cover { aspect-ratio: 16 / 9; } }

/* Blog index as a journal: year rules, then one line per post. */
.lagoon .post-list, .post-list { width: 100%; margin-left: 0; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); }
.post-year + .post-year { margin-top: 3.5rem; }
.post-year-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; color: var(--aegean); font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 13px; font-style: normal; font-weight: 500; letter-spacing: 0.12em; }
.post-year-label::after { content: ""; flex: 1; border-top: 1px solid var(--mist); }
.post-row { display: block; padding-block: 1.75rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--mist); }
.post-row:hover, .post-row:focus-visible { color: inherit; }
.post-row-tag { color: var(--slate); font-size: 12.5px; letter-spacing: 0.04em; }
.post-row-head { display: flex; align-items: baseline; gap: 0.9rem; margin-top: 0.35rem; }
.post-row-title { color: var(--deep); font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.3; transition: color 180ms ease; }
.post-row:hover .post-row-title, .post-row:focus-visible .post-row-title { color: var(--aegean); }
.post-row-leader { flex: 1 1 2rem; min-width: 2rem; border-bottom: 1px dotted var(--shallow); transform: translateY(-0.3em); }
.post-row-date { flex: 0 0 auto; color: var(--aegean); font-size: 13px; letter-spacing: 0.04em; }
.post-row-summary { max-width: 34rem; margin-top: 0.7rem; color: var(--slate); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 519px) {
  .post-row-leader { display: none; }
  .post-row-head { flex-direction: column; gap: 0.2rem; }
}
/* Each row keeps its cover pinned on the left as a small framed thumbnail. */
.post-row.has-cover { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.75rem; align-items: center; }
.post-row-text { min-width: 0; }
.post-row-cover { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: 1px solid var(--mist); border-radius: 12px; box-shadow: 0 4px 14px rgba(15, 63, 102, 0.06); }
.post-row-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.post-row-cover.is-contained img { object-fit: contain; padding: 0.35rem; }
.post-row:hover .post-row-cover img { transform: scale(1.04); }
@media (max-width: 639px) {
  .post-row.has-cover { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
