:root {
  color-scheme: light;
  --ivory: #f8f1e4;
  --paper: #fffaf0;
  --ink: #211915;
  --muted: #6d5f56;
  --evergreen: #143d35;
  --evergreen-soft: #d8e5dc;
  --rose: #b97872;
  --rose-soft: #f2d8d2;
  --brass: #b88742;
  --brass-soft: #ead3a5;
  --line: rgba(33, 25, 21, 0.16);
  --shadow: rgba(33, 25, 21, 0.14);
  --heading: Georgia, "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(20, 61, 53, 0.08), transparent 28rem),
    linear-gradient(315deg, rgba(185, 120, 114, 0.12), transparent 24rem),
    var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.72;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-family: var(--ui);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.booklet {
  min-height: 100svh;
}

.booklet-masthead {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.75rem) 0 1rem;
}

.booklet-masthead h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--evergreen);
  font-family: var(--heading);
  font-size: clamp(3rem, 8vw, 7.75rem);
  font-weight: 700;
  line-height: 0.94;
}

.booklet-masthead p {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--rose);
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-index {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: 0.65rem 0;
  border-block: 1px solid var(--line);
  overflow-x: auto;
}

.section-index ol {
  display: flex;
  gap: 0.45rem;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.section-index a span {
  color: var(--brass);
  font-weight: 800;
}

.section-index a:hover,
.section-index a.is-active {
  background: rgba(20, 61, 53, 0.08);
  color: var(--evergreen);
}

.booklet-stage {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 8rem;
}

.booklet-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: calc(100svh - 12rem);
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 7vw, 6rem);
  align-items: start;
}

.section-art {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 61, 53, 0.16);
  border-radius: 8px;
  background: var(--evergreen);
  box-shadow: 0 24px 70px var(--shadow);
}

.section-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-copy {
  min-width: 0;
  padding: clamp(0.25rem, 1vw, 0.75rem) 0;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--rose);
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-meta span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--brass-soft);
  border-radius: 50%;
  color: var(--evergreen);
  background: rgba(255, 250, 240, 0.75);
}

.section-copy h2 {
  margin: 0 0 1rem;
  color: var(--evergreen);
  font-family: var(--heading);
  font-size: clamp(2rem, 4.7vw, 4.8rem);
  line-height: 1.02;
}

.section-reminder,
.prayer-move {
  margin: 1.1rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brass);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 250, 240, 0.78);
}

.prayer-move {
  border-left-color: var(--rose);
  background: rgba(242, 216, 210, 0.46);
}

.section-reminder span,
.prayer-move span {
  display: block;
  color: var(--rose);
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-reminder p,
.prayer-move p {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.55;
}

.section-body {
  max-width: 68ch;
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
}

.section-body p {
  margin: 1.05rem 0;
}

.section-body h3 {
  margin: 2rem 0 0.7rem;
  color: var(--evergreen);
  font-family: var(--heading);
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  line-height: 1.12;
}

.section-body blockquote {
  margin: 1.5rem 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 4px solid var(--brass);
  color: var(--evergreen);
  font-size: 1.12rem;
}

.section-body ul,
.section-body ol {
  padding-left: 1.3rem;
}

.section-body li + li {
  margin-top: 0.45rem;
}

.table-wrap {
  width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 0.95rem;
  line-height: 1.45;
}

th,
td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--evergreen);
  background: rgba(216, 229, 220, 0.65);
  font-size: 0.76rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.steps-infographic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.78rem;
  margin: 1.55rem 0;
  padding: 0;
  list-style: none;
}

.step-card {
  min-width: 0;
}

.step-card:last-child {
  grid-column: 1 / -1;
}

.step-card a {
  position: relative;
  display: grid;
  min-height: 10.2rem;
  gap: 0.42rem;
  padding: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(66, 45, 28, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.9), rgba(248, 241, 228, 0.72)),
    linear-gradient(90deg, rgba(216, 229, 220, 0.46), transparent 56%);
  box-shadow:
    0 0.7rem 1.4rem rgba(33, 25, 21, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  color: var(--ink);
  text-decoration: none;
}

.step-card:nth-child(even) a {
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.9), rgba(248, 241, 228, 0.74)),
    linear-gradient(90deg, rgba(242, 216, 210, 0.38), transparent 58%);
}

.step-card:last-child a {
  min-height: 8.4rem;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.92), rgba(248, 241, 228, 0.76)),
    linear-gradient(90deg, rgba(234, 211, 165, 0.5), rgba(216, 229, 220, 0.36));
}

.step-card a:hover {
  border-color: rgba(184, 135, 66, 0.35);
  transform: translateY(-1px);
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-card-number {
  color: rgba(184, 135, 66, 0.88);
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 850;
}

.step-card-icon {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(20, 61, 53, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, #fffaf0 0%, #e4eddf 100%);
  color: var(--evergreen);
  box-shadow: 0 0.28rem 0.7rem rgba(33, 25, 21, 0.06);
}

.step-card-icon .journey-icon {
  width: 1.28rem;
  height: 1.28rem;
  opacity: 0.9;
  stroke-width: 1.9;
}

.step-card-name {
  display: block;
  color: var(--evergreen);
  font-family: var(--heading);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.08;
}

.step-card-movement {
  justify-self: start;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--rose);
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.2;
}

.step-card-reminder {
  display: block;
  color: #3f352f;
  font-size: 0.95rem;
  line-height: 1.38;
}

@media (max-width: 620px) {
  .steps-infographic {
    grid-template-columns: 1fr;
  }

  .step-card:last-child {
    grid-column: auto;
  }

  .step-card a,
  .step-card:last-child a {
    min-height: 0;
  }
}

.booklet-controls {
  position: fixed;
  z-index: 12;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  pointer-events: none;
}

.control-button,
.progress-readout {
  pointer-events: auto;
  min-height: 3rem;
  border: 1px solid rgba(20, 61, 53, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--evergreen);
  box-shadow: 0 14px 32px rgba(33, 25, 21, 0.16);
  backdrop-filter: blur(16px);
}

.control-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 7rem;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 800;
}

.control-button:hover:not(:disabled) {
  border-color: var(--brass);
  transform: translateY(-1px);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.progress-readout {
  display: grid;
  gap: 0.45rem;
  width: min(16rem, 38vw);
  padding: 0.65rem 0.8rem;
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
}

.progress-track {
  display: block;
  height: 0.36rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 61, 53, 0.13);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--evergreen),
    var(--rose),
    var(--brass)
  );
  transition: width 240ms ease;
}

html.booklet-js body {
  overflow-x: hidden;
}

html.booklet-js .booklet-stage {
  min-height: calc(100svh - 10rem);
}

html.booklet-js .booklet-section {
  display: none;
}

html.booklet-js .booklet-section.is-active {
  display: grid;
  animation: bookletFade 260ms ease both;
}

html.booklet-js .booklet-controls {
  display: flex;
}

html.booklet-js .section-copy {
  max-height: calc(100svh - 8rem);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-color: var(--brass) transparent;
}

@keyframes bookletFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .booklet-masthead {
    padding-top: 2rem;
  }

  .booklet-stage {
    width: min(100% - 1rem, 680px);
    padding-bottom: 7.5rem;
  }

  .booklet-section,
  html.booklet-js .booklet-section.is-active {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1rem;
  }

  .section-art {
    position: relative;
    top: auto;
  }

  .section-copy h2 {
    font-size: clamp(2rem, 11vw, 3.8rem);
  }

  html.booklet-js .section-copy {
    max-height: none;
    overflow: visible;
  }

  .section-index {
    width: calc(100% - 1rem);
  }

  .booklet-controls {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    gap: 0.5rem;
  }

  .control-button {
    min-width: 0;
    padding: 0.68rem 0.75rem;
  }

  .progress-readout {
    width: 8.5rem;
  }
}

@media (max-width: 520px) {
  .booklet-masthead {
    width: calc(100% - 1rem);
  }

  .booklet-masthead h1 {
    font-size: clamp(2.7rem, 17vw, 4.5rem);
  }

  .booklet-masthead p {
    font-size: 1.05rem;
  }

  .section-reminder,
  .prayer-move {
    padding: 0.85rem;
  }

  .section-body {
    font-size: 1.02rem;
  }

  .control-button span:not([aria-hidden="true"]) {
    display: none;
  }

  .control-button {
    justify-content: center;
    width: 3rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Immersive booklet pass: quiet chrome, warm cover, literal page turns. */
body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 16% 12%,
      rgba(234, 211, 165, 0.34),
      transparent 24rem
    ),
    radial-gradient(
    circle at 92% 88%,
    rgba(185, 120, 114, 0.18),
    transparent 28rem
  ),
    linear-gradient(180deg, #fbf4e8 0%, #f5ead9 100%);
}

.booklet {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.booklet-stage {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 2rem) 0 6.75rem;
}

.booklet-section {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 0;
  min-height: min(760px, calc(100svh - 8rem));
  padding: clamp(0.7rem, 1.5vw, 1rem);
  overflow: hidden;
  border: 1px solid rgba(66, 45, 28, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(
      90deg,
      rgba(20, 61, 53, 0.05),
      transparent 49%,
      rgba(66, 45, 28, 0.07) 50%,
      transparent 51%
    ),
    linear-gradient(
    105deg,
    rgba(255, 253, 247, 0.98),
    rgba(255, 249, 236, 0.92)
  );
  box-shadow:
    0 30px 90px rgba(46, 34, 24, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.booklet-section::before {
  position: absolute;
  z-index: -1;
  inset: 0.65rem 50% 0.65rem auto;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(66, 45, 28, 0.18),
    transparent
  );
  content: "";
}

.section-visual {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.section-art {
  position: relative;
  top: auto;
  align-self: stretch;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 31rem;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: var(--evergreen);
  box-shadow: none;
}

.section-art::after,
.cover-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 61, 53, 0.08),
      transparent 36%,
      rgba(248, 241, 228, 0.16)
    ),
    radial-gradient(circle at 50% 20%, transparent 44%, rgba(33, 25, 21, 0.2));
  content: "";
  pointer-events: none;
}

.section-art img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.section-copy {
  align-self: stretch;
  padding: clamp(1.4rem, 3.2vw, 3.35rem);
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 240, 0.64),
      rgba(255, 250, 240, 0.92)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
}

.section-meta {
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  color: rgba(109, 95, 86, 0.74);
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: none;
}

.section-map {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.section-number-button {
  min-width: 0;
  min-height: 1.7rem;
  padding: 0.12rem 0.24rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--brass);
  cursor: pointer;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1;
}

.section-number-button:hover,
.section-number-button[aria-expanded="true"] {
  border-color: rgba(184, 135, 66, 0.18);
  background: rgba(184, 135, 66, 0.08);
  color: var(--evergreen);
}

.section-meta-separator {
  color: rgba(109, 95, 86, 0.42);
}

.section-map-menu[hidden] {
  display: none;
}

.section-map-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.45rem);
  left: 0;
  width: min(17rem, calc(100vw - 3rem));
  max-height: min(17rem, 50vh);
  overflow-y: auto;
  border: 1px solid rgba(66, 45, 28, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.97);
  box-shadow:
    0 18px 44px rgba(33, 25, 21, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.section-map-menu ol {
  display: grid;
  gap: 0.14rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
}

.section-map-menu a {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.55rem;
  align-items: baseline;
  min-height: 2rem;
  padding: 0.38rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.81rem;
  font-weight: 620;
  text-decoration: none;
}

.section-meta .section-map-menu a span {
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 820;
}

.section-map-menu a:hover,
.section-map-menu a.is-active {
  background: rgba(20, 61, 53, 0.07);
  color: var(--evergreen);
}

.section-meta span:first-child {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 760;
}

.section-copy h2 {
  max-width: 13ch;
  margin-bottom: 0.95rem;
  font-size: clamp(2.25rem, 4.3vw, 4.7rem);
}

.section-reminder,
.prayer-move {
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: inset 0 0 0 1px rgba(184, 135, 66, 0.08);
}

.section-body {
  max-width: 64ch;
}

.cover-section {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: min(780px, calc(100svh - 3.25rem));
  padding: clamp(0.85rem, 1.8vw, 1.25rem);
  background:
    linear-gradient(115deg, rgba(20, 61, 53, 0.1), transparent 48%),
    linear-gradient(
    105deg,
    rgba(255, 253, 247, 0.94),
    rgba(248, 241, 228, 0.9)
  );
}

.cover-section::before {
  display: none;
}

.cover-art {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--evergreen);
}

.cover-art img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.cover-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.8vw, 4rem);
}

.cover-copy h2 {
  max-width: 9.2ch;
  margin: 0;
  color: var(--evergreen);
  font-family: var(--heading);
  font-size: clamp(3.25rem, 7.2vw, 7.6rem);
  line-height: 0.92;
}

.cover-subtitle {
  max-width: 29rem;
  margin: 1rem 0 0.35rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.36rem);
}

.cover-body {
  max-width: 34rem;
  color: #352b25;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.begin-button,
.quiet-button,
.map-mini-button,
.map-close {
  min-height: 2.8rem;
  border: 1px solid rgba(20, 61, 53, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 820;
}

.begin-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  background: var(--evergreen);
  color: var(--paper);
}

.quiet-button,
.map-mini-button {
  padding: 0.72rem 0.9rem;
  background: rgba(255, 250, 240, 0.72);
  color: var(--evergreen);
}

.begin-button:hover,
.quiet-button:hover,
.map-mini-button:hover,
.map-close:hover {
  border-color: var(--brass);
  transform: translateY(-1px);
}

.map-drawer[hidden] {
  display: none;
}

.map-drawer {
  position: fixed;
  z-index: 30;
  inset: 0;
}

.map-scrim {
  position: absolute;
  inset: 0;
  background: rgba(33, 25, 21, 0.24);
  backdrop-filter: blur(4px);
}

.map-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: min(28rem, calc(100% - 2rem));
  overflow-y: auto;
  border: 1px solid rgba(66, 45, 28, 0.16);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 24px 70px rgba(33, 25, 21, 0.22);
}

.map-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.35rem;
}

.map-heading h2 {
  margin: 0;
  color: var(--evergreen);
  font-family: var(--heading);
  font-size: 2.25rem;
  line-height: 1;
}

.map-close {
  display: inline-flex;
  width: 2.6rem;
  align-items: center;
  justify-content: center;
  background: rgba(255, 253, 247, 0.8);
  color: var(--evergreen);
  font-size: 1.35rem;
}

.map-note {
  margin: 0;
  padding: 0 1.15rem 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.map-panel ol {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.75rem 1rem;
  list-style: none;
}

.map-panel a {
  display: flex;
  gap: 0.72rem;
  align-items: baseline;
  padding: 0.72rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.95rem;
  text-decoration: none;
}

.map-panel a span {
  color: var(--brass);
  font-weight: 850;
}

.map-panel a:hover,
.map-panel a.is-active {
  background: rgba(20, 61, 53, 0.08);
  color: var(--evergreen);
}

.page-turn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.page-turn-top {
  position: static;
  z-index: auto;
  min-height: 2.65rem;
  padding: 0.55rem 0.25rem 0;
  pointer-events: auto;
}

.page-turn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.58);
  color: var(--evergreen);
  cursor: pointer;
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1;
  pointer-events: auto;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.page-turn-button:hover:not(:disabled) {
  border-color: rgba(255, 250, 240, 0.74);
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 10px 26px rgba(33, 25, 21, 0.13);
}

.page-turn-top .page-turn-button {
  width: auto;
  min-width: 2.15rem;
  min-height: 2.1rem;
  padding: 0.25rem 0.45rem;
  border-color: transparent;
  background: transparent;
  color: rgba(20, 61, 53, 0.58);
  box-shadow: none;
  font-size: 0.96rem;
  backdrop-filter: none;
}

.page-turn-top .page-turn-prev {
  margin-right: auto;
}

.page-turn-top .page-turn-next {
  margin-left: auto;
}

.page-turn-top .page-turn-button:hover:not(:disabled) {
  border-color: transparent;
  background: rgba(20, 61, 53, 0.06);
  box-shadow: none;
  color: var(--evergreen);
}

.page-turn-top .page-turn-button span:not([aria-hidden="true"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-turn-top .page-turn-button:disabled {
  display: none;
}

.page-turn-bottom {
  margin-top: 2.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(66, 45, 28, 0.1);
}

.page-turn-bottom .page-turn-button {
  min-width: 7.25rem;
  padding: 0.78rem 1rem;
  border-color: rgba(20, 61, 53, 0.12);
  background: rgba(255, 250, 240, 0.68);
}

.page-turn-bottom .page-turn-button:disabled {
  cursor: default;
  opacity: 0.24;
}

.journey-map {
  position: relative;
  margin-top: 1.25rem;
  padding: 0.95rem 0 0.2rem;
  overflow: visible;
  font-family: var(--ui);
  --journey-marker-size: clamp(2.05rem, 4.8vw, 2.5rem);
}

.journey-map ol {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-stage {
  position: relative;
  min-width: 0;
}

.journey-stage::before {
  position: absolute;
  z-index: 0;
  top: 0.42rem;
  left: 50%;
  width: calc(var(--journey-marker-size) + 0.7rem);
  height: calc(var(--journey-marker-size) + 0.45rem);
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 250, 240, 0.78),
    rgba(255, 250, 240, 0) 70%
  );
  content: "";
  opacity: 0.55;
  transform: translateX(-50%);
  transition:
    background 260ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}

.journey-stage a {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: rgba(109, 95, 86, 0.7);
  text-align: center;
  text-decoration: none;
}

.journey-marker {
  position: relative;
  display: grid;
  width: var(--journey-marker-size);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(20, 61, 53, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(145deg, #fffaf0 0%, #f5ebd9 100%);
  box-shadow:
    0 0 0 0.24rem rgba(255, 250, 240, 0.92),
    0 0.4rem 0.9rem rgba(33, 25, 21, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  opacity: 0.8;
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}

.journey-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  opacity: 0.45;
  transform: translateY(0.02rem);
  transition:
    opacity 260ms ease,
    stroke-width 260ms ease,
    transform 260ms ease;
}

.journey-label {
  max-width: 6.2ch;
  color: currentColor;
  font-size: clamp(0.62rem, 1.25vw, 0.72rem);
  font-weight: 700;
  line-height: 1.12;
  transition:
    color 260ms ease,
    opacity 260ms ease;
}

.journey-stage-waiting a {
  color: rgba(20, 61, 53, 0.34);
}

.journey-stage-waiting::before {
  opacity: 0.24;
}

.journey-stage-revealed a,
.journey-stage-active a,
.journey-stage-preview a {
  color: var(--evergreen);
}

.journey-stage-waiting .journey-label,
.journey-stage-preview .journey-label {
  display: none;
}

.journey-stage-revealed .journey-label {
  color: rgba(20, 61, 53, 0.48);
  font-weight: 640;
  opacity: 0.7;
}

.journey-stage-active .journey-label {
  color: var(--evergreen);
  font-weight: 780;
  opacity: 1;
}

.journey-stage-revealed::before,
.journey-stage-active::before {
  background: radial-gradient(
    ellipse at center,
    rgba(234, 211, 165, 0.48),
    rgba(216, 229, 220, 0.25) 46%,
    rgba(255, 250, 240, 0) 72%
  );
  opacity: 0.82;
}

.journey-stage-preview::before {
  background: radial-gradient(
    ellipse at center,
    rgba(234, 211, 165, 0.34),
    rgba(255, 250, 240, 0) 68%
  );
  opacity: 0.58;
}

.journey-stage-preview .journey-marker {
  border-color: rgba(184, 135, 66, 0.46);
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(145deg, #fff5d8 0%, #e4eddf 100%);
  box-shadow:
    0 0 0 0.26rem rgba(255, 250, 240, 0.94),
    0 0 0 0.44rem rgba(234, 211, 165, 0.16),
    0 0.35rem 0.9rem rgba(184, 135, 66, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  opacity: 1;
  transform: translateY(-0.04rem);
}

.journey-stage-preview .journey-icon {
  opacity: 0.9;
  stroke-width: 2;
}

.journey-stage-revealed .journey-marker,
.journey-stage-active .journey-marker {
  border-color: rgba(184, 135, 66, 0.24);
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(145deg, #f5dfaa 0%, #dbe9de 100%);
  opacity: 1;
}

.journey-stage-revealed .journey-icon,
.journey-stage-active .journey-icon {
  opacity: 0.92;
}

.journey-stage-active .journey-marker {
  box-shadow:
    0 0 0 0.3rem rgba(255, 250, 240, 0.96),
    0 0 0 0.54rem rgba(234, 211, 165, 0.22),
    0 0.45rem 1.1rem rgba(184, 135, 66, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  transform: translateY(-0.08rem);
}

.journey-stage-active .journey-icon {
  stroke-width: 2.1;
  transform: translateY(-0.02rem);
}

.journey-stage a:hover .journey-marker {
  opacity: 1;
  transform: translateY(-0.1rem);
}

html.is-turning .page-turn-button {
  opacity: 0.48;
  pointer-events: none;
}

.booklet-controls {
  inset: 0;
  width: 100%;
  pointer-events: none;
}

.turn-button {
  position: absolute;
  top: 50%;
  min-width: 0;
  min-height: 5.8rem;
  padding: 0.8rem 0.95rem;
  transform: translateY(-50%);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.turn-button-prev {
  left: 0;
  border-radius: 0 999px 999px 0;
}

html.is-cover .turn-button-prev {
  opacity: 0;
  pointer-events: none;
}

.turn-button-next {
  right: 0;
  border-radius: 999px 0 0 999px;
}

.turn-button:hover:not(:disabled) {
  box-shadow:
    0 16px 30px rgba(33, 25, 21, 0.14),
    inset 8px 0 16px rgba(184, 135, 66, 0.06);
  transform: translateY(-50%);
}

html.is-turning .turn-button {
  opacity: 0.58;
  pointer-events: none;
}

.progress-readout {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.map-mini-button {
  min-height: 1.8rem;
  padding: 0.25rem 0.65rem;
  justify-self: center;
  font-size: 0.76rem;
}

html.booklet-js .booklet-stage {
  min-height: auto;
}

html.booklet-js .booklet-section.is-active {
  display: grid;
  animation: pageSettleForward 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center;
}

html.booklet-js[data-turn="back"] .booklet-section.is-active {
  animation-name: pageSettleBack;
}

html.booklet-js[data-turn="still"] .booklet-section.is-active {
  animation-name: pageBreatheIn;
}

html.booklet-js .section-copy {
  max-height: calc(100svh - 10rem);
}

@keyframes pageSettleForward {
  from {
    opacity: 0;
    filter: saturate(0.96);
    transform: translateX(0.9rem) translateY(0.18rem) scale(0.992);
    box-shadow:
      0 34px 96px rgba(46, 34, 24, 0.19),
      inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  }

  to {
    opacity: 1;
    filter: saturate(1);
    transform: translateX(0) translateY(0) scale(1);
    box-shadow:
      0 30px 90px rgba(46, 34, 24, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  }
}

@keyframes pageSettleBack {
  from {
    opacity: 0;
    filter: saturate(0.96);
    transform: translateX(-0.9rem) translateY(0.18rem) scale(0.992);
    box-shadow:
      0 34px 96px rgba(46, 34, 24, 0.19),
      inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  }

  to {
    opacity: 1;
    filter: saturate(1);
    transform: translateX(0) translateY(0) scale(1);
    box-shadow:
      0 30px 90px rgba(46, 34, 24, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  }
}

@keyframes pageBreatheIn {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .booklet {
    display: block;
  }

  .booklet-stage {
    width: min(100% - 1rem, 680px);
    padding-top: 0.5rem;
  }

  .booklet-section,
  .cover-section,
  html.booklet-js .booklet-section.is-active {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0.5rem;
    background:
      linear-gradient(
        105deg,
        rgba(255, 253, 247, 0.98),
        rgba(255, 249, 236, 0.92)
      );
  }

  .booklet-section::before {
    display: none;
  }

  .section-art,
  .cover-art {
    min-height: 0;
    border-radius: 8px;
  }

  .section-art img,
  .cover-art img {
    height: clamp(14rem, 42vw, 22rem);
    min-height: 0;
  }

  .section-copy,
  .cover-copy {
    padding: clamp(1.2rem, 6vw, 2rem) 0.25rem 1rem;
    background: transparent;
  }

  .section-copy h2,
  .cover-copy h2 {
    max-width: 11.8ch;
    font-size: clamp(2.15rem, 8vw, 3.55rem);
  }

  html.booklet-js .section-copy {
    max-height: none;
  }

  .turn-button {
    min-height: 4.2rem;
    padding: 0.7rem 0.78rem;
  }

  .turn-button span:not([aria-hidden="true"]) {
    display: none;
  }

  .progress-readout {
    width: 8.8rem;
  }

  .map-panel {
    top: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100% - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.booklet-js .booklet-section.is-active {
    animation: none;
  }
}
