/* Generated by scripts/build-site-header.ts — do not edit.
 * Source of truth: app/blog.css (rules) + app/globals.css (tokens).
 * Linked by the daemon-rendered blog pages (apps/daemon/src/blog/pages.ts).
 */

:root {
  --body: 'Albert Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --bone: #ffffff;
  --chrome-h: 84px;
  --coral: #0a6cff;
  --ink: #0d0c0a;
  --ink-faint: #8c8983;
  --ink-mute: #5c5952;
  --ink-soft: #403d38;
  --line: #dce1e8;
  --line-hover: #c2c9d3;
  --line-soft: #eceff4;
  --mono: 'Albert Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mustard: #0a6cff;
  --paper: #ffffff;
  --paper-dark: #f0f0f2;
  --paper-warm: #f7f7f8;
  --sans: 'Albert Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Albert Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow: 0 30px 60px -30px rgba(13, 12, 10, 0.16);
}

/* Extracted from app/globals.css — see BLOG_GLOBALS in this script. */
html, body { background: var(--paper); color: var(--ink); /* * Lock the page width to the viewport so any decorative element * positioned with negative offsets (ribbons, hero-art margin-right, * mega footer word, etc.) cannot create a horizontal scrollbar on * narrow viewports. * * Use `overflow-x: clip` (modern) instead of `hidden`: clip does not * establish a containing block for `position: fixed/sticky`, so the * sticky nav keeps working. Browsers that don't support clip fall * back to the hidden declaration just above it. */ overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body { font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; overflow-wrap: break-word; word-wrap: break-word; }
.fg-logo.fg-logo--merged { gap: 0; }
.fg-logo--merged svg.brand-fmark { height: 16px; width: auto; flex: none; margin-right: 2px; transform: translateY(-0.5px); }
.foot-grid { display: flex; flex-wrap: wrap; /* Spread the columns edge-to-edge across the safe area. */ justify-content: space-between; gap: 40px 80px; margin-bottom: 60px; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand p { font-family: var(--body); font-size: 13.5px; color: var(--ink-mute); line-height: 1.55; max-width: 38ch; }
.foot-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.foot-cta:hover { transform: translateY(-1px); background: var(--ink-soft); }
.foot-cta::after { content: '↓'; color: var(--mustard); font-size: 12px; }
.foot-cta .meta { color: rgba(239, 231, 210, 0.55); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 4px; }
.foot-brand p .inline-link,
.inline-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: color 160ms ease, border-color 160ms ease; }
.foot-col h5 { font-family: var(--sans); font-size: 11px; color: var(--ink); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 18px; }
.foot-col a { font-family: var(--body); font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.foot-col a:hover { color: var(--coral); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.foot-bottom .right { display: inline-flex; gap: 24px; align-items: center; }
.foot-bottom .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: inline-block; margin-right: 6px; vertical-align: middle; }
.foot-mega { margin-top: 60px; padding-top: 0; padding-bottom: 12px; overflow-x: hidden; overflow-y: visible; }
.foot-mega .word { font-family: var(--sans); font-weight: 900; font-size: clamp(70px, 12vw, 184px); letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); white-space: nowrap; text-align: center; margin-top: 30px; padding-bottom: 0.18em; }
.foot-mega .word em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--coral); }
.sub-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 60px 0 32px; /* No extra top margin (kept in sync with sub-pages.css): the border-top and the preceding content's own bottom spacing separate the footer; the old 96px was off the skill scale and left a large hole above the footer. */ margin-top: 0; }
.sub-footer .sub-footer-inner { max-width: none; padding-inline: 238px; }
.sub-footer-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 28px; margin-bottom: 36px; }
.sub-footer-col h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; font-weight: 500; }
.sub-footer-col h5 a { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-decoration: none; transition: color 0.16s ease; }
.sub-footer-col h5 a:hover { color: var(--coral); }
.sub-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.sub-footer-col a { text-decoration: none; color: var(--ink); font-size: 14px; transition: color 0.16s ease; }
.sub-footer-col a:hover { color: var(--coral); }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line, #dce1e8); }
.foot-bar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-mute, #5c5952); }
.foot-bar-left a { color: var(--ink-soft, #403d38); text-decoration: none; }
.foot-bar-left a:hover { text-decoration: underline; }
.foot-dot { opacity: 0.5; }
.foot-social { display: flex; align-items: center; gap: 16px; }
.foot-social a { color: var(--ink-mute, #5c5952); display: inline-flex; }
.foot-social a:hover { color: var(--ink, #0d0c0a); }
@media (max-width: 1080px) {
  .sub-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.foot-masthead { margin-top: 56px; }
.foot-masthead-wordmark { margin: 0; font-weight: 800; /* Fills the 964px column at the 1440px design width and degrades fluidly. The lower bound follows the viewport (10.4vw) rather than a fixed 52px floor: "Open Design." is ~5.75em wide here, so the old 52px floor rendered ~299px and overflowed the padded mobile footer box (100vw - 48px ≈ 272px on a 320px phone), where the page's global overflow-x:hidden clipped it. 10.4vw always satisfies 10.4vw·5.75 ≤ 100vw-48, so the sign-off fits at every width (≈80px of headroom at 320px). */ font-size: clamp(26px, 10.4vw, 158px); line-height: 1.04; letter-spacing: -0.045em; color: var(--ink); /* Desktop keeps the single editorial line; the narrow-breakpoint rule below relaxes this to a no-clip wrap as a safety net. */ white-space: nowrap; /* Centered: once the font caps at 158px the glyphs stop filling the full-width footer block (gap grows to ~535px at 1920), reading as left-aligned. Center them so the wordmark stays balanced at any width. */ text-align: center; }
.foot-masthead-accent { color: var(--coral); }
.foot-masthead-period { color: var(--ink); }
@media (max-width: 720px) {
  .sub-footer .sub-footer-inner { padding-inline: 24px; }
  .sub-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .sub-footer-col ul { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .sub-footer { padding: 40px 0 24px; }
  .foot-masthead { margin-top: 40px; padding-bottom: 48px; }
  .foot-masthead-wordmark { white-space: normal; }
}
@media (max-width: 880px) {
  .foot-grid { gap: 32px 48px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-bottom .right { flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 640px) {
  .foot-mega .word { font-size: clamp(54px, 18vw, 120px); }
}
@media (max-width: 560px) {
  .foot-grid { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .foot-mega .word { font-size: clamp(48px, 16vw, 88px); }
}
@media (max-width: 420px) {
  .foot-mega .word { font-size: clamp(40px, 16vw, 64px); }
}
.fg-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.fg-logo em { font-style: italic; color: inherit; }
.fg-footer { padding: clamp(44px, 6vw, 72px) 0 32px; background: var(--paper-warm); border-top: 1px solid var(--line-soft); width: 100%; overflow-x: clip; }
.fg-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; margin-bottom: 40px; width: 100%; align-items: start; }
.fg-footer-brand { min-width: 0; }
.fg-footer-tag { margin: 12px 0 18px; font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); max-width: 220px; }
.fg-footer-social { display: flex; gap: 14px; flex-wrap: wrap; }
.fg-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-mute); transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease; flex-shrink: 0; }
.fg-footer-social a:hover { color: var(--ink); border-color: var(--line-hover); transform: translateY(-2px); }
.fg-footer-col { min-width: 0; }
.fg-footer-col h3 { margin: 0 0 14px; font-family: var(--sans); font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.fg-footer-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fg-footer-col a { font-family: var(--sans); font-size: 14px; color: var(--ink-mute); text-decoration: none; transition: color 0.16s ease; }
.fg-footer-col a:hover { color: var(--ink); }
.fg-footer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.fg-footer-foot-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fg-footer-email { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-mute); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink-mute) 35%, transparent); transition: color 0.16s ease, border-color 0.16s ease; }
.fg-footer-email:hover { color: var(--ink); border-bottom-color: var(--ink); }
.fg-footer-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%) translateY(12px); max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: 0 12px 40px rgba(13, 12, 10, 0.14); font-family: var(--sans); font-size: 13px; line-height: 1.4; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1), transform 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
.fg-footer-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.fg-footer-foot p { margin: 0; font-family: var(--sans); font-size: 13px; color: var(--ink-faint); }
@media (max-width: 880px) {
  .fg-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .fg-footer-brand { grid-column: 1 / -1; }
  .fg-footer-tag { max-width: 36em; }
  .fg-footer-foot { flex-direction: column; align-items: flex-start; }
  .fg-footer-foot-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .fg-footer { padding: 40px 0 28px; }
  .fg-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .fg-footer-brand { grid-column: 1 / -1; }
  .fg-footer-col a { padding: 2px 0; }
}
.guest-hero-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; animation: fg-scene-in 1.1s cubic-bezier(0.23, 1, 0.32, 1) both; }
.fg-aurora { position: absolute; border-radius: 50%; }
.fg-aurora--a { width: 780px; height: 780px; left: calc(50% - 760px); top: -420px; background: radial-gradient(closest-side, rgba(10, 108, 255, 0.08), transparent 70%); animation: fg-aurora-a 16s ease-in-out infinite alternate; }
.fg-aurora--b { width: 700px; height: 700px; right: calc(50% - 740px); top: -300px; background: radial-gradient(closest-side, rgba(56, 178, 255, 0.07), transparent 70%); animation: fg-aurora-b 21s ease-in-out infinite alternate; }
.fg-hl { background: linear-gradient(115deg, #0a6cff 0%, #3d8bff 60%, #6aa9ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .guest-hero-scene,
  .fg-aurora { animation: none; }
}

/* Layout primitives the daemon-rendered pages need.
 * They live in globals.css for the Astro pages; the blog pages link this
 * sheet standalone, so the few they actually use are repeated here. */
.shell { position: relative; z-index: 2; }

/*
 * Blog styles — `/blog/` and `/blog/<slug>/`.
 *
 * Loaded only by the two blog pages, on top of `globals.css` and
 * `sub-pages.css`. It adds no tokens of its own: every colour, font and
 * shadow here resolves to a variable those files already define, so a brand
 * change lands on the blog for free.
 *
 * The hero deliberately reuses the homepage's own scene classes
 * (`.guest-hero-scene`, `.fg-aurora`, `.fg-hl`) rather than restating the
 * aurora washes and gradient headline. That is why `/blog/` reads as the same
 * site as `/` and cannot drift from it — there is one implementation of that
 * effect and the blog is a second consumer, not a copy.
 */

/* Full-bleed <main>: the hero paints edge to edge, so the top padding that
 * clears the fixed chrome moves onto the sections themselves. */
.sub-main--bleed {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------------------------------------------------------------- hero -- */

.blog-hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding-top: calc(var(--chrome-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(32px, 4vw, 52px);
  overflow: hidden;
}
/* Lift the content above the aurora layer — the homepage does the same for
 * `.guest-hero > .container`. */
.blog-hero > .container {
  position: relative;
  z-index: 1;
}
.blog-hero-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}
.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bone);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.blog-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.blog-hero-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
.blog-hero-sub {
  margin: 0 auto;
  max-width: 58ch;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.62;
  color: var(--ink-mute);
}

/* ------------------------------------------------------- category filter -- */

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.blog-filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bone);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-mute);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 200ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-filter-chip:hover {
  color: var(--ink);
  border-color: var(--line-hover);
}
.blog-filter-chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------- lists -- */

.blog-body {
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 6vw, 88px);
}
/* Hidden by the filter script. `!important` is not needed — nothing else
 * sets display on these elements. */
.blog-card[hidden],
.blog-lead[hidden] {
  display: none;
}
.blog-empty {
  margin: 48px auto 0;
  max-width: 46ch;
  text-align: center;
  color: var(--ink-mute);
}

/* Lead post — one wide editorial card above the grid. */
.blog-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bone);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-lead:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
}
.blog-lead-title {
  margin: 12px 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}
.blog-lead-summary {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-mute);
}
/* The decorative half of the lead card: a stack of tinted rules that reads as
 * an abstract page of text. Cheaper than a cover image and it can never be
 * the wrong crop. */
.blog-lead-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 62%),
    var(--paper-warm);
  overflow: hidden;
}
.blog-lead-art::after {
  content: "";
  position: absolute;
  inset: 18% 16%;
  background:
    linear-gradient(var(--line-hover) 0 0) 0 0 / 62% 6px no-repeat,
    linear-gradient(var(--line) 0 0) 0 22% / 88% 6px no-repeat,
    linear-gradient(var(--line) 0 0) 0 44% / 76% 6px no-repeat,
    linear-gradient(var(--coral) 0 0) 0 66% / 34% 6px no-repeat,
    linear-gradient(var(--line) 0 0) 0 88% / 54% 6px no-repeat;
  opacity: 0.9;
  border-radius: 3px;
}

/* Card grid. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bone);
  text-decoration: none;
  color: inherit;
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow);
}
.blog-card-title {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}
.blog-card-summary {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-mute);
}
/* Pushes the meta row to the bottom regardless of summary length, so a row of
 * cards has one baseline instead of three. */
.blog-card-foot {
  margin-top: auto;
}

/* Shared meta line: category dot, date, reading time. */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.blog-meta-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--coral);
}
.blog-meta-cat::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.blog-meta-sep {
  opacity: 0.5;
}

/* ------------------------------------------------------------- article -- */

.blog-article-head {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding-top: calc(var(--chrome-h) + clamp(24px, 3vw, 44px));
  padding-bottom: clamp(28px, 3.5vw, 44px);
  overflow: hidden;
}
.blog-article-head > .container {
  position: relative;
  z-index: 1;
}
/*
 * The header column and the prose column must share a left edge, or the title
 * and the first paragraph start 50-odd pixels apart and the page looks
 * slightly broken without it being obvious why. Both blocks use the same
 * outer width; the header then indents by exactly the TOC rail plus its gap,
 * which is what puts it above the prose rather than above the rail.
 */
.blog-article-head-inner,
.blog-article-body {
  width: min(1060px, 100%);
  margin-inline: auto;
}
.blog-article-head-inner {
  padding-left: calc(220px + clamp(32px, 5vw, 72px));
}
.blog-crumbs {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ink-faint);
}
.blog-crumbs a {
  color: var(--ink-mute);
  text-decoration: none;
}
.blog-crumbs a:hover {
  color: var(--coral);
}
.blog-crumbs-sep {
  margin: 0 8px;
  opacity: 0.6;
}
.blog-article-title {
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
.blog-article-summary {
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.62;
  color: var(--ink-mute);
}
.blog-byline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-byline-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #0a6cff, #4f95ff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.blog-byline-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.blog-byline-role {
  display: block;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* Two-column reading layout: sticky TOC rail, then the prose column. */
.blog-article-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(36px, 4.5vw, 60px) 0 clamp(48px, 5vw, 72px);
}
.blog-article-rail {
  position: sticky;
  /* Clears the fixed chrome so the rail never slides under the header. */
  top: calc(var(--chrome-h) + 24px);
}
.blog-prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.blog-prose > * + * {
  margin-top: 1.15em;
}
.blog-prose h2,
.blog-prose h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.015em;
  /* Matches the TOC scroll-spy OFFSET in `blog-toc.astro` so an anchor jump
   * parks the heading exactly where the spy decides "current section". */
  scroll-margin-top: 132px;
}
.blog-prose h2 {
  margin-top: 2em;
  font-size: 27px;
  line-height: 1.22;
  font-weight: 600;
}
.blog-prose h3 {
  margin-top: 1.6em;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}
.blog-prose a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.blog-prose strong {
  color: var(--ink);
  font-weight: 650;
}
.blog-prose ul,
.blog-prose ol {
  padding-left: 1.35em;
}
.blog-prose li + li {
  margin-top: 0.5em;
}
.blog-prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--coral);
  color: var(--ink-mute);
  font-style: italic;
}
.blog-prose blockquote p {
  margin: 0;
}
.blog-prose blockquote p + p {
  margin-top: 0.8em;
}
.blog-prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-dark);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
  color: var(--ink);
}
/* Shiki paints the block background from `editorialPaperTheme` in
 * astro.config.ts; the border and padding are ours. */
.blog-prose pre {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
}
.blog-prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}
.blog-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}
.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

/* Tag chips under the article — long-tail keywords doubling as internal links
 * back into the index filter. */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.blog-tag {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* --------------------------------------------------------- read next/CTA -- */

.blog-next {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-warm);
}
.blog-section-title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}
.blog-cta {
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.blog-cta-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}
.blog-cta-sub {
  margin: 0 auto 24px;
  max-width: 52ch;
  color: var(--ink-mute);
  line-height: 1.6;
}
.blog-cta-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), filter 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.blog-cta-btn:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .blog-article-body {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The TOC becomes a collapsible block above the prose (see blog-toc.astro),
   * so sticky positioning would pin it over the text. */
  .blog-article-rail {
    position: static;
    top: auto;
  }
  /* No rail beside the prose any more, so the header's rail-sized indent
   * would just be dead space. */
  .blog-article-head-inner {
    padding-left: 0;
  }
  .blog-lead {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The abstract art is decoration; on a phone the words should come first
   * and the card should not cost a screen height before them. */
  .blog-lead-art {
    display: none;
  }
}

@media (max-width: 720px) {
  .blog-prose {
    font-size: 16px;
  }
  .blog-prose h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-lead,
  .blog-card,
  .blog-cta-btn,
  .blog-filter-chip {
    transition: none;
  }
  .blog-lead:hover,
  .blog-card:hover,
  .blog-cta-btn:hover {
    transform: none;
  }
}


/* Table-of-contents rail. Moved here from the deleted
 * app/_components/blog-toc.astro when the blog became daemon-rendered;
 * Astro scoped styles could not follow the markup out of the build. */
.blog-toc {
    font-family: var(--sans);
  }
  .blog-toc-label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 16px;
  }
  .blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--line);
  }
  .blog-toc-item {
    margin: 0;
  }
  .blog-toc-link {
    display: block;
    padding: 7px 0 7px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--ink-mute);
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease;
  }
  .blog-toc-item.is-depth-3 .blog-toc-link {
    padding-left: 28px;
    font-size: 12.5px;
    color: var(--ink-faint);
  }
  .blog-toc-link:hover {
    color: var(--ink);
  }
  .blog-toc-link.is-active {
    color: var(--ink);
    font-weight: 600;
    border-left-color: var(--coral);
  }

  @media (max-width: 980px) {
    .blog-toc {
      margin-bottom: 36px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: color-mix(in srgb, var(--paper-warm) 60%, white);
    }
    .blog-toc-label {
      margin-bottom: 12px;
    }
  }

