:root {
  --sage: #c5dfd0;
  --blush: #f4cfc9;
  --butter: #f6e4a8;
  --sage-deep: #3e5648;
  --ink: #2f4038;
  --muted: #6d7f75;
  --line: #eadfd4;
  --paper: #fff8f3;
  --form: #f8efe6;
  --soft: #e7d8c4;
  --cream: #fffdf9;
  --max: 1200px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(80% 50% at 0% 0%, var(--butter) 0%, transparent 55%),
    radial-gradient(70% 45% at 100% 8%, var(--blush) 0%, transparent 52%),
    radial-gradient(60% 40% at 50% 100%, var(--sage) 0%, transparent 55%),
    #f7efe8;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select { font-family: inherit; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease, border-radius 0.35s ease, top 0.35s ease, height 0.35s ease;
}

.nav.scrolled {
  top: 12px;
  left: 12px;
  right: 12px;
  height: 60px;
  padding: 0 22px;
  background: rgba(62, 86, 72, 0.92);
  color: var(--cream);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.logo {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.links a { opacity: 0.92; }
.links a:hover { opacity: 0.55; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.btn:hover { background: #4d6858; }

.nav.scrolled .btn {
  background: var(--butter);
  color: var(--ink);
}

.nav.scrolled .btn:hover { background: #f3d98a; }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--paper);
  color: var(--ink);
  display: none;
  flex-direction: column;
  justify-content: safe center;
  gap: 4px;
  padding: calc(84px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.menu-panel.open {
  display: flex;
}

section, footer { scroll-margin-top: 84px; }

.menu-panel a {
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.menu-panel a:hover { opacity: 0.5; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 76px 12px 12px;
}

.hero-frame {
  position: relative;
  height: calc(100vh - 88px);
  height: calc(100dvh - 88px);
  min-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sage-deep);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.slides, .slides img, .hero-shade {
  position: absolute;
  inset: 0;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  animation: drift 16s ease-in-out infinite alternate;
}

.slides img.on { opacity: 1; }

.hero-shade {
  background: linear-gradient(rgba(47, 64, 56, 0.08) 0%, rgba(31, 42, 36, 0.18) 42%, rgba(31, 42, 36, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 24px 56px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.kicker {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(88px, 11.4vw, 164px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.names {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.count {
  margin: 28px auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.count div { min-width: 64px; }

.count strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}

.count span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.count i {
  width: 1px;
  height: 28px;
  margin-top: 6px;
  background: rgba(255, 253, 249, 0.55);
  display: block;
}

.scratch {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 14px auto 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.scratch .kicker { margin-top: 0; }

.scratch-foil,
.scratch-hint {
  position: absolute;
  inset: -14px -32px;
  border-radius: 18px;
}

.scratch-foil {
  z-index: 2;
  width: calc(100% + 64px);
  height: calc(100% + 28px);
  margin: 0;
  touch-action: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='8' fill='none' stroke='%233e5648' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, crosshair;
  transition: opacity 0.7s ease;
}

.scratch-hint {
  z-index: 3;
  display: grid;
  place-items: center;
  margin: 0;
  pointer-events: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  transition: opacity 0.35s ease;
}

.scratch-hint.gone,
.scratch.revealed .scratch-hint { opacity: 0; }

.scratch.revealed .scratch-foil {
  opacity: 0;
  pointer-events: none;
}

.scratch:focus { outline: none; }

.scratch:focus-visible .scratch-hint {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.sheet {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff3ee 48%, #f8f3e4 100%);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -8px 32px rgba(62, 86, 72, 0.08);
}

.wrap {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
}

.section { padding: 120px 0; }

.story { padding-top: 160px; text-align: center; }
.story h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.story h2::after {
  content: "";
  display: block;
  width: 132px;
  height: 5px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage) 0 33.33%, var(--blush) 33.33% 66.66%, var(--butter) 66.66% 100%);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.lede {
  margin: 24px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.story-photos {
  margin-top: 72px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  text-align: left;
}

.story-photos figure { margin: 0; overflow: hidden; border-radius: 20px; }
.story-photos img { width: 100%; height: 100%; object-fit: cover; }
.story-photos .wide { flex: 1.6; height: 560px; }
.story-photos .tall { flex: 1; height: 440px; }

.day-grid,
.rsvp-grid,
.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.day-copy h2 { max-width: 10ch; }

.note {
  margin: 20px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.schedule { border-top: 1px solid var(--line); }

.slot {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.time, .slot h3, .mode h3, .faq-item h3, .stay-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.slot p, .mode p, .faq-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.travel h2 { max-width: 14ch; }

.travel-photo {
  margin: 48px 0 40px;
  border-radius: 20px;
  overflow: hidden;
  height: 620px;
}

.travel-photo img { width: 100%; height: 100%; object-fit: cover; }

.travel-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.mode { padding-top: 22px; border-top: 1px solid var(--line); }

.travel .btn { margin-top: 36px; }

.stay h2 { margin-bottom: 56px; }

.stay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stay-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.stay-card { overflow: hidden; }

.stay-card h3 { margin-top: 16px; font-size: 24px; }
.stay-card .where { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.stay-card .price { margin: 2px 0 0; font-size: 14px; }

.gallery { position: relative; padding-top: 140px; padding-bottom: 200px; }

.gallery .eyebrow { text-align: center; }

.watermark {
  position: absolute;
  top: 210px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--soft);
  z-index: 0;
  pointer-events: none;
}

.masonry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  margin-top: 36px;
}

.col.offset { margin-top: 180px; }

.shot { margin: 0 0 36px; }
.shot img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot.slim { width: 84%; }
.col.offset .shot.slim { margin-left: auto; }

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 14px;
}

.shot figcaption span { color: var(--muted); }

.rsvp-grid { align-items: center; }
.rsvp-copy h2 { max-width: 8ch; }

form {
  background: var(--form);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

input, select {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--cream);
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

input::placeholder { color: #a89890; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%232f4038' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

form .btn { width: 100%; height: 54px; margin-top: 6px; }

.thanks {
  display: none;
  background: var(--form);
  border-radius: 24px;
  padding: 48px 36px;
}

.thanks.show { display: block; }
.thanks h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}
.thanks p { margin: 0; color: var(--muted); }

.gift-grid { align-items: center; }
.gift-photo {
  border-radius: 20px;
  overflow: hidden;
  height: 640px;
}
.gift-photo img { width: 100%; height: 100%; object-fit: cover; }
.gift-copy h2 { max-width: 12ch; }
.gift-copy .btn { margin-top: 28px; }

.faq h2 { margin-bottom: 48px; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

footer {
  background: var(--sage-deep);
  color: var(--cream);
  border-radius: 32px 32px 0 0;
  padding: 120px 40px 32px;
  text-align: center;
}

footer h2 { color: var(--cream); }

.footer-names {
  margin: 18px 0 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: rgba(255, 253, 249, 0.72);
}

footer .btn {
  background: var(--butter);
  color: var(--ink);
}

footer .btn:hover { background: #f3d98a; }

.footer-meta {
  width: min(var(--max), 100%);
  margin: 72px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 253, 249, 0.64);
}

.footer-meta a { color: var(--cream); }
.footer-meta a:hover { opacity: 0.7; }

@media (max-width: 960px) {
  .links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .wrap { width: min(var(--max), calc(100% - 40px)); }
  .sheet { border-radius: 24px 24px 0 0; }
  h2 { font-size: 54px; }
  .section { padding: 88px 0; }
  .story { padding-top: 100px; }
  .story-photos { flex-direction: column; align-items: stretch; }
  .story-photos .wide, .story-photos .tall { height: 420px; flex: none; }
  .day-grid, .rsvp-grid, .gift-grid, .faq-grid, .travel-modes { grid-template-columns: 1fr; gap: 36px; }
  .day-copy h2, .rsvp-copy h2, .gift-copy h2, .travel h2 { max-width: none; }
  .travel-photo { height: 320px; }
  .stay-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .stay-card h3 { font-size: 22px; }
  .masonry { grid-template-columns: 1fr; gap: 0; }
  .col.offset { margin-top: 0; }
  .watermark { top: 120px; font-size: 64px; }
  .gift-photo { height: 460px; }
  .slot { grid-template-columns: 64px 1fr; gap: 16px; }
  .time, .slot h3 { font-size: 24px; }
  footer { padding: 88px 20px 24px; border-radius: 28px 28px 0 0; }
  .footer-meta { flex-direction: column; align-items: center; margin-top: 56px; }
  .hero-frame { border-radius: 20px; }
  .count strong { font-size: 32px; }
  .count div { min-width: 52px; }
  .shot.slim { width: 100%; margin-left: 0; }
}

@media (max-width: 700px) {
  .nav {
    height: calc(58px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
  }
  .nav.scrolled {
    top: max(8px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    height: 52px;
    padding: 0 16px;
  }
  .logo { font-size: 24px; }

  .hero {
    min-height: 100dvh;
    padding: calc(66px + env(safe-area-inset-top)) 10px 10px;
  }
  .hero-frame {
    height: auto;
    min-height: calc(100dvh - 76px - env(safe-area-inset-top));
    border-radius: 18px;
  }
  .hero-copy { padding: 0 16px 24px; }
  .hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .names { font-size: 32px; margin-top: 8px; }
  .kicker { margin-top: 10px; letter-spacing: 0.08em; }
  .count { gap: 8px; margin-top: 16px; }
  .count div { min-width: 0; }
  .count strong { font-size: 28px; }
  .count span { font-size: 10px; letter-spacing: 0; }
  .count i { height: 22px; }
  .scratch-foil,
  .scratch-hint { inset: -12px -10px; border-radius: 14px; }
  .scratch-foil { width: calc(100% + 20px); height: calc(100% + 24px); }
  .slides img { animation: none; }

  .wrap { width: calc(100% - 32px); }
  h2 { font-size: clamp(40px, 11vw, 48px); }
  .section { padding: 72px 0; }
  .story { padding-top: 80px; }
  .lede { font-size: 16px; }
  .story-photos { margin-top: 40px; gap: 12px; }
  .story-photos .wide,
  .story-photos .tall { height: 62vw; }
  .travel-photo { height: 56vw; margin: 28px 0 28px; border-radius: 16px; }
  .gift-photo { height: 78vw; border-radius: 16px; }
  .stay h2 { margin-bottom: 28px; }
  .stay-card h3 { font-size: 20px; margin-top: 10px; }
  .stay-card img { border-radius: 12px; }
  .slot { grid-template-columns: 58px 1fr; gap: 12px; padding: 20px 0; }
  .time, .slot h3, .mode h3, .faq-item h3 { font-size: 22px; }
  .watermark { font-size: 48px; top: 88px; }
  .gallery { padding-top: 88px; padding-bottom: 96px; }
  form { padding: 22px 16px; border-radius: 18px; }
  .menu-panel a { font-size: 40px; padding: 6px 0; }

  footer {
    padding: 72px 20px calc(24px + env(safe-area-inset-bottom));
  }
  footer h2 { font-size: clamp(40px, 11vw, 48px); }
  .footer-names { font-size: 24px; }
}

@media (hover: hover) {
  .stay-card:hover img { transform: scale(1.03); }
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
  .js .shot:not(.in) img { transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides img, .hero-copy { animation: none; }
  .slides img, .reveal, .shot img, .scratch-foil, .scratch-hint { transition: none; }
}
