:root {
  --paper: #f6f4ee;
  --paper-2: #eeece5;
  --ink: #101815;
  --muted: #59645f;
  --line: rgba(16, 24, 21, .16);
  --line-strong: rgba(16, 24, 21, .34);
  --green: #087e5b;
  --green-dark: #075640;
  --lime: #d9ff72;
  --coral: #f36a4a;
  --dark: #111a17;
  --dark-muted: #a8b5ae;
  --radius: 16px;
  --shell: min(1100px, calc(100vw - 48px));
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="dark"] {
  --paper: #0e1513;
  --paper-2: #151e1b;
  --ink: #edf4f0;
  --muted: #a5b1ab;
  --line: rgba(237, 244, 240, .13);
  --line-strong: rgba(237, 244, 240, .3);
  --green: #4ad09d;
  --green-dark: #2aa77b;
  --dark: #17211e;
  --dark-muted: #a8b5ae;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
::selection { color: #101815; background: var(--lime); }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 8px 12px; color: #fff; background: var(--green-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid transparent; transition: background .18s ease, border-color .18s ease; }
.site-header.is-scrolled { border-color: var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(16px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--lime); background: var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 11px; font-weight: 800; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; letter-spacing: .06em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 700; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -6px; left: 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .18s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-github { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.site-nav .nav-github::after { display: none; }
.theme-toggle, .nav-toggle { width: 34px; height: 34px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.theme-toggle { display: grid; place-items: center; }
.theme-icon { width: 12px; height: 12px; background: currentColor; border-radius: 50%; box-shadow: 4px -4px 0 -2px var(--paper); }
.nav-toggle { display: none; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); }

/* Shared */
.eyebrow, .section-index { margin: 0 0 16px; color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 18px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--green-dark); }
.button-primary:hover { background: var(--green); }
.button-ghost { border-color: var(--line-strong); }
.button-light { color: #101815; background: var(--lime); }
.section { padding-block: 96px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 410px); gap: 60px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading > p { margin: 0; color: var(--muted); }
.section-more { justify-self: end; padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); font-size: 13px; font-weight: 750; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(55px, 8vw, 100px); align-items: center; padding-block: 88px 78px; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(46px, 5.4vw, 68px); font-weight: 790; line-height: 1.06; letter-spacing: -.06em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-intro { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-brief { padding: 28px; color: #eef5f1; background: var(--dark); border-radius: 20px; box-shadow: 0 22px 60px rgba(16,24,21,.12); }
.brief-label { margin-bottom: 24px; color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.hero-brief > p { margin: 0; color: #c2cec8; font-size: 17px; line-height: 1.65; }
.hero-brief > p strong { color: #fff; }
.brief-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 25px 0; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-family: var(--mono); font-size: 10px; }
.brief-flow i { color: var(--lime); font-style: normal; }
.brief-facts { margin: 0; }
.brief-facts div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.brief-facts dt { color: #85968d; font-family: var(--mono); font-size: 10px; }
.brief-facts dd { margin: 0; color: #dce5e0; font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.metrics article { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 20px 26px; border-right: 1px solid var(--line); }
.metrics article:first-child { padding-left: 0; }
.metrics article:last-child { border-right: 0; }
.metrics strong { font-size: clamp(30px, 3.8vw, 44px); line-height: 1; letter-spacing: -.055em; }
.metrics sup { color: var(--green); font-size: .42em; vertical-align: super; }
.metrics span { margin-top: 9px; color: var(--muted); font-size: 12px; }
.series-promo { display: grid; grid-template-columns: 1.15fr .85fr; padding: 48px; color: #eef5f1; background: var(--dark); border-radius: 24px; }
.series-promo-main { padding-right: 60px; }
.series-promo h2 { margin: 0 0 15px; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -.05em; }
.series-promo p:not(.section-index) { max-width: 660px; color: #b9c6bf; }
.series-promo .button { margin-top: 15px; }
.series-promo-path { margin: 0; padding: 0 0 0 28px; border-left: 1px solid rgba(255,255,255,.13); list-style: none; }
.series-promo-path li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 12px 0; color: #c9d3ce; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.series-promo-path span { color: var(--lime); font-family: var(--mono); font-size: 10px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-card { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 18px 45px rgba(16,24,21,.09); }
.work-featured { color: #edf5f0; background: var(--dark); border-color: transparent; }
.work-meta { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.work-featured .work-meta { color: #82948a; }
.work-card h3 { margin: 0 0 13px; font-size: 26px; line-height: 1.25; letter-spacing: -.035em; }
.work-card p { margin: 0; color: var(--muted); font-size: 14px; }
.work-featured p { color: #b8c5be; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 25px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 8px; color: #c5d1ca; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-family: var(--mono); font-size: 9px; }
.text-link { width: fit-content; padding-bottom: 2px; color: var(--green); border-bottom: 1px solid; font-size: 12px; font-weight: 750; }
.knowledge-section { background: var(--paper-2); }
.knowledge-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.knowledge-card { min-height: 330px; padding: 30px 24px; border-right: 1px solid var(--line); }
.knowledge-card:first-child { padding-left: 0; }
.knowledge-card:last-child { border-right: 0; }
.knowledge-card > span { color: var(--coral); font-family: var(--mono); font-size: 10px; }
.knowledge-card h3 { margin: 48px 0 14px; font-size: 21px; letter-spacing: -.025em; }
.knowledge-card p { color: var(--muted); font-size: 13px; }
.knowledge-card ul { margin: 22px 0 0; padding: 17px 0 0; border-top: 1px solid var(--line); list-style: none; font-family: var(--mono); font-size: 10px; }
.knowledge-card li { margin: 6px 0; }
.knowledge-card li::before { content: "+"; margin-right: 7px; color: var(--green); }
.career { padding-bottom: 50px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.experience-card { padding: 28px; background: var(--paper-2); border-radius: var(--radius); }
.experience-card > span { color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.experience-card h3 { margin: 35px 0 12px; font-size: 21px; letter-spacing: -.025em; }
.experience-card p { margin: 0; color: var(--muted); font-size: 13px; }
.recent-writing { padding-top: 70px; }

/* Lists and writing */
.post-list { border-top: 1px solid var(--line-strong); }
.post-row { display: grid; grid-template-columns: 90px 1fr 26px; gap: 25px; align-items: start; padding: 27px 0; border-bottom: 1px solid var(--line); transition: padding .18s ease; }
.post-row:hover { padding-inline: 10px; }
.post-kind, .post-row time { padding-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.post-row h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.post-row p { margin: 0; color: var(--muted); font-size: 13px; }
.post-arrow { justify-self: end; color: var(--green); font-size: 17px; }
.archive-tags, .post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.archive-tags span, .post-tags span { padding: 3px 8px; color: var(--green); background: color-mix(in srgb, var(--green) 9%, transparent); border-radius: 999px; font-family: var(--mono); font-size: 9px; }
.page-hero { padding: 85px 0 64px; border-bottom: 1px solid var(--line-strong); }
.page-hero h1 { max-width: 840px; margin: 0; font-size: clamp(44px, 6vw, 66px); line-height: 1.05; letter-spacing: -.06em; }
.page-hero p:last-child { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
.page-hero-compact { padding-block: 70px 50px; }
.page-hero-compact h1 { font-size: clamp(42px, 5vw, 58px); }
.writing-main { padding-block: 60px 110px; }
.writing-series { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; padding: 38px; color: #eef5f1; background: var(--dark); border-radius: 20px; transition: transform .2s ease; }
.writing-series:hover { transform: translateY(-3px); }
.writing-series-copy p { margin: 0 0 11px; color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.writing-series h2 { margin: 0 0 9px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.writing-series-copy > span { color: #b9c7c0; }
.writing-series-route { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; color: #aab9b1; font-family: var(--mono); font-size: 10px; }
.writing-series-route i { color: var(--lime); font-style: normal; }
.writing-series > b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--lime); font-size: 12px; }
.notes-section { padding-top: 78px; }
.notes-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.notes-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.notes-heading > span { color: var(--muted); font-size: 12px; }

/* Series landing */
.series-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; padding-block: 88px; }
.series-hero h1 { margin: 0; font-size: clamp(52px, 7vw, 78px); line-height: 1.02; letter-spacing: -.065em; }
.series-hero-copy > p:not(.eyebrow) { max-width: 570px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.series-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.series-hero-note { padding: 30px; background: var(--paper-2); border-radius: var(--radius); }
.series-hero-note > p { margin: 0 0 18px; font-weight: 700; }
.series-hero-note ol { margin: 0; padding: 0; list-style: none; }
.series-hero-note li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 9px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.series-hero-note span { color: var(--green); font-family: var(--mono); font-size: 10px; }
.series-context { padding-block: 62px; color: #eaf3ee; background: var(--dark); }
.series-context-grid { display: grid; grid-template-columns: 220px 1fr; gap: 70px; }
.series-context-grid > p { margin: 0; color: var(--lime); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.series-context-grid div { max-width: 760px; }
.series-context-grid div p { margin: 0 0 13px; color: #c0ccc5; }
.series-chapters { padding-block: 92px; }
.series-section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 35px; }
.series-section-heading .section-index { grid-column: 1 / span 2; }
.series-section-heading h2 { margin: 0; font-size: 38px; letter-spacing: -.04em; }
.series-section-heading > span { color: var(--muted); font-size: 12px; }
.chapter-list { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list a { display: grid; grid-template-columns: 70px 1fr 28px; gap: 26px; align-items: start; padding: 27px 0; transition: padding .18s ease; }
.chapter-list a:hover { padding-inline: 10px; }
.chapter-number { color: var(--green); font-family: var(--mono); font-size: 13px; }
.chapter-list h3 { margin: 0 0 5px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.chapter-list p { margin: 0; color: var(--muted); font-size: 13px; }
.chapter-arrow { justify-self: end; color: var(--green); }
.longform-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; margin-bottom: 90px; padding: 38px; color: #edf5f0; background: var(--green-dark); border-radius: 18px; }
.longform-callout h2 { margin: 0 0 8px; font-size: 31px; letter-spacing: -.04em; }
.longform-callout p:not(.section-index) { max-width: 700px; margin: 0; color: #c9d8d0; }
.series-sources { padding-bottom: 100px; }
.series-sources > div { display: flex; flex-wrap: wrap; gap: 8px; }
.series-sources a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.series-sources a:hover { border-color: var(--green); }

/* Article */
.post-progress { position: fixed; z-index: 200; top: 0; left: 0; width: 0; height: 3px; background: var(--coral); }
.series-ribbon { max-width: 920px; display: flex; justify-content: space-between; gap: 20px; margin: 48px auto 0; padding: 12px 18px; color: var(--muted); background: var(--paper-2); border-radius: 10px; font-family: var(--mono); font-size: 10px; }
.series-ribbon strong { color: var(--green); }
.post-header { max-width: 860px; margin: 0 auto; padding: 82px 24px 48px; text-align: center; }
.series-article .post-header { padding-top: 55px; }
.post-header h1 { margin: 0; font-size: clamp(38px, 5vw, 57px); line-height: 1.16; letter-spacing: -.05em; }
.post-dek { max-width: 690px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.post-tags { justify-content: center; }
.post-body { max-width: 760px; margin: 0 auto; padding: 62px 24px 105px; border-top: 1px solid var(--line-strong); }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { margin: 60px 0 18px; font-size: 29px; line-height: 1.3; letter-spacing: -.03em; }
.post-body h3 { margin: 38px 0 13px; font-size: 21px; line-height: 1.4; }
.post-body p, .post-body li { color: var(--muted); font-size: 16px; line-height: 1.9; }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--green); border-bottom: 1px solid color-mix(in srgb, var(--green) 45%, transparent); }
.post-body blockquote { margin: 38px 0; padding: 16px 24px; color: var(--ink); background: var(--paper-2); border-left: 3px solid var(--coral); }
.post-body blockquote p { margin: 0; color: inherit; font-size: 18px; }
.post-body pre { overflow-x: auto; margin: 26px 0; padding: 20px; color: #e8f1ec; background: #101916; border-radius: 11px; font-family: var(--mono); font-size: 12px; line-height: 1.65; }
.post-body code { padding: 2px 5px; color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border-radius: 4px; font-family: var(--mono); font-size: .86em; }
.post-body pre code { padding: 0; color: inherit; background: transparent; }
.post-body table { width: 100%; margin: 30px 0; border-collapse: collapse; font-size: 13px; }
.post-body th, .post-body td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); }
.post-body th { color: var(--ink); background: var(--paper-2); }
.post-body hr { margin: 52px 0; border: 0; border-top: 1px solid var(--line-strong); }
.post-footer { max-width: 760px; margin: -55px auto 105px; padding: 28px 24px 0; border-top: 1px solid var(--line); }
.post-footer > a { color: var(--green); font-size: 13px; font-weight: 750; }
.chapter-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.chapter-navigation > a { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: var(--paper-2); border-radius: 10px; }
.chapter-navigation span { color: var(--green); font-family: var(--mono); font-size: 9px; }
.chapter-navigation strong { font-size: 13px; line-height: 1.5; }
.chapter-next { text-align: right; }
.back-series { display: inline-block; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 90px; padding-block: 78px 110px; }
.about-aside { position: sticky; top: 105px; align-self: start; }
.about-aside h2 { margin: 0 0 16px; font-size: 29px; line-height: 1.3; letter-spacing: -.035em; }
.about-aside p { color: var(--muted); }
.about-facts { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.about-facts li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.about-facts span { color: var(--muted); }
.about-content section { margin-bottom: 66px; }
.about-content h2 { margin: 0 0 22px; color: var(--green); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.about-content h3 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.02em; }
.about-content p, .about-content li { color: var(--muted); }
.about-experience article { padding: 24px 0; border-top: 1px solid var(--line); }
.about-experience article > span { color: var(--green); font-family: var(--mono); font-size: 10px; }
.about-experience article h3 { margin-top: 12px; }
.about-experience article p { margin: 0; font-size: 14px; }
.impact-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.impact-list li { display: flex; flex-direction: column; padding: 20px; background: var(--paper-2); border-radius: 10px; }
.impact-list strong { color: var(--green); font-size: 28px; letter-spacing: -.04em; }
.impact-list span { color: var(--muted); font-size: 11px; }
.education-list > p { display: flex; justify-content: space-between; gap: 25px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.education-list > p span { color: var(--muted); font-size: 13px; }

/* Footer */
.contact-band { overflow: hidden; padding: 85px 0; color: #f3f7f4; background: var(--green-dark); }
.contact-band .shell { position: relative; }
.contact-band p { margin: 0 0 13px; color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .09em; }
.contact-band h2 { max-width: 760px; margin: 0 0 28px; font-size: clamp(33px, 4.8vw, 54px); line-height: 1.12; letter-spacing: -.05em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-email { color: #f3f7f4; border-color: rgba(243, 247, 244, .42); }
.button-email:hover { color: var(--green-dark); background: #f3f7f4; border-color: #f3f7f4; }
.site-footer { padding: 60px 0 28px; color: #edf5f0; background: var(--dark); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; }
.footer-kicker { margin: 0; color: var(--lime); font-size: clamp(25px, 3.6vw, 40px); font-weight: 780; letter-spacing: -.045em; }
.footer-note { margin: 6px 0 0; color: #91a198; font-size: 13px; }
.footer-links { display: flex; gap: 20px; font-size: 12px; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 18px; color: #73847b; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 9px; }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found strong { display: block; color: var(--green); font-size: clamp(90px,20vw,210px); line-height: .85; letter-spacing: -.09em; }
.not-found p { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .hero, .series-hero { grid-template-columns: 1fr; gap: 45px; }
  .hero { padding-block: 70px; }
  .hero-brief { max-width: 620px; }
  .series-promo { grid-template-columns: 1fr; gap: 34px; }
  .series-promo-main { padding-right: 0; }
  .series-promo-path { padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .work-grid, .experience-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 310px; }
  .knowledge-grid { grid-template-columns: repeat(2,1fr); }
  .knowledge-card:nth-child(2) { border-right: 0; }
  .knowledge-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .knowledge-card:nth-child(3) { padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 55px; }
  .about-aside { position: static; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); --radius: 13px; }
  .header-inner { min-height: 64px; }
  .brand-copy small { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 64px 14px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 18px 45px rgba(0,0,0,.15); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 9px; }
  .site-nav a::after { display: none; }
  .site-nav .nav-github { margin-top: 6px; text-align: center; }
  .theme-toggle { position: absolute; right: 17px; bottom: 16px; }
  .hero { padding-block: 55px; }
  .hero h1 { font-size: 44px; }
  .hero-intro { font-size: 16px; }
  .hero-actions, .series-hero-actions, .contact-actions { align-items: stretch; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metrics article { min-height: 96px; padding: 15px; }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metrics article:nth-child(3) { padding-left: 0; }
  .section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .section-heading h2 { font-size: 34px; }
  .section-more { justify-self: start; }
  .series-promo { padding: 28px 22px; border-radius: 16px; }
  .series-promo h2 { font-size: 38px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card { min-height: 270px; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .knowledge-card h3 { margin-top: 35px; }
  .post-row { grid-template-columns: 1fr 24px; gap: 10px; }
  .post-kind, .post-row time { grid-column: 1; }
  .post-row div { grid-column: 1; }
  .post-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .page-hero, .page-hero-compact { padding-block: 58px 42px; }
  .page-hero h1, .page-hero-compact h1 { font-size: 43px; }
  .writing-main { padding-block: 42px 80px; }
  .writing-series { grid-template-columns: 1fr; padding: 27px 22px; }
  .writing-series-route { grid-column: 1; }
  .writing-series > b { grid-column: 1; grid-row: auto; }
  .notes-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .series-hero { padding-block: 58px; }
  .series-hero h1 { font-size: 49px; }
  .series-context-grid { grid-template-columns: 1fr; gap: 22px; }
  .series-chapters { padding-block: 70px; }
  .series-section-heading { grid-template-columns: 1fr; gap: 5px; }
  .series-section-heading .section-index { grid-column: 1; }
  .chapter-list a { grid-template-columns: 42px 1fr 20px; gap: 12px; padding: 23px 0; }
  .chapter-list h3 { font-size: 18px; }
  .longform-callout { grid-template-columns: 1fr; padding: 28px 22px; }
  .series-ribbon { margin: 25px 14px 0; }
  .post-header, .series-article .post-header { padding: 48px 18px 38px; }
  .post-header h1 { font-size: 37px; }
  .post-dek { font-size: 16px; }
  .post-body { padding: 48px 18px 90px; }
  .post-body p, .post-body li { font-size: 15.5px; }
  .post-body h2 { font-size: 26px; }
  .post-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .chapter-navigation { grid-template-columns: 1fr; }
  .chapter-next { text-align: left; }
  .impact-list { grid-template-columns: 1fr; }
  .education-list > p { align-items: flex-start; flex-direction: column; gap: 3px; }
  .contact-band { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
}
