:root {
  color-scheme: light;
  --forest: #14291b;
  --cream: #f4f1e7;
  --gold: #e9c983;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--forest);
  color: #fff;
  font-family: "Be Vietnam Pro", "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f7f2e6;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px #0006;
  transition: top 0.15s ease-out;
}
.skip-link:focus {
  top: 14px;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
body.on-end a:focus-visible,
body.on-end button:focus-visible {
  outline-color: #2c5e3b;
}

.story {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.story:focus {
  outline: none;
}
.story::-webkit-scrollbar {
  display: none;
}
.scene {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-x: hidden;
}
.scene-photo,
.scene-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #162e1e;
  background-image: var(--scene-image);
  background-size: cover;
  background-position: center;
}
.scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 24, 13, 0.82) 0%, rgba(8, 24, 13, 0.48) 50%, rgba(8, 24, 13, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 20, 10, 0.55), transparent 45%);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 68px);
  background: linear-gradient(180deg, rgba(8, 22, 12, 0.68), rgba(8, 22, 12, 0));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 500;
}
.header-note {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 15px;
  opacity: 0.92;
}
.menu-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 10px 17px;
  background: rgba(14, 33, 18, 0.48);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-button span {
  margin-left: 10px;
}
.chapter-menu {
  display: none;
  position: absolute;
  right: clamp(16px, 4vw, 68px);
  top: 72px;
  min-width: 230px;
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  padding: 10px;
  background: #f7f2e6;
  color: var(--forest);
  border: 1px solid #d5dccd;
  border-radius: 14px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}
.chapter-menu.open {
  display: grid;
  gap: 2px;
}
.chapter-menu .menu-divider {
  border: 0;
  border-top: 1px solid #dcd8c8;
  margin: 6px 8px;
}
.chapter-menu a {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.chapter-menu a[aria-current="location"] {
  background: #e2eadb;
  font-weight: 700;
}
.chapter-menu a:hover,
.chapter-menu a:focus-visible {
  background: #dfe7d7;
  outline-color: #285737;
}

.scene-content {
  position: relative;
  z-index: 2;
  width: min(650px, 84vw);
  margin-left: clamp(24px, 10vw, 170px);
  padding: 110px 0 96px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.eyebrow .line {
  width: 30px;
  height: 1px;
  flex: none;
  background: var(--gold);
}
h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}
h1 {
  font-size: clamp(46px, 6.4vw, 96px);
}
h2 {
  font-size: clamp(52px, 6.8vw, 104px);
}
h1 em,
h2 em {
  color: #f0cf8d;
  font-weight: 500;
}
.lead {
  max-width: 510px;
  margin: 22px 0 30px;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
  color: #f5f5ec;
}
.round-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 13px 20px 13px 22px;
  background: rgba(12, 30, 17, 0.32);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.round-link:hover,
.round-link:focus-visible {
  background: #fff;
  color: var(--forest);
}
.round-link span {
  font-size: 18px;
}
.text-link {
  display: inline-flex;
  min-height: 42px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #f0cf8d;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.text-link span {
  font-size: 18px;
}
.text-link:hover {
  color: #f0cf8d;
}

.hero-corner,
.scene-badge {
  position: absolute;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}
.hero-corner {
  right: clamp(20px, 4vw, 68px);
  bottom: 58px;
}
.hero-corner span {
  padding: 0 6px;
}
.scene-badge {
  left: clamp(24px, 10vw, 170px);
  bottom: 66px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 26, 15, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.scene-index {
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: 54px;
  z-index: 2;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  font-variant-numeric: tabular-nums;
}
.scene-index span {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  opacity: 0.82;
}
.story-progress {
  position: fixed;
  z-index: 15;
  left: clamp(20px, 4vw, 68px);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  width: 96px;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}
.progress-fill {
  display: block;
  width: 16.6%;
  height: 2px;
  background: #f0cf8d;
  transition: width 0.3s ease-out;
}
.scene-caption {
  position: fixed;
  z-index: 15;
  right: clamp(20px, 4vw, 68px);
  bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scene-end {
  display: grid;
  place-items: center;
  background: #f3f0e6;
  color: var(--forest);
}
.end-content {
  position: relative;
  z-index: 2;
  width: min(1040px, 86vw);
  padding: 112px 0 88px;
}
.eyebrow.dark {
  color: #485947;
}
.eyebrow.dark .line {
  background: #5b7356;
}
.scene-end h2 {
  font-size: clamp(44px, 5.8vw, 88px);
}
.scene-end h2 em {
  color: #7c582d;
}
.end-content > p:not(.eyebrow):not(.end-note) {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.7;
  color: #3d4f3f;
  margin: 24px 0 32px;
}
.end-primary-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: 30px;
}
.chapter-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.chapter-picks a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 18px 20px;
  border: 1px solid #b8c2b0;
  border-radius: 8px;
  background: #fcfbf6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chapter-picks a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px #283a1d1c;
}
.chapter-picks span {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #4f634d;
  font-variant-numeric: tabular-nums;
}
.chapter-picks b {
  margin-left: auto;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
}
.end-note {
  font-size: 12px;
  line-height: 1.65;
  color: #4a5c4b;
  margin-top: 24px;
  max-width: 780px;
}
.end-orbit {
  position: absolute;
  pointer-events: none;
  width: 460px;
  height: 460px;
  border: 1px solid #d5ddcd;
  border-radius: 50%;
  right: -80px;
  top: -100px;
}
.orbit-two {
  width: 620px;
  height: 620px;
  right: -160px;
  top: -180px;
}

body.on-end .site-header {
  color: var(--forest);
  background: linear-gradient(180deg, rgba(243, 240, 230, 0.94), rgba(243, 240, 230, 0));
}
body.on-end .menu-button {
  color: var(--forest);
  border-color: #6f8271;
  background: #f7f4ea;
}
body.on-end .story-progress,
body.on-end .scene-caption {
  color: var(--forest);
}
body.on-end .progress-track {
  background: #96a493;
}
body.on-end .progress-fill {
  background: #2b5a39;
}

@media (max-width: 700px) {
  .site-header {
    padding: 14px 18px;
  }
  .header-note {
    display: none;
  }
  .brand {
    font-size: 11px;
    letter-spacing: 0.11em;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .menu-button {
    font-size: 11px;
    padding: 9px 14px;
    min-height: 40px;
  }
  .chapter-menu {
    right: 16px;
    left: 16px;
    top: 62px;
    min-width: 0;
  }
  .scene-photo,
  .scene-hero {
    justify-content: flex-end;
    background-position: 56% center;
    padding: 82px 22px 86px;
  }
  .scene-shade {
    background: linear-gradient(
      0deg,
      rgba(7, 23, 12, 0.9) 0%,
      rgba(7, 23, 12, 0.56) 58%,
      rgba(7, 23, 12, 0.22) 100%
    );
  }
  .scene-content {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
  }
  h1 {
    font-size: clamp(36px, 10.2vw, 54px);
    line-height: 1.15;
  }
  h2 {
    font-size: clamp(42px, 11.5vw, 64px);
    line-height: 1.15;
  }
  .lead {
    font-size: 15px;
    line-height: 1.55;
    margin: 14px 0 20px;
  }
  .scene-badge {
    position: static;
    align-self: flex-start;
    margin-top: 16px;
    font-size: 11px;
  }
  .scene-index {
    right: 22px;
    bottom: 20px;
    font-size: 26px;
  }
  .story-progress {
    left: 22px;
    bottom: 22px;
  }
  .scene-caption {
    display: none;
  }
  .hero-corner {
    position: static;
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .scene-end {
    display: block;
  }
  .end-content {
    width: auto;
    margin: 0 22px;
    padding: 88px 0 76px;
  }
  .scene-end h2 {
    font-size: clamp(36px, 9.5vw, 52px);
  }
  .end-content > p:not(.eyebrow):not(.end-note) {
    font-size: 15px;
    line-height: 1.6;
    margin: 16px 0 22px;
  }
  .end-primary-links {
    gap: 12px 16px;
    margin-bottom: 24px;
  }
  .chapter-picks {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chapter-picks a {
    min-height: 56px;
    padding: 12px 16px;
    font-size: 17px;
  }
  .end-orbit {
    width: 300px;
    height: 300px;
  }
}

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