.chapter-seam {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
  height: clamp(60px, 5.6vw, 78px);
  margin: 0;
  background-color: var(--seam-start);
}

/* A line of die-punched holes catches the light along the calendar sheet. */
.chapter-seam--booking {
  --seam-start: #f4f4f0;
  --ticket-stock: var(--stay-paper, #f6f3e9);
  --ticket-ink: var(--stay-pencil, #58564d);
  --ticket-pencil: var(--stay-link, #9d3024);
  --punch-step: clamp(14px, 1.4vw, 19px);
}
html[data-stay-season="summer"] .chapter-seam--booking { --seam-start: #f9ecc9; }
.chapter-seam--booking::before, .chapter-seam--booking::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
}
.chapter-seam--booking::before {
  background-color: var(--ticket-stock);
  -webkit-mask: radial-gradient(ellipse 4.4px 4px at 50% 0, transparent 80%, #000 101%) center top / var(--punch-step) 100% repeat-x;
  mask: radial-gradient(ellipse 4.4px 4px at 50% 0, transparent 80%, #000 101%) center top / var(--punch-step) 100% repeat-x;
}
.chapter-seam--booking::after {
  height: 8px;
  background:
    radial-gradient(ellipse 4.8px 4.4px at 50% 0, transparent 79%, #635c485e 91%, transparent 100%) center top / var(--punch-step) 8px repeat-x,
    linear-gradient(90deg, #635c483d 0 18%, transparent 20% 81%, #635c483d 83%) center top / var(--punch-step) 1px repeat-x;
}
.seam-ticket-art {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 clamp(17px, 13vw, 225px);
  width: clamp(168px, 17vw, 252px);
}
.seam-room-key {
  position: absolute;
  inset: 1.5% auto auto 0;
  width: auto;
  height: 96%;
  max-width: none;
  transform-origin: 56% 24%;
  transform: rotate(-12deg);
}
.seam-calendar {
  position: absolute;
  width: 71%;
  height: 79%;
  left: 25%;
  bottom: 0;
  transform: rotate(2deg);
  overflow: visible;
}
.seam-calendar-sheet { fill: var(--ticket-stock); stroke: var(--ticket-ink); stroke-opacity: .46; stroke-width: 1.15; }
.seam-calendar-grid { stroke: var(--ticket-ink); stroke-opacity: .34; stroke-width: 1; }
.seam-calendar-binding { stroke: var(--ticket-ink); stroke-opacity: .8; stroke-width: 1.8; }
.seam-calendar-pencil { stroke: var(--ticket-pencil); stroke-width: 1.7; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* The guestbook colour continues behind the ridge; the valley shares its
   actual paper colour with the following excursion map. */
.chapter-seam--outings {
  --seam-start: var(--stay-paper, #f6f3e9);
  --seam-end: var(--field-ground, #252521);
  --ridge-sheet: #56564b;
  --ridge-print: #a7a18d;
  --trail: #ffd2aa;
  --trail-guide: #9c9277;
  --wire: #584d3f;
  --metal: #958b74;
}
html[data-stay-season="summer"] .chapter-seam--outings {
  --seam-end: var(--field-ground, #f6edcf);
  --ridge-sheet: #dcc79b;
  --ridge-print: #928065;
  --trail: #a34622;
  --trail-guide: #9d8561;
}
.seam-relief, .seam-map-detail {
  position: absolute;
  inset-block: 0;
  height: 100%;
}
.seam-relief { inset-inline: 0; width: 100%; }
.seam-ridge-sheet { fill: var(--ridge-sheet); }
.seam-treeline { fill: var(--ridge-sheet); }
.seam-fold-light { fill: #fff8df; opacity: .1; }
.seam-fold-shadow { fill: #201e18; opacity: .16; }
.seam-ridge-print { fill: none; stroke: var(--ridge-print); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.seam-valley { fill: var(--seam-end); }
.seam-map-detail {
  right: max(3%, calc((100% - 1250px) / 2));
  width: min(94%, 510px);
  overflow: visible;
}
.seam-route-guide, .seam-route-ink, .seam-rope, .seam-pylons, .seam-grip {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seam-route-guide { stroke: var(--trail-guide); stroke-width: .8; opacity: .52; }
.seam-route-ink { stroke: var(--trail); stroke-width: 2.2; stroke-dasharray: .008 .013; }
.seam-route-reveal { stroke-dasharray: 1; stroke-dashoffset: 0; }
.seam-trailhead { fill: var(--seam-end); stroke: var(--trail); stroke-width: 1.6; }
.seam-masts { fill: var(--metal); stroke: #615a4b; stroke-width: .7; }
.seam-pylons { stroke: var(--metal); stroke-width: 1.45; }
.seam-sheaves { fill: var(--seam-end); stroke: var(--metal); stroke-width: 1.1; }
.seam-rope { stroke: var(--wire); stroke-width: 1.5; }
.seam-rope-glint { fill: none; stroke: #e9dfc6; stroke-width: 3; stroke-opacity: .7; }
.seam-return { fill: none; stroke: var(--wire); stroke-width: .8; opacity: .67; }
.seam-grip { stroke: #4a3828; stroke-width: 2.1; }
.seam-waymark, html[data-stay-season="summer"] .seam-lift-gear { display: none; }
html[data-stay-season="summer"] .seam-waymark { display: inline; }

/* The normal declarations above describe the complete, still illustration. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chapter-seam--booking { view-timeline: --ticket-edge block; }
    .chapter-seam--outings { view-timeline: --map-edge block; }
    .seam-room-key {
      animation: seam-key-settles 1s linear both;
      animation-timeline: --ticket-edge;
      animation-range: entry 0% cover 58%;
    }
    .seam-calendar-pencil {
      animation: seam-pencil-stroke 1s linear both;
      animation-timeline: --ticket-edge;
      animation-range: cover 19% cover 62%;
    }
    .seam-route-reveal {
      animation: seam-pencil-stroke 1s linear both;
      animation-timeline: --map-edge;
      animation-range: entry 15% cover 59%;
    }
    .seam-carriage {
      animation: seam-ride 1s linear both;
      animation-timeline: --map-edge;
      animation-range: entry 0% cover 80%;
    }
  }
}
@keyframes seam-key-settles {
  from { transform: translate(-15px, -4px) rotate(-30deg); }
  69% { transform: translate(1px, 1px) rotate(-8deg); }
  to { transform: rotate(-12deg); }
}
@keyframes seam-pencil-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes seam-ride {
  from { transform: translate(-70px, 7px); }
  to { transform: translate(24px, -2.4px); }
}
