/* ---------- tokens ---------- */
:root {
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5a5a5a;
  --color-faint: #8a8a8a;
  --color-rule: #e5e2dc;
  --color-note: #6f6f6f;          /* small print — lighter than --muted, still AA on --bg */
  --color-accent:    #0f5c63;     /* deep teal — PRIMARY: headings, titles, links, CTAs */
  --color-secondary: #4a7a7e;     /* muted teal — SECONDARY: hover/active states, editorial marks */

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "STIX Two Text", "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 700px;     /* body column */
  --measure-wide: 940px; /* wide figures */
  --measure-page: 1180px;/* page chrome */

  --size-base: 17px;
  --leading: 1.65;
}

@media (min-width: 1024px) {
  :root { --size-base: 18px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--size-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: "kern", "liga", "calt", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(15, 92, 99, 0.4); transition: color 120ms ease, text-decoration-color 120ms ease; }
a:hover { color: var(--color-secondary); text-decoration-color: var(--color-secondary); }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-accent);
  font-feature-settings: "kern", "liga", "lnum";
}
p, ul, ol, blockquote, pre, table, figure { margin: 0 0 1.1em; }

/* ---------- chrome ---------- */
.site-header {
  background: var(--color-bg);
}
.site-header-inner {
  max-width: var(--measure-page);
  margin: 0 auto;
  padding: 0.625rem 1.5rem;
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;        /* the nav must not crush the mark to a zero-width tap target */
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0;
  font-feature-settings: "kern", "lnum";
}
.site-title:hover { color: var(--color-accent); opacity: 0.75; }
/* Below 560px the wordmark wraps to a second line and doubles the header's
   height, so show the mark alone. Hidden visually rather than with display:none:
   the logo img is alt="" inside an aria-hidden span, so this text is the link's
   only accessible name. */
.site-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 560px) {
  .site-title-text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-family: var(--font-sans);
}
.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.site-nav a:hover { color: var(--color-secondary); }
.site-nav .nav-subscribe {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  font-size: 0.75rem;
}
.site-nav .nav-subscribe:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

main {
  max-width: var(--measure-page);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--color-rule);
  margin-top: 4rem;
  padding: 2rem 0;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}
.site-footer-inner {
  max-width: var(--measure-page);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-copy { margin: 0 0 0.25rem; }
.footer-disclaimer { margin: 0; color: var(--color-faint); font-size: 0.8125rem; }

/* ---------- home ---------- */
@media (min-width: 700px) {
  .home { padding-left: 2rem; }
}
.home-intro {
  max-width: var(--measure);
  margin: 0 0 3.5rem;
}
.home-masthead {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  /* drives the logo size (.site-logo svg is height: 1em) and its color (currentColor) */
  font-size: clamp(2.5rem, 5vw, 3.375rem);
  color: var(--color-accent);
}
.home-heading {
  min-width: 0;
}
.home-title {
  font-size: clamp(2.5rem, 5vw, 3.375rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--color-accent);
}

/* logo — inherits color (currentColor) and scales to the font-size it sits in */
.site-logo {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}
.site-logo svg,
.site-logo img {
  display: block;
  /* the padded icon (header) has generous internal padding — scale it up so the
     visible mark reads larger, then pull the box back with negative margins so the
     enlarged image doesn't grow the line box */
  height: 1.45em;
  width: auto;
  margin: -0.22em 0;
}
/* the homepage uses the pre-cropped icon (no internal padding), so size it
   directly without the padding compensation */
.home-masthead .site-logo img {
  height: 1.1em;
  /* nudge down, expressed in em so it scales with the responsive title */
  margin: 0.04em 0 0;
}
.home-tagline {
  margin: 0.35rem 0 0 5px;
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 60ch;
  line-height: 1.45;
}

.home-posts {
  max-width: calc(var(--measure) * 1.1);
}
.home-section {
  margin: 0 0 3.25rem;
}
.home-section:last-child { margin-bottom: 0; }

/* Stacked by default (latest first, matching source order). Side by side once
   there's room for two readable card columns: latest left, featured right. */
@media (min-width: 1024px) {
  .home-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5rem;
    align-items: start;
  }
  .home-columns .home-section { margin-bottom: 0; }
  /* the single-column measure would otherwise cap each column */
  .home-columns .home-posts { max-width: none; }
  /* featured reads as a distinct panel against the page background */
  .home-featured {
    background: var(--color-surface);
    border: 1px solid var(--color-rule);
    border-radius: 3px;
    padding: 1.25rem 1.5rem 1.5rem;
    /* lift by the padding *and* the border so the two column headings sit on
       the same line as each other */
    margin-top: calc(-1.25rem - 1px);
  }
  /* the panel edge already closes the list off */
  .home-featured .post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
/* Section headings, shared by the homepage and the author pages so the two can't
   drift apart. text-transform because "featured"/"latest"/"posts" are lowercased
   at source but bio headings arrive from author Markdown as "## Links" —
   small-caps then renders all of them as uniform small capitals. */
.home-section-title,
.author-posts-heading,
.author-bio h2 {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}
.home-all-link {
  max-width: calc(var(--measure) * 1.1);
  margin: 2.5rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.home-all-link a { color: var(--color-accent); text-decoration: none; }
.home-all-link a:hover { color: var(--color-secondary); }

/* ---------- archive (all posts) ---------- */
@media (min-width: 700px) {
  .archive { padding-left: 2rem; }
}
.archive .page-title { margin-bottom: 1.5rem; }
.post-card {
  padding: 1.125rem 0;
  border-top: 1px solid var(--color-rule);
}
.post-card:last-child { border-bottom: 1px solid var(--color-rule); }
.post-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.post-card-title a {
  color: var(--color-accent);
  text-decoration: none;
}
.post-card-title a:hover {
  color: var(--color-accent);
  opacity: 0.72;
}
.post-card-meta {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.post-card-author { color: var(--color-text); font-weight: 600; text-decoration: none; }
.post-card-author:hover { color: var(--color-secondary); }
.post-card-excerpt {
  font-family: var(--font-serif);
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.post-card-excerpt p { margin: 0; }

/* ---------- post ---------- */
.post-header {
  max-width: var(--measure);
  margin: 0 auto 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-rule);
  text-align: center;
}

@media (min-width: 1100px) {
  .post-header {
    max-width: 720px;
    margin-left: calc(240px + 2.5rem);
    margin-right: 0;
  }
}
.post-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.post-meta {
  color: var(--color-muted);
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.post-author { color: var(--color-text); font-weight: 600; text-decoration: none; }
.post-author:hover { color: var(--color-secondary); }

/* body layout with TOC rail */
.post-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--measure);
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .post-body {
    max-width: 1180px;
    grid-template-columns: 240px 1fr;
    column-gap: 2.5rem;
  }
  .post-content { max-width: 720px; grid-column: 2; }  /* stay in col 2 even when TOC is hidden */
}

@media (min-width: 1280px) {
  :root { --measure-page: 1280px; }
  .post-body { max-width: 1240px; }
}

.post-toc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-muted);
  display: none;
}
@media (min-width: 1100px) {
  .post-toc {
    display: block;
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}
.post-toc-label {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}
.post-toc-list,
.post-toc-children {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-toc-children {
  padding-left: 0.875rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.post-toc-item.expanded > .post-toc-children {
  max-height: 4000px;
}
.post-toc-item {
  margin: 0;
  line-height: 1.4;
}
.post-toc-row {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: border-color 120ms ease;
}
.post-toc-item.active-self > .post-toc-row {
  border-left-color: var(--color-secondary);
}
.post-toc-toggle {
  width: 0.85rem;
  height: 0.85rem;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-faint);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.45rem;
  transition: transform 150ms ease, color 120ms ease;
}
.post-toc-toggle:hover { color: var(--color-secondary); }
.post-toc-item.expanded > .post-toc-row > .post-toc-toggle {
  transform: rotate(90deg);
}
/* Items without a toggle keep the same text indent so they line up with toggle-having siblings */
.post-toc-item:not(.has-children) > .post-toc-row {
  padding-left: calc(0.5rem + 0.85rem + 0.3rem);
}
.post-toc-row a {
  display: block;
  padding: 0.22rem 0;
  color: var(--color-muted);
  text-decoration: none;
  flex: 1;
  transition: color 120ms ease;
}
.post-toc-row a:hover { color: var(--color-secondary); }
.post-toc-row a.active { color: var(--color-secondary); }
.post-toc-depth-0 > .post-toc-row a { color: var(--color-text); }
.post-toc-depth-1 > .post-toc-row a { font-size: 0.84rem; }
.post-toc-depth-2 > .post-toc-row a { font-size: 0.78rem; }

/* ---------- post content ---------- */
.post-content {
  font-family: var(--font-serif);
  font-feature-settings: "kern", "liga", "calt", "onum";
  hyphens: auto;
  -webkit-hyphens: auto;
  /* As a grid item this defaults to min-width:auto, so a wide table's intrinsic
     width inflates the track and scrolls the whole page sideways on narrow
     screens — defeating the table's own overflow-x:auto. */
  min-width: 0;
}
.post-content > h1 {
  font-size: 2.375rem;
  font-weight: 600;
  margin: 3.5rem 0 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-feature-settings: "kern", "lnum";
}
.post-content > h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2.75rem 0 1rem;
  font-feature-settings: "kern", "lnum";
}
.post-content > h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  font-feature-settings: "kern", "lnum";
}
.post-content > p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}
.post-content p,
.post-content ul,
.post-content ol {
  margin: 0 0 1.1em;
}
.post-content ul, .post-content ol { padding-left: 1.5rem; }
.post-content li { margin: 0.3rem 0; }
.post-content blockquote {
  border-left: 2px solid var(--color-rule);
  margin: 1.75rem 1rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--color-muted);
  font-style: italic;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #efece6;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.post-content pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: #1a1a1a;
  color: #eaeaea;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 4px;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* wide figures + tables break out of the body column */
.post-content figure,
.post-content table {
  margin: 2rem 0;
}
/* tables (migrated from Ghost to clean Markdown) */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.35;
  display: block;
  overflow-x: auto;        /* wide tables scroll instead of overflowing on small screens */
}
.post-content th,
.post-content td {
  padding: 0.45rem 0.9rem;
  text-align: left;        /* per-column overrides come from Markdown alignment */
  vertical-align: top;     /* top-align cell text */
  border-bottom: 1px solid var(--color-rule);  /* visible divider between every row */
}
.post-content th:first-child,
.post-content td:first-child { padding-left: 0; }
.post-content thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent);
}
.post-content img {
  mix-blend-mode: multiply;
}
.post-content figure img {
  border-radius: 4px;
}
.post-content figcaption {
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.65rem;
  text-align: left;
  line-height: 1.5;
}
@media (min-width: 1100px) {
  .post-content .wide,
  .post-content figure.wide,
  .post-content table.wide {
    width: calc(var(--measure-wide) - 0px);
    margin-left: calc((var(--measure) - var(--measure-wide)) / 2);
    max-width: none;
  }
}

/* ---------- linkpost banner ---------- */
.post-content > p.linkpost-line {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-note);
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 2rem;
  overflow-wrap: anywhere;   /* long URLs must not overflow the column */
}
/* the content column's opening-line small caps must not catch this */
.post-content > p.linkpost-line::first-line {
  font-variant: normal;
  letter-spacing: normal;
}

/* MathJax display equations */
.post-content mjx-container[display="true"] {
  margin: 1.5rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

/* ---------- footnotes (kramdown emits .footnotes) ---------- */
.post-content .footnotes {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-rule);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}
.post-content .footnotes ol { padding-left: 1.5rem; }
.post-content .footnotes li { margin-bottom: 0.65rem; }
.post-content .footnotes p { margin: 0; }
.post-content sup a,
.post-content a.footnote {
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 600;
  padding: 0 0.1em;
}
.post-content sup a:hover,
.post-content a.footnote:hover { text-decoration: underline; }
.post-content .footnotes a.reversefootnote {
  margin-left: 0.4em;
  text-decoration: none;
}
/* notes relocated under their table never repeat at the bottom; if that accounts
   for every note, drop the empty block too */
.post-content > .footnotes li.is-table-note { display: none; }
.post-content > .footnotes:not(:has(li:not(.is-table-note))) { display: none; }

/* ---------- table notes (footnotes referenced from inside a table) ---------- */
/* a <details> that starts collapsed; note text matches the bottom footnote list */
.post-content .table-notes {
  margin: -1.25rem 0 2rem;
}
/* display:block (not list-item) so no engine draws its own disclosure marker
   alongside our caret — the ::marker / ::-webkit-details-marker rules below must
   stay separate, or the one an engine doesn't know drops the whole rule */
.post-content .table-notes-label {
  display: block;
  list-style: none;
  padding: 0.35rem 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-secondary);
}
.post-content .table-notes-label::marker { content: ""; }
.post-content .table-notes-label::-webkit-details-marker { display: none; }
.post-content .table-notes-label:hover { color: var(--color-accent); }
.post-content .table-notes-count {
  font-variant: normal;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--color-faint);
}
.post-content .table-notes-caret {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 0.3rem;
  color: var(--color-faint);
  transition: transform 150ms ease;
}
.post-content .table-notes[open] .table-notes-caret { transform: rotate(90deg); }
.post-content .table-notes-list {
  margin: 0.25rem 0 0;
  padding-left: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-note);
}
.post-content .table-notes-list li { margin-bottom: 0.65rem; }
.post-content .table-notes-list li:last-child { margin-bottom: 0; }
.post-content .table-notes a.reversefootnote {
  margin-left: 0.4em;
  text-decoration: none;
}

/* ---------- sidenotes (wide screens) ---------- */
.sidenote { display: none; }

@media (min-width: 1280px) {
  .sidenote {
    display: block;
    float: right;
    clear: right;
    width: 220px;
    margin-right: -270px;
    margin-top: 0.3em;
    margin-bottom: 0.75em;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-muted);
    text-indent: 0;
  }
  .sidenote p { margin: 0 0 0.5em; }
  .sidenote p:last-child { margin: 0; }
  .sidenote-number {
    font-variant: small-caps;
    letter-spacing: 0.04em;
    color: var(--color-secondary);
    font-weight: 600;
    margin-right: 0.35em;
  }
  /* notes shown in the margin don't repeat at the bottom — but notes that couldn't
     become sidenotes (table refs) must keep a home, so hide per-note, not the block */
  .post-content > .footnotes li.has-sidenote { display: none; }
  .post-content > .footnotes:not(:has(li:not(.has-sidenote):not(.is-table-note))) { display: none; }
}

/* ---------- figures + captions ---------- */
.post-content p.figure-image {
  text-align: center;
  margin: 1.75rem 0 0.5rem;
}
.post-content p.figure-image img {
  margin: 0 auto;
  display: inline-block;
}
.post-content p.caption {
  text-align: left;
  color: var(--color-muted);
  font-style: normal;
  margin: 0 0 2rem;
  max-width: 90%;
  line-height: 1.55;
}
.post-content p.caption em {
  font-style: italic;
}
.post-content p.caption .caption-label {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  font-weight: 600;
  font-style: normal;
  margin-right: 0.4em;
}

/* ---------- post nav ---------- */
.post-nav {
  max-width: var(--measure);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.post-nav a { text-decoration: none; color: var(--color-muted); }
.post-nav a:hover { color: var(--color-secondary); }
.post-subscribe {
  color: var(--color-accent) !important;
}

/* ---------- page (about) ---------- */
/* left-aligned on the same 2rem indent as .home and .archive, rather than
   centred in the page column — the extra max-width keeps the text measure at
   --measure once the indent is subtracted */
.page,
.author-page {
  max-width: calc(var(--measure) + 2rem);
}
@media (min-width: 700px) {
  .page,
  .author-page { padding-left: 2rem; }
}
.page-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}
.page-content h2 {
  font-size: 1.375rem;
  margin: 2rem 0 0.75rem;
}
.page-content ul { padding-left: 1.25rem; }
.page-content li { margin: 0.35rem 0; }
/* ---------- author cards (about page) ---------- */
.page-content .author-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
/* two up once a card can hold a photo beside two lines of text */
@media (min-width: 620px) {
  .page-content .author-grid { grid-template-columns: repeat(2, 1fr); }
}
.page-content .author-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0;
  padding: 0.875rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: 10px;
}
.author-card-photo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;      /* keeps headshots from stretching */
}
.author-card-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efece6;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.author-card-body { min-width: 0; }
.author-card-name {
  margin: 0 0 0.1rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.author-card-name a { color: var(--color-accent); text-decoration: none; }
.author-card-name a:hover { color: var(--color-secondary); text-decoration: underline; }
.author-card-role {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-note);
}

/* ---------- author page ---------- */
/* layout (max-width + left indent) is shared with .page, above */
.author-header {
  margin: 0 0 1.5rem;
}
.author-name {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--color-accent);
}
.author-bio {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 3rem;
}
/* the measure sits on the prose, not the container, so a section rule inside the
   bio spans the same width as the one above .author-posts */
.author-bio p { margin: 0 0 1rem; max-width: 60ch; }
.author-bio p:last-child { margin: 0; }
.author-posts {
  border-top: 1px solid var(--color-rule);
  padding-top: 2rem;
}
/* typography for .author-posts-heading and bio headings is shared with
   .home-section-title, above */
/* .author-posts supplies its own rule + padding; a bio heading needs them here */
.author-bio h2 {
  border-top: 1px solid var(--color-rule);
  margin-top: 3rem;
  padding-top: 2rem;
}
.author-posts .post-card:first-of-type { border-top: none; padding-top: 1rem; }
