:root {
  --ink: #18322d;
  --muted: #64736f;
  --paper: #fffdf8;
  --forest: #173d35;
  --forest-deep: #0f2b26;
  --sage: #dfe9e1;
  --sand: #efe4cf;
  --gold: #bd8c3f;
  --line: #d7ded9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: white;
  color: var(--forest-deep);
  font: 700 .85rem/1.3 system-ui, sans-serif;
}

.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  background: var(--forest-deep);
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
}

.wordmark {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.025em;
}

.series-name {
  color: #dfe9e1;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chapter-hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(239, 228, 207, .25), transparent 30%),
    radial-gradient(circle at 85% 75%, rgba(189, 140, 63, .18), transparent 28%),
    linear-gradient(145deg, #245649 0%, var(--forest-deep) 70%);
  color: white;
  text-align: center;
}

.chapter-hero::before {
  content: "";
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50% 50% 44% 56% / 58% 45% 55% 42%;
  transform: rotate(-3deg) scale(.86);
}

.chapter-hero--personal {
  background:
    radial-gradient(circle at 78% 22%, rgba(239, 228, 207, .3), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(189, 140, 63, .2), transparent 30%),
    linear-gradient(150deg, #2f6557 0%, var(--forest-deep) 72%);
}

.chapter-hero--caboose {
  background:
    linear-gradient(90deg, transparent 49.75%, rgba(255,255,255,.12) 50%, transparent 50.25%) center / 8rem 100%,
    radial-gradient(circle at 18% 26%, rgba(239, 228, 207, .24), transparent 28%),
    linear-gradient(150deg, #76512f 0%, #36281e 72%);
}

.chapter-hero--station {
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.07) 47.2% 47.7%, transparent 47.9%) center / 14rem 100%,
    radial-gradient(circle at 78% 22%, rgba(239, 228, 207, .28), transparent 25%),
    linear-gradient(150deg, #315a58 0%, #132f31 72%);
}

.chapter-hero--station h1 { font-size: clamp(2.5rem, 6.5vw, 6rem); }

.chapter-hero--gallery {
  background:
    radial-gradient(circle at 18% 24%, rgba(239, 228, 207, .26), transparent 27%),
    radial-gradient(circle at 82% 76%, rgba(189, 140, 63, .24), transparent 25%),
    linear-gradient(145deg, #5c4328 0%, #1f312d 72%);
}

.chapter-hero--gallery h1 { font-size: clamp(2.65rem, 7vw, 6.4rem); }

.chapter-hero__inner { position: relative; max-width: 920px; }

.chapter-number,
.byline,
.opening {
  font-family: system-ui, -apple-system, sans-serif;
}

.chapter-number {
  margin: 0 0 1.5rem;
  color: #d7e6de;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.chapter-kicker {
  margin: 2rem 0 .25rem;
  color: #f0d5a7;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-style: italic;
}

.byline { margin: 1.25rem 0 0; font-size: .94rem; font-weight: 700; }

.opening {
  margin: 4rem 0 0;
  color: #cbdcd5;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.reading-column {
  width: min(100% - 3rem, 760px);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.reading-column section {
  margin-top: 0;
  margin-bottom: clamp(4.5rem, 9vw, 7.5rem);
}

.chapter-opening {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.7;
}

.chapter-opening p:first-of-type::first-letter {
  float: left;
  padding: .12em .12em 0 0;
  color: var(--gold);
  font-size: 4.2em;
  line-height: .73;
}

h2 {
  margin: 0 0 1.5rem;
  color: var(--forest-deep);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0 0 1.45em; }

.text-link {
  color: #8a6328;
  font-weight: 700;
  text-decoration-color: rgba(138, 99, 40, .45);
  text-underline-offset: .16em;
}

.text-link:hover,
.text-link:focus-visible { text-decoration-color: currentColor; }

.section-eyebrow {
  margin: 0 0 .65rem;
  color: #7a5a27;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sophia-introduction {
  padding: clamp(2rem, 6vw, 4rem);
  background: #f5efe3;
}

.guides-section {
  width: min(100vw - 2rem, 1100px);
  margin-left: 50%;
  padding: clamp(2rem, 6vw, 4rem);
  transform: translateX(-50%);
  background: #f5efe3;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.guide-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #d8cbb5;
}

.guide-card__portrait,
.assistant-feature__portrait {
  display: block;
  overflow: hidden;
  background: var(--forest-deep);
}

.guide-card__portrait { aspect-ratio: 4 / 3; }

.guide-card__portrait img,
.assistant-feature__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.guide-card__portrait:hover img,
.guide-card__portrait:focus-visible img,
.assistant-feature__portrait:hover img,
.assistant-feature__portrait:focus-visible img { transform: scale(1.02); }

.guide-card:first-child .guide-card__portrait img { object-position: center 32%; }
.guide-card:last-child .guide-card__portrait img { object-position: center; }
.guide-card__body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.guide-card__body h3 { margin: 0 0 1rem; color: var(--forest-deep); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 500; line-height: 1.1; }

.assistant-disclosure {
  margin: 2rem 0 0;
  color: #5a625f;
  font: .82rem/1.6 system-ui, sans-serif;
}

.assistant-feature {
  width: min(100vw - 2rem, 1100px);
  margin-left: 50%;
  padding: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  overflow: hidden;
  background: #f5efe3;
}

.assistant-feature__portrait {
  align-self: start;
  aspect-ratio: 4 / 5;
}
.assistant-feature__portrait img { object-position: center 30%; }
.assistant-feature--landscape .assistant-feature__portrait { aspect-ratio: 3 / 2; }
.assistant-feature--landscape .assistant-feature__portrait img { object-position: center; }
.assistant-feature__content { padding: clamp(2rem, 5vw, 4rem); }
.assistant-feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: 1.75rem; }
.assistant-feature__actions .chapter-cta__button { margin-top: 0; }

.secondary-link,
.continue-link {
  color: #7a5a27;
  font: 750 .86rem/1.4 system-ui, sans-serif;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.continue-link { display: inline-block; margin: 1rem 0 0; }
.assistant-feature__actions .continue-link { width: 100%; margin: .2rem 0 0; }

.voice-quote {
  margin: 2rem 0 0;
  padding: 0;
  background: transparent;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  line-height: 1.7;
  text-align: left;
}

.voice-quote p { margin: 0 0 1.15em; }
.voice-quote p:last-child { margin-bottom: 0; }

.care-note { border-left-color: var(--forest); }
.care-note span { color: var(--forest); }

.record-card,
.comparison {
  width: min(100vw - 2rem, 980px);
  margin-left: 50%;
  padding: clamp(2rem, 6vw, 4rem);
  transform: translateX(-50%);
  background: #f5efe3;
}

.record-card { border-top: 4px solid var(--gold); }

.comparison__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  background: #d8cbb5;
  border: 1px solid #d8cbb5;
}

.comparison__grid article { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--paper); }
.comparison__grid h3 { margin: 0 0 1rem; color: var(--forest-deep); font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 500; line-height: 1.1; }
.comparison__label { margin: 0 0 .55rem; color: #7a5a27; font: 800 .7rem/1.4 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.comparison__note { margin: 1.5rem 0 0; color: #5a625f; font: .85rem/1.6 system-ui, sans-serif; }

.chapter-cta {
  margin: 0 0 3rem;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  text-align: center;
}

.chapter-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }

.chapter-cta__button {
  display: inline-block;
  margin-top: .5rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.chapter-cta__button:hover,
.chapter-cta__button:focus-visible { background: var(--forest-deep); }

.artwork-feature {
  width: min(100vw - 2rem, 980px);
  margin: 0 0 clamp(4.5rem, 9vw, 7.5rem) 50%;
  transform: translateX(-50%);
  background: #f5efe3;
  border: 1px solid #d8cbb5;
}

.artwork-feature a,
.artwork-feature img { display: block; }
.artwork-feature img { width: 100%; height: auto; }
.artwork-feature figcaption { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 1.25rem; font: .82rem/1.5 system-ui, sans-serif; }
.artwork-feature figcaption span { color: #5a625f; text-align: right; }

.chapter-contents {
  margin: clamp(4.5rem, 9vw, 7.5rem) 0 0;
  padding: clamp(2rem, 6vw, 4rem);
  border-top: 4px solid var(--gold);
  background: #f5efe3;
}

.chapter-contents h2 { font-size: clamp(2rem, 4vw, 3rem); }
.chapter-contents ol { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid #d8cbb5; }
.chapter-contents li { border-bottom: 1px solid #d8cbb5; }
.chapter-contents a { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; text-decoration: none; }
.chapter-contents a:hover,
.chapter-contents a:focus-visible { color: #7a5a27; }
.chapter-contents span { font: 800 .72rem/1.7 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.status-note {
  margin: 0 0 clamp(4.5rem, 9vw, 7.5rem);
  padding: 1.4rem 1.5rem 1.35rem;
  border-left: 4px solid var(--gold);
  background: #f5efe3;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .88rem;
  line-height: 1.55;
}

.status-note span {
  display: block;
  margin-bottom: .35rem;
  color: #7a5a27;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.status-note strong { display: block; color: var(--forest-deep); font-size: 1rem; }
.status-note p { margin: .5rem 0 0; color: #5a625f; }

blockquote {
  margin: 1rem 0 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 0;
  background: var(--sage);
  color: var(--forest-deep);
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-style: italic;
  line-height: 1.28;
  text-align: center;
}

blockquote p { margin: 0; }

.signoff {
  padding: 2rem 0 0;
  font-size: 1.3rem;
  font-style: italic;
  text-align: right;
}

.signoff p { margin: 0 0 .35rem; }

.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--forest);
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
}

.chapter-nav > span,
.chapter-nav > a {
  display: block;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  text-decoration: none;
}
.chapter-nav__previous { color: #c9d8d2; }
.chapter-nav__next { border-left: 1px solid rgba(255,255,255,.16); text-align: right; }
.chapter-nav small { display: block; color: #b8ccc4; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.chapter-nav a:hover,
.chapter-nav a:focus-visible { background: rgba(255,255,255,.07); }

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--forest-deep);
  color: #c8d7d1;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: .75rem;
  line-height: 1.55;
}

.site-footer > div { max-width: 620px; }
.site-footer p { margin: .5rem 0 0; }
.verified { color: #fff; font-size: 1rem; font-weight: 800; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  body { font-size: 17px; line-height: 1.72; }
  .site-header { min-height: 62px; padding: .85rem 1rem; }
  .series-name { font-size: .62rem; }
  .chapter-hero { min-height: 680px; padding: 5rem 1.25rem; }
  .chapter-hero::before { inset: 1.25rem .6rem; }
  .reading-column { width: min(100% - 2.25rem, 760px); }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav__next { border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .comparison__grid { grid-template-columns: 1fr; }
  .guides-grid,
  .assistant-feature { grid-template-columns: 1fr; }
  .reading-column .guides-section,
  .reading-column .assistant-feature {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .guide-card__portrait { aspect-ratio: 5 / 4; }
  .assistant-feature__portrait { aspect-ratio: 5 / 4; }
  .assistant-feature--landscape .assistant-feature__portrait { aspect-ratio: 3 / 2; }
  .artwork-feature figcaption { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .artwork-feature figcaption span { text-align: left; }
  .chapter-contents a { grid-template-columns: 1fr; gap: .2rem; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .chapter-nav { display: none; }
  .chapter-hero { min-height: 9in; break-after: page; }
  .reading-column { width: 6.5in; padding: .6in 0; }
  .reading-column section, .status-note { break-inside: avoid; }
}
