:root {
  --bg: #fbf8f1;
  --paper: #fffdf8;
  --ink: #1f2523;
  --muted: #66716e;
  --line: #ded8cb;
  --blue: #174fc4;
  --green: #1f7a36;
  --gold: #af7d2c;
  --shadow: 0 24px 70px rgba(30, 35, 32, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(251, 248, 241, 1) 34rem),
    var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(222, 216, 203, 0.88);
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--blue);
  border-left-color: var(--green);
  border-bottom-color: var(--green);
  border-radius: 50%;
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chapter-nav-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.chapter-nav-link:hover,
.chapter-nav-link:focus-visible,
.chapter-nav-link.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.scroll-progress {
  position: fixed;
  top: 4rem;
  left: 0;
  z-index: 11;
  width: 100%;
  height: 3px;
  background: rgba(222, 216, 203, 0.75);
  transform-origin: left;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
}

.hero,
.framing-inner,
.closing-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 7rem) 0 clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow,
.chapter-number {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.85rem, 4.4vw, 4.8rem);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lede {
  max-width: 39rem;
  margin-bottom: 0;
  color: #34413e;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.65;
}

.hero-figure,
.graph-frame {
  margin: 0;
}

.hero-figure {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.framing {
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f5f0e6;
}

.framing-inner {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.framing h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.framing p,
.closing p {
  color: #36413d;
  font-size: 1.08rem;
}

.chapters {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.8fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  min-height: 118vh;
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}

.chapter-visual {
  position: sticky;
  top: 6.25rem;
  align-self: start;
}

.graph-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.graph-frame img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  background: #fff;
}

.graph-caption {
  display: flex;
  justify-content: flex-end;
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 750;
}

.graph-caption a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.chapter-copy {
  max-width: 38rem;
  padding-top: clamp(0.5rem, 7vh, 5rem);
}

.chapter-copy h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.subtitle {
  margin-bottom: 1.4rem;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.thesis {
  margin-bottom: 1.7rem;
  padding-left: 1rem;
  border-left: 4px solid var(--blue);
  color: #28332f;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
}

.section-disclaimer {
  margin: 0 0 1.65rem;
  padding: 1rem;
  border: 1px solid rgba(175, 125, 44, 0.35);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 250, 238, 0.9);
}

.chapter-copy .section-disclaimer h3 {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-disclaimer p {
  margin-bottom: 0;
  color: #433c30;
  font-size: 0.98rem;
  line-height: 1.55;
}

.paragraphs p {
  color: #38443f;
  font-size: 1.03rem;
}

.chapter-copy h3 {
  margin: 2.1rem 0 1rem;
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scripture-list {
  display: grid;
  gap: 0.75rem;
}

.scripture {
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
}

.scripture h4 {
  margin-bottom: 0.35rem;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
}

.scripture p {
  margin-bottom: 0;
  color: #45504d;
  font-size: 0.96rem;
  line-height: 1.55;
}

.challenge-banner {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border: 1px solid rgba(23, 79, 196, 0.22);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 79, 196, 0.08), rgba(31, 122, 54, 0.08)),
    var(--paper);
  box-shadow: 0 18px 48px rgba(30, 35, 32, 0.1);
}

.challenge-banner .challenge-eyebrow {
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.challenge-banner h3 {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
}

.challenge-banner p {
  color: #343f3b;
  font-size: 1rem;
}

.challenge-claims {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.challenge-claims li {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(31, 122, 54, 0.22);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
  line-height: 1.35;
}

.challenge-banner .challenge-question {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(222, 216, 203, 0.88);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
}

.challenge-answers {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.challenge-answer {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.82);
}

.challenge-answer strong {
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.challenge-answer span {
  color: #343f3b;
}

.closing {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.closing-inner {
  max-width: 760px;
  text-align: center;
}

.closing h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.top-link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

  .scroll-progress {
    top: 5.85rem;
  }

  .hero,
  .framing-inner,
  .chapter {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .framing-inner {
    max-width: 760px;
  }

  .chapter {
    min-height: auto;
    padding: 4rem 0;
  }

  .chapter-visual {
    position: static;
  }

  .chapter-copy {
    max-width: 760px;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.6;
  }

  .site-header {
    min-height: 5.5rem;
    padding: 0.7rem 1rem;
  }

  .brand {
    font-size: 0.82rem;
  }

  .chapter-nav-link {
    width: 1.8rem;
    height: 1.8rem;
  }

  .scroll-progress {
    top: 5.5rem;
  }

  .hero,
  .framing-inner,
  .closing-inner,
  .chapters {
    width: min(100% - 1rem, 760px);
  }

  .hero {
    gap: 1.4rem;
    padding-top: 2.25rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .hero-lede,
  .framing p,
  .closing p {
    font-size: 1rem;
  }

  .chapter-copy h2,
  .framing h2,
  .closing h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .thesis {
    font-size: 1.06rem;
  }

  .scripture {
    padding: 0.9rem;
  }
}

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