* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: 0; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.has-cover { overflow: hidden; height: 100svh; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: #7a2820; color: #ffe9cf; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; background: radial-gradient(ellipse at 50% 0%, #fffdf7 0%, var(--cream) 48%, #f2e8dc 100%); }
.ambient__orb { position: absolute; width: 55vw; aspect-ratio: 1; border-radius: 50%; filter: blur(55px); opacity: .25; }
.ambient__orb--one { background: #f3dcd0; top: 8%; left: -25%; }
.ambient__orb--two { background: #e5d8bd; right: -30%; top: 50%; }
.ambient__grain { position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); }
.topbar { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; padding: max(18px, env(safe-area-inset-top)) var(--page-gutter) 12px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 500 15px var(--serif); letter-spacing: .08em; color: var(--ink-deep); }
.wordmark > span { color: var(--gold); padding: 0 3px; }
.wordmark small { font: 10px var(--display); letter-spacing: .13em; color: #9b856e; }
.sound-toggle { border: 1px solid var(--line); background: rgba(255,253,248,.5); border-radius: 30px; padding: 8px 11px; font-size: 11px; display: flex; align-items: center; gap: 7px; backdrop-filter: blur(10px); }
.sound-toggle__dot { width: 6px; height: 6px; background: #b8a080; border-radius: 50%; }
.sound-toggle[aria-pressed="true"] .sound-toggle__dot { background: #80977c; box-shadow: 0 0 0 4px #80977c22; }
.scene { position: relative; min-height: 100svh; overflow: clip; isolation: isolate; scroll-snap-align: start; scroll-snap-stop: always; }
.scene__content { width: min(calc(100% - var(--page-gutter) * 2), var(--content-width)); margin-inline: auto; position: relative; }
.eyebrow { margin: 0; font: 500 10px var(--display); letter-spacing: .22em; text-transform: uppercase; color: #a18768; }
.body-copy { font-size: 14px; line-height: 1.95; letter-spacing: .035em; color: #8d7b6a; }
.chapter-label { display: flex; align-items: center; gap: 11px; font: 10px var(--display); letter-spacing: .15em; color: #a38a6d; }
.chapter-label > span { font-size: 13px; color: var(--gold); }
.chapter-label > i { width: 30px; height: 1px; background: var(--champagne); }
.section-heading { text-align: center; margin: 22px auto 30px; }
.section-heading h2, .memory-copy h2, .rsvp__content h2 { font: 400 clamp(29px, 8vw, 39px)/1.55 var(--serif); letter-spacing: .06em; color: var(--ink-deep); margin: 14px 0; }
.section-heading .body-copy { margin: 0 auto; max-width: 290px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--duration-reveal) var(--ease-dream), transform var(--duration-reveal) var(--ease-dream); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.primary-button, .secondary-button, .outline-button { min-height: 49px; border-radius: 999px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; cursor: pointer; transition: transform .25s var(--ease-dream), background .25s ease, box-shadow .25s ease; }
.primary-button { color: var(--white); background: var(--ink); border: 1px solid var(--ink); box-shadow: 0 8px 24px #6b584a1c; font-size: 14px; }
.primary-button span { color: #e5cba7; }
.secondary-button { background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.outline-button { border: 1px solid #d6bfa0; background: #fffaf3a6; color: var(--ink); font-size: 12px; }
.primary-button:active, .secondary-button:active, .outline-button:active { transform: scale(.98); }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 11px 17px; max-width: calc(100vw - 36px); border-radius: 30px; color: #fffaf3; background: #46372f; font-size: 12px; text-align: center; transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.story-progress { position: fixed; z-index: 30; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; padding: 10px 8px; border-radius: 30px; background: #fffdf855; backdrop-filter: blur(8px); }
.story-progress__dot { width: 5px; height: 5px; border-radius: 50%; background: #cdbda9; transition: transform .3s, background .3s; }
.story-progress__dot.is-active { background: #9b7954; transform: scale(1.65); }
.scroll-cue { position: absolute; z-index: 6; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; font: 10px var(--sans); letter-spacing: .16em; color: #a18768; white-space: nowrap; }
.scroll-cue span { width: 1px; height: 34px; overflow: hidden; background: #d8c3a5; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #8d6f4c; animation: cue-drip 2.1s var(--ease-soft) infinite; }
@keyframes cue-drip { 0% { top: -40%; } 100% { top: 110%; } }
@media (min-width: 700px) {
  :root { --page-gutter: 44px; --content-width: 760px; }
  .scene { min-height: 100svh; }
  .scene__content { max-width: 760px; }
  .story-progress { right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
