/* ============================================================
   Graham Kindermann — Shared Stylesheet
   Extracted from per-page <style> blocks for cache efficiency.
   Each page keeps only its unique rules in an inline <style>.
   ============================================================ */

/* Self-hosted fonts — Inter (sans) + Source Serif 4 (serif) */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/inter-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/inter-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/source-serif-4-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/source-serif-4-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/source-serif-4-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/source-serif-4-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/source-serif-4-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/source-serif-4-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Variables */
:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --faint: #a8a8a2;
  --rule: #e5e5e0;
  --bg: #faf8f3;
  --accent: #7a1f2b;
}

/* Reset */
* { box-sizing: border-box; }
html { margin: 0; padding: 0; }
body {
  margin: 0; padding: 0;
  overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Iowan Old Style", serif;
  font-optical-sizing: auto;
  font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.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;
}

/* Typography */
p { margin: 0 0 1.35rem; }
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, text-underline-offset 0.15s ease;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

/* Top nav */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0 48px;
}
.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.site-nav .nav-name {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-nav .nav-name:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-nav .nav-links {
  display: flex;
  gap: 2rem;
}
.site-nav .nav-links a {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav .nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.site-nav .nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

/* Main content area */
main { max-width: 960px; margin: 0 auto; padding: 128px 48px 128px; }

/* Hero */
.eyebrow {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.tagline {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 3.25rem;
}
h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 3.5rem; font-weight: 500;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.025em;
  margin: 0 0 3.5rem; line-height: 1.06;
  text-wrap: balance;
}
.lede {
  font-size: 1.08rem; line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  color: var(--muted);
  text-wrap: balance;
}
.hero-body { font-size: 1rem; color: var(--muted); margin: 0 0 2.75rem; line-height: 1.55; }
.social-proof { font-family: "Inter", -apple-system, sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; color: var(--faint); margin-top: 1.25rem; }
.scarcity {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* CTA buttons */
.cta {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.25rem 0 0;
}
.cta a {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cta a:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(122, 31, 43, 0.15);
}

/* Proof strip */
.proof {
  margin: 4.5rem 0 0;
  padding: 1.75rem 0 1.75rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}
.proof .proof-label {
  grid-column: 1 / -1;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.25rem;
}
.proof .item {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}
.case-study {
  margin: 4.5rem 0 0;
  padding: 2rem 0 2rem;
  border-top: 1px solid var(--rule);
}
.case-study-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0.75rem 0 1.25rem;
  line-height: 1.35;
}
.case-study-body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 38em;
}
.case-study-body:last-child { margin-bottom: 0; }

/* Section labels */
.section-label {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 5rem 0 1.5rem;
}

/* Drag list: numbered, lightly ruled */
ol.drag {
  list-style: none;
  counter-reset: drag;
  margin: 2rem 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}
ol.drag li {
  counter-increment: drag;
  position: relative;
  padding: 1.1rem 0 1.1rem 3rem;
  border-bottom: 1px solid var(--rule);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 36rem;
}
ol.drag li::before {
  content: counter(drag, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.2rem;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* Process: step sequence */
.process {
  margin: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.process .step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.process .step:last-child { border-bottom: 1px solid var(--rule); }
.process .step-num {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.process .step-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}
.process .step-body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.process .step-cta {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.75rem 0 0;
}
.process .step-cta a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.process .step-cta a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Block elements */
.consequence {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.25rem 0 2.25rem;
  font-style: italic;
  color: var(--ink);
}
.section-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.hero-break {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 4rem 0 0;
}

/* On-ramps (engagement ladder) */
.onramps {
  margin: 2rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0;
}
.onramp {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--rule);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.onramp:last-child { border-right: none; }
.onramp.featured {
  background: rgba(122, 31, 43, 0.035);
}
.onramp:hover {
  background: rgba(122, 31, 43, 0.04);
  box-shadow: inset 0 0 0 1px rgba(122, 31, 43, 0.12);
}
.onramp.featured:hover {
  background: rgba(122, 31, 43, 0.06);
}
.onramp-price {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.onramp-for {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.onramp-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem;
  color: var(--ink);
}
.onramp-body {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
  line-height: 1.5;
}
.onramp-cta {
  margin: 0;
}
.onramp-cta a {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
}
.onramp-cta a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* About body */
.about-body {
  margin: 2rem 0 2.5rem;
}
.about-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.about-body p:last-child { margin-bottom: 0; }

/* Writing section enhancements */
.writing-detail {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

/* Substack subscribe box */
.substack-box {
  margin: 2.25rem 0 2.5rem;
  padding: 1.75rem 1.75rem 1.25rem;
  border: 1px solid var(--rule);
  background: rgba(122, 31, 43, 0.025);
}
.substack-label {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.substack-box iframe {
  display: block;
  width: 100%;
  min-height: 150px;
  border: 0;
  background: transparent;
}

/* Dark closing section — full-bleed via calc() */
.closing {
  background: var(--ink);
  color: var(--bg);
  margin: 0 calc(-50vw + 50%);
  padding: 5rem calc(50vw - 50%) 4rem;
  border-top: 2px solid var(--accent);
}
.closing-inner {
  max-width: 960px;
  margin: 0 auto;
}
.closing .section-label {
  color: #c4808a;
}
.closing p {
  color: #c8c8c2;
}
.closing .closing-thesis {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--bg);
  margin: 0 0 2.5rem;
  text-wrap: balance;
}
.closing .contact-email {
  display: inline-block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid #c4808a;
  padding-bottom: 0.15rem;
  margin-bottom: 2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.closing .contact-email:hover {
  color: #c4808a;
  border-color: var(--bg);
  text-decoration: none;
}
.closing .contact-links {
  display: flex;
  gap: 1.75rem;
  margin-top: 0.5rem;
}
.closing .contact-links a {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a8a2;
  text-decoration: none;
  transition: color 0.15s ease;
}
.closing .contact-links a:hover {
  color: var(--bg);
  text-decoration: none;
}
.closing .cta a {
  border-color: #c4808a;
  color: var(--bg);
}
.closing .cta a:hover {
  background: #c4808a;
  color: var(--ink);
}
.closing footer {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b5b5b0;
  margin: 0 0 0.75rem;
}
.footer-tagline {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  color: #a5a5a0;
  line-height: 1.5;
  margin: 0;
}
.footer-col-title {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 0.85rem;
}
.footer-col a {
  display: block;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #b5b5b0;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--bg);
  text-decoration: none;
}
.footer-copyright {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #555;
}

/* Scroll behavior */
html { scroll-behavior: smooth; scroll-padding-top: 68px; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Full-screen nav overlay */
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.nav-open {
  position: fixed;
  width: 100%;
}
body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay a {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-overlay a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Scroll fade-in animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom text selection */
::selection {
  background: rgba(122, 31, 43, 0.15);
  color: var(--ink);
}

/* Focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Utility classes */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* Print styles */
@media print {
  .site-nav, .nav-overlay, .mobile-splash, .nav-toggle { display: none !important; }
  .closing footer, .contact-links, .substack-box, iframe { display: none !important; }
  main { padding-top: 0 !important; }
  .closing { background: #fff !important; color: #1a1a1a !important; border-top: 1px solid #ccc !important; }
  .closing .closing-thesis, .closing .contact-email { color: #1a1a1a !important; }
  .closing .section-label { color: #7a1f2b !important; }
  .closing .cta { display: none !important; }
  a { text-decoration: none !important; color: #1a1a1a !important; }
  body { font-size: 12pt; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta a {
    transition: background 0.2s ease, color 0.2s ease;
  }
  .cta a:hover {
    transform: none;
    box-shadow: none;
  }
  .onramp {
    transition: background 0.2s ease;
  }
  .onramp:hover {
    box-shadow: none;
  }
  .nav-overlay {
    transition: none;
  }
  .nav-toggle span {
    transition: none;
  }
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  .site-nav .nav-links { gap: 1.25rem; }
  main { padding: 108px 36px 108px; }
  h1 { font-size: 2.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .closing { margin: 0 calc(-50vw + 50%); padding: 4.5rem calc(50vw - 50%) 3.5rem; }
  .onramps { grid-template-columns: 1fr 1fr; }
}

/* Mobile breakpoint */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav .nav-links { display: none; }
  .site-nav { padding: 0 20px; }
  .site-nav-inner { height: 46px; }
  main { padding: 72px 24px 88px; }
  h1 { font-size: 2.25rem; margin-bottom: 2.5rem; }
  .lede { font-size: 1rem; }
  body { font-size: 17px; line-height: 1.75; }
  .proof { grid-template-columns: 1fr; }
  .process .step { grid-template-columns: 3rem 1fr; gap: 0.75rem; }
  ol.drag li { padding-left: 2.5rem; }
  .closing { margin: 0 calc(-50vw + 50%); padding: 4rem 24px 3rem; }
  .closing .closing-thesis { font-size: 1.35rem; }
  .closing .contact-email { font-size: 1.1rem; }
  .closing .contact-links { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .onramps { grid-template-columns: 1fr; }
  .onramp { border-right: none; border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
  .onramp:last-child { border-bottom: none; }
  .substack-box { padding: 1.25rem; }
}
