/* ============================================================
   Erasmus Labs — Notes
   Design tokens are lifted verbatim from erasmuslabs.ai so the blog
   reads as the same object: Geist throughout, ink-dark surface,
   blue = the machine/system accent, terracotta = the observer.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --font-display: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-body:    15px;
  --fs-body-l:  17px;
  --fs-caption: 12px;
  --fs-mono:    13px;

  --lh-display: 1.04;
  --lh-heading: 1.18;
  --lh-body:    1.55;

  --tracking-body:    -0.003em;
  --tracking-heading: -0.005em;
  --tracking-mono:    0.02em;
  --tracking-eyebrow: 0.22em;

  /* Ink scale */
  --ink-0: #FFFFFF;
  --ink-50: #F4F5F7;
  --ink-100: #E8EAEF;
  --ink-200: #D1D5DD;
  --ink-300: #A8AEBC;
  --ink-400: #7B8294;
  --ink-500: #5A6274;
  --ink-600: #3F4757;
  --ink-700: #232938;
  --ink-800: #141826;
  --ink-900: #0A0E1A;
  --ink-950: #05070F;

  --blue:       #2563EB;
  --blue-light: #6EA8FF;
  --terra:      #C15B32;
  --terra-soft: #E08B66;

  --bg:          var(--ink-0);
  --bg-elevated: var(--ink-0);
  --bg-subtle:   var(--ink-50);
  --bg-muted:    var(--ink-100);

  --fg:          var(--ink-900);
  --fg-strong:   var(--ink-950);
  --fg-muted:    var(--ink-500);
  --fg-subtle:   var(--ink-400);

  --border:        var(--ink-100);
  --border-strong: var(--ink-200);

  --accent:       var(--blue);
  --accent-hover: #1D4ED8;
  --accent-fg:    #FFFFFF;
  --accent-soft:  #DBEAFE;
  --accent-warm:  var(--terra);

  --ok:     #15803D;
  --ok-bg:  #DCFCE7;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;

  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 9999px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.05), 0 2px 6px rgba(10, 14, 26, 0.05);
  --shadow-md: 0 1px 3px rgba(10, 14, 26, 0.06), 0 8px 20px -8px rgba(10, 14, 26, 0.12);
  --shadow-lg: 0 1px 3px rgba(10, 14, 26, 0.06), 0 24px 48px -16px rgba(10, 14, 26, 0.18);

  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.26);

  --ease-standard:   cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
}

html[data-theme="dark"] {
  --bg:          var(--ink-900);
  --bg-elevated: var(--ink-800);
  --bg-subtle:   #11151F;
  --bg-muted:    #1B2030;

  --fg:         var(--ink-50);
  --fg-strong:  #FFFFFF;
  --fg-muted:   #8B92A5;
  --fg-subtle:  #6B7285;

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent:       var(--blue-light);
  --accent-hover: #8FBCFF;
  --accent-fg:    var(--ink-900);
  --accent-soft:  rgba(37, 99, 235, 0.18);
  --accent-warm:  var(--terra-soft);

  --ok:     #4ADE80;
  --ok-bg:  rgba(34, 197, 94, 0.14);
  --danger: #FCA5A5;
  --danger-bg: rgba(239, 68, 68, 0.14);

  --focus-ring: 0 0 0 3px rgba(110, 168, 255, 0.28);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* ============ base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "cv02";
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(1200px 600px at 78% -10%, rgba(37, 99, 235, 0.05), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(193, 91, 50, 0.05), transparent 60%);
  background-repeat: no-repeat;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(1200px 600px at 78% -10%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(224, 139, 102, 0.06), transparent 60%);
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--fg-strong);
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
p { color: var(--fg); margin: 0 0 var(--s-4); text-wrap: pretty; }

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-mono);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

::selection { background: rgba(193, 91, 50, 0.24); color: var(--ink-900); }
html[data-theme="dark"] ::selection { background: rgba(224, 139, 102, 0.35); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* ============ header ============ */
.eh {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex; align-items: center;
  flex: 0 0 auto;
}
.eh-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.eh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.eh-brand:hover { text-decoration: none; }
.eh-brand img { width: 20px; height: 20px; }
.eh-brand-name { font-weight: 500; font-size: 14px; color: var(--fg-strong); letter-spacing: -0.005em; }
.eh-brand-sep { color: var(--fg-subtle); font-size: 14px; }
.eh-brand-section { font-family: var(--font-mono); font-size: 12px; color: var(--accent-warm); letter-spacing: 0.06em; }
.eh-actions { display: flex; align-items: center; gap: 16px; }
.eh-nav { display: flex; gap: 18px; }
.eh-nav a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted);
}
.eh-nav a:hover { color: var(--fg-strong); text-decoration: none; }
.eh-brand-name, .eh-brand-section { white-space: nowrap; }
/* Most readers arrive on a phone from a link in X. The nav is furniture for
   an audience that isn't browsing — drop it before it crowds the wordmark. */
@media (max-width: 700px) { .eh-nav a:not(:first-child) { display: none; } }
@media (max-width: 560px) { .eh-nav { display: none; } }

.eh-brand .mark-light, .foot-brand .mark-light, .login-mark .mark-light { display: none; }
html[data-theme="dark"] .eh-brand .mark-dark,
html[data-theme="dark"] .foot-brand .mark-dark,
html[data-theme="dark"] .login-mark .mark-dark { display: none; }
html[data-theme="dark"] .eh-brand .mark-light,
html[data-theme="dark"] .foot-brand .mark-light,
html[data-theme="dark"] .login-mark .mark-light { display: inline-block; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 14px;
  height: 38px; padding: 0 18px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all var(--dur-base) var(--ease-standard);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #2a3046 0%, #0f1322 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 2px rgba(0,0,0,0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 16px -6px rgba(0,0,0,0.35); }
html[data-theme="dark"] .btn-primary {
  background: linear-gradient(180deg, #F4F5F7 0%, #C9DAFF 100%);
  color: var(--ink-900);
  border-color: rgba(0,0,0,0.08);
}
.btn-secondary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #fff 6%) 0%, var(--bg) 100%);
  color: var(--fg-strong);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
html[data-theme="dark"] .btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-secondary:hover { background: var(--bg-subtle); }
.btn-ghost { background: transparent; color: var(--fg-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--fg-strong); }
.btn-danger { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 8px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-strong); font-size: 15px; font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--fg-strong);
  padding-bottom: 2px;
  transition: gap var(--dur-base) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
}
.link-arrow:hover { gap: 10px; opacity: 0.7; text-decoration: none; }
.link-arrow svg { width: 12px; height: 12px; }

.toggle {
  height: 32px; width: 32px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #fff 6%) 0%, var(--bg) 100%);
  border: 1px solid var(--border-strong); color: var(--fg);
  cursor: pointer; padding: 0;
  transition: all var(--dur-base) var(--ease-standard);
}
html[data-theme="dark"] .toggle { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.toggle:hover { background: var(--bg-subtle); }
.toggle svg { width: 14px; height: 14px; }
.toggle .icon-sun { display: none; }
html[data-theme="dark"] .toggle .icon-sun { display: inline; }
html[data-theme="dark"] .toggle .icon-moon { display: none; }

/* ============ lede ============ */
.lede { padding: 72px 0 24px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 24px;
}
.hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-warm) 70%, transparent);
}
.lede h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0 0 24px;
}
.lede .lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0;
  letter-spacing: -0.005em;
}
.lede-actions { margin: 28px 0 0; }
.section { padding: 24px 0 72px; }

/* ============ post list ============ */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.post-item:first-child { border-top: 1px solid var(--border-strong); }
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 12px;
}
.post-meta .dot { opacity: 0.5; }
.post-title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
}
.post-title a { color: var(--fg-strong); }
.post-title a:hover { color: var(--accent); text-decoration: none; }
.post-excerpt {
  color: var(--fg-muted);
  font-size: var(--fs-body-l);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 16px;
}
.post-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-more { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.post-more:hover { color: var(--accent); text-decoration: none; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px 10px;
}
a.tag:hover { color: var(--fg-strong); border-color: var(--border-strong); text-decoration: none; }
.tag-count { color: var(--accent-warm); }
.tag-sm { font-size: 10px; padding: 2px 8px; }

.tagbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px; margin-top: 40px;
}
.tagbar-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-subtle);
  margin-right: 6px;
}
.tagbar-lg { border-top: none; padding-top: 0; margin-top: 0; }
.tagbar-lg .tag { font-size: 13px; padding: 6px 14px; }

.pager {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
}
.empty { color: var(--fg-muted); padding: 32px 0; }

.archive-list { list-style: none; margin: 0 0 40px; padding: 0; }
.archive-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.archive-list time { font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); }
.archive-list a { color: var(--fg-strong); }
.archive-list a:hover { color: var(--accent); }
.archive-tags { display: flex; gap: 6px; }
@media (max-width: 620px) {
  .archive-list li { grid-template-columns: 1fr; gap: 4px; }
  .archive-tags { display: none; }
}

.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-full);
  padding: 2px 9px;
  border: 1px solid transparent;
}
.chip-draft { color: var(--accent-warm); border-color: color-mix(in srgb, var(--accent-warm) 40%, transparent); }
.chip-live { color: var(--ok); background: var(--ok-bg); }

/* ============ post page ============ */
/* .post-header also carries .container-narrow, so it must only ever set the
   vertical padding — a `padding:` shorthand here would wipe out the container's
   horizontal gutter and run the title into the edge of a phone screen. */
.post-header { padding-top: 64px; padding-bottom: 8px; }
.post-header h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0 0 20px;
}
.post-standfirst {
  font-size: 19px; line-height: 1.5;
  color: var(--fg-muted);
  margin: 0 0 20px;
  max-width: 58ch;
}
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.post-cover { margin: 32px auto 0; }
.post-cover img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.draft-banner {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-warm);
  border: 1px dashed color-mix(in srgb, var(--accent-warm) 45%, transparent);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 24px;
}
.post-footer { padding-bottom: 80px; }
.foot-rule { height: 1px; background: var(--border); margin: 48px 0 24px; }
.post-byline { color: var(--fg-muted); font-size: 14px; }
.post-back { font-size: 14px; margin-top: 20px; }

/* ============ prose ============ */
.prose {
  font-size: var(--fs-body-l);
  line-height: 1.7;
  color: var(--fg);
  padding-top: 32px;
}
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 1.35em; }
.prose h2 {
  font-size: 28px; font-weight: 600; letter-spacing: -0.018em;
  margin: 2.2em 0 0.6em; line-height: 1.2;
}
.prose h3 { font-size: 21px; font-weight: 600; margin: 1.8em 0 0.5em; }
.prose h4 { font-size: 17px; font-weight: 600; margin: 1.6em 0 0.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose strong { color: var(--fg-strong); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--fg-subtle); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); display: block; margin: 2em auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 13px; color: var(--fg-subtle); text-align: center; margin-top: 8px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 3em 0; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--accent-warm);
  color: var(--fg-muted);
  font-size: 18px;
  font-style: normal;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose :not(pre) > code {
  font-size: 0.875em;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 0.12em 0.4em;
  color: var(--fg-strong);
  overflow-wrap: break-word;
}
.prose pre {
  margin: 1.8em 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  background: var(--bg-subtle);
  -webkit-overflow-scrolling: touch;
}
.prose pre code {
  background: none; border: none; padding: 0; font-size: inherit; color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.prose thead { border-bottom: 1px solid var(--border-strong); }
.prose th {
  text-align: left; font-weight: 600; color: var(--fg-strong);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 14px 10px 0;
}
.prose td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: none; }

.prose sup a { text-decoration: none; font-size: 11px; }
.prose .footnotes { font-size: 14px; color: var(--fg-muted); border-top: 1px solid var(--border); margin-top: 3em; padding-top: 1em; }

.prose h2 > a[href^="#"], .prose h3 > a[href^="#"] { color: inherit; text-decoration: none; }

/* copy-to-clipboard button injected by blog.js */
.code-wrap { position: relative; }
.code-copy {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-subtle);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard), color var(--dur-fast);
}
.code-wrap:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy:hover { color: var(--fg-strong); }

/* ============ footer ============ */
.foot { padding: 64px 0 32px; flex: 0 0 auto; }
.foot .foot-rule { margin: 0 0 40px; }
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; gap: 32px; } }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.foot-brand img { width: 22px; height: 22px; }
.foot-brand p { font-size: 13px; color: var(--fg-muted); margin: 0; line-height: 1.5; }
.foot-col h2 {
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-subtle); margin: 0 0 14px;
}
.foot-col a {
  display: block; color: var(--fg); font-size: 13px;
  padding: 4px 0; text-decoration: none;
  font-family: var(--font-mono);
}
.foot-col a:hover { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.foot-bottom a { color: var(--fg-subtle); }
@media (max-width: 720px) { .foot-bottom { flex-direction: column; gap: 8px; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ landing ============
   The root is a nameplate, not a feed: posts arrive as shared links, so this
   page only has to say what this is and stay out of the way. */
.lede-landing { padding: 96px 0 8px; }
.landing-heading {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 4px;
}
.landing-list { list-style: none; margin: 0; padding: 0; }
.landing-list li {
  display: flex; align-items: baseline; gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.landing-list a { color: var(--fg-strong); font-size: 16px; flex: 1; }
.landing-list a:hover { color: var(--accent); text-decoration: none; }
.landing-list time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-subtle); white-space: nowrap;
}
.landing-more { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; }
.landing-more a { color: var(--fg-muted); }
.landing-more a:hover { color: var(--fg-strong); text-decoration: none; }

/* ============ author card (foot of every post) ============ */
.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 8px 0 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg-subtle) 60%, transparent);
}
.author-avatar {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
}
.author-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: var(--accent-warm);
  background: color-mix(in srgb, var(--accent-warm) 14%, var(--bg-muted));
  user-select: none;
}
.author-body { min-width: 0; }
.author-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px;
  color: var(--fg-strong);
  margin: 2px 0 4px;
  letter-spacing: -0.01em;
}
.author-bio {
  color: var(--fg-muted);
  font-size: 14.5px; line-height: 1.55;
  margin: 0 0 8px;
  max-width: 56ch;
}
.author-links {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  margin: 0;
}
.author-links a { color: var(--fg-muted); }
.author-links a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 520px) {
  .author-card { flex-direction: column; gap: 12px; padding: 18px; }
}

/* ============ post-list thumbnails ============
   Each list item gets a preview image: the post's custom cover, or its
   auto-generated share card as a fallback. Text left, image right; stacks on
   mobile. */
.post-item-media {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 300px);
  gap: 28px;
  align-items: start;
}
.post-item-media > article { min-width: 0; order: 1; }
.post-thumb {
  order: 2;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  aspect-ratio: 1200 / 630;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-item-media:hover .post-thumb { border-color: var(--border-strong); }
@media (max-width: 640px) {
  .post-item-media { grid-template-columns: 1fr; gap: 16px; }
  .post-thumb { order: 0; max-width: 100%; }        /* image on top when stacked */
  .post-item-media > article { order: 1; }
}

/* ============ AI-usage foreword ============
   Standing disclosure under the post header: the ideas are Alex's, AI helps
   edit, he does the final pass. Quiet by design. */
.post-foreword {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  border-left: 2px solid var(--border-strong);
  padding-left: 12px;
  margin: 18px 0 0;
  max-width: 60ch;
}
