:root {
  --ink: #07151e;
  --ink-soft: #30444f;
  --paper: #f8f6f2;
  --white: #ffffff;
  --teal: #007f83;
  --teal-deep: #005e62;
  --orange: #c65324;
  --orange-deep: #973916;
  --orange-soft: #f2ded2;
  --line: #dedbd4;
  --max: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.68; }
a { color: inherit; }
.site-header { min-height: 82px; max-width: var(--max); margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 6px solid var(--orange); border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.identity-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: white; font: 700 13px/1 ui-monospace, monospace; letter-spacing: .08em; }
.identity strong { display: block; font-size: 15px; letter-spacing: .01em; }
.identity small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 12px; }
nav { display: flex; align-items: center; gap: 5px; }
nav a { padding: 10px 12px; text-decoration: none; color: var(--ink-soft); font-size: 13px; font-weight: 650; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--ink); border-color: var(--orange); }
.nav-toggle { display: none; border: 1px solid var(--line); background: white; padding: 9px 12px; font-weight: 700; }
main { min-height: 70vh; }
.eyebrow { margin: 0 0 18px; color: var(--orange-deep); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.home-hero { max-width: var(--max); min-height: 520px; margin: 0 auto; padding: 84px 28px 68px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); align-items: center; gap: 80px; }
.home-copy h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.home-copy h1 em { color: var(--orange); font-weight: 500; }
.home-copy > p:last-child { max-width: 650px; margin: 34px 0 0; color: var(--ink-soft); font-size: 20px; line-height: 1.55; }
.home-signal { position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px 0; color: var(--ink-soft); font: 800 11px/1 ui-monospace, monospace; letter-spacing: .18em; }
.home-signal::before, .home-signal::after { content: ""; position: absolute; border-radius: 50%; }
.home-signal::before { width: 230px; height: 230px; top: 24px; background: radial-gradient(circle at 40% 35%, rgba(198,83,36,.30), rgba(198,83,36,.03) 65%); border: 1px solid rgba(198,83,36,.38); }
.home-signal::after { width: 100px; height: 100px; top: 89px; background: var(--orange); box-shadow: 22px 18px 0 -18px var(--ink); }
.home-signal i { width: 2px; flex: 1; margin: 12px 0; background: var(--orange); z-index: 2; }
.home-signal span { z-index: 2; }

.territories { max-width: var(--max); margin: 0 auto 100px; padding: 72px 28px 20px; border-top: 1px solid var(--line); }
.section-intro { max-width: 850px; padding: 0 0 42px; }
.section-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -.025em; }
.territory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.framework-card { min-height: 345px; padding: 34px; position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.framework-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(7,21,30,.08); }
.framework-card.primary { background: var(--ink); color: white; border-color: var(--ink); }
.framework-card.orange { background: var(--orange); color: white; border-color: var(--orange); }
.card-number { position: absolute; top: 24px; right: 26px; color: var(--orange); font: 800 13px/1 ui-monospace, monospace; }
.card-type { color: var(--orange-deep); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.primary .card-type { color: #f2a27e; }
.orange .card-number, .orange .card-type { color: white; }
.framework-card h3 { margin: 55px 0 22px; font-family: Georgia, serif; font-size: 30px; line-height: 1.18; font-weight: 500; letter-spacing: -.02em; }
.framework-card p { margin: 0; color: var(--ink-soft); }
.primary p { color: #c1ced3; }
.orange p { color: #fff4ed; }
.card-link { margin-top: auto; padding-top: 34px; font-size: 14px; font-weight: 750; }
.card-link b { color: var(--orange); margin-left: 8px; }
.card-status { margin-top: auto; padding-top: 34px; color: var(--orange-deep); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.orange .card-status { color: white; }

.bio { max-width: var(--max); margin: 0 auto 110px; padding: 78px 28px; display: grid; grid-template-columns: .8fr 1.4fr; gap: 80px; background: var(--ink); color: white; border-left: 10px solid var(--orange); }
.bio h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 500; }
.bio .eyebrow { color: #f2a27e; }
.bio-copy { max-width: 720px; }
.bio-copy p { margin: 0 0 22px; color: #d4dfe3; font-size: 18px; line-height: 1.7; }
.bio-link { display: inline-block; margin-top: 8px; padding: 12px 16px; background: var(--orange); color: white; font-size: 14px; font-weight: 750; text-decoration: none; }
.bio-link:hover { background: var(--orange-deep); }

.theme-page { max-width: var(--max); margin: 0 auto; padding: 0 28px 100px; }
.theme-hero { min-height: 540px; padding: 92px 0 78px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.theme-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(66px, 10vw, 126px); line-height: .82; letter-spacing: -.065em; font-weight: 500; }
.theme-hero h1 em { display: inline-block; margin-left: 1.5em; color: var(--orange); font-size: .38em; line-height: 1; letter-spacing: -.025em; font-weight: 500; }
.theme-deck { max-width: 800px; margin: 58px 0 0; color: var(--ink-soft); font: 500 clamp(24px, 3.2vw, 40px)/1.28 Georgia, serif; }
.orange-hero { margin: 28px -28px 0; padding-left: 58px; padding-right: 58px; min-height: 570px; background: var(--orange); color: white; border: 0; }
.orange-hero .eyebrow { color: white; }
.orange-hero h1 em { color: var(--ink); }
.orange-hero .theme-deck { color: white; }
.thesis { margin: 74px 0; padding: 54px; display: grid; grid-template-columns: 150px 1fr; gap: 34px; background: var(--ink); color: white; border-left: 9px solid var(--orange); }
.thesis span { color: #f2a27e; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.thesis h2 { max-width: 850px; margin: 0; font: 500 clamp(28px, 4vw, 46px)/1.18 Georgia, serif; letter-spacing: -.025em; }
.theme-columns { margin: 86px 0; display: grid; grid-template-columns: .85fr 1.3fr; gap: 80px; }
.theme-columns h2 { margin: 0; font: 500 clamp(32px, 4vw, 48px)/1.12 Georgia, serif; letter-spacing: -.025em; }
.prose p { margin: 0 0 22px; color: #182c36; font-size: 18px; line-height: 1.72; }
.external-cta { display: inline-block; margin-top: 15px; padding: 13px 17px; background: var(--orange); color: white; font-size: 14px; font-weight: 750; text-decoration: none; }
.publication-section, .protocol { margin-top: 100px; padding-top: 74px; border-top: 1px solid var(--line); }
.publication-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.publication { min-height: 275px; padding: 30px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.publication:hover { transform: translateY(-3px); border-color: var(--orange); }
.publication > span { color: var(--orange-deep); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.publication h3 { margin: 32px 0 16px; font: 500 26px/1.18 Georgia, serif; letter-spacing: -.015em; }
.publication p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.publication b { margin-top: auto; padding-top: 24px; color: var(--orange-deep); font-size: 13px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { min-height: 260px; padding: 28px; background: white; border-top: 5px solid var(--orange); }
.step > span { color: var(--orange); font: 800 12px/1 ui-monospace, monospace; }
.step h3 { margin: 35px 0 17px; font: 500 30px/1 Georgia, serif; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.58; }
.status-section { margin-top: 100px; padding: 70px 54px; background: var(--orange-soft); }
.author-intro { margin-top: 76px; }
.authority-map { margin-top: 96px; padding-top: 74px; border-top: 1px solid var(--line); }
.authority-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.authority-links a { min-height: 190px; padding: 28px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.authority-links a:hover { transform: translateY(-3px); border-color: var(--orange); }
.authority-links span { color: var(--orange); font: 800 12px/1 ui-monospace, monospace; }
.authority-links strong { margin-top: 34px; font: 500 27px/1.15 Georgia, serif; }
.authority-links small { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
.site-footer a { text-underline-offset: 3px; }

.document { max-width: var(--max); margin: 0 auto; padding: 0 28px 90px; }
.document-hero { min-height: 520px; padding: 82px 0 70px; display: grid; grid-template-columns: 170px minmax(0, 820px); gap: 48px; border-bottom: 1px solid var(--line); }
.document-hero.compact { min-height: 420px; }
.hero-index { align-self: start; width: 126px; height: 156px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: white; }
.hero-index span { color: #91a7ae; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.hero-index strong { color: var(--orange); font: 500 46px/1 Georgia, serif; }
.document-hero h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 76px); line-height: 1.02; letter-spacing: -.048em; font-weight: 500; }
.document-hero.compact h1 { font-size: clamp(42px, 5vw, 64px); }
.hero-deck { max-width: 700px; margin: 28px 0 0; color: var(--teal-deep); font-size: 22px; font-weight: 650; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.hero-actions a { padding: 12px 16px; background: var(--teal-deep); color: white; font-size: 13px; font-weight: 750; text-decoration: none; }
.hero-actions a.download { background: var(--orange); }
.hero-actions a.download:hover { background: var(--orange-deep); }
.hero-actions a.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.document-body { max-width: var(--reading); margin: 0 auto; padding-top: 40px; }
.document-body.narrow { max-width: 800px; }
.document-section { position: relative; padding: 64px 0 18px; }
.document-section + .document-section { border-top: 1px solid var(--line); }
.document-section h2 { max-width: 690px; margin: 0 0 30px; font-family: Georgia, serif; font-size: clamp(29px, 4vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.document-section p { margin: 0 0 19px; color: #182c36; font-size: 17px; }
.section-number { position: absolute; left: -80px; top: 72px; color: var(--orange); font: 800 12px/1 ui-monospace, monospace; letter-spacing: .08em; }
blockquote { margin: 36px 0; padding: 26px 28px; color: var(--ink); background: #e9f3f2; border-left: 4px solid var(--teal); font: 500 21px/1.48 Georgia, serif; }
.definition { background: var(--ink); color: white; border-color: var(--orange); font-size: 24px; }
.signature-grid { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px 30px; }
.signature-field { min-height: 86px; display: flex; flex-direction: column; gap: 28px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.signature-field i { display: block; border-bottom: 1px solid #92a3a8; }
.version-stamp { max-width: var(--reading); margin: 70px auto 0; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 3px solid var(--ink); color: var(--ink-soft); font-size: 12px; }
.version-stamp strong { color: var(--ink); }
.conditions-list { margin: 0 0 26px; padding-left: 22px; }
.conditions-list li { margin: 10px 0; padding-left: 8px; color: #182c36; font-size: 17px; }
.equation { margin: 10px 0 34px !important; color: var(--orange) !important; font: 600 clamp(30px, 5vw, 48px)/1.1 Georgia, serif !important; letter-spacing: -.03em; }
.qualifiers { margin: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qualifiers > div { padding: 22px; background: white; border: 1px solid var(--line); }
.qualifiers strong { color: var(--teal-deep); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.qualifiers p { margin: 12px 0 0; font-size: 15px; }
.causal-chain { margin: 38px calc((760px - min(92vw, 1080px))/2); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.causal-chain span { position: relative; min-height: 100px; padding: 22px 24px; display: grid; place-items: center; text-align: center; background: white; color: var(--ink); font-size: 13px; font-weight: 750; }
.causal-chain span:not(:last-child)::after { content: "→"; position: absolute; right: -10px; z-index: 2; color: var(--orange); font-size: 18px; }
.antecedence { background: white; margin: 54px -38px 0; padding: 50px 38px 24px; border: 1px solid var(--line) !important; }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 34px 28px 48px; display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

@media (max-width: 880px) {
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  nav a { padding: 12px 0; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; gap: 35px; padding-top: 60px; }
  .home-signal { display: none; }
  .territory-grid { grid-template-columns: 1fr 1fr; }
  .bio { grid-template-columns: 1fr; gap: 34px; }
  .thesis { grid-template-columns: 1fr; }
  .theme-columns { grid-template-columns: 1fr; gap: 34px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .document-hero { grid-template-columns: 1fr; min-height: auto; gap: 30px; padding: 58px 0; }
  .hero-index { width: 92px; height: 105px; }
  .hero-index strong { font-size: 32px; }
  .section-number { position: static; display: block; margin-bottom: 15px; }
  .causal-chain { margin-left: 0; margin-right: 0; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header, .home-hero, .territories, .document, .theme-page, .site-footer { padding-left: 18px; padding-right: 18px; }
  .identity small { display: none; }
  .home-copy h1 { font-size: 49px; }
  .home-copy > p:last-child { font-size: 17px; }
  .territories { padding-top: 50px; }
  .territory-grid { grid-template-columns: 1fr; }
  .framework-card { min-height: 330px; }
  .bio { margin-left: 18px; margin-right: 18px; padding: 48px 28px; }
  .theme-hero { min-height: 450px; padding-top: 64px; }
  .theme-hero h1 { font-size: 68px; }
  .theme-hero h1 em { margin-left: .55em; font-size: .42em; }
  .orange-hero { margin-left: -18px; margin-right: -18px; padding-left: 36px; padding-right: 36px; }
  .thesis { padding: 36px 28px; }
  .publication-grid, .step-grid { grid-template-columns: 1fr; }
  .authority-links { grid-template-columns: 1fr; }
  .status-section { padding: 44px 28px; }
  .document-hero h1 { font-size: 45px; }
  .hero-deck { font-size: 18px; }
  .signature-grid, .qualifiers, .causal-chain { grid-template-columns: 1fr; }
  .causal-chain span:not(:last-child)::after { content: "↓"; right: auto; bottom: -13px; }
  .antecedence { margin-left: 0; margin-right: 0; padding-left: 22px; padding-right: 22px; }
  .version-stamp, .site-footer { flex-direction: column; }
}
