:root {
  --anthracite: #24282a;
  --slate: #424a4c;
  --ivory: #f3efe5;
  --bronze: #ab8b64;
  --sage: #89988d;
  --ink: #1e2324;
  --paper: #fbf8f0;
  --line: rgba(171, 139, 100, 0.34);
  --shadow: 0 24px 60px rgba(12, 16, 17, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  background: var(--ivory);
  color: var(--anthracite);
  border-radius: .3rem;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(36, 40, 42, .94);
  color: var(--ivory);
  border-bottom: 1px solid rgba(243, 239, 229, .12);
  backdrop-filter: blur(12px);
}
.nav-shell {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 170px; height: auto; max-height: 68px; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(243,239,229,.32);
  background: transparent;
  color: inherit;
  padding: .55rem .75rem;
  border-radius: .3rem;
  font: inherit;
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: rgba(243,239,229,.78); text-decoration: none; font-size: .88rem; letter-spacing: .08em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ivory); }
.site-nav .nav-cta { padding: .65rem 1rem; border: 1px solid var(--bronze); color: var(--ivory); }

.hero {
  min-height: min(820px, calc(100vh - 72px));
  position: relative;
  display: grid;
  align-items: end;
  color: var(--ivory);
  overflow: hidden;
  background: var(--anthracite);
}
.hero-media, .hero-media img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: right center; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(25,29,30,.9) 0%, rgba(25,29,30,.63) 45%, rgba(25,29,30,.14) 78%), linear-gradient(0deg, rgba(25,29,30,.7), transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}
.eyebrow { margin: 0 0 1rem; color: #765b3c; font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow { color: var(--bronze); }
.section-slate .eyebrow { color: #d8b98f; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; text-wrap: balance; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(4rem, 11vw, 8.8rem); letter-spacing: .02em; }
.hero-lead { max-width: 620px; margin: 1.4rem 0 2rem; color: rgba(243,239,229,.88); font: 1.25rem/1.55 var(--serif); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 1px solid var(--bronze);
  background: var(--bronze);
  color: var(--anthracite);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
}
.button:hover { filter: brightness(1.08); }
.button-ghost { background: transparent; color: var(--ivory); border-color: rgba(243,239,229,.45); }
.button-dark { background: var(--anthracite); color: var(--ivory); border-color: var(--anthracite); }

.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-dark { background: var(--anthracite); color: var(--ivory); }
.section-slate { background: var(--slate); color: var(--ivory); }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }
.section-heading { max-width: 780px; margin-bottom: 3rem; }
.section-heading h2, .content-title { margin: .2rem 0 1rem; font-size: clamp(2.35rem, 5vw, 4.5rem); }
.section-heading p { max-width: 660px; color: #596061; }
.section-dark .section-heading p, .section-slate .section-heading p { color: rgba(243,239,229,.72); }
.display-copy { font: clamp(1.55rem, 3vw, 2.6rem)/1.35 var(--serif); max-width: 960px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.split-reverse .split-media { order: -1; }
.split-copy h2 { margin: .2rem 0 1.25rem; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.split-copy p { max-width: 630px; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid var(--bronze); }
.split-media img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.image-note { margin-top: .8rem; color: rgba(243,239,229,.8); font-size: .76rem; letter-spacing: .04em; }
.section:not(.section-dark):not(.section-slate) .image-note { color: #596061; }

.facts { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts strong { color: var(--bronze); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.chapter-preview { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1px; background: rgba(243,239,229,.15); border: 1px solid rgba(243,239,229,.15); }
.chapter-preview > div { padding: clamp(2rem, 5vw, 4rem); background: var(--slate); }
.chapter-number { color: #c0cac2; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: .78rem; }
.chapter-preview h3 { margin: .65rem 0 1rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.status { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--ivory); }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--sage); }

.transparency { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transparency p { max-width: 780px; margin: 0; }

.page-hero { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem); background: var(--anthracite); color: var(--ivory); }
.page-hero h1 { max-width: 900px; margin: .25rem 0 1rem; font-size: clamp(3rem, 8vw, 6.5rem); }
.page-hero p { max-width: 700px; color: rgba(243,239,229,.75); font: 1.2rem/1.6 var(--serif); }
.breadcrumbs { margin: 0 0 1.25rem; color: rgba(243,239,229,.6); font-size: .82rem; }
.breadcrumbs a { color: inherit; }

.toc { padding: 0; margin: 0; list-style: none; }
.toc-group { margin-bottom: 4rem; }
.toc-group h2 { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.toc-group-note { margin-top: -.5rem; color: #596061; }
.toc li { border-top: 1px solid var(--line); }
.toc li:last-child { border-bottom: 1px solid var(--line); }
.chapter-link { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 0; text-decoration: none; }
.chapter-link:hover .chapter-label { color: var(--bronze); }
.chapter-index { color: #596061; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.chapter-label { font: 1.35rem/1.2 var(--serif); }
.chapter-state { color: #596061; font-size: .78rem; }

.prose { font: 1.18rem/1.85 var(--serif); }
.prose h2 { margin: 3.3rem 0 1rem; font-size: 2rem; }
.prose p { margin: 0 0 1.35rem; }
.prose .lede { font-size: 1.42rem; line-height: 1.65; }
.placeholder { margin: 3rem 0; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); background: var(--paper); text-align: center; }
.placeholder-mark { display: block; color: var(--bronze); font: 3rem/1 var(--serif); }
.placeholder h2 { margin: 1rem 0 .7rem; }

.reading-tools { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: 2rem; }
.reading-tools button { border: 1px solid var(--line); background: transparent; color: inherit; padding: .55rem .8rem; font: inherit; cursor: pointer; }
.reader-large .prose { font-size: 1.34rem; }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.chapter-nav a { text-decoration: none; padding: 1rem; border: 1px solid var(--line); }
.chapter-nav a:last-child { text-align: right; }
.chapter-nav small { display: block; color: #596061; }

.site-footer { background: #1d2122; color: rgba(243,239,229,.7); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-logo { width: 230px; height: auto; max-width: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { font-size: .84rem; }
.footer-note { margin: .75rem 0 0; font-size: .8rem; }

@media (max-width: 780px) {
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .hero-media, .hero-media img { position: relative; inset: auto; width: 100%; height: auto; }
  .hero-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
  .hero-media img { height: 100%; object-fit: cover; object-position: right center; }
  .hero::after { display: none; }
  .hero-content { padding: 2.5rem 0 3.5rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 1rem; flex-direction: column; align-items: stretch; background: var(--anthracite); border-bottom: 1px solid rgba(243,239,229,.15); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: .7rem; }
  .split, .chapter-preview { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media { max-width: 560px; }
  .transparency, .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .chapter-link { grid-template-columns: 5rem 1fr; }
  .chapter-state { grid-column: 2; }
}

@media (max-width: 520px) {
  .brand img { width: 140px; }
  .hero h1 { font-size: 3.7rem; }
  .button-row .button { width: 100%; }
  .facts li { grid-template-columns: 1fr; gap: .2rem; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav a:last-child { text-align: left; }
}

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

@media print {
  .site-header, .site-footer, .reading-tools, .chapter-nav { display: none; }
  body { background: white; }
  .section { padding: 0; }
}
