:root {
    --ink: #111111;
    --muted: #696969;
    --line: #d9d9d7;
    --soft: #f2f2ef;
    --paper: #fcfcfa;
    --acid: #d9ff3e;
    --max: 1440px;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, Arial, sans-serif; font-size: 15px; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { width: min(100%, var(--max)); margin: 0 auto; padding: 0 30px; }

.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -.08em; }
.wordmark span { color: #ff4b17; }
.primary-nav { display: flex; gap: 28px; align-items: center; font-size: 13px; font-weight: 700; }
.primary-nav a { transition: opacity .2s ease; }
.primary-nav a:hover, .footer-links a:hover { opacity: .55; }

.masthead { padding: 98px 0 55px; max-width: 770px; }
.masthead--compact { padding-bottom: 35px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .05em; }
.masthead h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -.075em; font-weight: 800; }
.masthead-copy { max-width: 560px; margin: 26px 0 0; color: #565656; font-size: 18px; line-height: 1.42; letter-spacing: -.04em; }

.category-nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 28px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.category-nav a { flex: 0 0 auto; padding: 13px 15px 15px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.category-nav a:hover { color: var(--ink); }
.category-nav .is-active { color: var(--ink); border-bottom-color: var(--ink); }

.featured-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 90px; }
.feature-card { position: relative; overflow: hidden; min-height: 445px; background: var(--soft); }
.feature-card__link { position: absolute; inset: 0; z-index: 2; }
.feature-card__image { width: 100%; height: 208px; object-fit: cover; background: #e8e8e4; }
.feature-card__image--placeholder { display: grid; place-items: center; background: linear-gradient(125deg, #262626, #808080); color: white; font-family: "DM Mono", monospace; font-size: 32px; }
.feature-card__body { padding: 18px 18px 20px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .02em; text-transform: uppercase; }
.feature-card h2 { margin: 20px 0 10px; font-size: 22px; line-height: 1.08; letter-spacing: -.055em; }
.feature-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #575757; font-size: 13px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.byline { display: flex; gap: 8px; align-items: center; position: absolute; bottom: 20px; color: var(--muted); font-size: 12px; }
.byline span:first-child, .post-row__author span:first-child { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 9px; font-weight: 800; }

.post-table { border-top: 1px solid var(--ink); }
.post-table--tag { margin-bottom: 110px; }
.section-label { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.post-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 104px; gap: 25px; align-items: center; position: relative; min-height: 105px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.post-row:hover { background: #f3f3ef; }
.post-row__link { position: absolute; inset: 0; z-index: 2; }
.post-row__meta { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }
.post-row__meta span { color: var(--ink); }
.post-row h2 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.048em; }
.post-row__author { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 12px; }
.load-more { display: flex; justify-content: center; padding: 23px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.load-more span { padding-left: 8px; }

.spawned-section { padding: 130px 0 120px; }
.spawned-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.spawned-heading h2 { margin: 0; font-size: clamp(39px, 4.8vw, 68px); line-height: .96; letter-spacing: -.075em; }
.spawned-heading > a { padding-bottom: 6px; font-size: 13px; font-weight: 700; }
.spawned-heading > a span { margin-left: 5px; }
.spawned-list { border-top: 1px solid var(--ink); }
.spawned-item { display: grid; grid-template-columns: 35px minmax(0, 1.35fr) minmax(160px, .7fr) 20px; gap: 15px; align-items: center; min-height: 92px; padding: 15px 5px; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.spawned-item:hover { padding-left: 12px; background: var(--acid); }
.spawned-item__icon { font-size: 20px; }
.spawned-item small { display: block; margin-bottom: 5px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .015em; text-transform: uppercase; }
.spawned-item strong { display: block; font-size: 16px; letter-spacing: -.04em; }
.spawned-item__metric { color: var(--muted); font-size: 12px; line-height: 1.35; }
.arrow { font-size: 16px; text-align: right; }
.spawned-note { margin: 13px 0 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }

.post-wrap { width: min(100%, 840px); margin: 0 auto; padding: 55px 0 120px; }
.back-link { display: inline-block; margin-bottom: 62px; color: var(--muted); font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--ink); }
.post-header { max-width: 780px; }
.post-tag { display: inline-block; margin-bottom: 17px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.post-header h1 { margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.077em; }
.post-dek { max-width: 680px; margin: 28px 0 0; color: #565656; font-size: 20px; line-height: 1.42; letter-spacing: -.04em; }
.post-meta { display: flex; gap: 8px; margin-top: 27px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; }
.post-image { margin: 58px 0; }
.post-image img { width: 100%; max-height: 600px; object-fit: cover; }
.gh-content { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.72; letter-spacing: -.022em; }
.gh-content > *:first-child { margin-top: 0; }
.gh-content h2, .gh-content h3 { margin: 2.1em 0 .6em; line-height: 1.1; letter-spacing: -.055em; }
.gh-content h2 { font-size: 32px; }
.gh-content h3 { font-size: 24px; }
.gh-content a { border-bottom: 1px solid var(--ink); }
.gh-content blockquote { margin: 1.8em 0; padding-left: 22px; border-left: 3px solid var(--ink); font-size: 22px; font-weight: 600; line-height: 1.45; }
.gh-content pre { overflow: auto; padding: 20px; background: #151515; color: #f4f4f4; font-size: 13px; }
.gh-content img { margin: 2em auto; }
.page-wrap { padding-top: 110px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 34px; padding: 28px 0 37px; border-top: 1px solid var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; font-size: 12px; font-weight: 700; }
.site-footer p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .03em; }

@media (max-width: 780px) {
    .site-shell { padding: 0 18px; }
    .site-header { min-height: 68px; }
    .primary-nav { gap: 15px; font-size: 12px; }
    .masthead { padding: 70px 0 37px; }
    .masthead-copy { font-size: 16px; }
    .featured-posts { grid-template-columns: 1fr; padding-bottom: 65px; }
    .feature-card { min-height: 395px; }
    .feature-card__image { height: 220px; }
    .post-row { grid-template-columns: 1fr 50px; gap: 8px 15px; padding: 17px 0; min-height: 0; }
    .post-row__meta { grid-column: 1 / -1; display: flex; flex-direction: row; justify-content: space-between; }
    .post-row h2 { font-size: 18px; }
    .post-row__author { justify-content: flex-end; }
    .post-row__author span:last-child { display: none; }
    .spawned-section { padding: 80px 0; }
    .spawned-heading { display: block; }
    .spawned-heading > a { display: inline-block; margin-top: 20px; }
    .spawned-item { grid-template-columns: 30px minmax(0, 1fr) 16px; min-height: 105px; }
    .spawned-item__metric { display: none; }
    .post-wrap { padding-top: 38px; }
    .back-link { margin-bottom: 48px; }
    .post-dek { font-size: 18px; }
    .post-image { margin: 40px 0; }
    .gh-content { font-size: 17px; }
    .site-footer { grid-template-columns: 1fr; gap: 20px; }
    .footer-links { justify-content: flex-start; }
}

@media (max-width: 430px) {
    .wordmark { font-size: 18px; }
    .primary-nav { gap: 11px; font-size: 11px; }
    .masthead h1 { font-size: 42px; }
    .category-nav { margin-left: -18px; margin-right: -18px; padding-left: 3px; }
}

/* Let's Explore CTA */
.explore-cta { margin: 30px 0 0; }
.explore-cta__link { display: inline-block; padding: 13px 26px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.02em; transition: background .2s ease, color .2s ease; }
.explore-cta__link:hover { background: transparent; color: var(--ink); }
.explore-cta__link span { padding-left: 6px; }

/* Hero split: text left, illustration right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 40px; align-items: center; padding: 60px 0 45px; }
.hero .masthead { padding: 0; }
.hero-art img { width: 100%; height: auto; border-radius: 4px; }

@media (max-width: 780px) {
    .hero { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 30px; }
    .hero-art { max-width: 340px; }
}
