.blog { color: #161616; }
.blog-wrap { width: min(760px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 3rem; }
.blog-index { width: min(1040px, calc(100% - 2rem)); }
.blog h1, .blog h2, .blog h3, .blog p, .blog li, .blog a, .blog time, .blog summary {
  font-family: Outfit, "Avenir Next", system-ui, sans-serif;
}
.blog h1, .blog .title { font-family: Fraunces, Georgia, serif; }
.blog h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.04em; line-height: 1.08; text-decoration: none; margin: 0.4rem 0 0; }
.blog-lead { font-size: 1.08rem; line-height: 1.55; max-width: 62ch; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; color: #4b4453; font-size: 0.85rem; margin-top: 0.8rem; }
.crumbs { font-size: 0.85rem; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: #8a8294; }
.blog-layout { display: grid; gap: 1.5rem; }
@media (min-width: 980px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 200px; align-items: start; }
  .blog-wrap.article { width: min(1040px, calc(100% - 2rem)); }
}
.toc { position: sticky; top: 5.5rem; font-size: 0.82rem; }
.toc nav { border-left: 1px solid rgba(17,17,17,0.12); padding-left: 0.7rem; }
.toc p { margin: 0 0 0.4rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0.28rem 0; }
.toc a { text-decoration: none; color: #3c3644; }
.toc ul ul { margin-left: 0.7rem; }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.03em; margin: 2rem 0 0.5rem; text-decoration: none; }
.prose h3 { font-size: 1.12rem; margin: 1.4rem 0 0.4rem; text-decoration: none; }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose a { color: #161616; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }
.prose p code, .prose li code { background: #fff; border: 1px solid rgba(17,17,17,0.08); padding: 0.05rem 0.28rem; }
.code-block { position: relative; margin: 1rem 0 1.25rem; }
.code-block pre { margin: 0; padding: 0.9rem 1rem; overflow: auto; border: 1px solid #f0e4e2; border-radius: 14px; background: #fff; font-size: 0.82rem; line-height: 1.55; box-shadow: 0 10px 24px rgba(80,40,50,.04); }
.product-cta { border-radius: 18px; box-shadow: 0 12px 30px rgba(80,40,50,.06); }
.copy-code { position: absolute; top: 0.4rem; right: 0.4rem; border: 1px solid rgba(17,17,17,0.15); background: #fff; font-size: 0.72rem; padding: 0.15rem 0.4rem; cursor: pointer; font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; }
.pub-hero { padding: 1.2rem 0 0.4rem; }
.pub-hero .script { color: #9a4a55; margin: 0; }
.pub-hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.featured { margin-top: 1.6rem; }
.featured-card, .ed-card {
  display: grid; gap: 0; text-decoration: none; color: inherit; background: #fffaf8;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(80,40,50,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.featured-card:hover, .ed-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(80,40,50,.12); }
@media (min-width: 800px) {
  .featured-card { grid-template-columns: 1.05fr 1fr; min-height: 320px; }
}
.ed-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 760px) { .ed-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ed-grid { grid-template-columns: 1fr 1fr 1fr; } .ed-card.wide { grid-column: span 2; grid-template-columns: 0.8fr 1.2fr; } }
.ed-card { grid-template-rows: 132px auto; }
.ed-card.wide { grid-template-rows: auto; }
.ed-art { position: relative; min-height: 132px; background: linear-gradient(145deg, #1c1416, #5c2a34); }
.ed-art[data-topic="SaaS"] { background: linear-gradient(145deg, #1c1416, #3a2428 55%, #c47b86); }
.ed-art[data-topic="Stripe"] { background: linear-gradient(145deg, #241820, #6b3a4a); }
.ed-art[data-topic="AI"] { background: linear-gradient(145deg, #1a161c, #4a3558); }
.ed-art[data-topic="Mobile"] { background: linear-gradient(145deg, #16181c, #3d4a5c); }
.ed-art[data-topic="Jobs"] { background: linear-gradient(145deg, #1c1814, #5c4630); }
.ed-art[data-topic="Directories"] { background: linear-gradient(145deg, #14181c, #2f4a44); }
.ed-art[data-topic="Marketplaces"] { background: linear-gradient(145deg, #1c1418, #5c3048); }
.ed-art[data-topic="Dashboards"] { background: linear-gradient(145deg, #16161c, #3a3a55); }
.ed-art[data-topic="Launch"] { background: linear-gradient(145deg, #1c1614, #6a4038); }
.ed-art[data-topic="Components"] { background: linear-gradient(145deg, #18141c, #553a48); }
.feature-art { min-height: 100%; }
.ed-win { display: flex; gap: 6px; padding: 0.85rem 1rem; }
.ed-win i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.45); display: block; }
.ed-lines, .ed-code { display: grid; gap: 0.45rem; padding: 0.2rem 1.1rem 1rem; }
.ed-lines b, .ed-code b { display: block; height: 8px; border-radius: 99px; background: rgba(255,250,248,.28); }
.ed-lines b:nth-child(1) { width: 72%; } .ed-lines b:nth-child(2) { width: 48%; } .ed-lines b:nth-child(3) { width: 60%; }
.ed-code b { height: auto; width: fit-content; padding: 0.35rem 0.6rem; font-style: normal; font-weight: 500; color: #fffaf8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; background: rgba(255,255,255,.12); }
.ed-copy { padding: 1rem 1.1rem 1.15rem; min-width: 0; }
.featured-card .ed-copy p, .ed-card .ed-copy p { overflow-wrap: break-word; }
.ed-card h2, .featured-card h2 { margin: 0.25rem 0 0.4rem; letter-spacing: -0.03em; text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 560; line-height: 1.15; }
.ed-card h2 { font-size: 1.25rem; }
.featured-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ed-copy p { margin: 0.25rem 0; color: #3c3644; }
.ed-cat { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; color: #9a4a55; }
.ed-cat[data-topic="AI"] { color: #6a4a86; }
.ed-cat[data-topic="Mobile"] { color: #3d4a5c; }
.ed-cat[data-topic="Directories"] { color: #2f4a44; }
.ed-cat[data-topic="Jobs"] { color: #6a4a28; }
.topic-kits, .topic-related { margin-top: 2.2rem; }
.kit-row { display: grid; gap: 0.8rem; margin-top: 0.8rem; }
@media (min-width: 800px) { .kit-row { grid-template-columns: repeat(3, 1fr); } }
.kit-card { display: block; padding: 1rem 1.05rem; border-radius: 18px; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 10px 28px rgba(80,40,50,.06); }
.kit-card h3 { margin: 0.3rem 0; font-family: Fraunces, Georgia, serif; font-weight: 560; font-size: 1.2rem; text-decoration: none; }
.kit-price { font-weight: 650; }
.prose { max-width: 68ch; margin-top: 1.6rem; }
.prose blockquote { margin: 1.2rem 0; padding: 0.8rem 1rem; border-left: 3px solid #e7b4bc; background: #fff; border-radius: 0 14px 14px 0; color: #3c3644; }
.pager { display: grid; gap: 0.7rem; margin-top: 2rem; }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; padding: 0.9rem 1rem; border-radius: 16px; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 8px 22px rgba(80,40,50,.05); }
.pager a span { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6a70; margin-bottom: 0.2rem; }
.start-cta { margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) {
  .featured-card, .ed-card { transition: none; }
}
.topic-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.topic-row a, .pill { border: 1px solid rgba(17,17,17,0.15); border-radius: 99px; padding: 0.15rem 0.55rem; font-size: 0.78rem; text-decoration: none; color: inherit; }
.product-cta { margin-top: 2rem; border: 1px solid rgba(17,17,17,0.12); background: #fff; padding: 1rem 1.05rem; }
.product-cta p { margin: 0.35rem 0; }
.related { margin-top: 2rem; }
.related ul { list-style: none; padding: 0; }
.related li { margin: 0.35rem 0; }
@media (max-width: 979px) { .toc { position: static; } }
