.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(28px, 8vw, 116px);
  padding-block: clamp(36px, 6vw, 88px);
  max-width: 1090px;
}
.guide-kicker {
  color: #805334;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.guide-intro h1 {
  font-size: clamp(3.1rem, 7.2vw, 6.1rem);
  margin-bottom: 22px;
}
.guide-intro .lead { max-width: 34rem; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 25px; }
.guide-actions .button { min-width: 0; }
.guide-cover {
  width: min(100%, 305px);
  height: auto;
  margin-inline: auto;
  box-shadow: 7px 13px 32px #142d2538;
}
.guide-reader {
  padding-block: clamp(34px, 6vw, 68px);
  background: var(--cream);
  scroll-margin-top: 16px;
}
.guide-reader > .wrap { max-width: 1140px; }
.guide-reader-heading, .guide-reader-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 22px;
}
.guide-reader-heading h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 12px; }
.guide-book { background: var(--paper); border: 1px solid #c7cec1; }
.guide-book[hidden] { display: none; }
.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.guide-turn, .guide-zoom { display: flex; align-items: center; gap: 8px; }
.guide-select { display: grid; gap: 2px; font-size: .8rem; font-weight: 700; }
.guide-toolbar button, .guide-toolbar select {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #8b988c;
  border-radius: 0;
  background: #fff;
  color: var(--forest);
  font: inherit;
}
.guide-toolbar button { cursor: pointer; font-size: .86rem; font-weight: 700; }
.guide-toolbar button:disabled { opacity: .48; cursor: default; }
.guide-toolbar select { max-width: 100%; }
.guide-zoom button { min-width: 44px; font-size: 1.1rem; }
.guide-zoom output { min-width: 3rem; text-align: center; font-size: .85rem; }
.guide-viewport {
  background: #233c32;
  padding: clamp(8px, 2vw, 24px);
  overflow: auto;
  max-height: min(78vh, 780px);
  touch-action: pan-y pinch-zoom;
}
.guide-viewport[data-zoomed] { touch-action: auto; }
.guide-viewport:focus-visible { outline: 3px solid #a66b3f; outline-offset: -3px; }
.guide-spread {
  display: flex;
  align-items: start;
  justify-content: center;
  width: min(100%, 450px);
  margin-inline: auto;
}
.guide-spread[data-spread] { width: min(100%, 900px); }
.guide-spread img {
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 22;
  background: #fbf8f1;
}
.guide-spread[data-spread] img { width: 50%; }
.guide-spread[data-direction="next"] { animation: guide-turn-next .32s ease-out both; transform-origin: left center; }
.guide-spread[data-direction="previous"] { animation: guide-turn-previous .32s ease-out both; transform-origin: right center; }
@keyframes guide-turn-next {
  from { opacity: .7; transform: perspective(1500px) rotateY(-9deg); }
  to { opacity: 1; transform: none; }
}
@keyframes guide-turn-previous {
  from { opacity: .7; transform: perspective(1500px) rotateY(9deg); }
  to { opacity: 1; transform: none; }
}
.guide-reader-footer { padding: 11px 16px; font-size: .88rem; }
@media (max-width: 759px) {
  .guide-intro { grid-template-columns: 1fr; gap: 24px; }
  .guide-cover { width: min(63%, 240px); margin-inline: 0; }
  .guide-toolbar { padding-inline: 10px; }
  .guide-select { order: 3; width: 100%; }
  .guide-reader > .wrap { width: min(100% - 24px, 1140px); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-spread[data-direction] { animation: none; }
}
