:root {
  /* Playfair Display masthead appears like glossy magazine title; Playfair Display* Display** from Google Fonts. */
  --vellum: #F2DFC3;
  --night: #1F1712;
  --chrome: #D8B66A;
  --blush: #B98262;
  --ink: #3A2418;
  --rose: #D77F9D;
  --denim: #6E8491;
  --paper-shadow: rgba(58, 36, 24, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--vellum);
  font-family: "Nunito Sans", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.22;
  background:
    radial-gradient(circle at 20% 30%, rgba(58, 36, 24, 0.18) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 80% 60%, rgba(216, 182, 106, 0.22) 0 1px, transparent 1px 100%);
  background-size: 28px 28px, 43px 43px;
  mix-blend-mode: multiply;
}

.binder-tabs {
  position: fixed;
  right: 0;
  top: 18vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab {
  transform: translateX(18px);
  padding: 12px 28px 12px 16px;
  min-width: 132px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font: 700 11px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: 0.13em;
  background: linear-gradient(135deg, rgba(242, 223, 195, 0.92), rgba(216, 182, 106, 0.86));
  border: 1px solid rgba(216, 182, 106, 0.95);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: -4px 6px 18px rgba(58, 36, 24, 0.18), inset 0 1px rgba(255,255,255,0.55);
  transition: transform 260ms ease, background 260ms ease;
}

.tab.active, .tab:hover { transform: translateX(0); background: linear-gradient(135deg, #F2DFC3, #D77F9D); }

.page {
  position: relative;
  min-height: 100vh;
  padding: clamp(34px, 5vw, 72px);
  display: grid;
  align-items: center;
  isolation: isolate;
}

.cover-page {
  background:
    radial-gradient(circle at 25% 12%, rgba(216, 182, 106, 0.44), transparent 30%),
    linear-gradient(180deg, #F2DFC3 0%, rgba(185, 130, 98, 0.38) 68%, #3A2418 100%);
  overflow: hidden;
}

.sky-label, .section-kicker {
  position: absolute;
  top: 34px;
  left: clamp(26px, 5vw, 72px);
  z-index: 3;
  font: 700 12px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(242, 223, 195, 0.64);
  border: 1px solid rgba(216, 182, 106, 0.7);
  border-radius: 999px;
  padding: 10px 14px;
}

.cover-paper {
  position: relative;
  width: min(860px, 86vw);
  margin-left: 5vw;
  z-index: 2;
  padding: clamp(34px, 7vw, 82px);
  border-radius: 36px 18px 44px 22px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.42), transparent 22%),
    var(--vellum);
  border: 2px solid rgba(216, 182, 106, 0.76);
  box-shadow: 0 28px 90px var(--paper-shadow), inset 0 0 0 7px rgba(216, 182, 106, 0.18);
  transform: rotate(-1.2deg);
}

.cover-paper::after, .chrome-border::after, .spark-star::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  background: radial-gradient(circle, rgba(255,255,255,0.98) 0 3px, rgba(216,182,106,0.9) 4px 7px, transparent 8px), linear-gradient(45deg, transparent 42%, rgba(255,255,255,0.95) 48% 52%, transparent 58%);
  filter: drop-shadow(0 0 10px rgba(216, 182, 106, 0.65));
  animation: glint 3.2s infinite;
}

.cover-paper::after { right: 42px; top: 36px; }

h1, h2, h3, blockquote { font-family: "Playfair Display", Georgia, serif; }

h1 {
  margin: 8px 0 20px;
  font-size: clamp(68px, 13vw, 180px);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.075em;
  color: var(--ink);
  text-shadow: 0 2px #F2DFC3, 0 6px 0 rgba(216, 182, 106, 0.55), 0 18px 30px rgba(58,36,24,0.2);
}

.sticker-caption, .label {
  margin: 0 0 12px;
  font: 700 12px/1 "DM Sans", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.cover-note {
  max-width: 600px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
  margin: 0;
}

.postage-stamp {
  position: absolute;
  right: 10%;
  bottom: 22px;
  padding: 14px;
  width: 98px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font: 700 11px/1.15 "DM Sans", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px dashed var(--blush);
  color: var(--blush);
  transform: rotate(6deg);
}

.chrome-chain { display: flex; gap: 7px; margin-bottom: 14px; }
.chrome-chain span, .binder-rings span {
  width: 22px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--chrome);
  background: radial-gradient(circle at 30% 25%, white, var(--chrome) 38%, var(--blush));
}

.heart-row { display: flex; gap: 18px; margin-top: 28px; }
.gem-heart {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--rose) 22%, #9b3e62 72%);
  transform: rotate(-45deg);
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(216,182,106,0.44), 0 0 22px rgba(215,127,157,0.8);
  animation: pulseGem 1.7s infinite;
}
.gem-heart::before, .gem-heart::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: inherit; }
.gem-heart::before { top: -13px; left: 0; }
.gem-heart::after { left: 13px; top: 0; }
.delay-one { animation-delay: 0.28s; }
.delay-two { animation-delay: 0.56s; }

.mountains { position: absolute; inset: auto -10% 0; height: 52vh; z-index: 1; overflow: hidden; }
.ridge { position: absolute; left: -8%; right: -8%; bottom: 0; height: 72%; clip-path: polygon(0 62%, 10% 45%, 20% 55%, 31% 22%, 43% 50%, 55% 28%, 68% 58%, 82% 31%, 100% 62%, 100% 100%, 0 100%); animation: drift 18s ease-in-out infinite alternate; }
.ridge-back { background: rgba(110, 132, 145, 0.62); bottom: 18%; transform: scaleX(1.2); }
.ridge-mid { background: rgba(185, 130, 98, 0.8); bottom: 4%; animation-duration: 22s; }
.ridge-front { background: var(--ink); height: 58%; animation-duration: 26s; }

.notes-page {
  background: linear-gradient(155deg, #F2DFC3, rgba(216,182,106,0.18)), radial-gradient(circle at 80% 20%, rgba(215,127,157,0.18), transparent 28%);
}

.review-grid {
  width: min(1140px, 92vw);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: minmax(260px, auto) minmax(260px, auto);
  grid-template-areas: "large receipt" "large postcard";
  gap: 28px;
}

.review-card, .map-panel, .guestbook-card {
  position: relative;
  background: rgba(242, 223, 195, 0.92);
  border: 1px solid rgba(58, 36, 24, 0.14);
  box-shadow: 0 24px 54px rgba(58,36,24,0.2), inset 0 1px rgba(255,255,255,0.5);
}

.review-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 26px;
  transition: transform 360ms ease, filter 360ms ease, box-shadow 360ms ease;
}
.review-card:hover { filter: saturate(1.08) contrast(1.04); box-shadow: 0 30px 80px rgba(58,36,24,0.28), 0 0 0 3px rgba(216,182,106,0.28); }
.review-card.large { grid-area: large; min-height: 620px; display: flex; flex-direction: column; justify-content: center; }
.receipt { grid-area: receipt; border-radius: 10px; background: linear-gradient(90deg, transparent 0 12px, rgba(58,36,24,0.08) 12px 13px, transparent 13px), #F2DFC3; }
.postcard { grid-area: postcard; background: rgba(242,223,195,0.74); backdrop-filter: blur(4px); }
.tilted-left { transform: rotate(-1.5deg); }
.tilted-right { transform: rotate(1.6deg); }

.review-card h2 { margin: 0 0 20px; font-size: clamp(36px, 5vw, 72px); line-height: 0.96; letter-spacing: -0.035em; }
.review-card h3 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 42px); line-height: 1; }
.review-card p, .trail-note span { font-size: 17px; line-height: 1.55; }
blockquote { margin: 0; font-size: clamp(25px, 3vw, 40px); line-height: 1.12; font-style: italic; color: var(--blush); }

.brad { position: absolute; top: 22px; left: 26px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, var(--chrome) 42%, var(--blush)); box-shadow: 0 0 18px rgba(216,182,106,0.7); animation: pulseGem 2.2s infinite; }
.chrome-border { position: absolute; inset: 13px; border: 2px solid rgba(216,182,106,0.72); border-radius: 20px; pointer-events: none; }
.chrome-border::after { right: 14%; bottom: 8%; top: auto; }
.rating-bubbles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rating-bubbles span, .underlined { display: inline-block; padding: 8px 12px; border-radius: 999px; background: radial-gradient(circle at 25% 15%, white, rgba(216,182,106,0.78)); font: 800 12px/1 "DM Sans"; text-transform: uppercase; letter-spacing: .12em; }
.underlined { border-radius: 6px; background: linear-gradient(transparent 58%, rgba(215,127,157,0.55) 59%); }
.perforation { position: absolute; inset: 0 auto 0 -8px; width: 16px; background: radial-gradient(circle, var(--vellum) 0 6px, transparent 7px) 0 0/16px 22px; }
.photo-corner { position: absolute; width: 54px; height: 54px; border-color: var(--chrome); border-style: solid; opacity: .9; }
.top-left { top: 14px; left: 14px; border-width: 6px 0 0 6px; }
.bottom-right { right: 14px; bottom: 14px; border-width: 0 6px 6px 0; }

.switchback-page { background: linear-gradient(180deg, rgba(242,223,195,0.95), rgba(185,130,98,0.34)); }
.map-panel {
  width: min(1120px, 92vw);
  min-height: 640px;
  margin: auto;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 34px 70px 28px 54px;
  background:
    linear-gradient(118deg, transparent 49.4%, rgba(58,36,24,0.11) 50%, transparent 50.6%),
    linear-gradient(28deg, rgba(110,132,145,0.1), transparent 35%),
    var(--vellum);
  overflow: hidden;
}
.map-panel h2 { max-width: 600px; margin: 0; font-size: clamp(42px, 7vw, 92px); line-height: .9; }
.trail-line { position: absolute; inset: 210px 7% 90px; width: 86%; height: 48%; }
.trail-line path { fill: none; stroke: var(--blush); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 16 18; filter: drop-shadow(0 2px rgba(216,182,106,.7)); }
.trail-note { position: absolute; width: min(250px, 40vw); padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,0.34); border: 1px solid rgba(216,182,106,.7); box-shadow: 0 14px 35px rgba(58,36,24,.15); }
.trail-note b { display: block; font: 700 11px/1 "DM Sans"; text-transform: uppercase; letter-spacing: .16em; color: var(--rose); margin-bottom: 8px; }
.note-a { left: 9%; bottom: 16%; transform: rotate(-2deg); }
.note-b { left: 34%; bottom: 36%; transform: rotate(1.8deg); }
.note-c { right: 18%; top: 30%; transform: rotate(-1deg); }
.note-d { right: 7%; bottom: 18%; transform: rotate(2deg); }

.guestbook-page {
  background: radial-gradient(circle at 64% 34%, rgba(215,127,157,.24), transparent 28%), linear-gradient(180deg, #3A2418, #1F1712 72%);
  color: var(--vellum);
}
.guestbook-card {
  width: min(880px, 90vw);
  margin: auto;
  padding: clamp(34px, 6vw, 76px);
  border-radius: 42px;
  color: var(--vellum);
  background: linear-gradient(135deg, rgba(58,36,24,.98), rgba(31,23,18,.98));
  border-color: rgba(216,182,106,.55);
  box-shadow: 0 0 120px rgba(215,127,157,.18), 0 30px 80px rgba(0,0,0,.36), inset 0 0 0 1px rgba(216,182,106,.32);
}
.guestbook-card h2 { margin: 0 0 14px; font-size: clamp(42px, 7vw, 92px); line-height: .9; }
.final-quote { margin: 20px 0 30px; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(25px, 3.4vw, 44px); line-height: 1.22; color: #F2DFC3; text-shadow: 0 0 24px rgba(216,182,106,.24); }
.binder-rings { position: absolute; left: 24px; top: 28px; display: flex; flex-direction: column; gap: 18px; }
.pearl-button { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, white, #F2DFC3 35%, #D8B66A); display: inline-block; }
.signature-row { display: flex; align-items: center; gap: 12px; color: rgba(242,223,195,.82); font: 700 12px/1.2 "DM Sans"; text-transform: uppercase; letter-spacing: .15em; }
.spark-star { position: relative; width: 42px; height: 42px; display: inline-block; }
.spark-star::before { inset: -10px auto auto -10px; animation-duration: 2s; }

.snap-in, .reveal-card { opacity: 0; transform: translateY(34px) rotate(var(--start-rotate, 0deg)); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.snap-in.in-view, .reveal-card.in-view { opacity: 1; transform: translateY(0) rotate(var(--end-rotate, 0deg)); }
.tilted-left { --end-rotate: -1.5deg; }
.tilted-right { --end-rotate: 1.6deg; }
.review-card::before {
  content: attr(data-note);
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(242,223,195,0.72);
  color: var(--blush);
  font: 700 12px/1.2 "DM Sans";
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.review-card:hover::before { opacity: 1; transform: translateY(0); }

@keyframes pulseGem { 0%, 100% { transform: rotate(-45deg) scale(1); filter: brightness(1); } 50% { transform: rotate(-45deg) scale(1.13); filter: brightness(1.22); } }
@keyframes drift { from { transform: translateX(-1.5%) scaleX(1.05); } to { transform: translateX(1.5%) scaleX(1.05); } }
@keyframes glint { 0%, 74%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); } 80% { opacity: 1; transform: scale(1) rotate(25deg); } 88% { opacity: .25; transform: scale(.72) rotate(45deg); } }

@media (max-width: 820px) {
  .binder-tabs { top: auto; bottom: 12px; left: 10px; right: 10px; flex-direction: row; justify-content: center; gap: 5px; }
  .tab { min-width: 0; padding: 10px 8px; transform: none; border-radius: 999px; border: 1px solid rgba(216,182,106,.9); font-size: 9px; }
  .review-grid { grid-template-columns: 1fr; grid-template-areas: "large" "receipt" "postcard"; }
  .review-card.large { min-height: auto; }
  .cover-paper { margin-left: 0; }
  .trail-note { position: relative; inset: auto; width: auto; margin: 18px 0; }
  .trail-line { opacity: .28; }
  .map-panel { padding-bottom: 30px; }
}
