:root {
  color-scheme: light;
  --pine: #183b32;
  --pine-deep: #102b25;
  --paper: #f5f0e5;
  --red: #b8322b;
  --red-dark: #922a25;
  --gold: #efbd32;
  --ink: #20352d;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.snowfall {
  position: fixed;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, 100svh);
  height: max(680px, 100svh);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--red);
  color: #fff9eb;
}
.scroll-art { position: absolute; z-index: 0; display: block; pointer-events: none; will-change: transform; transform: translate3d(0, var(--scroll-offset, 0px), 0) rotate(var(--scroll-rotate, 0deg)); }
.hero-star { width: clamp(70px, 12vw, 170px); }
.hero-star--one { top: 8%; right: 15%; color: var(--gold); }
.hero-star--two { bottom: 8%; left: 7%; width: clamp(56px, 8vw, 110px); color: rgba(255,249,235,.54); }
.hero-gift { right: 10%; bottom: 12%; width: clamp(74px, 10vw, 136px); height: auto; }
.hero-copy {
  position: relative;
  z-index: 1;
  left: clamp(24px, 10vw, 148px);
  width: min(1000px, 82vw);
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sparkle { margin-right: 7px; color: var(--gold); font-size: 17px; vertical-align: -1px; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 10.5vw, 148px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  will-change: transform;
}
.hero-line { display: block; }
.hero-recipient { display: block; max-width: 900px; margin-top: .16em; color: var(--gold); font-family: var(--sans); font-size: clamp(22px, 3.6vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: .02em; }
.round-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 37px;
  border: 1px solid rgba(255,249,235,.68);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: background .2s, color .2s, transform .2s;
}
.round-link:hover { transform: translateY(3px); background: var(--gold); border-color: var(--gold); color: var(--pine); }
.audio-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.audio-controls[hidden] { display: none; }
.audio-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255,249,235,.72);
  background: rgba(16,43,37,.16);
  color: #fff9eb;
  font: 600 12px var(--sans);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.audio-button:hover, .audio-button[aria-pressed="true"] { background: var(--gold); color: var(--pine-deep); }
.audio-button:focus-visible { outline: 3px solid #fff9eb; outline-offset: 3px; }
.audio-status { min-height: 1.5em; margin: 10px 0 0; color: rgba(255,249,235,.82); font-size: 12px; }
.voice-disclosure { margin: 9px 0 0; color: rgba(255,249,235,.72); font-size: 11px; }
.voice-disclosure[hidden] { display: none; }
.speech-audio { flex-basis: 100%; width: min(440px, 100%); height: 42px; }
.speech-audio[hidden] { display: none; }
.round-link { margin-top: 26px; }

.has-scroll-effects [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .75s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.has-scroll-effects [data-reveal].is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.crew {
  overflow: hidden;
  background: linear-gradient(155deg, #edb14c 0%, #dd8742 47%, #b63b30 100%);
  color: #172f28;
}
.crew-inner { max-width: 1440px; margin: 0 auto; padding: clamp(68px, 9vw, 126px) clamp(24px, 7vw, 104px) 48px; }
.crew-intro { display: grid; grid-template-columns: 1fr 1.5fr; column-gap: 48px; align-items: start; }
.crew-intro .eyebrow { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; color: rgba(23,47,40,.76); }
.crew-intro h2 { grid-column: 1; grid-row: 2 / span 2; margin: 0; font-family: var(--serif); font-size: clamp(46px, 7vw, 92px); font-weight: 500; line-height: .96; }
.crew-intro > p:last-child { grid-column: 2; grid-row: 2; max-width: 460px; align-self: end; margin: 0 0 4px; font-size: 16px; line-height: 1.7; }
.portrait-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 18px; margin-top: clamp(46px, 7vw, 84px); }
.portrait-card { min-width: 0; margin: 0; }
.portrait-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: #e8c66c; isolation: isolate; }
.portrait-visual::before { position: absolute; z-index: -1; top: 14%; left: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,249,235,.16); content: ""; transform: translateX(-50%); }
.portrait-visual::after { position: absolute; z-index: -1; right: -15%; bottom: -34%; width: 100%; aspect-ratio: 1; border: 1px solid rgba(23,47,40,.22); border-radius: 50%; content: ""; }
.portrait-card:nth-child(4n + 1) .portrait-visual { background: #d65b43; color: #fff5dd; }
.portrait-card:nth-child(4n + 2) .portrait-visual { background: #e5bf53; color: #183b32; }
.portrait-card:nth-child(4n + 3) .portrait-visual { background: #6a8f7a; color: #fff5dd; }
.portrait-card:nth-child(4n) .portrait-visual { background: #bb734a; color: #fff5dd; }
.portrait-monogram { font-family: var(--serif); font-size: clamp(38px, 5vw, 76px); line-height: 1; }
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-card figcaption { display: flex; align-items: baseline; gap: 10px; padding-top: 11px; color: #172f28; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.portrait-card figcaption span { color: rgba(23,47,40,.65); font-size: 10px; font-weight: 600; }
.crew-recipe { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: baseline; margin-top: 74px; padding-top: 20px; border-top: 1px solid rgba(23,47,40,.35); }
.crew-recipe > span { font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.crew-recipe p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3.2vw, 39px); line-height: 1.2; }
.crew-recipe i { color: #fff5dd; font-style: normal; }

.wishes {
  position: relative;
  overflow: hidden;
  background: var(--pine-deep);
  color: #fff9eb;
}
.wishes-inner { position: relative; z-index: 1; max-width: 1160px; min-height: 660px; display: flex; flex-direction: column; justify-content: center; margin: 0 auto; padding: 100px clamp(24px, 9vw, 132px); }
.wishes .eyebrow { color: var(--gold); }
.wishes h2 { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(54px, 9vw, 118px); font-weight: 500; line-height: .94; }
.wishes h2 span { display: block; }
.wishes h2 span + span { color: var(--gold); }
.wishes-copy { max-width: 640px; margin: 34px 0 0; color: rgba(255,249,235,.83); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.75; }
.wishes-signoff { margin: 28px 0 0; color: var(--gold); font-family: var(--serif); font-size: 28px; }
.wishes-gift { top: 17%; right: 15%; width: clamp(76px, 10vw, 140px); height: auto; }
.wishes-star { bottom: 12%; left: 9%; width: clamp(60px, 8vw, 116px); color: var(--red); }
.poem-section { background: var(--paper); color: var(--pine); }
.poem-inner { max-width: 1050px; margin: 0 auto; padding: clamp(76px, 10vw, 140px) clamp(24px, 9vw, 130px); }
.poem-inner .eyebrow { color: var(--red); }
.poem-inner h2 { margin: 0 0 40px; font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); font-weight: 500; line-height: .96; }
.poem-text { max-width: 700px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; }
.poem-text p { margin: 0 0 22px; }
.poem-text strong { color: var(--red); }
.poem-text .poem-shout { margin-top: 36px; color: var(--red); font-size: clamp(24px, 4vw, 42px); font-weight: 700; line-height: 1.2; }
.family-photo-section[hidden] { display: none; }
.family-photo-section { overflow: hidden; background: var(--paper); color: var(--pine); }
.family-photo-inner { max-width: 1280px; margin: 0 auto; padding: clamp(74px, 10vw, 140px) clamp(24px, 8vw, 118px); }
.family-photo-inner .eyebrow { color: var(--red); }
.family-photo-inner h2 {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .98;
}
.family-photo-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pine); }
.family-photo-image { display: block; width: 100%; height: 100%; object-fit: cover; }

.guestbook { position: relative; overflow: hidden; background: #dce8dc; color: var(--pine-deep); }
.guestbook::before, .guestbook::after { position: absolute; color: rgba(184,50,43,.16); font-size: 180px; line-height: 1; pointer-events: none; }
.guestbook::before { top: 28px; right: 3%; content: "✳"; transform: rotate(12deg); }
.guestbook::after { bottom: 8%; left: -52px; content: "✳"; font-size: 130px; }
.guestbook-inner { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: clamp(76px, 10vw, 138px) clamp(24px, 7vw, 104px); }
.guestbook-heading { max-width: 760px; }
.guestbook-heading .eyebrow { color: var(--red-dark); }
.guestbook-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 7.5vw, 94px); font-weight: 500; line-height: .96; }
.guestbook-heading > p:last-child { max-width: 560px; margin: 22px 0 0; color: rgba(16,43,37,.78); font-size: 16px; line-height: 1.7; }
.guestbook-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 24px; max-width: 980px; margin-top: 54px; padding: 28px; border: 1px solid rgba(16,43,37,.2); background: rgba(255,249,235,.68); }
.guestbook-label { align-self: end; color: var(--pine); font-size: 12px; font-weight: 700; }
.guestbook-label span { color: rgba(16,43,37,.62); font-weight: 400; }
.guestbook-form input[type="text"], .guestbook-form textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid rgba(16,43,37,.28); border-radius: 2px; background: #fffdf6; color: var(--pine-deep); font: 15px/1.5 var(--sans); }
.guestbook-form input[type="text"] { grid-column: 1 / -1; }
.guestbook-form textarea { grid-column: 1 / -1; resize: vertical; }
.guestbook-form input:focus-visible, .guestbook-form textarea:focus-visible, .guestbook-file:focus-visible, .guestbook-consent input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.guestbook-file { grid-column: 1 / -1; max-width: 100%; color: var(--pine); font: 13px var(--sans); }
.guestbook-preview { position: relative; grid-column: 1 / -1; width: min(260px, 100%); aspect-ratio: 4 / 3; overflow: hidden; background: #dce8dc; }
.guestbook-preview[hidden] { display: none; }
.guestbook-preview img { width: 100%; height: 100%; object-fit: cover; }
.guestbook-remove { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--pine-deep); color: white; font: 24px/1 var(--sans); cursor: pointer; }
.guestbook-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; color: rgba(16,43,37,.8); font-size: 12px; line-height: 1.5; }
.guestbook-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--red); }
.guestbook-submit { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 16px; border: 0; background: var(--red); color: #fff9eb; font: 700 13px var(--sans); cursor: pointer; transition: background .2s, transform .2s; }
.guestbook-submit:hover { background: var(--red-dark); transform: translateY(-2px); }
.guestbook-submit:focus-visible, .guestbook-remove:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
.guestbook-submit:disabled { cursor: wait; opacity: .7; }
.guestbook-submit span { color: var(--gold); font-size: 18px; }
.guestbook-status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; color: var(--pine); font-size: 13px; }
.guestbook-wall { margin-top: clamp(72px, 9vw, 116px); }
.guestbook-wall-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid rgba(16,43,37,.28); }
.guestbook-wall-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 4vw, 42px); font-weight: 500; }
.guestbook-count { flex: 0 0 auto; color: rgba(16,43,37,.65); font-size: 11px; }
.guestbook-messages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.guestbook-empty { grid-column: 1 / -1; margin: 0; padding: 26px 0; color: rgba(16,43,37,.7); font-family: var(--serif); font-size: 22px; }
.guestbook-note { position: relative; min-width: 0; padding: 13px 13px 18px; border: 1px solid rgba(16,43,37,.14); background: #fffdf6; box-shadow: 0 5px 16px rgba(16,43,37,.07); }
.guestbook-note:nth-child(3n + 2) { background: #fff4dc; transform: rotate(.5deg); }
.guestbook-note:nth-child(3n) { background: #f7e5df; transform: rotate(-.45deg); }
.guestbook-note::before { position: absolute; z-index: 1; top: 8px; right: 9px; color: var(--red); content: "✳"; font-size: 15px; }
.guestbook-note-image { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 14px; object-fit: cover; background: #dce8dc; }
.guestbook-note-copy { margin: 0; color: var(--pine-deep); font-family: var(--serif); font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.guestbook-note-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(16,43,37,.15); color: rgba(16,43,37,.66); font-size: 10px; }
.guestbook-note-author { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.guestbook-note-date { flex: 0 0 auto; }

.closing {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  overflow: hidden;
  background: var(--red);
  color: #fff7e8;
  text-align: center;
}
.closing::before, .closing::after {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,247,232,.16);
  border-radius: 50%;
  content: "";
}
.closing::before { left: -205px; top: -230px; }
.closing::after { right: -210px; bottom: -240px; width: 430px; height: 430px; }
.closing p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(35px, 5vw, 62px);
  line-height: 1.12;
}
.closing-star { margin: 21px 0 14px; color: var(--gold); font-size: 27px; }
.closing-caption { font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.footer {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 76px);
  background: var(--pine-deep);
  color: #fff9eb;
  font-size: 11px;
}
.footer > span:first-child { font-weight: 700; letter-spacing: .04em; }
.footer > span:nth-child(2) { color: rgba(255,249,235,.72); text-align: center; }
.footer a { color: var(--gold); font-size: 18px; text-decoration: none; }

@media (max-width: 700px) {
  .hero { min-height: 720px; height: 100svh; max-height: 920px; }
  .hero-copy { left: 22px; width: calc(100% - 44px); }
  .hero .eyebrow { max-width: 280px; font-size: 10px; line-height: 1.6; }
  .hero h1 { font-size: clamp(54px, 14vw, 88px); }
  .hero-recipient { max-width: 100%; font-size: clamp(24px, 7vw, 36px); }
  .hero-star--one { top: 6%; right: 8%; width: 64px; }
  .hero-star--two { bottom: 6%; left: auto; right: 8%; width: 50px; }
  .hero-gift { right: 9%; bottom: 10%; width: 76px; }
  .round-link { margin-top: 24px; }
  .crew-inner { padding: 66px 22px 34px; }
  .crew-intro { grid-template-columns: 1fr; gap: 18px; }
  .crew-intro .eyebrow { grid-column: 1; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 9px; }
  .crew-intro h2 { grid-column: 1; grid-row: auto; font-size: clamp(47px, 13vw, 72px); }
  .crew-intro > p:last-child { grid-column: 1; grid-row: auto; font-size: 14px; }
  .portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 38px; }
  .portrait-card figcaption { gap: 7px; font-size: 12px; }
  .portrait-monogram { font-size: clamp(46px, 15vw, 74px); }
  .crew-recipe { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .crew-recipe p { font-size: 25px; }
  .wishes-inner { min-height: 600px; padding: 76px 24px; }
  .wishes h2 { margin-top: 14px; font-size: clamp(52px, 14vw, 82px); }
  .wishes-copy { margin-top: 24px; font-size: 16px; }
  .wishes-gift { top: 7%; right: 8%; width: 60px; }
  .wishes-star { bottom: 6%; left: 6%; width: 52px; }
  .poem-inner { padding: 76px 24px; }
  .poem-inner h2 { margin-bottom: 30px; font-size: clamp(44px, 12vw, 66px); }
  .poem-text { font-size: 16px; }
  .family-photo-inner { padding: 76px 22px; }
  .family-photo-inner h2 { font-size: clamp(42px, 12vw, 68px); }
  .family-photo-frame { aspect-ratio: 4 / 3; }
  .guestbook::before { top: 18px; right: -24px; font-size: 112px; }
  .guestbook-inner { padding: 76px 22px; }
  .guestbook-heading h2 { font-size: clamp(45px, 12vw, 68px); }
  .guestbook-heading > p:last-child { font-size: 14px; }
  .guestbook-form { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; padding: 18px; }
  .guestbook-form input[type="text"], .guestbook-form textarea, .guestbook-file, .guestbook-preview, .guestbook-consent, .guestbook-submit, .guestbook-status { grid-column: 1; }
  .guestbook-wall { margin-top: 62px; }
  .guestbook-wall-heading { align-items: flex-start; }
  .guestbook-wall-heading h3 { font-size: 28px; }
  .guestbook-messages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .guestbook-note { padding: 9px 9px 13px; }
  .guestbook-note-copy { font-size: 16px; }
  .guestbook-note-meta { flex-direction: column; gap: 5px; }
  .closing { min-height: 300px; }
  .footer { flex-wrap: wrap; }
  .footer > span:nth-child(2) { order: 3; width: 100%; text-align: left; }
}

@media (max-width: 420px) {
  .guestbook-messages { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}