:root {
  /* Source Sans 3* 3** from Google Fonts for short interface labels */
  --parchment: #EFE0C2;
  --paper-shadow: #C7A77A;
  --terracotta: #B85F3D;
  --sienna: #7C3526;
  --olive: #5F6F3D;
  --mountain: #2F4A3E;
  --gold: #D6A84F;
  --ink: #241916;
  --serif: "Libre Baskerville", Baskerville, Georgia, serif;
  --soft-serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Source Sans 3", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; color: var(--ink); background: var(--parchment); }
body {
  font-family: var(--sans);
  background:
    radial-gradient(circle at 20% 18%, rgba(214,168,79,.22), transparent 24%),
    radial-gradient(circle at 82% 70%, rgba(184,95,61,.18), transparent 28%),
    linear-gradient(110deg, #EFE0C2, #dfc396 48%, #EFE0C2);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .42; z-index: 4;
  background-image: repeating-radial-gradient(circle at 18% 22%, rgba(36,25,22,.08) 0 1px, transparent 1px 7px), repeating-linear-gradient(92deg, rgba(124,53,38,.05) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
}

.scroll { height: 100vh; width: 100vw; overflow-x: auto; overflow-y: hidden; display: flex; scroll-snap-type: x mandatory; scroll-behavior: smooth; position: relative; }
.scroll::-webkit-scrollbar { display: none; }
.panel { position: relative; min-width: 100vw; height: 100vh; scroll-snap-align: start; overflow: hidden; padding: clamp(34px, 5vw, 84px); display: flex; align-items: center; justify-content: center; isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 3.5vw; border: 1px solid rgba(124,53,38,.22); border-radius: 42% 58% 51% 49% / 7% 9% 8% 6%; pointer-events: none; }
.dawn { justify-content: flex-start; background: linear-gradient(90deg, rgba(239,224,194,.96), rgba(199,167,122,.48)); }
.foothills { background: linear-gradient(90deg, rgba(239,224,194,.9), rgba(95,111,61,.18)); }
.courtyard { background: linear-gradient(90deg, rgba(184,95,61,.36), rgba(239,224,194,.82)); }
.summit { background: linear-gradient(90deg, rgba(47,74,62,.22), rgba(239,224,194,.88)); }
.archive { background: linear-gradient(90deg, rgba(36,25,22,.82), rgba(47,74,62,.76)); color: var(--parchment); }

.paper { position: relative; background: var(--parchment); color: var(--ink); padding: clamp(28px, 4vw, 58px); max-width: 720px; box-shadow: 0 28px 60px rgba(36,25,22,.25), inset 0 0 32px rgba(199,167,122,.55); border: 1px solid rgba(124,53,38,.28); border-radius: 3px 26px 6px 18px; }
.paper::after { content: ""; position: absolute; inset: -11px; z-index: -1; background: rgba(199,167,122,.5); filter: blur(.4px); clip-path: polygon(1% 4%, 98% 0, 100% 96%, 91% 100%, 74% 96%, 55% 100%, 34% 96%, 18% 100%, 0 94%); }
.hero-paper { margin-left: 6vw; width: min(820px, 82vw); transform: rotate(-1.4deg); }
.label, .station-label { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--sienna); }
.archive .label { color: var(--gold); }
h1, h2 { font-family: var(--serif); margin: 0; line-height: .98; font-weight: 400; }
h1 { font-size: clamp(58px, 10vw, 132px); letter-spacing: .055em; text-shadow: 0 2px 0 rgba(199,167,122,.7); }
h2 { font-size: clamp(38px, 5vw, 78px); max-width: 11ch; }
.aside, blockquote, .marginalia { font-family: var(--soft-serif); font-style: italic; }
.wax-dot { display: inline-block; width: .22em; height: .22em; margin: 0 .04em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold), var(--terracotta) 42%, var(--sienna)); box-shadow: 0 4px 0 rgba(124,53,38,.45), inset 0 0 0 3px rgba(239,224,194,.18); transform: translateY(.12em); transition: transform .45s ease; }
.olive-stem { width: min(620px, 74vw); height: 78px; overflow: visible; fill: var(--olive); margin-top: -10px; }
.olive-stem path { fill: none; stroke: var(--olive); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: drawStem 2.8s .3s ease forwards; }
.olive-stem ellipse { transform-origin: center; opacity: 0; animation: leafIn .8s 1.6s ease forwards; }
@keyframes drawStem { to { stroke-dashoffset: 0; } }
@keyframes leafIn { to { opacity: 1; transform: rotate(-14deg); } }

.mountain-strip { position: fixed; left: 0; right: 0; bottom: 0; height: 42vh; pointer-events: none; z-index: 0; opacity: .85; transform: translateX(calc(var(--drift, 0) * -1px)); }
.mountain-strip svg { width: 320vw; height: 100%; }
.ridge.far { fill: rgba(47,74,62,.28); }
.ridge.near { fill: rgba(47,74,62,.52); }
.progress-vine { position: fixed; left: 5vw; right: 5vw; bottom: 36px; height: 4px; background: rgba(95,111,61,.22); z-index: 8; border-radius: 99px; overflow: hidden; }
.progress-vine span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--olive), var(--gold), var(--terracotta)); border-radius: inherit; transition: width .18s linear; }

.fold-tab, .seal-button { border: 0; cursor: pointer; background: var(--terracotta); color: var(--parchment); font-family: var(--soft-serif); font-size: 22px; padding: 17px 24px; box-shadow: 0 14px 24px rgba(36,25,22,.24); }
.fold-tab { position: absolute; right: 12vw; bottom: 18vh; clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%); }
.seal-button { width: 120px; height: 120px; padding: 0; border-radius: 50%; background: radial-gradient(circle at 38% 30%, var(--gold), var(--terracotta) 43%, var(--sienna)); transform: rotate(-8deg); }
.seal-button:hover, .fold-tab:hover { transform: translateY(-3px) rotate(-3deg); }
.note { transform: rotate(-2deg) translateX(-10vw); }
.tilted-left::before { content: "folded note"; position: absolute; top: -22px; right: 40px; font: 600 24px var(--soft-serif); color: var(--sienna); transform: rotate(5deg); }
.clay-sheet { background: linear-gradient(135deg, var(--parchment), #e4c18c); display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; max-width: 880px; }
.clay-sheet h2, .clay-sheet .label, .clay-sheet .marginalia { grid-column: 1 / -1; }
#revisionText { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 36px); border-left: 5px solid var(--olive); padding-left: 22px; }
.shake { animation: paperTremor .44s ease; }
@keyframes paperTremor { 15%{transform:translateX(-5px) rotate(-1deg)} 35%{transform:translateX(4px) rotate(1deg)} 55%{transform:translateX(-3px) rotate(-.5deg)} 75%{transform:translateX(2px) rotate(.4deg)} }

.botanical { position: absolute; width: 230px; min-height: 310px; border: 1px solid rgba(95,111,61,.35); background: rgba(239,224,194,.62); padding: 18px; box-shadow: 0 18px 32px rgba(36,25,22,.15); font-family: var(--soft-serif); color: var(--mountain); }
.specimen.one { right: 12vw; top: 12vh; transform: rotate(6deg); }
.specimen.two { left: 9vw; top: 12vh; transform: rotate(-5deg); color: var(--parchment); background: rgba(239,224,194,.09); border-color: rgba(214,168,79,.45); }
.botanical span { display: block; height: 190px; background: linear-gradient(90deg, transparent 49%, currentColor 50%, transparent 51%); position: relative; }
.botanical span::before, .botanical span::after { content: ""; position: absolute; width: 95px; height: 28px; border-radius: 100% 0; border: 2px solid currentColor; top: 42px; left: 48px; transform: rotate(-32deg); }
.botanical span::after { top: 98px; left: 84px; transform: rotate(32deg) scaleX(-1); }
.botanical b, .botanical em { display: block; }
.botanical b { font-size: 26px; }
.botanical em { font-size: 18px; }
.contour-card { position: absolute; bottom: 16vh; right: 13vw; width: 310px; height: 230px; border-radius: 50%; border: 1px solid rgba(47,74,62,.5); background: repeating-radial-gradient(ellipse at center, transparent 0 18px, rgba(95,111,61,.35) 19px 20px); color: var(--mountain); font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.contour-card span { position: absolute; background: var(--parchment); padding: 5px; }
.contour-card span:nth-child(1){left:40px;top:42px}.contour-card span:nth-child(2){right:20px;top:104px}.contour-card span:nth-child(3){left:86px;bottom:36px}
.cups { position: absolute; right: 15vw; bottom: 19vh; display: flex; gap: 28px; opacity: .7; }
.cups span { width: 76px; height: 54px; background: var(--parchment); border: 4px solid var(--sienna); border-radius: 0 0 36px 36px; box-shadow: inset 0 14px 0 rgba(124,53,38,.34); }
.summit-note { transform: translateX(-14vw) rotate(1.5deg); }
blockquote { margin: 30px 0 0; color: var(--sienna); font-size: clamp(28px, 3vw, 52px); line-height: 1.08; }
.trail-markers { position: absolute; right: 8vw; top: 24vh; display: grid; gap: 18px; }
.trail-markers button { cursor: pointer; color: var(--ink); background: var(--paper-shadow); border: 1px solid var(--sienna); border-radius: 50%; width: 96px; height: 96px; font: 600 18px var(--soft-serif); box-shadow: 0 12px 22px rgba(36,25,22,.22); }
.caption { position: absolute; right: 7vw; bottom: 22vh; width: 360px; padding: 22px; background: rgba(239,224,194,.78); border-left: 4px solid var(--olive); font-family: var(--soft-serif); font-style: italic; transition: transform .35s ease, opacity .35s ease; }
.caption.open { transform: translateY(-10px) rotate(-1deg); }
.archive-paper { background: rgba(239,224,194,.92); transform: rotate(.8deg); margin-left: 18vw; }
.engraving { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(124,53,38,.35); font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--sienna); }
.seal-nav { position: fixed; left: 50%; bottom: 54px; transform: translateX(-50%); display: flex; gap: 17px; z-index: 9; }
.seal-nav button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(239,224,194,.5); background: radial-gradient(circle at 35% 30%, var(--gold), var(--terracotta) 48%, var(--sienna)); cursor: pointer; box-shadow: 0 4px 0 rgba(36,25,22,.24); opacity: .72; transition: transform .25s ease, opacity .25s ease; }
.seal-nav button.active { transform: translateY(-8px) scale(1.18); opacity: 1; }
.seal-nav span { display: block; width: 12px; height: 12px; margin: 6px auto; border-left: 1px solid rgba(239,224,194,.55); border-radius: 60% 0; transform: rotate(38deg); }
.station-label { position: fixed; left: 5vw; bottom: 58px; z-index: 9; margin: 0; color: var(--mountain); }
.archive ~ .station-label, .archive .paper { color: var(--ink); }

@media (max-width: 760px) {
  html, body { overflow: auto; }
  .scroll { overflow-x: auto; }
  .panel { padding: 24px; align-items: flex-start; padding-top: 14vh; }
  .hero-paper { margin-left: 0; }
  .botanical, .contour-card, .cups { opacity: .32; transform: scale(.75); }
  .trail-markers { right: 4vw; top: auto; bottom: 16vh; display: flex; }
  .trail-markers button { width: 72px; height: 72px; font-size: 14px; }
  .caption { right: 4vw; width: 78vw; bottom: 30vh; }
  .station-label { display: none; }
}
