:root {
  --brochure-navy: #081b34;
  --brochure-cream: #eee5d5;
  --brochure-copper: #ba6f45;
}

.brochure-page { background: #f7f1e7; }
.brochure-header { background: rgba(247, 241, 231, .94); }

.brochure-intro {
  padding: clamp(8.5rem, 15vw, 12rem) clamp(1.25rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
  max-width: 92rem;
  margin: 0 auto;
}

.brochure-intro .trip-back { display: inline-block; margin-bottom: clamp(3rem, 7vw, 6rem); }
.brochure-intro h1 { font-family: "Newsreader", serif; font-size: clamp(4rem, 11vw, 10rem); font-weight: 300; line-height: .82; letter-spacing: -.055em; margin: 1rem 0 1.5rem; }
.brochure-intro h1 em { color: var(--brochure-copper); font-weight: 300; }
.brochure-intro > p:last-child { max-width: 38rem; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }

.reader-section { background: var(--brochure-navy); color: #fff; padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem); }
.reader-heading { max-width: 90rem; margin: 0 auto clamp(2rem, 5vw, 4rem); display: flex; gap: 2rem; justify-content: space-between; align-items: flex-end; }
.reader-heading h2 { font-family: "Newsreader", serif; font-size: clamp(2.7rem, 6vw, 5.5rem); font-weight: 300; line-height: .95; letter-spacing: -.035em; margin: .75rem 0 0; }
.reader-heading .eyebrow { color: #d7a17f; }
.reader-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }
.reader-action { appearance: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px; font: 500 .78rem/1 "DM Sans", sans-serif; padding: .85rem 1.1rem; cursor: pointer; text-decoration: none; }
.reader-action:hover, .reader-action:focus-visible { border-color: #fff; background: #fff; color: var(--brochure-navy); }

.book-reader { max-width: 90rem; margin: 0 auto; outline: none; }
.book-reader:focus-visible .book-stage { box-shadow: 0 0 0 3px #d7a17f, 0 2rem 5rem rgba(0,0,0,.35); }
.book-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #020a14; box-shadow: 0 2rem 5rem rgba(0,0,0,.35); border-radius: 2px; perspective: 1800px; touch-action: pan-y; }
.book-page { width: 100%; height: 100%; transform-origin: left center; backface-visibility: hidden; }
.book-page img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.book-page.turn-next { animation: turnNext .42s ease; }
.book-page.turn-prev { animation: turnPrev .42s ease; }
@keyframes turnNext { 0% { opacity: 1; transform: rotateY(0deg) scale(1); } 45% { opacity: .35; transform: rotateY(-7deg) scale(.985); } 100% { opacity: 1; transform: rotateY(0deg) scale(1); } }
@keyframes turnPrev { 0% { opacity: 1; transform: rotateY(0deg) scale(1); } 45% { opacity: .35; transform: rotateY(7deg) scale(.985); } 100% { opacity: 1; transform: rotateY(0deg) scale(1); } }

.page-zone { position: absolute; top: 0; bottom: 0; width: 15%; z-index: 2; border: 0; background: transparent; color: #fff; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.page-zone span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin: auto; border-radius: 50%; background: rgba(8,27,52,.78); font-size: 1.2rem; }
.page-zone:hover, .page-zone:focus-visible { opacity: 1; background: linear-gradient(90deg, rgba(0,0,0,.2), transparent); }
.page-zone-prev { left: 0; }
.page-zone-next { right: 0; }
.page-zone-next:hover, .page-zone-next:focus-visible { background: linear-gradient(-90deg, rgba(0,0,0,.2), transparent); }
.page-zone:disabled { cursor: default; }

.reader-toolbar { min-height: 4.4rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.reader-nav { border: 0; background: none; color: #fff; font: 500 .8rem/1 "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; padding: 1rem 0; }
.reader-nav:first-child { justify-self: start; }
.reader-nav:last-child { justify-self: end; }
.reader-nav:disabled { opacity: .28; cursor: default; }
.page-count { margin: 0; font-size: .86rem; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }

.page-thumbnails { display: flex; gap: .65rem; overflow-x: auto; padding: .35rem 0 1rem; scrollbar-color: rgba(255,255,255,.35) transparent; }
.thumbnail { flex: 0 0 clamp(5rem, 10vw, 8.5rem); aspect-ratio: 16/9; border: 1px solid rgba(255,255,255,.2); padding: 0; background: none; opacity: .48; cursor: pointer; overflow: hidden; }
.thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.thumbnail:hover, .thumbnail:focus-visible { opacity: .85; }
.thumbnail.is-current { opacity: 1; border-color: #d7a17f; box-shadow: 0 0 0 1px #d7a17f; }
.reader-hint { text-align: center; color: rgba(255,255,255,.5); font-size: .78rem; margin: .8rem 0 0; }

.brochure-cta { text-align: center; padding: clamp(5rem, 10vw, 9rem) 1.25rem; }
.brochure-cta h2 { font-family: "Newsreader", serif; font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 300; line-height: .95; letter-spacing: -.035em; margin: 1rem 0 2rem; }

.book-reader:fullscreen { background: var(--brochure-navy); padding: max(1rem, 3vh) max(1rem, 3vw); display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: center; }
.book-reader:fullscreen .book-stage { max-height: calc(100vh - 7rem); max-width: calc((100vh - 7rem) * 1.7778); width: 100%; margin: auto; }
.book-reader:fullscreen .page-thumbnails, .book-reader:fullscreen .reader-hint { display: none; }

@media (max-width: 720px) {
  .reader-heading { display: block; }
  .reader-actions { justify-content: flex-start; margin-top: 1.5rem; }
  .page-zone { display: none; }
  .book-stage { margin-inline: -.35rem; width: calc(100% + .7rem); }
  .reader-hint { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .book-page.turn-next, .book-page.turn-prev { animation: none; }
}
