/* Cast Forge public site: homepage, features, pricing, contact, legal pages */
:root {
  --bg: #fbf8f5; --surface: #ffffff; --surface-2: #f4efea; --ink: #1d1a17; --ink-2: #4a443e; --muted: #7a7169;
  --line: #e8e1d9; --accent: #c4133a; --accent-ink: #ffffff; --accent-soft: #fbe5ea; --ok: #1f8a4c;
  --head: "Bricolage Grotesque", system-ui, sans-serif; --body: "Be Vietnam Pro", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(29,26,23,.05), 0 12px 32px -12px rgba(29,26,23,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f; --surface: #1d1916; --surface-2: #26211d; --ink: #f3eee9; --ink-2: #cfc6bd; --muted: #988e85;
    --line: #342d27; --accent: #ff5c7a; --accent-ink: #1a0b0f; --accent-soft: rgba(255,92,122,.13); --ok: #4fc47f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 620px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 .95rem var(--body);
  text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: transform .15s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 8px 16px; font-size: .88rem; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font: 800 1.3rem var(--head); letter-spacing: -.03em; text-decoration: none; }
.logo i { width: 10px; height: 10px; margin: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 0 8px color-mix(in srgb, var(--accent) 13%, transparent); }
.top nav { display: flex; gap: 26px; margin-right: auto; }
.top nav a { text-decoration: none; color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.top nav a:hover, .top nav a.on { color: var(--ink); }
.top .signin { text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-left: auto; cursor: pointer; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 22px 0 32px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .proof { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.hero .proof .nets { display: flex; }
.hero .proof .nets .net { margin-left: -6px; box-shadow: 0 0 0 3px var(--bg); }
.hero .proof .nets .net:first-child { margin-left: 0; }

/* the fan-out illustration: one product page becomes a post on each network */
.fan { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fan .source { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.fan .thumb { width: 74px; height: 74px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #ffd9a8, #f08a5d 55%, #b83b5e); color: #fff; }
.fan .source b { display: block; font-family: var(--head); font-size: 1.05rem; letter-spacing: -.01em; }
.fan .source small { color: var(--muted); font-size: .84rem; }
.fan .source .tag { margin-left: auto; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.post .ph { border-radius: 10px; background: linear-gradient(160deg, #2b2f36, #11151b); position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.post .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(0deg, rgba(196,19,58,.9), rgba(196,19,58,0)); }
.post .ph span { position: absolute; bottom: 10px; left: 10px; right: 10px; z-index: 1; font: 700 .82rem/1.15 var(--head); }
.post.pinterest .ph { aspect-ratio: 2 / 3; grid-row: span 2; }
.post.facebook .ph { aspect-ratio: 1.6 / 1; }
.post.instagram .ph { aspect-ratio: 4 / 5; }
.post.threads .ph { aspect-ratio: 1.6 / 1; }
.post .row { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.post .row b { font-weight: 600; }
.post .row .ok { margin-left: auto; color: var(--ok); font-weight: 600; white-space: nowrap; }
.fan .posts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.fan .lines { grid-column: 1 / -1; height: 26px; margin: -6px 0; color: var(--line); }

/* network icons */
.net { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; flex: none; color: #fff; }
.net svg { width: 15px; height: 15px; }
.net.pinterest { background: #e60023; }
.net.facebook { background: #1877f2; }
.net.instagram { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); border-radius: 8px; }
.net.threads { background: #111; }
@media (prefers-color-scheme: dark) { .net.threads { background: #000; box-shadow: inset 0 0 0 1px #444; } }

/* sections */
section { padding: 88px 0; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.networks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.networks div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.networks h3 { margin: 14px 0 6px; }
.networks p { font-size: .93rem; color: var(--ink-2); }
.networks .net { width: 38px; height: 38px; }
.networks .net svg { width: 20px; height: 20px; }
.networks .net.instagram { border-radius: 11px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature .ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { list-style: none; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); position: relative; }
.steps li::before { counter-increment: step; content: "0" counter(step); font: 800 2.4rem var(--head); color: var(--accent); opacity: .9; display: block; margin-bottom: 14px; letter-spacing: -.04em; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.steps { padding: 0; margin: 0; }

.cta { border-radius: 28px; padding: 64px 48px; background: var(--ink); color: var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta p { margin-top: 12px; opacity: .75; font-size: 1.05rem; }
.cta .btn.primary { background: var(--accent); }

/* features page */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.split:first-of-type { border-top: 0; }
.split ul { padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.split li { list-style: none; padding-left: 30px; position: relative; color: var(--ink-2); }
.split li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.split p { margin-top: 14px; color: var(--ink-2); }
.panel { border-radius: 22px; border: 1px solid var(--line); background: var(--surface); padding: 26px; box-shadow: var(--shadow); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: .72rem; color: var(--muted); }
.cal span.l1 { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }
.cal span.l2 { background: color-mix(in srgb, var(--accent) 48%, var(--surface-2)); color: #fff; }
.cal span.l3 { background: var(--accent); color: #fff; }
.copy-demo { display: grid; gap: 12px; }
.copy-demo div { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.copy-demo b { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.copy-demo .net { width: 22px; height: 22px; }
.copy-demo .net svg { width: 13px; height: 13px; }
.copy-demo p { font-size: .9rem; color: var(--ink-2); }
.sizes { display: flex; gap: 14px; align-items: flex-end; justify-content: center; }
.sizes div { border-radius: 12px; background: linear-gradient(160deg, #2b2f36, #11151b); color: #fff; display: grid; place-items: end start; padding: 10px; font: 700 .8rem var(--head); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { border-radius: 22px; border: 1px solid var(--line); background: var(--surface); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 30px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan .price { font: 800 3rem var(--head); letter-spacing: -.04em; }
.plan .price small { font: 500 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan ul { padding: 0; margin: 0; display: grid; gap: 9px; flex: 1; }
.plan li { list-style: none; padding-left: 28px; position: relative; font-size: .95rem; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { justify-content: center; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--body); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* contact */
.contact-card { display: grid; gap: 18px; }
.contact .wrap { align-items: start; }
.contact-intro .contact-card { margin-top: 36px; gap: 8px; }
.contact-intro .contact-card a.mail { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.form-card { padding: 32px; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 22px; }
.form-card form { display: grid; gap: 18px; }
.form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .row2 > * { min-width: 0; }
.field { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--ink); border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 9px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 4px; }
.field input, .field textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.bad input, .field.bad textarea { border-color: var(--accent); }
.field small { color: var(--accent); font-weight: 500; font-size: .84rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .9rem; background: var(--bg); transition: border-color .15s, background .15s; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink-2); }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-soft); }
.form-card .btn.primary { justify-self: start; padding: 13px 28px; }
.form-card .small { font-size: .88rem; }
.form-error { margin: -6px 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: grid; gap: 12px; justify-items: start; padding: 24px 0; }
.sent h2 { margin: 6px 0 0; }
.sent .btn { margin-top: 10px; }
.sent .tick { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); position: relative; }
.sent .tick::after { content: ""; position: absolute; left: 17px; top: 17px; width: 17px; height: 9px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 720px) {
  .form-card { padding: 22px; }
  .form-card .row2 { grid-template-columns: 1fr; }
  .form-card .btn.primary { justify-self: stretch; justify-content: center; }
}
.contact-card a.mail { font: 700 clamp(1.4rem, 3vw, 2rem) var(--head); color: var(--accent); text-decoration: none; letter-spacing: -.02em; word-break: break-all; }

/* legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.legal .updated { margin: 14px 0 40px; color: var(--muted); font-size: .92rem; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0 0; }
.legal .note { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
footer p { margin-top: 12px; color: var(--muted); font-size: .9rem; max-width: 320px; }
footer .foot-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
footer .foot-mail:hover { color: var(--accent); }
footer h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
footer ul { padding: 0; margin: 0; display: grid; gap: 8px; }
footer li { list-style: none; }
footer li a { text-decoration: none; color: var(--ink-2); font-size: .93rem; }
footer li a:hover { color: var(--ink); }
footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; font-size: .85rem; color: var(--muted); }

@media (max-width: 960px) {
  .hero .wrap, .split, .cta { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .networks { grid-template-columns: 1fr 1fr; }
  .grid3, .steps, .plans { grid-template-columns: 1fr; }
  .split > :last-child { order: -1; }
  .cta { padding: 44px 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top nav, .top .signin { display: none; }
  .top .btn.small { display: none; }
  .menu-btn { display: block; }
  .top.open nav { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); padding: 18px 16px 22px; gap: 16px; border-bottom: 1px solid var(--line); }
  .top.open .signin { display: block; }
  section { padding: 60px 0; }
  .networks { grid-template-columns: 1fr; }
  .fan .posts { grid-template-columns: 1fr 1fr; }
  .post.pinterest .ph { grid-row: auto; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}

/* grid children may shrink below their content (the fan illustration would otherwise widen the page on phones) */
.hero .wrap > *, .split > *, .cta > * { min-width: 0; }
.hero .lead.center { margin-left: auto; margin-right: auto; }
.fan .source > div:not(.thumb) { min-width: 0; }
.fan .source small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .fan .source .tag { display: none; }
  .fan .lines { display: none; }
  .fan .posts { gap: 10px; }
  .post.pinterest .ph, .post.instagram .ph { aspect-ratio: 4 / 5; }
  .post.facebook .ph, .post.threads .ph { aspect-ratio: 4 / 5; }
  .hero .proof { flex-wrap: wrap; }
}

/* ---------- blog ---------- */
.blog-head { padding: 72px 0 24px; }
.blog-head h1 em { font-style: normal; color: var(--accent); }
.blog-list { padding: 32px 0 40px; }
.card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; border-radius: 20px; }
.card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 8px; transition: transform .2s; }
.card:hover img { transform: translateY(-3px); }
.card:hover h2, .card:hover h3 { color: var(--accent); }
.card .eyebrow { margin: 0; }
.card h3 { font-size: 1.22rem; line-height: 1.25; }
.card p { color: var(--ink-2); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.lead-card { grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.lead-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.12; margin: 4px 0 14px; }
.lead-card p { margin-bottom: 14px; font-size: 1.02rem; }
.blog-list .rss { margin-top: 48px; font-size: .92rem; }

.post-head { padding: 48px 0 32px; }
.post-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; }
.post-head .lead { margin-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.byline { display: flex; gap: 14px; align-items: center; margin-top: 28px; }
.byline b a, .author-box b a { text-decoration: none; }
.byline small { display: block; margin-top: 2px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 1.1rem var(--head); color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.avatar:empty::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-ink); }
.cover { margin: 0 auto; }
.cover img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.post-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; padding: 56px 0 24px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .88rem; }
.toc b { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; border-left: 2px solid var(--line); }
.toc a { display: block; padding-left: 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.2em; scroll-margin-top: 90px; line-height: 1.15; }
.prose h3 { color: var(--ink); font-size: 1.2rem; margin-top: 1.8em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose code { font: .88em ui-monospace, "SFMono-Regular", Consolas, monospace; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; color: var(--ink); }
.prose pre { background: #17130f; color: #efe7df; border-radius: 16px; padding: 20px 22px; overflow-x: auto; font-size: .86rem; line-height: 1.6; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose pre .c { color: #8f857b; }
.prose pre .k { color: #ff8fa3; }
.prose pre .s { color: #9fd3a8; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.prose figure { margin: 2em 0; }
.prose figure svg, .prose figure img { width: 100%; height: auto; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; text-align: center; }
.answer { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 16px 16px 0; padding: 18px 22px; color: var(--ink); }
.answer b:first-child { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.takeaways { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 20px 24px; }
.takeaways b { color: var(--ink); }
.takeaways ul { margin: 10px 0 0; }
.note-box { border-radius: 16px; background: var(--surface-2); padding: 16px 20px; font-size: .97rem; }
.note-box b { color: var(--ink); }
.prose .faq-block, .prose .sources { margin-top: 3em; }
.prose .faq summary { color: var(--ink); }
.sources ol { font-size: .95rem; }
.author-box { display: flex; gap: 18px; margin-top: 3em; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.author-box .avatar { width: 56px; height: 56px; font-size: 1.4rem; }
.author-box b { display: block; color: var(--ink); font-size: 1.08rem; }
.author-box p { margin-top: 8px; font-size: .95rem; }
.related { padding: 40px 0 72px; }
.related h2 { margin-bottom: 32px; }
.related .cards { grid-template-columns: repeat(3, 1fr); }

/* diagrams: inline SVG coloured by the theme */
.dg text { font-family: var(--body); fill: var(--ink-2); font-size: 15px; }
.dg .t { fill: var(--ink); font-weight: 600; }
.dg .m { fill: var(--muted); font-size: 13px; }
.dg .h { font-family: var(--head); font-weight: 700; fill: var(--ink); }
.dg .box { fill: var(--surface-2); stroke: var(--line); }
.dg .hi { fill: var(--accent-soft); stroke: var(--accent); }
.dg .acc { fill: var(--accent); }
.dg .ok { fill: var(--ok); }
.dg .ln { stroke: var(--muted); fill: none; stroke-width: 2; }
.dg .lna { stroke: var(--accent); fill: none; stroke-width: 2.5; }
.dg .grid { stroke: var(--line); }
.dg .on { fill: #fff; }
.dg .bar { fill: color-mix(in srgb, var(--accent) 70%, var(--surface-2)); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 36px; }
  .toc { display: none; }
  .lead-card { grid-template-columns: 1fr; gap: 18px; }
  .related .cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .prose { font-size: 1rem; }
  .author-box { flex-direction: column; }
  .cover { width: 100%; }
  .cover img { border-radius: 0; border-left: 0; border-right: 0; }
}
.blog-list .cards { grid-template-columns: repeat(2, 1fr); gap: 48px 36px; }
@media (max-width: 720px) { .blog-list .cards { grid-template-columns: 1fr; } }
