:root {
  --ink: #111512;
  --ink-soft: #28302b;
  --muted: #667068;
  --paper: #f4f2eb;
  --paper-deep: #e9e6dc;
  --white: #fffef9;
  --night: #0c110e;
  --night-raised: #151c17;
  --night-soft: #aeb9b1;
  --line: rgba(17, 21, 18, 0.16);
  --line-dark: rgba(255, 255, 255, 0.16);
  --acid: #c7ff4f;
  --mint: #73edb1;
  --cyan: #5ed7ed;
  --coral: #ff6f59;
  --yellow: #ffd45e;
  --shadow: 0 28px 80px rgba(6, 10, 7, 0.18);
  --radius: 24px;
  --radius-small: 12px;
  --display: "Manrope", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 5px;
}

::selection { background: var(--acid); color: var(--ink); }

.wrap {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus { top: 18px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 235, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--night);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-copy strong,
.brand-copy small { display: block; }

.brand-copy strong {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-copy i { color: var(--coral); font-style: normal; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #465048;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--white); color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--line); }

.site-nav .nav-rss {
  margin-left: 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.site-nav .nav-rss:hover { background: var(--ink); color: var(--white); }

/* Shared typography */
.eyebrow,
.sidebar-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #30533e;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.eyebrow-light { color: var(--acid); }
.section-index {
  display: block;
  margin-bottom: 18px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Homepage hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  left: -360px;
  top: -420px;
  border: 1px solid rgba(199,255,79,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(199,255,79,.018), 0 0 0 160px rgba(199,255,79,.012);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-shell { position: relative; z-index: 1; padding-block: 34px 38px; }
.hero-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-dark);
  color: #8f9b92;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .72fr);
  align-items: center;
  gap: clamp(52px, 7vw, 108px);
  padding-block: 72px 66px;
}

.hero h1 {
  max-width: 830px;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(54px, 6.1vw, 94px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.065em;
}

.hero h1 em { color: var(--acid); font-style: normal; }

.hero-copy > p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--night-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.button.primary { background: var(--acid); color: var(--ink); }
.button.primary:hover { background: var(--white); transform: translateY(-2px); }
.button.ghost { border-color: var(--line-dark); color: var(--white); }
.button.ghost:hover { border-color: var(--white); }
.button.ink { margin-top: 30px; background: var(--ink); color: var(--white); }
.button.ink:hover { background: #2d382f; transform: translateY(-2px); }

.featured-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(21,28,23,.94);
  box-shadow: var(--shadow);
}

.featured-card:hover { border-color: rgba(199,255,79,.55); transform: translateY(-4px) rotate(.2deg); }
.featured-image,
.post-card-image { position: relative; display: block; overflow: hidden; background: #182019; }
.featured-image { aspect-ratio: 1.91 / 1; border-bottom: 1px solid var(--line-dark); }

.featured-image::after,
.post-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,10,8,.18), transparent 48%);
}

.featured-image img,
.post-card-image img,
.post-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}

.featured-card:hover .featured-image img,
.post-card:hover .post-card-image img { transform: scale(1.035); }

.featured-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.featured-body { padding: 25px 27px 27px; }
.featured-body h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.featured-body h2 a:hover,
.post-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.featured-body p { margin: 14px 0 22px; color: var(--night-soft); font-size: 14px; line-height: 1.55; }

.post-card-meta,
.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.featured-card .post-card-meta { color: #879389; }
.post-card-meta > * + *::before,
.post-meta-line > * + *::before { content: "/"; margin-right: 12px; color: var(--coral); }

.round-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--white); font-size: 13px; font-weight: 700; }
.round-link b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--ink); }
.round-link:hover b { transform: rotate(45deg); }

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(250px, 1.4fr);
  border-top: 1px solid var(--line-dark);
}

.hero-ledger > * { min-height: 100px; margin: 0; padding: 24px 28px 0 0; border-right: 1px solid var(--line-dark); }
.hero-ledger > * + * { padding-left: 28px; }
.hero-ledger > *:last-child { border-right: 0; padding-right: 0; }
.hero-ledger strong { display: block; color: var(--acid); font-family: var(--display); font-size: 26px; line-height: 1; }
.hero-ledger span { display: block; margin-top: 8px; color: #89948c; font-size: 11px; }
.hero-ledger p { color: #aab4ac; font-family: var(--mono); font-size: 10px; line-height: 1.75; letter-spacing: .05em; text-transform: uppercase; }

/* Topic ribbon */
.topic-strip { border-bottom: 1px solid var(--line); background: var(--acid); }
.topic-strip-inner { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.topic-strip-label { flex: 0 0 auto; padding-right: 30px; border-right: 1px solid rgba(17,21,18,.24); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.topic-links { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topic-links::-webkit-scrollbar { display: none; }
.topic-links a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid rgba(17,21,18,.18); border-radius: 999px; font-size: 12px; font-weight: 700; }
.topic-links a:hover { background: var(--ink); color: var(--white); }
.topic-links .topic-all { border-color: transparent; margin-left: auto; }

/* Article index */
.posts-section { padding: 112px 0 124px; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,390px); gap: 80px; align-items: end; margin-bottom: 52px; }
.section-heading h2,
.post-footer-heading h2 {
  margin: 13px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
}
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 16px; }

.post-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 28px 22px; }
.post-card {
  grid-column: span 4;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: transparent;
}

.post-card:nth-child(1),
.post-card:nth-child(2) { grid-column: span 6; }
.post-card:nth-child(1) .post-card-image,
.post-card:nth-child(2) .post-card-image { aspect-ratio: 1.75 / 1; }

.post-card-image { aspect-ratio: 1.45 / 1; margin-top: 16px; border-radius: 16px; }
.card-index { position: absolute; z-index: 2; right: 14px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(12,17,14,.86); color: var(--white); font-family: var(--mono); font-size: 9px; }
.post-card-body { display: flex; flex-direction: column; padding: 20px 2px 0; }
.post-card h3 { margin: 15px 0 0; font-family: var(--display); font-size: clamp(22px, 2.2vw, 31px); line-height: 1.12; letter-spacing: -.035em; }
.post-card p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }

.text-link,
.repo-link,
.resource-links a,
.prose a { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link { font-size: 13px; }
.text-link:hover { color: #38644a; }
.repo-link { color: #8a4c1a; font-size: 12px; }
.prose a { color: #176a46; text-decoration-line: underline; }

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 68px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.pagination > *:last-child { text-align: right; }
.pagination span { color: #949b95; }

/* Editorial method */
.approach-band { padding: 120px 0; background: var(--cyan); color: var(--ink); }
.approach-grid { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); gap: clamp(70px,10vw,150px); align-items: start; }
.approach-heading h2 { margin: 16px 0 0; font-family: var(--display); font-size: clamp(52px,6vw,84px); line-height: .95; letter-spacing: -.06em; }
.intro-copy p { max-width: 680px; margin: 0; font-size: clamp(18px,2vw,22px); line-height: 1.55; }
.principles { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(17,21,18,.25); }
.principles li { display: grid; grid-template-columns: 42px 155px 1fr; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid rgba(17,21,18,.22); }
.principles b { font-family: var(--mono); font-size: 9px; color: #365749; }
.principles strong { font-family: var(--display); line-height: 1.35; }
.principles span { color: #34433a; }

/* Page and post headers */
.page-hero,
.post-hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); }
.page-hero::after,
.post-hero::after { content: "A"; position: absolute; right: -35px; bottom: -170px; color: rgba(199,255,79,.055); font-family: var(--display); font-size: 520px; font-weight: 800; line-height: 1; pointer-events: none; }
.page-hero { padding: 110px 0 100px; }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,430px); gap: 80px; align-items: end; }
.page-hero h1 { margin: 18px 0 0; font-family: var(--display); font-size: clamp(60px,8vw,110px); line-height: .9; letter-spacing: -.065em; }
.page-hero p { margin: 0 0 4px; color: var(--night-soft); font-size: 18px; line-height: 1.55; }

.post-hero { padding: 0 0 86px; }
.post-hero-topline { position: relative; z-index: 1; min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); color: #87938a; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.back-link { color: var(--night-soft); font-size: 10px; font-weight: 700; }
.back-link:hover { color: var(--acid); }
.post-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,980px); padding-block: 78px 58px; }
.post-hero h1 { max-width: 1050px; margin: 21px 0 0; font-family: var(--display); font-size: clamp(50px,7.2vw,102px); line-height: .96; letter-spacing: -.062em; }
.post-hero .post-meta-line { color: #87938a; }
.post-deck { max-width: 780px; margin: 28px 0 0; color: var(--night-soft); font-size: clamp(18px,2vw,22px); line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.tag-row a { padding: 7px 11px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--acid); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tag-row a:hover { background: var(--acid); color: var(--ink); }
.post-hero-image { position: relative; z-index: 2; aspect-ratio: 2.2 / 1; margin-top: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); background: #182019; box-shadow: var(--shadow); }

/* Reading surface */
.content-section { padding: 100px 0 120px; background: var(--white); }
.article-grid { display: grid; grid-template-columns: 180px minmax(0,760px); gap: clamp(50px,8vw,110px); justify-content: center; min-width: 0; }
.article-sidebar { position: sticky; top: 112px; align-self: start; padding-top: 3px; }
.article-sidebar p { margin: 10px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.article-sidebar p strong { color: var(--ink); font-family: var(--display); font-size: 26px; }
.resource-links { display: grid; gap: 11px; margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.resource-links a { color: #176a46; font-size: 12px; line-height: 1.4; }

.prose { min-width: 0; color: var(--ink-soft); font-size: 18px; overflow-wrap: anywhere; }
.page-prose { max-width: 820px; }
.directory-prose { max-width: 1280px; }
.prose > *:first-child { margin-top: 0; }
.post-shell .prose > p:first-child { color: var(--ink); font-size: 22px; line-height: 1.62; }
.prose h2 { margin: 62px 0 18px; color: var(--ink); font-family: var(--display); font-size: 34px; line-height: 1.12; letter-spacing: -.035em; }
.prose h3 { margin: 38px 0 12px; color: var(--ink); font-family: var(--display); font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.prose p,
.prose li { color: #354039; }
.prose ul,
.prose ol { padding-left: 25px; }
.prose li + li { margin-top: 9px; }
.prose hr { margin: 52px 0; border: 0; border-top: 1px solid var(--line); }
.prose blockquote { margin: 36px 0; padding: 22px 25px; border-left: 4px solid var(--coral); background: var(--paper); color: var(--ink); }
.prose blockquote p { margin: 0; color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 600; }
.prose code { padding: 2px 6px; border: 1px solid rgba(17,21,18,.11); border-radius: 5px; background: var(--paper); color: #176a46; font-family: var(--mono); font-size: .86em; }
.prose pre { max-width: 100%; margin: 30px 0; padding: 22px; overflow: auto; border-radius: 13px; background: var(--night); color: #e9f3eb; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.prose pre code { padding: 0; border: 0; background: transparent; color: #dff8e8; font-size: 13px; }
.prose img { border-radius: 14px; }
.page-intro { max-width: 680px; font-size: 21px; }

/* Related notes and topic directory */
.post-footer { padding: 105px 0 115px; background: var(--night); color: var(--white); }
.post-footer-heading { position: relative; }
.post-footer-heading h2 { max-width: 790px; }
.post-pagination { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.post-pagination a { min-height: 220px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 22px; padding: 28px; border: 1px solid var(--line-dark); border-radius: 18px; background: var(--night-raised); }
.post-pagination a:hover { border-color: var(--acid); transform: translateY(-3px); }
.post-pagination small { color: #87938a; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.post-pagination strong { max-width: 480px; align-self: end; font-family: var(--display); font-size: clamp(20px,2.2vw,28px); line-height: 1.18; letter-spacing: -.025em; }
.post-pagination span { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--ink); }

.tag-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 38px 0 0; }
.tag-list a { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.tag-list a:hover { border-color: var(--ink); background: var(--acid); transform: translateY(-2px); }
.tag-list span { color: var(--ink); font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.tag-list small { color: var(--muted); font-family: var(--mono); font-size: 8px; text-align: right; text-transform: uppercase; }
.tag-list small b { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; }
.topic-back { margin-top: 40px; }
.directory-prose .post-grid { margin-top: 40px; }
.directory-prose .post-card { grid-column: span 4; }
.prose .post-card h3 { margin: 15px 0 0; }
.prose .post-card p { color: var(--muted); }
.prose .post-card a,
.prose .tag-list a { color: inherit; text-decoration: none; }

/* Footer */
.site-footer { padding: 92px 0 24px; background: #070a08; color: var(--white); }
.footer-top { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr); gap: 80px; padding-bottom: 76px; }
.footer-statement p { margin: 24px 0 0; font-family: var(--display); font-size: clamp(42px,5vw,68px); line-height: 1; letter-spacing: -.055em; }
.footer-statement p strong { color: var(--acid); font-weight: 700; }
.footer-directory { display: grid; grid-template-columns: repeat(2,1fr); gap: 48px; align-self: end; }
.footer-directory > div { display: grid; align-content: start; gap: 9px; }
.footer-directory small { margin-bottom: 9px; color: #718077; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.footer-directory a { color: #b7c0b9; font-size: 14px; }
.footer-directory a:hover { color: var(--acid); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: #718077; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom div { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--white); }

@media (hover: hover) {
  .button,
  .featured-card,
  .post-card,
  .post-card img,
  .post-pagination a,
  .tag-list a,
  .round-link b { transition: transform 220ms ease, border-color 220ms ease, color 220ms ease, background 220ms ease; }
}

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(350px,.75fr); gap: 44px; }
  .hero h1 { font-size: clamp(52px,7.4vw,78px); }
  .post-card { grid-column: span 6; }
  .post-card:nth-child(1), .post-card:nth-child(2) { grid-column: span 6; }
  .directory-prose .post-card { grid-column: span 6; }
  .tag-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .wrap { width: min(100% - 40px,1280px); }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 62px 52px; }
  .hero-copy { max-width: 720px; }
  .featured-card { max-width: 650px; }
  .hero-ledger { grid-template-columns: repeat(3,1fr); }
  .hero-ledger p { grid-column: 1 / -1; min-height: auto; padding: 22px 0 0; border-top: 1px solid var(--line-dark); border-right: 0; }
  .topic-strip-inner { gap: 18px; }
  .topic-strip-label { display: none; }
  .section-heading,
  .approach-grid,
  .page-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-heading > p,
  .page-hero p { max-width: 600px; }
  .article-grid { grid-template-columns: 1fr; max-width: 760px; }
  .article-sidebar { position: static; display: flex; align-items: center; gap: 22px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
  .article-sidebar p { margin: 0; }
  .resource-links { display: flex; flex-wrap: wrap; margin: 0 0 0 auto; padding: 0 0 0 22px; border: 0; border-left: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px,1280px); }
  .nav-wrap { min-height: 70px; gap: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy small { display: none; }
  .site-nav a { min-height: 38px; padding: 0 9px; font-size: 12px; }
  .site-nav .nav-rss { display: none; }
  .hero-shell { padding-top: 25px; }
  .hero-topline span:first-child { display: none; }
  .hero-topline { justify-content: flex-end; padding-bottom: 22px; }
  .hero-grid { padding-block: 48px 44px; gap: 42px; }
  .hero h1 { font-size: clamp(43px,13vw,61px); line-height: .97; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .featured-body { padding: 21px; }
  .hero-ledger { grid-template-columns: repeat(3,1fr); }
  .hero-ledger > * { min-height: 86px; padding: 20px 10px 0 0; }
  .hero-ledger > * + * { padding-left: 12px; }
  .hero-ledger strong { font-size: 21px; }
  .hero-ledger span { font-size: 9px; line-height: 1.35; }
  .hero-ledger p { padding: 18px 0 0; }
  .topic-strip-inner { min-height: 66px; }
  .posts-section,
  .approach-band { padding: 78px 0 86px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2,
  .post-footer-heading h2 { font-size: clamp(39px,11vw,54px); }
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-card,
  .post-card:nth-child(1),
  .post-card:nth-child(2),
  .directory-prose .post-card { grid-column: auto; }
  .post-card-image,
  .post-card:nth-child(1) .post-card-image,
  .post-card:nth-child(2) .post-card-image { aspect-ratio: 1.75 / 1; }
  .principles li { grid-template-columns: 30px 1fr; gap: 8px 12px; }
  .principles span { grid-column: 2; }
  .page-hero { padding: 78px 0 70px; }
  .page-hero h1 { font-size: clamp(54px,18vw,78px); }
  .post-hero { padding-bottom: 54px; }
  .post-hero-topline { min-height: 62px; }
  .post-hero-grid { padding-block: 56px 40px; }
  .post-hero h1 { font-size: clamp(42px,12vw,62px); }
  .post-deck { font-size: 17px; }
  .post-hero-image { aspect-ratio: 1.55 / 1; border-radius: 15px; }
  .content-section { padding: 68px 0 82px; }
  .article-sidebar { align-items: flex-start; flex-wrap: wrap; }
  .resource-links { width: 100%; margin: 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .prose { font-size: 16px; }
  .post-shell .prose > p:first-child { font-size: 19px; }
  .prose h2 { margin-top: 48px; font-size: 29px; }
  .prose pre { margin-inline: -4px; padding: 15px; }
  .post-footer { padding: 78px 0 84px; }
  .post-pagination { grid-template-columns: 1fr; }
  .post-pagination a { min-height: 170px; }
  .tag-list { grid-template-columns: 1fr; }
  .footer-top { gap: 55px; padding-bottom: 55px; }
  .footer-directory { gap: 25px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
