/* Appendix D — 2026 design.
   Warm paper and ink, with Duncan's orange as the one accent. Light and dark follow the reader's
   system setting; the moon/sun button in the header overrides it.
   Newsreader (reading) + Inter (interface), self-hosted. Change a colour here and it changes everywhere. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- colours ---------- */
:root {
  --bg: #f8f5ef;            /* warm paper */
  --surface: #ffffff;       /* cards */
  --sunken: #f0ebe2;        /* quiet panels */
  --ink: #1f1c18;           /* text */
  --ink-2: #554f46;         /* secondary text */
  --ink-3: #847c70;         /* dates, captions */
  --line: #e4ddd1;
  --accent: #e8700a;        /* Duncan's orange (decoration, buttons) */
  --accent-ink: #b24f00;    /* orange that's dark enough for text on paper */
  --accent-soft: #fcebd9;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 8px 24px rgba(60, 40, 10, .06);
  --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-size: clamp(18px, 16.4px + 0.45vw, 21px);
  --measure: 42rem;         /* reading column */
  --wide: 72rem;            /* home page and card grids */
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151412; --surface: #1d1b19; --sunken: #1a1917; --ink: #eee9e1; --ink-2: #bdb5a8; --ink-3: #8c8478;
    --line: #2f2c28; --accent: #ff8c33; --accent-ink: #ff9d4d; --accent-soft: #3a2615; --on-accent: #1a1006;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151412; --surface: #1d1b19; --sunken: #1a1917; --ink: #eee9e1; --ink-2: #bdb5a8; --ink-3: #8c8478;
  --line: #2f2c28; --accent: #ff8c33; --accent-ink: #ff9d4d; --accent-soft: #3a2615; --on-accent: #1a1006;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: var(--text-size);
  line-height: 1.65; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 30; font-family: var(--sans); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap-text { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 12px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.meta { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 15px; font-weight: 600;
  line-height: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--accent-ink); text-decoration: none; }
.read-more svg { transition: transform .15s ease; }
.read-more:hover { color: var(--accent-ink); }
.read-more:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-d { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; height: 1.2em; margin-left: 0.06em;
  border-radius: 0.24em; background: var(--accent); color: var(--on-accent); font-weight: 700; line-height: 1;
  box-sizing: border-box; padding-top: 0.2em; } /* Newsreader sits high in its line; this centres the D's ink in the box */
.brand-name { white-space: nowrap; font-family: var(--serif); font-weight: 650; font-size: 22px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 2px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.nav > a:not(.icon-btn) { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nav > a:hover { color: var(--ink); background: var(--sunken); }
.nav > a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink-2); cursor: pointer; padding: 0; }
.icon-btn:hover, .icon-btn[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 19px; }
  .nav { font-size: 14px; }
  .nav > a:not(.icon-btn) { padding: 7px 8px; }
  .icon-btn { width: 34px; height: 34px; }
}
@media (max-width: 430px) { .masthead-inner { gap: 8px; } .nav > a:not(.icon-btn) { padding: 7px 6px; } }
@media (max-width: 380px) { .masthead .brand-word { display: none; } }

/* ---------- home ---------- */
.hero { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(20px, 4vw, 40px); }
.hero-title { font-size: clamp(40px, 22px + 5vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 24px; max-width: 15ch; }
.hero-bio { font-size: clamp(19px, 17px + 0.6vw, 23px); color: var(--ink-2); max-width: 36em; margin: 0 0 28px; line-height: 1.55; }
.hero-bio a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.hero-actions, .subscribe-actions, .author-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.section { padding-top: clamp(28px, 5vw, 56px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 20px; }
.section-head h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.section-head p { margin: 0; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }

.feature { display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--surface); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.feature.has-media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.feature-media { display: block; border-radius: 10px; overflow: hidden; background: var(--sunken); }
.feature-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; transition: transform .4s ease; }
.feature:hover .feature-media img { transform: scale(1.02); }
.feature-title { font-size: clamp(30px, 20px + 2.4vw, 48px); font-weight: 550; line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.02em; }
.feature-title a { color: var(--ink); text-decoration: none; }
.feature-title a:hover { color: var(--accent-ink); }
.feature-desc { color: var(--ink-2); margin: 0 0 14px; }
.feature .meta { margin-bottom: 18px; }
@media (max-width: 760px) { .feature.has-media { grid-template-columns: 1fr; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60, 40, 10, .08), 0 16px 40px rgba(60, 40, 10, .1); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-media { aspect-ratio: 16 / 10; background: var(--sunken); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-art { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 18px; color: #fff;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-art.tone-0 { background: linear-gradient(135deg, #e8700a, #b9450a); }
.card-art.tone-1 { background: linear-gradient(135deg, #2f5d62, #1d3b40); }
.card-art.tone-2 { background: linear-gradient(135deg, #5b4b8a, #33285a); }
.card-art.tone-3 { background: linear-gradient(135deg, #6b7f3a, #3f4d1f); }
.card-body { padding: 18px 20px 22px; }
.card-title { font-size: 23px; font-weight: 550; line-height: 1.2; margin: 6px 0 8px; }
.card:hover .card-title { color: var(--accent-ink); }
.card-desc { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.side .section-head + * { margin-bottom: 32px; }

.topic-grid { display: grid; gap: 10px; }
.topic-grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 8px 0 40px; }
.topic-tile { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.topic-tile:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.topic-name { font-size: 21px; font-weight: 600; line-height: 1.2; }
.topic-blurb { font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.topic-count { font-family: var(--sans); font-size: 13px; color: var(--accent-ink); font-weight: 600; margin-top: 6px; }

.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.project { display: grid; gap: 2px; padding: 14px 18px 14px 16px; border-left: 3px solid var(--accent); background: var(--sunken);
  border-radius: 0 10px 10px 0; color: var(--ink); text-decoration: none; }
.project:hover { color: var(--ink); background: var(--accent-soft); }
.project-name { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.project-name::after { content: " ↗"; color: var(--ink-3); font-weight: 400; }
.project-blurb { font-size: 16px; color: var(--ink-2); line-height: 1.45; }

.subscribe { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); margin-bottom: 16px; }
.subscribe h2 { font-size: clamp(28px, 20px + 1.6vw, 38px); font-weight: 550; margin: 0 0 6px; }
.subscribe p { margin: 0; color: color-mix(in srgb, var(--bg) 78%, var(--ink)); max-width: 34em; }
.subscribe .btn:not(.btn-primary) { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, var(--ink)); }

/* ---------- lists of posts ---------- */
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.entry:first-child { padding-top: 4px; }
.entry time { font-family: var(--sans); font-size: 14px; color: var(--ink-3); padding-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-title { font-size: 23px; font-weight: 550; line-height: 1.25; margin: 0; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--accent-ink); }
.entry-desc { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.entries.compact .entry { padding: 10px 0; }
.entries.compact .entry time { padding-top: 3px; }
.entries.compact .entry-title { font-size: 20px; font-weight: 500; }
@media (max-width: 560px) {
  .entry { grid-template-columns: 1fr; }
  .entry time { padding-top: 0; order: -1; }
}

.page-head { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 28px; }
.page-head h1 { font-size: clamp(38px, 24px + 3.6vw, 60px); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.page-sub { font-family: var(--sans); font-size: 15px; color: var(--ink-3); margin: 14px 0 0; }
.subhead { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-top: 1px solid var(--ink); padding-top: 14px; margin: 40px 0 16px; }

.year { margin-top: 36px; }
.year h2 { font-size: 34px; font-weight: 500; margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; }
.year h2 span { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills a { display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
.pills a:hover { border-color: var(--accent); color: var(--ink); }
.pills a span { color: var(--ink-3); margin-left: 2px; }
.year-jump { position: sticky; top: 63px; z-index: 5; background: var(--bg); padding: 10px 0; }

.pager { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 0; font-family: var(--sans); font-weight: 600; font-size: 15px; }
.pager a { text-decoration: none; }
.pager a:only-child { margin-left: auto; }

/* ---------- a post ---------- */
.article-head { padding-top: clamp(40px, 8vw, 88px); padding-bottom: 8px; }
.article-title { font-size: clamp(36px, 20px + 4vw, 62px); font-weight: 520; line-height: 1.06; letter-spacing: -0.022em; margin: 0 0 18px; }
.dek { font-size: clamp(20px, 18px + 0.6vw, 24px); line-height: 1.45; color: var(--ink-2); margin: 0 0 24px; font-style: italic; }
.byline { display: flex; align-items: center; gap: 12px; padding: 18px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.byline p { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.45; font-weight: 500; }
.byline a { color: var(--ink); text-decoration: none; }
.byline a:hover { color: var(--accent-ink); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar-xl { width: 96px; height: 96px; font-size: 30px; margin-bottom: 20px; background: var(--accent); color: var(--on-accent); }
img.avatar { display: block; object-fit: cover; padding: 0; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); }

.old-note { font-family: var(--sans); font-size: 14px; color: var(--ink-2); background: var(--sunken); border-radius: 10px;
  padding: 12px 16px; margin: 0 0 28px !important; }

.post-body { overflow-wrap: break-word; }
.post-body > :first-child { margin-top: 0; }
.post-body.about-more > h2:first-child { margin-top: 1.8em; } /* About: room above "Get in touch" after the project list */
.post-body p { margin: 0 0 1.15em; }
.post-body a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.post-body a:hover { color: var(--accent-ink); }
.post-body h2, .post-body h3, .post-body h4, .post-body h5 { font-weight: 600; margin: 1.8em 0 0.5em; }
.post-body h2 { font-size: 1.55em; }
.post-body h3 { font-size: 1.35em; }
.post-body h4, .post-body h5 { font-size: 1.12em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-body li { margin: 0.35em 0; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote { margin: 1.6em 0; padding: 0 0 0 1.2em; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.post-body hr { border: 0; text-align: center; margin: 2.4em 0; }
.post-body hr::before { content: "· · ·"; color: var(--ink-3); letter-spacing: .5em; }
.post-body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; font-family: var(--sans); font-size: 15px; margin: 1.4em 0; }
.post-body td, .post-body th { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.post-body figure { margin: 2em 0; text-align: center; }
.post-body figure img { display: inline-block; border-radius: 10px; cursor: zoom-in; background: var(--sunken); }
.post-body figure.cover img { width: 220px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 14px 32px rgba(40,20,0,.22); }
.post-body figcaption { font-family: var(--sans); color: var(--ink-3); font-size: 14px; line-height: 1.45; margin-top: 10px; }
/* Wider screens: pictures sit at the left and the text flows around them on the right. Phones keep them centred.
   A picture that should stay big and centred everywhere gets <figure class="wide">. */
@media (min-width: 561px) {
  .post-body { display: flow-root; }
  .post-body figure:not(.about-photo):not(.wide) { float: left; clear: left; max-width: 45%; margin: 0.35em 1.6em 1.2em 0; text-align: left; }
  .post-body figure.cover { max-width: 220px; }
  .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body hr, .post-body .video { clear: both; }
  .post-body ul, .post-body ol, .post-body blockquote, .post-body pre { display: flow-root; }
}
.post-body .video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: var(--sunken); border-radius: 10px; overflow: hidden; }
.post-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body pre, .post-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8em; }
.post-body pre { white-space: pre-wrap; background: var(--sunken); padding: 14px 16px; border-radius: 10px; }

.article-foot { margin-top: 40px; }
.article-foot .pills { margin-bottom: 28px; }
.disclosure { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-style: italic; margin: 0 0 20px; }
.author-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; }
.author-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.author-card .author-name { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.author-card .author-name a { color: var(--ink); text-decoration: none; }
.author-card .author-actions { margin: 16px 0 0; }
.author-card .btn { font-size: 14px; padding: 10px 14px; }
@media (max-width: 560px) { .author-card { flex-direction: column; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  text-decoration: none; font-size: 18px; line-height: 1.3; font-weight: 500; }
.post-nav a:hover { border-color: var(--accent); color: var(--ink); }
.post-nav a span { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.post-nav .older { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .older { text-align: left; } }
.related { padding-bottom: 8px; }

/* ---------- about ---------- */
.about-head h1 { font-size: clamp(40px, 24px + 4vw, 64px); }
.post-body figure.about-photo { margin: 0 0 32px; }
.post-body figure.about-photo img { width: 100%; max-width: 420px; height: auto; border-radius: 16px; }
.post-body .lede { font-size: 1.25em; line-height: 1.45; color: var(--ink); }

/* ---------- search ---------- */
.search-form { display: flex; gap: 8px; margin: 0 0 8px; }
.search-form input { flex: 1; min-width: 0; font-family: var(--sans); font-size: 17px; padding: 12px 16px; border-radius: 999px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form button { font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); cursor: pointer; }
.results { list-style: none; padding: 0; margin: 12px 0 0; }
.results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.results a { font-size: 23px; font-weight: 550; color: var(--ink); text-decoration: none; line-height: 1.25; }
.results a:hover { color: var(--accent-ink); }
.results time { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.results .snip { display: block; color: var(--ink-2); font-size: 17px; line-height: 1.5; margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line); background: var(--sunken); }
.footer-inner { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 44px var(--gutter) 12px;
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 21px; margin: 0 0 10px; }
.footer-brand .brand-name { font-size: 21px; }
.footer-about p:not(.footer-brand) { color: var(--ink-2); font-size: 17px; line-height: 1.5; margin: 0; max-width: 26em; }
.footer-col h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 15px; line-height: 2; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); }
.colophon { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 36px; font-family: var(--sans);
  font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- image lightbox ---------- */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(15, 12, 8, 0.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; cursor: zoom-out; }
dialog.lightbox p { margin: 10px 0 0; color: #ddd; text-align: center; font-family: var(--sans); font-size: 14px; }

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