:root {
  --paper: #f2eddf;
  --ink: #252520;
  --red: #a6332e;
  --sage: #a9ad86;
  --line: rgba(37, 37, 32, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --display: "Unbounded", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}
body::selection { background: var(--red); color: var(--paper); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 3.5vw;
  color: white;
  mix-blend-mode: difference;
}
.mini-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
}
.topbar nav { display: flex; gap: 28px; }
.topbar nav a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.sound-toggle {
  justify-self: end;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.sound-toggle span { width: 2px; height: 9px; background: currentColor; }
.sound-toggle span:nth-child(2) { height: 15px; }
.sound-toggle.is-active span { animation: wave .65s infinite alternate ease-in-out; }
.sound-toggle.is-active span:nth-child(2) { animation-delay: -.3s; }
.sound-toggle.is-active span:nth-child(3) { animation-delay: -.5s; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  padding: 12vh 3.5vw 3.5vw;
  background: var(--paper);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6vh 2vw 2vh 0;
}
.eyebrow, .section-number {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .24em;
}
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0 -9vw 0 0;
  font-family: var(--serif);
  font-size: clamp(76px, 10vw, 168px);
  font-weight: 500;
  line-height: .67;
  letter-spacing: -.065em;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-left: 8vw; color: var(--red); }
.hero h1 i {
  position: absolute;
  left: 3.5vw;
  top: 45%;
  font-size: .55em;
  font-weight: 500;
}
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.hero-bottom p {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  line-height: .95;
}
.circle-link {
  display: grid;
  place-items: center;
  width: 70px;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: .35s ease;
}
.circle-link:hover { color: var(--paper); background: var(--ink); transform: rotate(-35deg); }
.circle-link svg { width: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.hero-visual { position: relative; min-height: 80vh; }
.photo-frame { height: 100%; overflow: hidden; border-radius: 260px 260px 12px 12px; }
.photo-frame img { filter: saturate(.72) contrast(.96); }
.date-stamp {
  position: absolute;
  z-index: 2;
  right: -1.5vw;
  bottom: 8%;
  width: 152px;
  height: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--red);
  border-radius: 50%;
  transform: rotate(7deg);
}
.date-stamp strong { font-family: var(--display); font-size: 58px; line-height: .8; }
.date-stamp span { font-family: var(--serif); font-style: italic; font-size: 24px; }
.date-stamp b { font-size: 10px; letter-spacing: .25em; margin-left: .25em; }
.scribble {
  position: absolute;
  z-index: 3;
  left: -65px;
  bottom: -15px;
  width: 270px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
}

.section-pad { padding: 110px 6vw; }
.intro { overflow: hidden; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 8vw;
  margin-top: 90px;
}
.intro h2, .program h2, .dress-copy h2, .rsvp h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 112px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.045em;
}
h2 em { color: var(--red); font-weight: 500; }
.intro-text { max-width: 430px; padding-top: 12px; }
.intro-text p { margin: 0 0 24px; font-size: 15px; line-height: 1.75; }
.portrait-strip {
  margin-top: 120px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) .7fr minmax(180px, .72fr);
  align-items: center;
  gap: 5vw;
}
.portrait { overflow: hidden; }
.portrait-a { height: 560px; border-radius: 0 200px 0 0; }
.portrait-b { height: 430px; border-radius: 200px 200px 0 0; }
.portrait img { filter: saturate(.72); transition: transform .8s ease; }
.portrait:hover img { transform: scale(1.035); }
.portrait-strip > p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 68px);
  line-height: .85;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
}
.portrait-strip > p i { color: var(--red); font-family: var(--serif); font-weight: 500; text-transform: none; }

.details { background: #293026; color: var(--paper); }
.details .section-number { color: var(--sage); }
.details-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3vw;
  margin: 70px 0 80px;
  text-align: center;
}
.details-head p { font-family: var(--serif); font-size: 23px; font-style: italic; }
.details-head p:last-child { text-align: right; }
.details-head p:first-child { text-align: left; }
.details-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 148px);
  letter-spacing: -.07em;
  line-height: 1;
}
.venue-card {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  min-height: 620px;
  border: 1px solid rgba(242,237,223,.25);
}
.venue-image { min-height: 500px; overflow: hidden; }
.venue-image img { filter: saturate(.6); transition: transform 1s ease; }
.venue-card:hover .venue-image img { transform: scale(1.025); }
.venue-info { display: flex; flex-direction: column; justify-content: center; padding: 6vw; }
.venue-info > span { color: var(--sage); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.venue-info h3 { margin: 35px 0; font-family: var(--serif); font-size: clamp(42px, 4.4vw, 72px); font-weight: 500; line-height: .85; }
.venue-info p { font-size: 13px; line-height: 1.7; opacity: .72; }
.text-link {
  width: fit-content;
  margin-top: 50px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.text-link b { margin-left: 14px; color: var(--sage); }

.program-title {
  display: grid;
  grid-template-columns: 1fr 250px;
  align-items: end;
  gap: 4vw;
  margin: 90px 0 100px;
}
.program-title p { margin: 0 0 4px; font-size: 13px; line-height: 1.6; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: .55fr 1fr;
  align-items: center;
  min-height: 175px;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--display); font-size: clamp(40px, 5.4vw, 84px); letter-spacing: -.06em; }
.timeline li > div {
  display: grid;
  grid-template-columns: 40px .7fr 1fr;
  align-items: center;
  gap: 2vw;
}
.timeline li span { color: var(--red); font-family: var(--serif); font-style: italic; }
.timeline h3 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 500; }
.timeline p { margin: 0; max-width: 330px; font-size: 13px; line-height: 1.6; }

.dresscode { background: #dcd2b6; }
.dress-grid {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 8vw;
  margin-top: 90px;
  align-items: center;
}
.dress-copy p { max-width: 390px; margin: 50px 0 0; font-size: 14px; line-height: 1.75; }
.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 420px;
  gap: 8px;
}
.palette span {
  position: relative;
  background: var(--color);
  border-radius: 100px 100px 4px 4px;
}
.palette span:nth-child(even) { transform: translateY(45px); }
.palette b {
  position: absolute;
  bottom: 24px;
  left: 50%;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  color: white;
  mix-blend-mode: difference;
}
.dress-note { margin: 120px 0 0; text-align: center; font-family: var(--serif); font-size: 30px; font-style: italic; }

.countdown {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--red);
  text-align: center;
}
.countdown::before {
  content: "♥";
  position: absolute;
  top: -260px;
  left: 50%;
  color: transparent;
  font-family: serif;
  font-size: 700px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(242,237,223,.12);
  transform: translateX(-50%);
}
.countdown-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1050px;
  margin: 70px auto 0;
}
.countdown-grid div { border-left: 1px solid rgba(242,237,223,.35); }
.countdown-grid div:last-child { border-right: 1px solid rgba(242,237,223,.35); }
.countdown-grid strong { display: block; font-family: var(--display); font-size: clamp(58px, 8vw, 125px); letter-spacing: -.08em; }
.countdown-grid span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.countdown-past { position: relative; margin: 70px 0 0; font-family: var(--serif); font-size: 46px; font-style: italic; }

.rsvp {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 9vw;
  background: var(--paper);
}
.rsvp-copy { position: relative; }
.rsvp h2 { margin-top: 90px; }
.rsvp-copy > p:not(.section-number) { max-width: 390px; margin-top: 45px; font-size: 14px; line-height: 1.75; }
.signature { margin-top: 100px; color: var(--red); font-family: var(--serif); font-size: 65px; font-style: italic; transform: rotate(-8deg); }
.rsvp-form { padding-top: 85px; }
.rsvp-form > label, fieldset { display: block; margin: 0 0 38px; padding: 0; border: 0; }
.rsvp-form label > span, .rsvp-form legend {
  display: block;
  margin-bottom: 12px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.rsvp-form input[type="text"], .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  padding: 16px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
}
.rsvp-form textarea { resize: vertical; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--red); }
.radio { display: flex !important; align-items: center; gap: 12px; cursor: pointer; margin: 15px 0; }
.radio input { width: 17px; height: 17px; accent-color: var(--red); }
.radio span { margin: 0 !important; font-size: 13px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.rsvp-form button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  cursor: pointer;
  transition: .3s ease;
}
.rsvp-form button:hover { background: var(--red); }
.rsvp-form button b { font-size: 23px; font-weight: 400; }
.form-status { min-height: 24px; color: var(--red); font-family: var(--serif); font-size: 22px; font-style: italic; }

footer { padding: 90px 4vw 25px; color: var(--paper); background: var(--ink); text-align: center; }
footer > p { margin: 0; color: var(--sage); font-family: var(--serif); font-size: 28px; font-style: italic; }
footer h2 { margin: 20px 0 70px; font-family: var(--display); font-size: clamp(56px, 11vw, 180px); letter-spacing: -.08em; line-height: 1; }
footer div { display: flex; justify-content: space-between; padding-top: 25px; border-top: 1px solid rgba(242,237,223,.25); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes wave { to { height: 4px; } }

@media (max-width: 900px) {
  .topbar { padding: 16px 20px; grid-template-columns: 1fr 1fr; }
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 100px 20px 24px; }
  .hero-copy { min-height: 46svh; padding: 0; }
  .hero h1 { margin: 40px 0 50px; font-size: clamp(66px, 20vw, 118px); }
  .hero h1 span:last-child { margin-left: 8vw; }
  .hero h1 i { left: 2vw; }
  .hero-visual { min-height: 60svh; }
  .photo-frame { border-radius: 200px 200px 8px 8px; }
  .date-stamp { right: -8px; width: 118px; height: 118px; }
  .date-stamp strong { font-size: 44px; }
  .scribble { left: -80px; width: 220px; }
  .section-pad { padding: 80px 20px; }
  .intro-grid, .program-title, .dress-grid, .rsvp { grid-template-columns: 1fr; }
  .intro-grid { margin-top: 55px; gap: 35px; }
  .intro h2, .program h2, .dress-copy h2, .rsvp h2 { font-size: clamp(54px, 16vw, 82px); }
  .portrait-strip { margin-top: 80px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .portrait-strip > p { grid-column: 1 / -1; grid-row: 1; margin-bottom: 25px; }
  .portrait-a, .portrait-b { height: 330px; }
  .portrait-a { border-radius: 0 100px 0 0; }
  .portrait-b { border-radius: 100px 100px 0 0; }
  .details-head { grid-template-columns: 1fr; margin: 50px 0; gap: 0; }
  .details-head p, .details-head p:first-child, .details-head p:last-child { text-align: center; margin: 6px; }
  .venue-card { grid-template-columns: 1fr; min-height: 0; }
  .venue-image { min-height: 390px; }
  .venue-info { padding: 45px 28px; }
  .program-title { margin: 55px 0 60px; gap: 35px; }
  .timeline li { grid-template-columns: 1fr; padding: 30px 0; gap: 25px; }
  .timeline li > div { grid-template-columns: 34px 1fr; }
  .timeline li p { grid-column: 2; }
  .dress-grid { margin-top: 55px; }
  .palette { height: 300px; gap: 5px; }
  .dress-note { margin-top: 100px; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 0; }
  .countdown-grid div:nth-child(3) { border-left: 1px solid rgba(242,237,223,.35); }
  .countdown-grid strong { font-size: 58px; }
  .rsvp { gap: 15px; }
  .rsvp h2 { margin-top: 55px; }
  .signature { margin-top: 45px; }
  .rsvp-form { padding-top: 25px; }
  footer { padding-top: 70px; }
}

/* Photo-led hero and the couple's real photo story */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100svh;
  padding: clamp(38px, 6vw, 86px);
  overflow: hidden;
  background: var(--paper);
}
.hero::before,
.hero::after { display: none; }
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  justify-self: center;
  aspect-ratio: 1170 / 574;
  margin: 0;
  padding: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px) clamp(50px, 5vw, 72px);
  background: #fff;
  box-shadow: 0 18px 45px rgba(44, 35, 28, .22);
  transform: rotate(-1deg);
}
.hero-photo.reveal.visible { transform: rotate(-1deg); }
.hero-photo img {
  object-position: center;
  filter: contrast(1.03);
}
.hero-photo figcaption { position: static; }
.hero-name {
  position: absolute;
  bottom: clamp(8px, 1.2vw, 17px);
  z-index: 2;
  font-family: var(--hand);
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: 600;
  line-height: 1;
}
.hero-name-dasha {
  left: 23%;
  color: #b84f5d;
  transform: translateX(-50%) rotate(-4deg);
}
.hero-name-ildar {
  right: 23%;
  color: #91a9df;
  transform: translateX(50%) rotate(3deg);
}

.intro { min-height: auto; }
.childhood-gallery {
  max-width: 1160px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2.2vw, 34px);
  margin: 95px auto 0;
  padding: 0 12px;
}
.childhood-card {
  margin: 0;
  padding: 11px 11px 48px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(44, 35, 28, .2);
  transition: transform .45s ease;
}
.childhood-card:nth-child(1) { transform: rotate(-5deg); }
.childhood-card:nth-child(2) { margin-top: 34px; transform: rotate(3deg); }
.childhood-card:nth-child(3) { margin-top: 12px; transform: rotate(-2deg); }
.childhood-card:nth-child(4) { margin-top: 42px; transform: rotate(5deg); }
.childhood-card:hover { transform: rotate(0) translateY(-8px); }
.childhood-card img {
  aspect-ratio: 3 / 4;
  object-position: center;
  filter: saturate(.86) contrast(.98);
}
.childhood-ildar-two img { object-position: 50% 45%; }
.childhood-card figcaption {
  margin: 8px 0 -35px;
  color: #b84f5d;
  font-family: var(--hand);
  font-size: 25px;
  text-align: center;
}
.childhood-card:nth-child(n + 3) figcaption { color: #91a9df; }

.couple-story {
  max-width: 1040px;
  display: grid;
  grid-template-columns: .88fr .55fr 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 55px);
  margin: 150px auto 40px;
}
.couple-photo {
  margin: 0;
  padding: 12px 12px 42px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(44, 35, 28, .2);
}
.couple-photo-walk { transform: rotate(-3deg); }
.couple-photo-moments { transform: rotate(3deg); }
.couple-photo img { height: auto; object-fit: contain; filter: saturate(.82) contrast(.98); }
.couple-story > p {
  position: relative;
  z-index: 2;
  margin: 0 -35px;
  color: #91a9df;
  font-family: var(--hand);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 600;
  line-height: .95;
  text-align: center;
  transform: rotate(-6deg);
}
.couple-story > p span { color: #b84f5d; }

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    padding: 65px 14px 45px;
  }
  .hero-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 9px 9px 48px;
  }
  .hero-photo img {
    object-position: 52% center;
  }
  .hero-name {
    bottom: 11px;
    font-size: clamp(29px, 9vw, 40px);
  }
  .hero-name-dasha { left: 24%; }
  .hero-name-ildar { right: 22%; }

  .childhood-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
    margin-top: 65px;
    padding: 0;
  }
  .childhood-card { padding: 7px 7px 38px; }
  .childhood-card:nth-child(2),
  .childhood-card:nth-child(4) { margin-top: 28px; }
  .childhood-card:nth-child(3) { margin-top: 0; }
  .childhood-card figcaption { margin-bottom: -29px; font-size: 21px; }

  .couple-story {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 100px auto 20px;
  }
  .couple-story > p {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 28px;
    font-size: 39px;
  }
  .couple-photo { padding: 7px 7px 28px; }
}

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

/* Scrapbook theme — inspired by the chosen WedWed template */
:root {
  --paper: #f7f4ee;
  --ink: #303033;
  --red: #b84f5d;
  --sage: #dddd9d;
  --hand: "Caveat", "Neucha", cursive;
}

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(85, 70, 55, .08) .65px, transparent .8px),
    radial-gradient(rgba(255,255,255,.75) .7px, transparent .85px);
  background-position: 0 0, 8px 11px;
  background-size: 15px 15px, 17px 17px;
}

.noise { opacity: .035; }
.topbar { color: var(--red); mix-blend-mode: normal; }
.topbar nav { display: none; }
.mini-mark { font-family: var(--hand); font-size: 30px; font-weight: 700; transform: rotate(-5deg); }
.topbar nav a { font-weight: 600; }
.sound-toggle { border-width: 2px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: end;
  padding: 25vh 5vw 5vh;
  background: transparent;
  overflow: hidden;
}
.hero::before,
.intro::before,
.program::before,
.rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: repeating-linear-gradient(0deg, transparent 0 6px, rgba(80,65,50,.025) 7px);
}

.garland {
  position: absolute;
  z-index: 3;
  top: 11vh;
  left: 50%;
  width: min(1040px, 82vw);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%) rotate(1deg);
}
.garland::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -2%;
  width: 104%;
  height: 50px;
  border-top: 2px solid #5d6066;
  border-radius: 50%;
  transform: rotate(-1deg);
}
.garland span {
  position: relative;
  z-index: 1;
  min-width: 59px;
  padding: 9px 8px 12px;
  color: #333;
  background: #faf8f1;
  border: 4px solid var(--c);
  border-radius: 3px 3px 9px 7px;
  box-shadow: 0 3px 8px rgba(44,35,28,.1);
  font-family: "Neucha", cursive;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1;
  text-align: center;
  transform: rotate(var(--r));
}
.garland span::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 5px;
  height: 10px;
  background: var(--c);
  transform: translateX(-50%);
}
.garland i { width: 22px; }

.hero-copy {
  position: relative;
  z-index: 4;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 0 4vh;
}
.hero .eyebrow {
  color: #b8caf3;
  font-family: var(--hand);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-4deg);
}
.hero h1 {
  margin: 0 -12vw 0 0;
  font-family: var(--hand);
  font-size: clamp(80px, 9vw, 150px);
  font-weight: 600;
  line-height: .68;
  letter-spacing: -.04em;
  transform: rotate(-3deg);
}
.hero h1 span:first-child { color: #b8caf3; }
.hero h1 span:last-child { margin: 0 0 0 8vw; color: var(--red); }
.hero h1 i { left: 2vw; top: 46%; font-family: var(--hand); font-size: .5em; color: #d49a98; }
.hero-bottom { align-items: center; }
.hero-bottom p {
  font-family: var(--hand);
  font-size: 25px;
  font-weight: 600;
  color: #333;
  transform: rotate(2deg);
}
.circle-link {
  width: 62px;
  border: 2px dashed #d49a98;
  color: #d49a98;
  transform: rotate(8deg);
}

.hero-visual {
  position: relative;
  min-height: 62vh;
  margin-left: 3vw;
}
.photo-frame,
.mini-polaroid {
  position: absolute;
  padding: 14px 14px 45px;
  background: #fff;
  border: 0;
  border-radius: 1px;
  box-shadow: 0 9px 19px rgba(58,43,31,.25);
}
.photo-frame {
  top: 8%;
  left: 18%;
  width: 48%;
  height: 72%;
  transform: rotate(5deg);
  overflow: visible;
}
.photo-frame img,
.mini-polaroid img { filter: saturate(.82) contrast(.96); }
.photo-frame b,
.mini-polaroid span {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  font-family: var(--hand);
  font-size: 20px;
  text-align: center;
}
.hero-copy.reveal,
.hero-copy.reveal.visible {
  transform: translateX(-50%);
}
.mini-polaroid { width: 34%; height: 48%; }
.polaroid-left { left: 0; bottom: 0; transform: rotate(-10deg); }
.polaroid-right { right: 0; bottom: 3%; transform: rotate(8deg); }
.polaroid-right span { color: #b8caf3; }
.polaroid-left span { color: var(--red); }
.date-stamp {
  right: 5%;
  bottom: 0;
  width: 128px;
  height: 128px;
  color: #303033;
  background: #dddd9d;
  border-radius: 3px;
  box-shadow: 0 5px 12px rgba(50,40,25,.18);
  transform: rotate(-7deg);
}
.date-stamp::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 55px;
  height: 18px;
  background: rgba(184,202,243,.72);
  transform: rotate(4deg);
}
.date-stamp strong { font-family: "Neucha", cursive; font-size: 50px; }
.date-stamp span { font-family: var(--hand); font-size: 22px; }
.doodle-heart {
  position: absolute;
  z-index: 4;
  color: var(--red);
  font-family: var(--hand);
  font-size: 57px;
  font-weight: 700;
}
.heart-one { top: 1%; left: 8%; transform: rotate(-15deg); }
.heart-two { top: 12%; right: 2%; transform: rotate(12deg); }
.doodle-arrow {
  position: absolute;
  z-index: 4;
  left: 55%;
  bottom: 6%;
  color: #d49a98;
  font-family: var(--hand);
  font-size: 72px;
  transform: rotate(35deg);
}

.section-number {
  width: fit-content;
  padding: 6px 12px;
  color: white;
  background: #b8caf3;
  border-radius: 3px;
  font-family: var(--hand);
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: none;
  transform: rotate(-2deg);
}
.intro, .program, .rsvp { position: relative; background: transparent; }
.intro h2, .program h2, .dress-copy h2, .rsvp h2 {
  font-family: var(--hand);
  font-weight: 600;
  letter-spacing: -.025em;
}
h2 em { color: var(--red); }
.intro-text {
  position: relative;
  padding: 35px;
  background: #dddd9d;
  box-shadow: 0 6px 15px rgba(60,40,20,.13);
  transform: rotate(2deg);
}
.intro-text::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 35%;
  width: 90px;
  height: 24px;
  background: rgba(184,202,243,.65);
  transform: rotate(-3deg);
}
.portrait { padding: 12px 12px 45px; background: white; border-radius: 0; box-shadow: 0 8px 18px rgba(44,35,28,.19); }
.portrait-a { transform: rotate(-4deg); }
.portrait-b { transform: rotate(5deg); }
.portrait-strip > p { font-family: var(--hand); text-transform: none; color: #b8caf3; }

.details {
  color: var(--ink);
  background-color: #b8caf3;
  background-image: linear-gradient(rgba(184,79,93,.11) 1px, transparent 1px);
  background-size: 100% 32px;
}
.details .section-number { color: white; background: var(--red); }
.details-head h2 { font-family: "Neucha", cursive; color: #b8caf3; }
.details-head p { font-family: var(--hand); font-size: 29px; }
.venue-card {
  grid-template-columns: 1.25fr .75fr;
  padding: 18px;
  background: white;
  border: 0;
  box-shadow: 0 10px 25px rgba(44,35,28,.18);
  transform: rotate(-1deg);
}
.venue-info { background: #dddd9d; }
.venue-info > span { color: var(--red); font-family: var(--hand); font-size: 18px; letter-spacing: 0; text-transform: none; }
.venue-info h3 { font-family: var(--hand); font-weight: 600; }
.text-link { color: #b8caf3; border-bottom: 2px dashed #b8caf3; font-family: var(--hand); font-size: 18px; letter-spacing: 0; text-transform: none; }

.program-title p,
.dress-copy p,
.rsvp-copy > p:not(.section-number) { font-family: var(--hand); font-size: 21px; }
.timeline li { border-color: rgba(184,202,243,.72); }
.timeline time { font-family: "Neucha", cursive; color: #b8caf3; }
.timeline li span { color: var(--red); font-family: var(--hand); font-size: 22px; }
.timeline h3 { font-family: var(--hand); font-size: 45px; font-weight: 600; }
.timeline p { font-family: var(--hand); font-size: 19px; }

.dresscode {
  background-color: #dddd9d;
  background-image: radial-gradient(rgba(154,137,115,.11) 1px, transparent 1px);
  background-size: 19px 19px;
}
.palette span { border-radius: 4px; box-shadow: 4px 6px 0 rgba(60,55,40,.12); transform: rotate(-2deg); }
.palette span:nth-child(even) { transform: translateY(45px) rotate(3deg); }
.palette b { font-family: var(--hand); font-size: 15px; letter-spacing: 0; text-transform: none; }
.dress-note { font-family: var(--hand); font-size: 34px; }

.countdown { color: var(--ink); background: #f7b7ba; }
.countdown::before { content: "♡"; color: transparent; -webkit-text-stroke-color: rgba(255,255,255,.38); font-family: var(--hand); }
.countdown-grid div { border-color: rgba(48,48,51,.25); }
.countdown-grid strong { font-family: "Neucha", cursive; }
.countdown-grid span { font-family: var(--hand); font-size: 16px; letter-spacing: 0; text-transform: none; }

.rsvp-form {
  position: relative;
  margin-top: 55px;
  padding: 60px 45px 45px;
  background: white;
  box-shadow: 0 9px 22px rgba(44,35,28,.17);
  transform: rotate(1deg);
}
.rsvp-form::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 120px;
  height: 25px;
  background: rgba(212,154,152,.72);
  transform: translateX(-50%) rotate(-2deg);
}
.rsvp-form label > span, .rsvp-form legend { font-family: var(--hand); font-size: 18px; letter-spacing: 0; text-transform: none; }
.rsvp-form input[type="text"], .rsvp-form select, .rsvp-form textarea { font-family: var(--hand); font-size: 19px; border-bottom: 2px dashed #9ba8c7; }
.rsvp-form button { font-family: var(--hand); font-size: 22px; background: #b8caf3; border-radius: 3px; transform: rotate(-1deg); }
.rsvp-form button:hover { background: #b84f5d; }
.rsvp-form button:disabled {
  opacity: .62;
  cursor: wait;
}
.signature { font-family: var(--hand); color: var(--red); }

footer { color: var(--ink); background: #d49a98; }
footer > p { font-family: var(--hand); color: #b84f5d; font-size: 35px; }
footer h2 { font-family: "Neucha", cursive; color: #fffaf1; text-shadow: 3px 3px 0 #b8caf3; }
footer div { border-top: 2px dashed rgba(48,48,51,.3); font-family: var(--hand); font-size: 17px; letter-spacing: 0; text-transform: none; }

@media (max-width: 900px) {
  .topbar { color: var(--red); }
  .hero { grid-template-columns: 1fr; min-height: 1180px; padding: 225px 20px 30px; align-items: start; }
  .garland {
    top: 82px;
    width: 650px;
    gap: 3px;
    transform: translateX(-50%) scale(.49) rotate(1deg);
    transform-origin: top center;
  }
  .garland span { min-width: 48px; }
  .garland i { width: 10px; }
  .hero-copy { min-height: auto; padding: 0; gap: 20px; }
  .hero .eyebrow { font-size: 21px; }
  .hero h1 { margin: 25px 0 0; font-size: clamp(82px, 26vw, 118px); }
  .hero h1 span:last-child { margin-left: 16vw; }
  .hero-bottom { align-items: flex-start; }
  .hero-bottom p { font-size: 22px; }
  .circle-link { width: 52px; }
  .hero-visual { min-height: 600px; margin: 25px 0 0; }
  .photo-frame { top: 8%; left: 18%; width: 62%; height: 55%; }
  .mini-polaroid { width: 44%; height: 38%; }
  .polaroid-left { left: -2%; bottom: 6%; }
  .polaroid-right { right: -3%; bottom: 2%; }
  .date-stamp { right: 34%; bottom: -2%; width: 105px; height: 105px; }
  .date-stamp strong { font-size: 42px; }
  .doodle-arrow { left: 42%; bottom: 8%; }
  .intro-text { padding: 30px 24px; }
  .portrait { padding: 8px 8px 35px; }
  .venue-card { grid-template-columns: 1fr; padding: 10px; }
  .rsvp-form { padding: 50px 24px 30px; }
}

/* Exact layout direction from the supplied reference */
.hero {
  display: block;
  min-height: 980px;
  padding: 0;
}
.topbar { display: none; }
.garland {
  top: 45px;
  width: min(980px, 74vw);
}
.hero-copy {
  position: absolute;
  z-index: 6;
  top: 390px;
  left: 50%;
  width: 430px;
  display: block;
  padding: 0;
  transform: translateX(-50%);
  text-align: center;
}
.hero-copy { display: none; }
.hero h1 {
  margin: 0;
  font-size: 76px;
  line-height: .78;
  transform: rotate(-2deg);
}
.hero h1 span:last-child { margin: 0 0 0 65px; }
.hero h1 i { left: 66px; top: 48%; }
.name-arrow {
  position: absolute;
  right: -45px;
  bottom: -75px;
  color: #b8caf3;
  font-family: var(--hand);
  font-size: 80px;
  transform: rotate(18deg);
}
.hero-visual {
  position: absolute;
  inset: 380px 0 0;
  min-height: 600px;
  margin: 0;
}
.photo-frame { display: none; }
.mini-polaroid {
  top: auto;
  bottom: -58px;
  width: 310px;
  height: 430px;
  padding: 16px 16px 78px;
}
.mini-polaroid::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  bottom: 78px;
  box-shadow: inset 0 0 30px rgba(20,20,20,.08);
  pointer-events: none;
}
.childhood-one { left: 10%; transform: rotate(-8deg); }
.childhood-two { left: 31%; bottom: -88px; transform: rotate(10deg); }
.childhood-three { right: 27%; bottom: -108px; transform: rotate(-4deg); }
.childhood-four { right: 8%; bottom: -45px; transform: rotate(8deg); }
.save-card {
  display: grid;
  place-items: center;
  padding: 16px;
  background: white;
}
.save-card > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #343438;
  background: #dddd9d;
  font-family: var(--hand);
}
.save-card small { color: var(--red); font-size: 23px; transform: rotate(-5deg); }
.save-card strong { color: #b84f5d; font-family: "Neucha", cursive; font-size: 130px; line-height: .8; font-weight: 400; }
.save-card span { font-size: 35px; }
.save-card b { color: #b8caf3; font-size: 25px; letter-spacing: .15em; }
.photo-label {
  position: absolute;
  z-index: 6;
  color: #b8caf3;
  font-family: var(--hand);
  font-size: 49px;
  font-weight: 600;
}
.label-dasha { left: 22%; bottom: 485px; transform: rotate(-5deg); }
.label-ildar { right: 34%; bottom: 485px; transform: rotate(3deg); }
.date-stamp { display: none; }
.heart-one { top: 4%; left: 17%; }
.heart-two { top: 10%; right: 19%; }
.doodle-arrow { left: auto; right: 37%; bottom: 420px; transform: rotate(55deg); }

.intro {
  min-height: 980px;
  padding-top: 80px;
  text-align: center;
}
.intro .section-number { display: none; }
.big-heart {
  height: 210px;
  color: #b84f5d;
  font-family: var(--hand);
  font-size: 260px;
  font-weight: 400;
  line-height: .7;
  transform: rotate(-8deg);
}
.intro-grid {
  display: block;
  max-width: 1000px;
  margin: 120px auto 0;
}
.intro h2 {
  font-family: "Neucha", cursive;
  font-size: clamp(64px, 6.3vw, 102px);
  color: #404044;
  line-height: 1;
}
.intro-text {
  max-width: 760px;
  margin: 55px auto 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.intro-text::before { display: none; }
.intro-text p {
  font-family: "Neucha", cursive;
  font-size: 34px;
  line-height: 1.28;
}
.portrait-strip {
  max-width: 900px;
  margin: 90px auto -260px;
}

.details {
  padding-top: 130px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(85,70,55,.08) .65px, transparent .8px),
    radial-gradient(rgba(255,255,255,.75) .7px, transparent .85px);
  background-position: 0 0, 8px 11px;
  background-size: 15px 15px, 17px 17px;
  text-align: center;
}
.details > .section-number { display: none; }
.invite-copy { max-width: 820px; margin: 0 auto; }
.invite-copy h2 {
  margin: 0;
  color: #b84f5d;
  font-family: "Neucha", cursive;
  font-size: clamp(62px, 6vw, 96px);
  font-weight: 400;
  line-height: .82;
  text-transform: uppercase;
}
.invite-copy p {
  max-width: 650px;
  margin: 55px auto 0;
  font-family: "Neucha", cursive;
  font-size: 32px;
  line-height: 1.3;
}
.details-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  max-width: 760px;
  margin: 85px auto 25px;
  gap: 30px;
}
.details-head p,
.details-head p:first-child,
.details-head p:last-child {
  color: #b8caf3;
  font-family: "Neucha", cursive;
  font-size: 54px;
  font-style: normal;
  text-align: center;
}
.details-head h2 {
  color: #b84f5d;
  font-family: "Neucha", cursive;
  font-size: 130px;
  font-weight: 400;
}
.calendar {
  width: 510px;
  margin: 0 auto 130px;
  font-family: "Neucha", cursive;
}
.calendar .week,
.calendar .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 8px;
}
.calendar .week { margin-bottom: 20px; color: #777; }
.calendar .week b { font-size: 20px; font-weight: 400; }
.calendar .days span {
  position: relative;
  display: grid;
  place-items: center;
  height: 42px;
  font-size: 28px;
}
.calendar .chosen::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 44px;
  border: 3px solid #b84f5d;
  border-radius: 47% 52% 49% 55%;
  transform: rotate(-10deg);
}
.calendar > p {
  margin: 18px -100px 0 0;
  color: #444;
  font-family: var(--hand);
  font-size: 34px;
  text-align: right;
  transform: rotate(-6deg);
}
.venue-card { text-align: left; }

@media (max-width: 900px) {
  .hero { min-height: 900px; padding: 0; }
  .garland {
    top: 76px;
    width: 720px;
    transform: translateX(-50%) scale(.46) rotate(1deg);
  }
  .hero-copy {
    top: 260px;
    width: 330px;
  }
  .hero h1 { font-size: 65px; }
  .hero h1 span:last-child { margin-left: 50px; }
  .hero h1 i { left: 48px; }
  .name-arrow { right: 5px; bottom: -65px; font-size: 62px; }
  .hero-visual { inset: 350px 0 0; min-height: 550px; }
  .mini-polaroid {
    width: 205px;
    height: 310px;
    padding: 10px 10px 52px;
  }
  .mini-polaroid::after { inset: 10px 10px 52px; }
  .save-card strong { font-size: 88px; }
  .save-card small { font-size: 17px; }
  .childhood-one { left: -22%; bottom: -8px; }
  .childhood-two { left: 13%; bottom: -60px; }
  .childhood-three { right: 8%; bottom: -75px; }
  .childhood-four { right: -30%; bottom: -5px; }
  .photo-label { font-size: 35px; }
  .label-dasha { left: 4%; bottom: 430px; }
  .label-ildar { left: 60%; right: auto; bottom: 430px; }
  .doodle-arrow { right: 28%; bottom: 370px; font-size: 55px; }
  .heart-one { top: 1%; left: 10%; }
  .heart-two { right: 8%; }

  .intro { min-height: auto; padding-top: 75px; }
  .big-heart { height: 130px; font-size: 170px; }
  .intro-grid { margin-top: 70px; }
  .intro h2 { font-size: 51px; }
  .intro-text { margin-top: 35px; }
  .intro-text p { font-size: 25px; }
  .portrait-strip { margin: 70px auto 0; }

  .details { padding-top: 90px; }
  .invite-copy h2 { font-size: 52px; }
  .invite-copy p { margin-top: 40px; font-size: 25px; }
  .details-head {
    grid-template-columns: 1fr auto 1fr;
    margin-top: 55px;
    gap: 8px;
  }
  .details-head p,
  .details-head p:first-child,
  .details-head p:last-child { font-size: 34px; }
  .details-head h2 { font-size: 85px; }
  .calendar { width: 100%; margin-bottom: 90px; }
  .calendar .week,
  .calendar .days { gap: 8px 2px; }
  .calendar .days span { height: 36px; font-size: 23px; }
  .calendar .chosen::before { width: 42px; height: 37px; }
  .calendar > p { margin-right: 10px; font-size: 29px; }
}

/* Keep the simplified photo hero above the earlier reference-layout overrides. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100svh;
  padding: clamp(38px, 6vw, 86px);
  overflow: hidden;
  background: var(--paper);
}
.hero::before,
.hero::after { display: none; }
.intro { min-height: auto; }

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    padding: 65px 14px 45px;
  }
}

/* Readability pass for handwritten supporting text. */
.section-number { font-size: 20px; }
.program-title p,
.dress-copy p,
.rsvp-copy > p:not(.section-number) {
  font-size: 24px;
  line-height: 1.5;
}
.timeline p {
  max-width: 390px;
  font-size: 23px;
  line-height: 1.45;
}
.venue-info > span { font-size: 21px; }
.venue-info p {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.5;
  opacity: .9;
}
.text-link { font-size: 21px; }
.palette b { font-size: 18px; }
.countdown-grid span { font-size: 19px; }
.rsvp-form label > span,
.rsvp-form legend { font-size: 21px; }
.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea { font-size: 21px; }
.radio span { font-size: 19px !important; }
footer div { font-size: 19px; }

@media (max-width: 900px) {
  .section-number { font-size: 18px; }
  .program-title p,
  .dress-copy p,
  .rsvp-copy > p:not(.section-number) { font-size: 22px; }
  .timeline p { font-size: 20px; }
  .venue-info p { font-size: 21px; }
  .text-link { font-size: 20px; }
  .countdown-grid span { font-size: 18px; }
  footer div { font-size: 17px; }
}

/* A second family celebration revealed during the wedding day. */
.baby-reveal {
  position: relative;
  z-index: 2;
  overflow: visible;
  background-color: #f8eef0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(184, 202, 243, .62) 0 17%, transparent 17.2%),
    radial-gradient(rgba(85, 70, 55, .08) .65px, transparent .8px);
  background-size: auto, 15px 15px;
}
.baby-reveal::before {
  content: "♡";
  position: absolute;
  top: 22px;
  right: 5vw;
  color: transparent;
  font-family: var(--hand);
  font-size: clamp(150px, 18vw, 290px);
  line-height: 1;
  -webkit-text-stroke: 3px rgba(184, 79, 93, .14);
  transform: rotate(10deg);
  pointer-events: none;
}
.baby-reveal .section-number {
  position: relative;
  z-index: 2;
  background: #b84f5d;
}
.baby-reveal-grid {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  margin: 75px auto 0;
}
.baby-copy { max-width: 570px; }
.baby-kicker {
  width: fit-content;
  margin: 0 0 25px;
  color: #91a9df;
  font-family: var(--hand);
  font-size: 31px;
  font-weight: 600;
  transform: rotate(-4deg);
}
.baby-copy h2 {
  margin: 0;
  color: #303033;
  font-family: "Neucha", var(--hand);
  font-size: clamp(58px, 5.5vw, 90px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.035em;
}
.baby-copy h2 em {
  display: inline-block;
  margin-top: 13px;
  color: #b84f5d;
  font-family: var(--hand);
  font-weight: 600;
  transform: rotate(-2deg);
}
.baby-text {
  max-width: 520px;
  margin: 48px 0 0;
  font-family: var(--hand);
  font-size: 30px;
  line-height: 1.35;
}
.baby-text strong { color: #b84f5d; font-weight: 700; }
.baby-question {
  margin: 35px 0 0 14%;
  color: #91a9df;
  font-family: var(--hand);
  font-size: 35px;
  font-weight: 600;
  transform: rotate(3deg);
}
.baby-question span { color: #b84f5d; }
.baby-gift-note {
  position: relative;
  max-width: 500px;
  margin: 42px 0 0;
  padding: 27px 28px 23px;
  background: #fffdf7;
  box-shadow: 0 9px 22px rgba(44, 35, 28, .16);
  transform: rotate(-1.5deg);
}
.baby-gift-note::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 105px;
  height: 23px;
  background: rgba(221, 221, 157, .78);
  transform: translateX(-50%) rotate(2deg);
}
.baby-gift-note p { margin: 0; }
.baby-gift-note .baby-gift-title {
  margin-bottom: 12px;
  color: #b84f5d;
  font-family: var(--hand);
  font-size: 27px;
  font-weight: 700;
}
.baby-gift-note > p:not(.baby-gift-title) {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.35;
}
.baby-gift-note ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 15px;
  padding: 0;
  list-style: none;
}
.baby-gift-note li {
  padding: 6px 12px;
  color: #303033;
  background: rgba(184, 202, 243, .55);
  border-radius: 3px;
  font-family: var(--hand);
  font-size: 20px;
  line-height: 1.1;
  transform: rotate(-1deg);
}
.baby-gift-note li:nth-child(2) {
  background: rgba(247, 183, 186, .55);
  transform: rotate(1deg);
}
.baby-gift-note li:nth-child(3) { background: rgba(221, 221, 157, .65); }
.baby-gift-note small {
  color: #7f98cf;
  font-family: var(--hand);
  font-size: 19px;
}
.baby-photos {
  position: relative;
  min-height: 700px;
}
.baby-photo {
  position: absolute;
  margin: 0;
  padding: 12px 12px 48px;
  background: #fff;
  box-shadow: 0 13px 31px rgba(44, 35, 28, .23);
}
.baby-photo::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 25px;
  background: rgba(221, 221, 157, .78);
  transform: translateX(-50%) rotate(-3deg);
}
.baby-photo img { filter: contrast(1.03) saturate(.75); }
.baby-photo figcaption {
  margin: 8px 0 -37px;
  color: #b84f5d;
  font-family: var(--hand);
  font-size: 25px;
  text-align: center;
}
.baby-photo-portrait {
  z-index: 1;
  top: 0;
  left: 0;
  width: 58%;
  height: 650px;
  transform: rotate(-4deg);
}
.baby-photo-portrait img { object-position: 50% 30%; }
.baby-photo-portrait figcaption {
  padding-left: 18px;
  text-align: left;
}
.baby-photo-ultrasound {
  z-index: 2;
  right: 0;
  bottom: 25px;
  width: 61%;
  height: 355px;
  transform: rotate(5deg);
}
.baby-photo-ultrasound figcaption { color: #91a9df; }

.baby-overlap-circles {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -78px;
  width: 430px;
  height: 250px;
  overflow: visible;
  pointer-events: none;
}
.baby-overlap-circles span {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.baby-overlap-circles span:first-child {
  top: 0;
  right: -70px;
  width: 310px;
  height: 310px;
  background: rgba(247, 183, 186, .68);
}
.baby-overlap-circles span:last-child {
  top: 95px;
  right: 225px;
  width: 155px;
  height: 155px;
  background: rgba(184, 202, 243, .55);
}

.form-hint {
  display: block;
  margin-top: 10px;
  color: rgba(48, 48, 51, .7);
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.35;
}

/* Keep the venue card compact on wide screens. */
.venue-card {
  width: min(1040px, 100%);
  height: 500px;
  min-height: 0;
  grid-template-columns: 1.08fr .92fr;
  margin-right: auto;
  margin-left: auto;
}
.venue-image {
  height: 100%;
  min-height: 0;
}
.venue-info { padding: clamp(38px, 4.5vw, 66px); }
.venue-info h3 {
  margin: 26px 0;
  font-size: clamp(38px, 3.6vw, 52px);
}
.venue-info .text-link { margin-top: 30px; }

/* Neutral backdrop keeps every dress-code swatch clearly visible. */
.dresscode {
  position: relative;
  z-index: 1;
  background-color: #e9e1d6;
  background-image:
    radial-gradient(rgba(76, 67, 58, .1) .7px, transparent .8px),
    linear-gradient(125deg, rgba(255, 255, 255, .38), transparent 55%);
  background-size: 18px 18px, 100% 100%;
}
.palette span {
  border: 5px solid rgba(255, 255, 255, .72);
  box-shadow: 5px 8px 0 rgba(60, 55, 40, .13);
}

.countdown {
  z-index: 3;
  overflow: visible;
}
.countdown::before {
  top: -310px;
  z-index: 0;
  pointer-events: none;
}
.countdown > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .baby-reveal { padding-top: 85px; }
  .baby-reveal::before {
    top: 65px;
    right: 24px;
    font-size: 155px;
  }
  .baby-reveal-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 55px;
  }
  .baby-copy { max-width: none; text-align: center; }
  .baby-kicker { margin: 0 auto 22px; font-size: 27px; }
  .baby-copy h2 { font-size: clamp(50px, 14vw, 66px); }
  .baby-text {
    margin-top: 35px;
    font-size: 26px;
  }
  .baby-question {
    margin: 28px 0 0;
    font-size: 31px;
  }
  .baby-gift-note {
    width: 100%;
    margin: 42px auto 0;
    padding: 25px 20px 21px;
    text-align: left;
    transform: rotate(-1deg);
  }
  .baby-gift-note .baby-gift-title {
    font-size: 25px;
    text-align: center;
  }
  .baby-gift-note > p:not(.baby-gift-title) { font-size: 21px; }
  .baby-gift-note ul { justify-content: center; }
  .baby-gift-note li { font-size: 19px; }
  .baby-gift-note small {
    display: block;
    font-size: 18px;
    text-align: center;
  }
  .baby-photos {
    width: min(520px, 100%);
    min-height: 540px;
    margin: 0 auto;
  }
  .baby-photo { padding: 8px 8px 38px; }
  .baby-photo figcaption {
    margin: 7px 0 -30px;
    font-size: 21px;
  }
  .baby-photo-portrait {
    width: 67%;
    height: 480px;
  }
  .baby-photo-ultrasound {
    width: 69%;
    height: 255px;
    bottom: 10px;
  }
  .baby-overlap-circles {
    bottom: -45px;
    width: 235px;
    height: 145px;
  }
  .baby-overlap-circles span:first-child {
    right: 0;
    width: 165px;
    height: 165px;
  }
  .baby-overlap-circles span:last-child {
    top: 62px;
    right: 120px;
    width: 88px;
    height: 88px;
  }
  .countdown::before {
    top: -180px;
    font-size: 460px;
  }
  .form-hint { font-size: 17px; }
  .venue-card { width: 100%; }
  .venue-image { height: 340px; min-height: 0; }
}

/* Final mobile pass after all reference-theme overrides. */
@media (max-width: 900px) {
  .garland {
    top: 55px;
    width: calc(100% - 20px);
    gap: 2px;
    transform: translateX(-50%) rotate(1deg);
  }
  .garland span {
    flex: 0 1 clamp(24px, 7.6vw, 30px);
    width: clamp(24px, 7.6vw, 30px);
    min-width: 0;
    padding: 7px 1px 9px;
    border-width: 3px;
    font-size: clamp(22px, 6.7vw, 26px);
  }
  .garland i {
    flex: 0 0 7px;
    width: 7px;
  }
  .hero-photo { max-width: 100%; }
  .program h2 { font-size: 48px; }
  .timeline time {
    color: #657cad;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }
  .timeline p { font-size: 21px; }
  .baby-copy h2 { font-size: clamp(44px, 12vw, 54px); }
  .venue-card {
    height: auto;
    grid-template-columns: 1fr;
    padding: 9px;
    transform: none;
  }
  .venue-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .venue-info { padding: 30px 24px 34px; }
  .venue-info h3 { font-size: 40px; }
  .countdown .eyebrow {
    font-family: var(--hand);
    font-size: 18px;
    letter-spacing: .06em;
    text-transform: none;
  }
  .rsvp-form { max-width: 100%; }
  .radio {
    min-height: 44px;
    margin: 5px 0;
  }
  .radio input {
    width: 20px;
    height: 20px;
  }
  footer div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
  }
}

/* Stronger contrast for the smallest decorative copy. */
.section-number { background: #849bd0; }
.timeline time,
.text-link { color: #657cad; }
.text-link { border-bottom-color: #657cad; }
footer > p { color: #fffaf1; }

html { overflow-x: hidden; }
@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}

/* A keepsake note in place of traditional flower bouquets. */
.flower-request {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding-top: 130px;
  padding-bottom: 190px;
  overflow: hidden;
  background-color: #dfe8f7;
  background-image:
    radial-gradient(rgba(75, 91, 124, .1) .7px, transparent .8px),
    linear-gradient(135deg, rgba(255, 255, 255, .36), transparent 58%);
  background-size: 18px 18px, 100% 100%;
}
.flower-request::before,
.flower-request::after {
  content: "♡";
  position: absolute;
  color: transparent;
  font-family: var(--hand);
  line-height: 1;
  -webkit-text-stroke: 3px rgba(184, 79, 93, .16);
  pointer-events: none;
}
.flower-request::before {
  top: 10%;
  left: 3vw;
  font-size: clamp(130px, 16vw, 250px);
  transform: rotate(-12deg);
}
.flower-request::after {
  right: 5vw;
  bottom: 4%;
  font-size: clamp(90px, 11vw, 170px);
  transform: rotate(13deg);
}
.flower-note {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  padding: 70px 78px 62px;
  background: #fffdf7;
  box-shadow: 0 14px 35px rgba(44, 35, 28, .2);
  text-align: center;
  transform: rotate(-1deg);
}
.flower-note::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 135px;
  height: 29px;
  background: rgba(247, 183, 186, .72);
  transform: translateX(-50%) rotate(2deg);
}
.flower-kicker {
  margin: 0 0 13px;
  color: #657cad;
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 600;
  transform: rotate(-2deg);
}
.flower-note h2 {
  margin: 0 0 35px;
  color: #b84f5d;
  font-family: "Neucha", var(--hand);
  font-size: clamp(66px, 7vw, 105px);
  font-weight: 400;
  line-height: .9;
}
.flower-note > p:not(.flower-kicker) {
  max-width: 730px;
  margin: 0 auto 18px;
  font-family: var(--hand);
  font-size: 28px;
  line-height: 1.4;
}
.flower-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 25px;
}
.flower-options span {
  padding: 8px 17px;
  color: #303033;
  background: rgba(247, 183, 186, .62);
  border-radius: 3px;
  font-family: var(--hand);
  font-size: 23px;
  transform: rotate(-2deg);
}
.flower-options span:last-child {
  background: rgba(221, 221, 157, .7);
  transform: rotate(2deg);
}
.flower-note small {
  color: #657cad;
  font-family: var(--hand);
  font-size: 21px;
}

@media (max-width: 900px) {
  .flower-request {
    padding: 95px 20px 155px;
  }
  .flower-request::before {
    top: 4%;
    left: -42px;
    font-size: 150px;
  }
  .flower-request::after {
    right: -16px;
    bottom: 3%;
    font-size: 105px;
  }
  .flower-note {
    padding: 55px 21px 43px;
    transform: rotate(-.6deg);
  }
  .flower-kicker { font-size: 25px; }
  .flower-note h2 {
    margin-bottom: 28px;
    font-size: clamp(55px, 16vw, 70px);
  }
  .flower-note > p:not(.flower-kicker) {
    font-size: 23px;
    line-height: 1.42;
  }
  .flower-options {
    gap: 9px;
    margin: 27px 0 22px;
  }
  .flower-options span {
    padding: 7px 12px;
    font-size: 20px;
  }
  .flower-note small {
    display: block;
    font-size: 19px;
    line-height: 1.3;
  }
}
