/* Blog reader styles (.bl-*). Hand-written, not Tailwind: post bodies are
   rendered from src/lib/blog/blocks.js, outside Tailwind's content scan, and
   keeping this file separate keeps it off the tool pages and the extension.
   Loaded by src/views/blog/_head.html and the Studio layout (whose editor
   canvas reuses these styles). */

:root {
  --bl-ink: #2A2320;
  --bl-body: #3A322D;
  --bl-muted: #6B615A;
  --bl-faint: #8A7F76;
  --bl-line: #EBE3DA;
  --bl-line-soft: #F1EAE3;
  --bl-paper: #F7F3EE;
  --bl-card: #FFFFFF;
  --bl-accent: #dc765a;
  --bl-accent-ink: #9C4830;
  --bl-tint: #FCEEEA;
  --bl-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --bl-sans: Figtree, system-ui, sans-serif;
  --bl-head: var(--bl-sans);   /* a post's heading font (Studio → Design) */
  --bl-post-scale: 1;          /* a post's text size (Studio → Design) */
  --bl-dim: .45;               /* how dark the cover is behind an overlay title */
  --bl-fs: 19px;
  --bl-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-reader-size="0"] { --bl-fs: 17px; }
html[data-reader-size="2"] { --bl-fs: 21px; }
html[data-reader-size="3"] { --bl-fs: 23px; }
@media (max-width: 640px) {
  :root { --bl-fs: 18px; }
  html[data-reader-size="0"] { --bl-fs: 16px; }
  html[data-reader-size="2"] { --bl-fs: 20px; }
  html[data-reader-size="3"] { --bl-fs: 22px; }
}

/* ── Shared bits ─────────────────────────────────────────────────────────── */
.bl-eyebrow, .bl-section-label, .bl-toc-label, .bl-reader-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bl-faint);
}
.bl-section-label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.bl-section-label span { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--bl-faint); }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--bl-faint); margin: 0; }
.bl-kicker { color: var(--bl-accent-ink); font-weight: 600; }
.bl-state:empty { display: none; }
.bl-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--bl-muted); }
.bl-state.is-done { color: #3E8B4E; }
.bl-state-bar { width: 34px; height: 3px; border-radius: 2px; background: var(--bl-line); overflow: hidden; }
.bl-state-bar i { display: block; height: 100%; background: var(--bl-accent); border-radius: 2px; }
.bl-link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--bl-accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bl-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.bl-icon-btn:hover { background: rgba(42,35,32,0.06); }
.bl-thumb-fallback, .bl-card-fallback, .bl-feature-fallback {
  display: flex; align-items: center; justify-content: center; color: #D8A595;
  background: linear-gradient(135deg, #FCEEEA 0%, #F4E7DD 100%);
}

/* Segmented control (time filter, typeface) */
.bl-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bl-line-soft); border-radius: 999px; }
.bl-seg button {
  border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--bl-muted);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.bl-seg button:hover { color: var(--bl-ink); }
.bl-seg button[aria-pressed="true"] { background: var(--bl-card); color: var(--bl-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(42,35,32,0.08); }
.bl-seg.is-full { display: flex; }
.bl-seg.is-full button { flex: 1; }
.bl-seg .is-serif { font-family: var(--bl-serif); font-size: 14px; }

/* ── Index ───────────────────────────────────────────────────────────────── */
.bl-index { max-width: 1024px; margin: 0 auto; padding: 56px 24px 96px; }
.bl-mast { max-width: 720px; margin-bottom: 48px; }
.bl-mast .bl-eyebrow { margin: 0 0 14px; }
.bl-mast h1 {
  font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; color: var(--bl-ink); margin: 0 0 18px;
}
.bl-mast h1 span { font-family: var(--bl-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; color: var(--bl-accent-ink); }
.bl-mast-sub { font-size: 18px; line-height: 1.6; color: var(--bl-muted); max-width: 560px; margin: 0; }

/* Resume strip */
.bl-resume { margin: -16px 0 36px; }
.bl-resume a {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; max-width: 560px;
  background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 16px; color: var(--bl-ink); text-decoration: none;
  transition: border-color .2s, transform .3s var(--bl-ease);
}
.bl-resume a:hover { border-color: #E3C4B8; transform: translateY(-1px); }
.bl-resume-ring { flex: 0 0 auto; width: 40px; height: 40px; }
.bl-resume-ring circle { fill: none; stroke-width: 3.5; }
.bl-resume-ring circle:first-child { stroke: var(--bl-line); }
.bl-resume-ring circle:last-child { stroke: var(--bl-accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.bl-resume-text { min-width: 0; flex: 1; }
.bl-resume-text small { display: block; font-size: 12px; color: var(--bl-faint); font-weight: 600; }
.bl-resume-text strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-resume-go { font-size: 13px; font-weight: 600; color: var(--bl-accent-ink); white-space: nowrap; }

/* Featured */
.bl-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
.bl-feature-media { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bl-line-soft); }
.bl-feature-media img, .bl-feature-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--bl-ease); }
.bl-feature:hover .bl-feature-media img { transform: scale(1.025); }
.bl-feature h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin: 14px 0 14px; }
.bl-feature h2 a { color: var(--bl-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--bl-ease); }
.bl-feature h2 a:hover { background-size: 100% 2px; }
.bl-feature-dek { font-family: var(--bl-serif); font-size: 20px; line-height: 1.5; color: var(--bl-muted); margin: 0 0 20px; }
.bl-feature-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--bl-faint); margin: 0; }

/* Picks */
.bl-picks { margin: 8px 0 56px; }
.bl-picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Cards (picks + related) */
.bl-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--bl-ink); }
.bl-card img, .bl-card-fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--bl-line-soft); transition: transform .5s var(--bl-ease), box-shadow .5s var(--bl-ease); }
.bl-card:hover img, .bl-card:hover .bl-card-fallback { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(42,35,32,0.45); }
.bl-card-title { font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.bl-card:hover .bl-card-title { color: var(--bl-accent-ink); }

/* Controls */
.bl-controls { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--bl-line); }
.bl-controls .bl-section-label { margin: 0; }
.bl-filters { display: flex; flex-direction: column; gap: 12px; }
.bl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px; }
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chip {
  flex: 0 0 auto; border: 1px solid var(--bl-line); background: var(--bl-card); color: var(--bl-muted);
  font: inherit; font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.bl-chip:hover { border-color: #D8CEC4; color: var(--bl-ink); }
.bl-chip[aria-pressed="true"] { background: var(--bl-ink); border-color: var(--bl-ink); color: #fff; }
.bl-filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.bl-search {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 38px; min-width: 220px; flex: 0 1 280px;
  border: 1px solid var(--bl-line); background: var(--bl-card); border-radius: 999px; color: var(--bl-faint);
  transition: border-color .15s, box-shadow .15s;
}
.bl-search:focus-within { border-color: var(--bl-accent); box-shadow: 0 0 0 3px rgba(220,118,90,0.15); }
.bl-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--bl-ink); width: 100%; }

/* List */
.bl-list { list-style: none; margin: 0; padding: 0; }
.bl-row { border-bottom: 1px solid var(--bl-line); }
.bl-row[hidden] { display: none; }
.bl-row-link { display: grid; grid-template-columns: 1fr 200px; gap: 32px; align-items: center; padding: 28px 0; text-decoration: none; color: inherit; }
.bl-row h3 { font-size: 23px; line-height: 1.22; letter-spacing: -0.018em; font-weight: 650; color: var(--bl-ink); margin: 8px 0 8px; transition: color .15s; }
.bl-row-link:hover h3 { color: var(--bl-accent-ink); }
.bl-row-dek { font-family: var(--bl-serif); font-size: 17.5px; line-height: 1.5; color: var(--bl-muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-row-foot { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--bl-faint); margin: 0; }
.bl-row-thumb { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--bl-line-soft); transition: transform .5s var(--bl-ease); }
.bl-row-link:hover .bl-row-thumb { transform: scale(1.03); }
.bl-row.is-read h3 { color: var(--bl-muted); }
.bl-row.is-read .bl-row-thumb { opacity: .72; }
.bl-empty, .bl-blank { text-align: center; padding: 56px 16px; color: var(--bl-muted); }
.bl-empty p { margin: 0 0 8px; }
.bl-blank { max-width: 460px; margin: 0 auto; }
.bl-blank svg { color: var(--bl-accent); margin-bottom: 14px; }
.bl-blank-title { font-size: 22px; font-weight: 650; color: var(--bl-ink); margin: 0 0 8px; }
.bl-blank a { color: var(--bl-accent-ink); font-weight: 600; }

@media (max-width: 860px) {
  .bl-feature { grid-template-columns: 1fr; gap: 22px; }
  .bl-picks-grid { grid-template-columns: 1fr 1fr; }
  .bl-picks-grid > :nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .bl-index { padding: 36px 16px 72px; }
  .bl-chips { margin: 0 -16px; padding: 2px 16px; }
  .bl-row-link { grid-template-columns: 1fr 96px; gap: 16px; padding: 22px 0; align-items: start; }
  .bl-row-thumb { width: 96px; aspect-ratio: 1; border-radius: 12px; margin-top: 26px; }
  .bl-row h3 { font-size: 19px; }
  .bl-row-dek { font-size: 16px; -webkit-line-clamp: 2; }
  .bl-picks-grid { grid-template-columns: 1fr; }
  .bl-picks-grid > :nth-child(n+2) { display: none; }
  .bl-search { flex: 1 1 100%; }
  .bl-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}

/* ── Post ────────────────────────────────────────────────────────────────── */
.bl-progress { position: fixed; top: 60px; left: 0; right: 0; height: 3px; z-index: 49; pointer-events: none; }
.bl-progress span { display: block; height: 100%; width: 100%; background: var(--bl-accent); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .bl-progress span { transform-origin: 100% 50%; }

.bl-preview-bar {
  position: sticky; top: 60px; z-index: 48; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center;
  padding: 10px 16px; background: #2A2320; color: #F7F3EE; font-size: 14px; text-align: center;
}
.bl-preview-bar a { color: #F4C8BD; font-weight: 600; }

.bl-post { padding: 48px 24px 0; }
.bl-head { max-width: 680px; margin: 0 auto 36px; }
.bl-crumbs { display: flex; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--bl-faint); margin-bottom: 18px; }
.bl-crumbs a { color: var(--bl-accent-ink); text-decoration: none; }
.bl-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-head h1 {
  font-family: var(--bl-head); font-size: clamp(34px, 5.4vw, 52px); line-height: 1.07; letter-spacing: -0.032em; font-weight: 700; color: var(--bl-ink); margin: 0 0 18px;
  text-wrap: balance;
}
.bl-dek { font-family: var(--bl-serif); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--bl-muted); margin: 0 0 28px; text-wrap: pretty; }
.bl-byline { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--bl-line); }
.bl-avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bl-tint); color: var(--bl-accent-ink); font-weight: 700; font-size: 14px; object-fit: cover;
}
.bl-byline-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bl-author { font-size: 15px; font-weight: 600; color: var(--bl-ink); }
.bl-byline-meta { font-size: 13.5px; color: var(--bl-faint); }

.bl-reader { position: relative; }
.bl-reader-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--bl-line); background: var(--bl-card); border-radius: 999px; cursor: pointer;
  font-family: var(--bl-serif); font-size: 17px; color: var(--bl-ink); transition: border-color .15s;
}
.bl-reader-btn:hover, .bl-reader-btn[aria-expanded="true"] { border-color: #D8CEC4; }
.bl-reader-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 240px; padding: 16px;
  background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(42,35,32,0.28); animation: blPop .18s var(--bl-ease);
}
.bl-reader-panel[hidden] { display: none; }
/* Opened panels move to <body> (blog-post.js) so no hero layout can clip or cover them. */
.bl-reader-panel.is-floating { position: fixed; right: auto; z-index: 65; color: var(--bl-ink); text-align: left; }
.bl-reader-label { margin: 0 0 8px; font-size: 11px; }
.bl-reader-size { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bl-reader-size button {
  width: 40px; height: 34px; border: 1px solid var(--bl-line); border-radius: 10px; background: var(--bl-card);
  font: inherit; font-weight: 600; color: var(--bl-ink); cursor: pointer;
}
.bl-reader-size button:disabled { opacity: .35; cursor: default; }
.bl-reader-dots { display: flex; gap: 6px; }
.bl-reader-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--bl-line); transition: background .15s; }
.bl-reader-dots i.on { background: var(--bl-accent); }
@keyframes blPop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.bl-cover { max-width: 960px; margin: 0 auto 56px; }
.bl-cover img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: cover; border-radius: 22px; background: var(--bl-line-soft); }

.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px) minmax(0, 1fr); column-gap: 56px; }
.bl-layout > .bl-prose { grid-column: 2; }
.bl-toc { grid-column: 1; justify-self: end; width: 210px; display: none; }
.bl-toc-inner { position: sticky; top: 100px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
.bl-toc-label { margin: 0 0 12px; }
.bl-toc ol, .bl-sheet ol { list-style: none; margin: 0; padding: 0; }
.bl-toc li a, .bl-sheet li a {
  display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--bl-line); font-size: 14px; line-height: 1.4; color: var(--bl-faint);
  text-decoration: none; transition: color .15s, border-color .15s;
}
.bl-toc li.is-h3 a, .bl-sheet li.is-h3 a { padding-left: 26px; font-size: 13.5px; }
.bl-toc li a:hover { color: var(--bl-ink); }
.bl-toc li a.is-read { color: var(--bl-muted); }
.bl-toc li a.is-active, .bl-sheet li a.is-active { color: var(--bl-ink); font-weight: 600; border-color: var(--bl-accent); }
.bl-toc-left { margin: 18px 0 0; padding-left: 16px; font-size: 13px; color: var(--bl-faint); }
@media (min-width: 1180px) { .bl-toc { display: block; } }

/* Prose */
.bl-prose { font-family: var(--bl-serif); font-size: calc(var(--bl-fs) * var(--bl-post-scale)); line-height: 1.72; color: var(--bl-body); font-optical-sizing: auto; }
html[data-reader-font="serif"] .bl-prose { font-family: var(--bl-pick-serif, 'Newsreader', 'Iowan Old Style', Georgia, serif); }
html[data-reader-font="sans"] .bl-prose { font-family: var(--bl-pick-sans, var(--bl-sans)); line-height: 1.68; font-size: calc((var(--bl-fs) - 1px) * var(--bl-post-scale)); }
.bl-prose > * { margin: 0 0 1.15em; }
.bl-prose > :last-child { margin-bottom: 0; }
.bl-prose p { text-wrap: pretty; }
.bl-prose a { color: var(--bl-accent-ink); text-decoration: underline; text-decoration-color: rgba(156,72,48,0.35); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.bl-prose a:hover { text-decoration-color: currentColor; }
.bl-prose strong { font-weight: 600; color: var(--bl-ink); }
.bl-prose mark { background: linear-gradient(transparent 55%, rgba(220,118,90,0.28) 55%); color: inherit; padding: 0 1px; }
.bl-prose code { font-family: 'IBM Plex Mono', monospace; font-size: 0.82em; background: var(--bl-line-soft); padding: 0.12em 0.36em; border-radius: 6px; }
.bl-prose .bl-h {
  position: relative; font-family: var(--bl-head); color: var(--bl-ink); letter-spacing: -0.02em; scroll-margin-top: 96px; text-wrap: balance;
}
.bl-prose h2.bl-h { font-size: calc(1.45em * var(--bs-scale, 1)); line-height: 1.2; font-weight: 700; margin: 2.1em 0 0.6em; }
.bl-prose h3.bl-h { font-size: calc(1.15em * var(--bs-scale, 1)); line-height: 1.3; font-weight: 650; margin: 1.7em 0 0.45em; }
.bl-anchor {
  position: absolute; right: 100%; padding-right: 10px; font-weight: 500; color: var(--bl-faint) !important; text-decoration: none !important;
  opacity: 0; transition: opacity .15s;
}
.bl-h:hover .bl-anchor, .bl-anchor:focus-visible { opacity: 1; }
.bl-prose ul, .bl-prose ol { padding-left: 1.35em; }
.bl-prose li { margin: 0.35em 0; padding-left: 0.2em; }
.bl-prose li::marker { color: var(--bl-accent); }
.bl-prose ol > li::marker { font-family: var(--bl-sans); font-weight: 600; font-size: 0.9em; }
.bl-prose ul.bl-check { list-style: none; padding-left: 0; }
.bl-prose ul.bl-check li { position: relative; padding-left: 1.8em; }
.bl-prose ul.bl-check li::before {
  content: ''; position: absolute; left: 0; top: 0.32em; width: 1.05em; height: 1.05em; border-radius: 6px; background: #E8F2EA
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E8B4E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.bl-quote { margin: 1.8em 0; padding: 0.1em 0 0.1em 1.1em; border-left: 3px solid var(--bl-accent); }
.bl-quote p { margin: 0; font-style: italic; font-size: 1.08em; color: var(--bl-ink); }
.bl-quote cite { display: block; margin-top: 0.6em; font-family: var(--bl-sans); font-style: normal; font-size: 0.75em; font-weight: 600; color: var(--bl-faint); }
.bl-quote cite::before { content: '— '; }
.bl-quote.is-pull { border: 0; padding: 0.4em 0; margin: 2em 0; text-align: center; }
.bl-quote.is-pull p { font-size: 1.45em; line-height: 1.32; letter-spacing: -0.01em; color: var(--bl-accent-ink); text-wrap: balance; }
.bl-quote.is-pull::before, .bl-quote.is-pull::after { content: ''; display: block; width: 48px; height: 2px; margin: 0 auto 0.9em; background: var(--bl-accent); opacity: .5; }
.bl-quote.is-pull::after { margin: 0.9em auto 0; }

.bl-callout {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; font-family: var(--bl-sans); --bs-base: 0.86em; font-size: var(--bs-base); line-height: 1.6;
  background: #FDF5E8; color: #4A3B1E; margin: 1.6em 0 !important;
}
.bl-callout p { margin: 0; }
.bl-callout-title { font-weight: 700; margin-bottom: 2px !important; }
.bl-callout-icon { flex: 0 0 auto; display: inline-flex; padding-top: 2px; color: #B8841F; }
.bl-callout.is-note { background: #EEF4F8; color: #22384A; }
.bl-callout.is-note .bl-callout-icon { color: #3D7AA8; }
.bl-callout.is-warning { background: #FDF0EF; color: #5A2420; }
.bl-callout.is-warning .bl-callout-icon { color: #C0392B; }
.bl-callout.is-success { background: #ECF5EE; color: #1F3E26; }
.bl-callout.is-success .bl-callout-icon { color: #3E8B4E; }
.bl-callout a { color: inherit; }

.bl-takeaways { padding: 22px 24px; border: 1px solid var(--bl-line); border-radius: 18px; background: var(--bl-card); font-family: var(--bl-sans); --bs-base: 0.88em; font-size: var(--bs-base); margin: 1.8em 0 !important; }
.bl-takeaways-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bl-accent-ink); }
.bl-takeaways ul { list-style: none; margin: 0; padding: 0; }
.bl-takeaways li { position: relative; padding-left: 26px; margin: 8px 0; }
.bl-takeaways li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 99px; background: var(--bl-accent); }

.bl-steps { list-style: none; padding: 0 !important; counter-reset: step; margin: 1.8em 0 !important; }
.bl-steps li { position: relative; padding: 0 0 1.4em 3.1em; margin: 0; counter-increment: step; }
.bl-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2em; height: 2em; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; font-family: var(--bl-sans); font-size: 0.8em; font-weight: 700;
  background: var(--bl-ink); color: #fff;
}
.bl-steps li::after { content: ''; position: absolute; left: calc(0.8em - 1px); top: 1.9em; bottom: 0.25em; width: 2px; background: var(--bl-line); }
.bl-steps li:last-child { padding-bottom: 0; }
.bl-steps li:last-child::after { display: none; }
.bl-steps p { margin: 0; }
.bl-step-title { font-family: var(--bl-sans); font-weight: 650; color: var(--bl-ink); font-size: 0.95em; margin-bottom: 0.2em !important; padding-top: 0.05em; }

.bl-figure { margin: 2em 0 !important; }
.bl-figure.is-wide { margin-left: max(-140px, calc((680px - 100vw) / 2 + 24px)) !important; margin-right: max(-140px, calc((680px - 100vw) / 2 + 24px)) !important; }
.bl-figure.is-full { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.bl-figure img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--bl-line-soft); }
.bl-figure.is-full img { border-radius: 0; max-height: 80vh; object-fit: cover; }
.bl-figure figcaption { margin-top: 10px; font-family: var(--bl-sans); font-size: 13.5px; line-height: 1.5; color: var(--bl-faint); text-align: center; padding: 0 16px; }
.bl-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
@media (max-width: 1000px) { .bl-figure.is-wide { margin-left: 0 !important; margin-right: 0 !important; } }

/* Image look (Studio: align / size / shape / corners / frame / focus point) */
.bl-figure.is-normal { width: var(--img-w, 100%); }
.bl-figure.al-center.is-normal { margin-left: auto !important; margin-right: auto !important; }
.bl-figure.al-left { float: left; margin: 0.35em 1.6em 1em 0 !important; }
.bl-figure.al-right { float: right; margin: 0.35em 0 1em 1.6em !important; }
.bl-figure.al-left figcaption, .bl-figure.al-right figcaption { text-align: left; padding: 0; }
.bl-prose .bl-h, .bl-prose .bl-hr, .bl-prose .bl-tool, .bl-prose .bl-table, .bl-prose .bl-faq, .bl-prose .bl-figure.al-center { clear: both; }
.bl-prose::after { content: ''; display: block; clear: both; }
.bl-figure.has-ratio img { aspect-ratio: var(--img-ratio); object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); height: auto; }
.bl-figure.r-none img { border-radius: 0; }
.bl-figure.r-round img { border-radius: 28px; }
.bl-figure.fr-border img { border: 1px solid var(--bl-line); padding: 6px; background: var(--bl-card); }
.bl-figure.fr-shadow img { box-shadow: 0 24px 50px -22px rgba(42,35,32,0.45); }
@media (max-width: 560px) {
  .bl-figure.al-left, .bl-figure.al-right { float: none; width: 100%; margin: 2em 0 !important; }
}

.bl-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #1a1614; }
.bl-video img, .bl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0 !important; }
.bl-video img { opacity: .9; transition: opacity .2s; }
.bl-video:hover img { opacity: 1; }
.bl-video-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 99px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-left: 4px; background: rgba(255,255,255,0.94); color: var(--bl-ink);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform .3s var(--bl-ease);
}
.bl-video:hover .bl-video-play { transform: scale(1.07); }

.bl-hr { border: 0; height: 1px; background: var(--bl-line); margin: 2.6em auto !important; width: 100%; }
.bl-hr.is-dots { height: auto; background: none; text-align: center; color: var(--bl-accent); }
.bl-hr.is-dots::before { content: '• • •'; letter-spacing: 0.9em; font-size: 14px; padding-left: 0.9em; }

.bl-code { border-radius: 14px; overflow: hidden; background: #241E1B; margin: 1.6em 0 !important; }
.bl-code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 16px; font-family: var(--bl-sans); font-size: 12px; color: #A39890; border-bottom: 1px solid rgba(255,255,255,0.07); }
.bl-code-bar button { border: 0; background: rgba(255,255,255,0.08); color: #F7F3EE; font: inherit; font-weight: 600; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.bl-code-bar button:hover { background: rgba(255,255,255,0.15); }
.bl-code pre { margin: 0; padding: 16px; overflow-x: auto; }
.bl-code code { background: none !important; padding: 0 !important; color: #F2E9E1; font-size: 14px !important; line-height: 1.6; }

.bl-tool {
  display: flex; align-items: center; gap: 22px; padding: 24px 26px; border-radius: 20px; margin: 2em 0 !important;
  background: #2A2320; color: #F7F3EE; font-family: var(--bl-sans);
  background-image: radial-gradient(circle at 100% 0%, rgba(220,118,90,0.32), transparent 55%);
}
.bl-tool-body { flex: 1; min-width: 0; }
.bl-tool-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #EFB09E; }
.bl-tool-title { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.bl-tool-text { margin: 0; font-size: 15px; line-height: 1.5; color: #D8CEC4; }
.bl-tool-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: var(--bl-accent); color: #fff !important; text-decoration: none !important; font-size: 15px; font-weight: 600;
  transition: background .15s, transform .3s var(--bl-ease);
}
.bl-tool-btn:hover { filter: brightness(.93); transform: translateX(2px); }
@media (max-width: 560px) { .bl-tool { flex-direction: column; align-items: flex-start; } }

.bl-faq { border-top: 1px solid var(--bl-line); font-family: var(--bl-sans); margin: 1.6em 0 !important; }
.bl-faq details { border-bottom: 1px solid var(--bl-line); }
.bl-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 0.92em; font-weight: 600; color: var(--bl-ink); line-height: 1.4;
}
.bl-faq summary::-webkit-details-marker { display: none; }
.bl-faq-icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.bl-faq-icon::before, .bl-faq-icon::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--bl-accent); transition: transform .25s var(--bl-ease); }
.bl-faq-icon::after { transform: rotate(90deg); }
.bl-faq details[open] .bl-faq-icon::after { transform: rotate(0); }
.bl-faq details > div { padding: 0 0 18px; font-size: 0.86em; line-height: 1.65; color: var(--bl-muted); }
.bl-faq details > div p { margin: 0; }

.bl-table { overflow-x: auto; border: 1px solid var(--bl-line); border-radius: 14px; background: var(--bl-card); margin: 1.6em 0 !important; font-family: var(--bl-sans); }
.bl-table table { width: 100%; border-collapse: collapse; font-size: 0.8em; line-height: 1.5; }
.bl-table th, .bl-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--bl-line-soft); vertical-align: top; }
.bl-table th { font-weight: 650; color: var(--bl-ink); background: #FBF8F5; border-bottom-color: var(--bl-line); white-space: nowrap; }
.bl-table tr:last-child td { border-bottom: 0; }

.bl-btn-row { margin: 1.6em 0 !important; }
.bl-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-family: var(--bl-sans); font-size: 15px; font-weight: 600;
  background: var(--bl-accent); color: #fff !important; text-decoration: none !important; box-shadow: 0 2px 8px rgba(220,118,90,0.3); transition: background .15s, box-shadow .15s;
}
.bl-btn:hover { filter: brightness(.93); box-shadow: 0 4px 16px rgba(42,35,32,0.18); }
.bl-btn.is-ghost { background: transparent; color: var(--bl-ink) !important; border: 1px solid #D8CEC4; box-shadow: none; }
.bl-btn.is-ghost:hover { border-color: var(--bl-ink); }

/* End of article */
.bl-end { max-width: 680px; margin: 64px auto 0; padding: 0 0 64px; }
.bl-feedback {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px;
  border: 1px solid var(--bl-line); border-radius: 18px; background: var(--bl-card);
}
.bl-feedback-q { margin: 0; font-size: 16px; font-weight: 600; color: var(--bl-ink); }
.bl-feedback-btns { display: flex; gap: 8px; }
.bl-feedback-btns button {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--bl-line);
  background: var(--bl-card); font: inherit; font-size: 14px; font-weight: 600; color: var(--bl-muted); cursor: pointer; transition: all .15s;
}
.bl-feedback-btns button:hover { border-color: #D8CEC4; color: var(--bl-ink); }
.bl-feedback-btns button[aria-pressed="true"] { background: var(--bl-ink); border-color: var(--bl-ink); color: #fff; }
.bl-feedback-btns button[aria-pressed="true"] svg { animation: blThumb .45s var(--bl-ease); }
@keyframes blThumb { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-10deg); } 100% { transform: scale(1); } }
.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.bl-share-label { font-size: 13px; font-weight: 600; color: var(--bl-faint); margin-right: 4px; }
.bl-share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--bl-line); background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--bl-muted); text-decoration: none; cursor: pointer; transition: all .15s;
}
.bl-share-btn:hover { color: var(--bl-ink); border-color: #D8CEC4; background: var(--bl-card); }
.bl-share-btn[hidden] { display: none; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; }
.bl-tags li { font-size: 12.5px; color: var(--bl-muted); background: var(--bl-line-soft); padding: 4px 10px; border-radius: 999px; }

.bl-related { max-width: 1024px; margin: 0 auto; padding: 48px 24px 88px; border-top: 1px solid var(--bl-line); }
.bl-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-related-grid > [hidden] { display: none; }
@media (max-width: 860px) { .bl-related-grid { grid-template-columns: 1fr 1fr; } .bl-related-grid > :nth-child(n+3) { display: none; } }
@media (max-width: 560px) { .bl-related-grid { grid-template-columns: 1fr; } .bl-related-grid > :nth-child(n+3) { display: flex; } }

/* Mobile contents pill + sheet */
.bl-pill {
  /* Clears the sticky mobile ad bar that sits on the bottom edge. */
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 8px 16px 8px 8px; border: 0; border-radius: 999px;
  background: rgba(42,35,32,0.94); color: #F7F3EE; font: inherit; font-size: 14px; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(42,35,32,0.5); backdrop-filter: blur(8px);
  transition: transform .4s var(--bl-ease), opacity .3s;
}
.bl-pill[hidden] { display: flex; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
.bl-pill-ring { width: 28px; height: 28px; flex: 0 0 auto; }
.bl-pill-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bl-pill-ring circle { fill: none; stroke-width: 4; stroke: rgba(255,255,255,0.18); }
.bl-pill-ring circle + circle { stroke: var(--bl-accent); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.bl-pill-text { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.bl-pill-left { color: #A39890; font-size: 13px; white-space: nowrap; }
@media (min-width: 1180px) { .bl-pill { display: none !important; } }
.bl-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(42,35,32,0.35); display: flex; align-items: flex-end; animation: blFade .2s; }
.bl-sheet[hidden] { display: none; }
.bl-sheet-panel {
  width: 100%; max-height: 70vh; overflow-y: auto; padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--bl-card); border-radius: 22px 22px 0 0; animation: blRise .35s var(--bl-ease);
}
.bl-sheet li a { font-size: 15px; padding: 10px 0 10px 14px; }
@keyframes blFade { from { opacity: 0; } }
@keyframes blRise { from { transform: translateY(40px); opacity: .4; } }

/* Resume toast */
.bl-resume-toast {
  /* Top, not bottom: the bottom edge belongs to the sticky ad bar and the contents pill. */
  position: fixed; left: 50%; top: 76px; z-index: 55; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; max-width: calc(100vw - 32px);
  background: var(--bl-card); border: 1px solid var(--bl-line); box-shadow: 0 18px 40px -14px rgba(42,35,32,0.35);
  font-size: 14px; color: var(--bl-ink); animation: blDrop .45s var(--bl-ease);
}
@keyframes blDrop { from { transform: translate(-50%, -16px); opacity: 0; } }
.bl-resume-toast[hidden] { display: none; }
.bl-resume-toast [data-resume-go] {
  border: 0; border-radius: 999px; padding: 8px 14px; background: var(--bl-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}

/* Lightbox */
.bl-lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(26,22,20,0.92); cursor: zoom-out; animation: blFade .2s; }
.bl-lightbox[hidden] { display: none; }
.bl-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; animation: blZoom .35s var(--bl-ease); }
.bl-lightbox .bl-icon-btn { position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(255,255,255,0.12); }
@keyframes blZoom { from { transform: scale(.94); opacity: 0; } }

/* ── Block styles (Studio → Block → Style). Keys come from src/lib/blog/design.js ── */
.bl-prose .bs { font-size: calc(var(--bs-base, 1em) * var(--bs-scale, 1)); }
.bs-sz-xs { --bs-scale: .8; } .bs-sz-s { --bs-scale: .9; } .bs-sz-l { --bs-scale: 1.15; }
.bs-sz-xl { --bs-scale: 1.35; } .bs-sz-xxl { --bs-scale: 1.7; }
.bl-prose .bs-sz-xl, .bl-prose .bs-sz-xxl { line-height: 1.35; letter-spacing: -0.01em; }
.bl-prose .bs-al-center { text-align: center; }
.bl-prose .bs-al-right { text-align: right; }
.bl-prose :is(ul, ol).bs-al-center, .bl-prose :is(ul, ol).bs-al-right { list-style-position: inside; padding-left: 0; }
.bl-prose .bl-btn-row.bs-al-center, .bl-prose .bl-btn-row.bs-al-right { display: flex; justify-content: center; }
.bl-prose .bl-btn-row.bs-al-right { justify-content: flex-end; }
.bl-prose .bs-sp-none { margin-top: 0 !important; }
.bl-prose .bs-sp-more { margin-top: 2em !important; }
.bl-prose .bs-sp-lots { margin-top: 3.6em !important; }
.bl-prose [class*="bs-bg-"] { padding: 1em 1.25em; border-radius: 16px; }
.bl-prose :is(ul, ol)[class*="bs-bg-"]:not(.bl-check):not(.bs-al-center):not(.bs-al-right) { padding-left: 2.5em; }
.bl-prose ul.bl-check[class*="bs-bg-"] { padding-left: 1.25em; }
.bl-prose .bs-bg-sand { background: #F1EAE3; } .bl-prose .bs-bg-peach { background: #FCEEEA; }
.bl-prose .bs-bg-butter { background: #FDF5E8; } .bl-prose .bs-bg-mint { background: #ECF5EE; }
.bl-prose .bs-bg-sky { background: #EEF4F8; } .bl-prose .bs-bg-lilac { background: #F3EEF7; }
.bl-prose .bs-bg-ink { background: #2A2320; color: #F1EAE3; }
.bl-prose .bs-bg-ink :is(strong, .bl-step-title, summary, th) { color: #fff; }
.bl-prose .bs-bg-ink a { color: #F4C8BD; }
.bl-prose .bs-c-ink { color: #2A2320; } .bl-prose .bs-c-muted { color: #6B615A; } .bl-prose .bs-c-accent { color: var(--bl-accent-ink); }
.bl-prose .bs-c-rust { color: #9C4830; } .bl-prose .bs-c-red { color: #A8322A; } .bl-prose .bs-c-amber { color: #8A6212; }
.bl-prose .bs-c-green { color: #2F6B3C; } .bl-prose .bs-c-blue { color: #2F5F8A; } .bl-prose .bs-c-plum { color: #6B3A6E; }
.bl-prose .bs-c-white { color: #fff; }
.bl-prose [class*="bs-c-"] :is(strong, p, .bl-step-title, summary) { color: inherit; }
/* Fonts (block and selected words). Stacks match FONTS in design.js. */
.bl-prose [class*="bs-f-"] :not(code, pre, code *, svg, svg *) { font-family: inherit; }
.bl-prose .bs-f-newsreader, .bl-prose span.tf-newsreader { font-family: 'Newsreader', Georgia, serif; }
.bl-prose .bs-f-lora, .bl-prose span.tf-lora { font-family: 'Lora', Georgia, serif; }
.bl-prose .bs-f-merriweather, .bl-prose span.tf-merriweather { font-family: 'Merriweather', Georgia, serif; }
.bl-prose .bs-f-source-serif, .bl-prose span.tf-source-serif { font-family: 'Source Serif 4', Georgia, serif; }
.bl-prose .bs-f-fraunces, .bl-prose span.tf-fraunces { font-family: 'Fraunces', Georgia, serif; }
.bl-prose .bs-f-playfair, .bl-prose span.tf-playfair { font-family: 'Playfair Display', Georgia, serif; }
.bl-prose .bs-f-figtree, .bl-prose span.tf-figtree { font-family: Figtree, system-ui, sans-serif; }
.bl-prose .bs-f-inter, .bl-prose span.tf-inter { font-family: 'Inter', system-ui, sans-serif; }
.bl-prose .bs-f-dm-sans, .bl-prose span.tf-dm-sans { font-family: 'DM Sans', system-ui, sans-serif; }
.bl-prose .bs-f-space-grotesk, .bl-prose span.tf-space-grotesk { font-family: 'Space Grotesk', system-ui, sans-serif; }
.bl-prose .bs-f-mono, .bl-prose span.tf-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .92em; }
/* Selected words: colour, size, highlighter */
.tc-ink { color: #2A2320; } .tc-muted { color: #6B615A; } .tc-accent { color: var(--bl-accent-ink); } .tc-rust { color: #9C4830; }
.tc-red { color: #A8322A; } .tc-amber { color: #8A6212; } .tc-green { color: #2F6B3C; } .tc-blue { color: #2F5F8A; }
.tc-plum { color: #6B3A6E; } .tc-white { color: #fff; }
.ts-s { font-size: .85em; } .ts-l { font-size: 1.2em; } .ts-xl { font-size: 1.5em; line-height: 1.25; }
.bl-prose mark.hl-yellow { background: #FBE7A1; } .bl-prose mark.hl-green { background: #CFEBD5; }
.bl-prose mark.hl-blue { background: #D3E5F5; } .bl-prose mark.hl-pink { background: #F8D3DF; }
.bl-prose mark[class*="hl-"] { padding: 0.05em 0.2em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ── Hero layouts (Studio → Design). Classic is the default .bl-head above. ── */
.bl-head.is-centered { text-align: center; }
.bl-head.is-centered .bl-crumbs { justify-content: center; }
.bl-head.is-centered .bl-byline { justify-content: center; }
.bl-head.is-centered .bl-byline-text { flex: 0 1 auto; text-align: left; }

/* Ambient: the cover, blurred into a soft glow behind the title; the sharp cover rises into it. */
.bl-head.is-ambient { position: relative; isolation: isolate; max-width: none; margin: -48px -24px 0; padding: 72px 24px 132px; overflow: hidden; }
.bl-head.is-ambient .bl-head-inner { position: relative; max-width: 680px; margin: 0 auto; }
.bl-ambient { position: absolute; inset: -12%; z-index: -1; pointer-events: none; }
.bl-ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(72px) saturate(1.6); opacity: calc(.3 + var(--bl-dim) * .7); transform: scale(1.15); }
.bl-ambient::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(247,243,238,.15) 0%, rgba(247,243,238,.55) 55%, var(--bl-paper) 88%); }
.bl-head.is-ambient .bl-byline { border-top-color: rgba(42,35,32,.12); }
.bl-cover.is-lifted { position: relative; margin-top: -96px; }
.bl-cover.is-lifted img { box-shadow: 0 40px 80px -40px rgba(42,35,32,.55); }

/* Overlay ("cinematic"): the title sits on the photo, over a scrim the editor can darken. */
.bl-head.is-overlay {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  max-width: 1200px; min-height: clamp(440px, 76vh, 760px); margin: -24px auto 56px; padding: 56px clamp(24px, 6vw, 72px);
  border-radius: 28px; color: #fff; background: #2A2320;
}
.bl-head.is-overlay .bl-head-inner { position: relative; width: 100%; max-width: 760px; }
.bl-head.is-overlay.is-centered { justify-content: center; }
.bl-hero-media { position: absolute; inset: 0; z-index: -2; }
.bl-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06); animation: blHeroIn 1.6s var(--bl-ease) both; will-change: transform; }
@keyframes blHeroIn { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; } }
.bl-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22,16,13, calc(.4 + var(--bl-dim) * .55)) 0%, rgba(22,16,13, calc(var(--bl-dim) * .55)) 50%, rgba(22,16,13, calc(var(--bl-dim) * .2)) 100%);
}
.bl-head.is-overlay h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.bl-head.is-overlay .bl-dek { color: rgba(255,255,255,.86); }
.bl-head.is-overlay .bl-crumbs, .bl-head.is-overlay .bl-crumbs a { color: rgba(255,255,255,.9); }
.bl-head.is-overlay .bl-byline { border-top-color: rgba(255,255,255,.22); }
.bl-head.is-overlay .bl-author { color: #fff; }
.bl-head.is-overlay .bl-byline-meta { color: rgba(255,255,255,.75); }
.bl-head.is-overlay .bl-avatar { background: rgba(255,255,255,.18); color: #fff; }
.bl-head.is-overlay .bl-reader-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Split ("magazine"): title beside a tall image, on an accent-tinted card. */
.bl-head.is-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1160px; margin: 0 auto 72px; }
.bl-head.is-split h1 { font-size: clamp(34px, 4.6vw, 56px); }
.bl-hero-figure { position: relative; margin: 0; isolation: isolate; }
.bl-hero-figure::before { content: ''; position: absolute; inset: 28px -18px -18px 28px; z-index: -1; border-radius: 30px; background: var(--bl-tint); }
.bl-hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--bl-line-soft); box-shadow: 0 30px 60px -36px rgba(42,35,32,.5); }

@media (max-width: 900px) {
  .bl-head.is-split { grid-template-columns: 1fr; max-width: 680px; }
  .bl-hero-figure { order: -1; }
  .bl-hero-figure img { aspect-ratio: 16 / 11; }
  .bl-hero-figure::before { inset: 18px -10px -10px 18px; }
}

@media (max-width: 640px) {
  .bl-post { padding: 28px 16px 0; }
  .bl-head.is-ambient { margin: -28px -16px 0; padding: 48px 16px 104px; }
  .bl-cover.is-lifted { margin-top: -72px; }
  .bl-head.is-overlay { margin: -28px -16px 40px; border-radius: 0; min-height: 78svh; padding: 40px 20px 32px; }
  .bl-hero-figure::before { display: none; }
  .bl-cover { margin: 0 -16px 36px; }
  .bl-cover img { border-radius: 0; }
  .bl-layout { display: block; }
  .bl-anchor { display: none; }
  .bl-end { margin-top: 48px; }
  .bl-related { padding: 40px 16px 72px; }
  .bl-reader-panel { right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-index *, .bl-post *, .bl-related *, .bl-pill, .bl-sheet-panel, .bl-resume-toast, .bl-lightbox img { animation: none !important; transition: none !important; }
  .bl-hero-media img { transform: scale(1.02) !important; }
}
@media print {
  .bl-progress, .bl-toc, .bl-pill, .bl-reader, .bl-end, .bl-related, .bl-resume-toast, .bl-preview-bar { display: none !important; }
  .bl-prose { font-size: 12pt; }
}
