:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6863;
  --paper: #f7f3eb;
  --panel: #fffdf8;
  --line: #d9d0c2;
  --green: #23483f;
  --red: #8d2635;
  --gold: #bc8b3c;
  --blue: #2f5f84;
  --shadow: 0 24px 70px rgba(54, 39, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 235, 0.9);
  border-bottom: 1px solid rgba(23, 33, 31, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px) 42px;
  background:
    linear-gradient(120deg, rgba(35, 72, 63, 0.1), rgba(188, 139, 60, 0.08) 45%, rgba(141, 38, 53, 0.08)),
    var(--paper);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 58ch;
  margin: 26px 0 0;
  color: #3e4945;
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.46);
}

.thesis-figure {
  margin: 0;
}

.thesis-figure img {
  display: block;
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  background: #8b5a25;
  border: 1px solid rgba(23, 33, 31, 0.16);
  box-shadow: var(--shadow);
}

.thesis-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.intro-band,
.case-band {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
  background: var(--green);
  color: #fffdf8;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(220px, 1fr));
  gap: clamp(22px, 4vw, 48px);
}

.intro-grid h2,
.case-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.intro-grid p,
.case-copy p,
.signal-panel li {
  color: rgba(255, 253, 248, 0.78);
}

.reader-section,
.stats-section,
.impact-section,
.defense-section,
.sources-section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-heading h2,
.sources-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

.reader-section {
  background: #f2eadf;
}

.reader-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.reader-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.reader-sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(54, 39, 22, 0.08);
}

.reader-meta {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.reader-meta span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.reader-meta small {
  color: var(--muted);
  line-height: 1.35;
}

.chapter-tabs {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.chapter-tab {
  width: 100%;
  padding: 12px 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.chapter-tab:hover,
.chapter-tab.is-active {
  background: #f2eadf;
  border-color: var(--line);
}

.chapter-tab.is-active {
  color: var(--red);
}

.reader-progress {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  background: #efe7da;
  border: 1px solid var(--line);
}

.reader-progress span {
  display: block;
  width: 16%;
  height: 100%;
  background: var(--red);
  transition: width 180ms ease;
}

.thesis-page {
  min-height: 760px;
  padding: clamp(30px, 5vw, 72px);
  background: #fffefb;
  border: 1px solid #d7cfc2;
  box-shadow: var(--shadow);
}

.thesis-page.is-hidden {
  display: none;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
  padding-bottom: 12px;
  color: #777066;
  border-bottom: 1px solid #ded6ca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thesis-page h3 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.thesis-page p,
.thesis-page li,
.thesis-table {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.78;
}

.thesis-page p {
  max-width: 76ch;
  margin: 0 0 20px;
  color: #2e3431;
}

.thesis-page blockquote {
  max-width: 68ch;
  margin: 32px 0;
  padding: 18px 22px;
  color: #203c36;
  background: #eef3ef;
  border-left: 5px solid var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.45;
}

.thesis-list {
  max-width: 74ch;
  margin: 24px 0 0;
  padding-left: 24px;
}

.thesis-list li {
  margin-bottom: 8px;
}

.page-note {
  max-width: 76ch;
  margin-top: 30px;
  padding: 16px 18px;
  color: #3c463f;
  background: #f7f1e7;
  border: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
}

.thesis-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  font-size: 16px;
}

.thesis-table th,
.thesis-table td {
  padding: 12px;
  border: 1px solid #dcd3c5;
  text-align: left;
  vertical-align: top;
}

.thesis-table th {
  background: #f2eadf;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thesis-references {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #ded6ca;
}

.thesis-references h4 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-grid,
.defense-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.defense-grid article,
.signal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(54, 39, 22, 0.08);
}

.stat-card {
  min-height: 280px;
  padding: 24px;
}

.stat-value {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  line-height: 0.92;
}

.stat-card h3,
.defense-grid h3,
.impact-list h3,
.signal-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.12;
}

.stat-card p,
.defense-grid p,
.impact-list p,
.sources-section li {
  color: var(--muted);
}

.impact-section {
  background: #fffdf8;
}

.impact-list {
  border-top: 1px solid var(--line);
}

.impact-list article {
  display: grid;
  grid-template-columns: 72px 0.72fr 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.impact-list span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 800;
}

.impact-list p {
  margin: 0;
}

.case-band {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  background: #111b1a;
}

.case-copy {
  max-width: 820px;
}

.case-copy p {
  max-width: 68ch;
  margin-top: 22px;
  font-size: 18px;
}

.signal-panel {
  padding: 24px;
  color: var(--ink);
}

.signal-panel ul,
.sources-section ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.signal-panel li {
  margin-bottom: 10px;
  color: #4a554f;
}

.defense-grid article {
  min-height: 210px;
  padding: 24px;
}

.sources-section {
  background: #efe7da;
}

.sources-section ul {
  max-width: 760px;
}

.sources-section a {
  color: var(--blue);
  font-weight: 800;
}

footer {
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 253, 248, 0.72);
  background: var(--ink);
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .reader-shell,
  .intro-band,
  .case-band,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    position: static;
  }

  .stat-grid,
  .defense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-list article {
    grid-template-columns: 56px 1fr;
  }

  .impact-list p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
  }

  .thesis-page {
    min-height: auto;
    padding: 26px 18px;
  }

  .thesis-page p,
  .thesis-page li {
    font-size: 16px;
  }

  .thesis-table {
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }

  .thesis-figure img {
    max-height: 460px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .stat-grid,
  .defense-grid {
    grid-template-columns: 1fr;
  }

  .impact-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .impact-list p {
    grid-column: auto;
  }
}
