:root {
  --pink: #edc4cc;
  --rose: #c66c78;
  --ink: #292623;
  --muted: #786a66;
  --paper: #fbf8f2;
  --line: rgba(41, 38, 35, .72);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--pink);
  font-family: "Cormorant Garamond", Georgia, serif;
  overflow-x: hidden;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  mix-blend-mode: multiply;
  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='.08'/%3E%3C/svg%3E");
  z-index: 20;
}

.mini-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 29px 16px 5px;
  font-family: "Caveat", cursive;
  letter-spacing: 1.5px;
  font-size: 16px;
  color: rgba(41, 38, 35, .68);
}

.mini-header p { margin: 0; }
.mini-header span { color: var(--rose); font-size: 20px; }

.invitation {
  width: min(1120px, calc(100% - 44px));
  margin: 22px auto 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 46px);
}

.hero-panel { padding: 50px 30px 44px; }

.hero-kicker,
.hero-note { font-family: "Caveat", cursive; }

.hero-kicker {
  margin: 0 auto 15px;
  font-size: 18px;
  letter-spacing: .7px;
}

.hero-panel h1 {
  display: grid;
  justify-items: center;
  margin: 0;
  font: 600 clamp(55px, 5vw, 70px)/.68 "Caveat", cursive;
  letter-spacing: -2px;
  transform: rotate(-2deg);
}

.hero-panel h1 i {
  color: var(--rose);
  font-size: .65em;
  font-weight: 400;
  line-height: .62;
}

.hero-illustration {
  display: block;
  width: 112%;
  height: auto;
  margin: 18px -6% 4px;
  filter: drop-shadow(0 10px 12px rgba(72, 48, 44, .08));
}

.hero-note {
  margin: -1px 0 18px;
  color: var(--rose);
  font-size: 20px;
  transform: rotate(-4deg);
}

.hero-date {
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(41,38,35,.45);
  border-bottom: 1px solid rgba(41,38,35,.45);
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 10px;
}

.hero-date b { font-size: 14px; font-weight: 600; }
.hero-date span:first-child { text-align: right; }
.hero-date span:last-child { text-align: left; }

.card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 44px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(110, 60, 72, .14), inset 0 0 0 1px rgba(255,255,255,.6);
}

.card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(198, 108, 120, .09);
  border-radius: 36px;
  pointer-events: none;
}

.panel {
  position: relative;
  text-align: center;
  padding: 58px 42px;
}

.panel + .panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  border-top: 1.5px solid rgba(41, 38, 35, .28);
  transform: rotate(-1deg);
}

.card-details { margin-top: 0; }
.card-thanks {
  grid-column: 1 / -1;
  margin-top: 0;
}

.ganapathy,
.small-copy,
.eyebrow,
.meet,
.with,
.monday,
.scribble-note,
.compliments,
.date-signoff,
footer {
  font-family: "Caveat", cursive;
}

.ganapathy {
  margin: 0 auto 10px;
  font-size: clamp(18px, 2vw, 23px);
  color: var(--rose);
}

.arch-doodle {
  display: block;
  width: 118%;
  height: auto;
  margin: 0 -9% 8px;
  filter: drop-shadow(0 8px 11px rgba(72, 48, 44, .08));
}

svg { width: 100%; height: auto; overflow: visible; }
svg path, svg circle, svg rect {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
svg .rose { stroke: var(--rose); }

.small-copy { font-size: 22px; margin: 4px 0 8px; }

.intro-panel h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.02;
}

.amp { color: var(--rose); font-family: "Caveat", cursive; font-size: 1.1em; }

.address {
  margin: 14px 0 22px;
  color: var(--muted);
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
}

.body-copy {
  max-width: 295px;
  margin: 22px auto;
  font-size: 19px;
  line-height: 1.48;
}

.intro-panel h1 {
  font-family: "Caveat", cursive;
  font-size: clamp(55px, 6vw, 80px);
  line-height: .8;
  font-weight: 500;
  text-transform: uppercase;
  transform: rotate(-3deg);
  margin: 39px 0 20px;
  letter-spacing: -3px;
}

.intro-panel h1::after {
  content: "";
  display: block;
  width: 72%;
  height: 8px;
  margin: 10px auto 0;
  border-top: 3px solid var(--rose);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.of-our { margin-top: 14px; }
.couple-panel { padding-top: 38px; }
.couple-doodle {
  display: block;
  width: 94%;
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 9px 12px rgba(72, 48, 44, .08));
}
.meet, .with { font-size: 23px; color: var(--rose); margin: 0 0 2px; }
.with { margin: 15px 0 12px; color: var(--ink); }

.name {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(40px, 4vw, 54px);
  line-height: .95;
}

.family-line {
  font-size: 16px;
  line-height: 1.4;
  margin: 12px auto;
  color: #574d49;
}
.family-line span { font-style: italic; }

.heart-divider { display: flex; align-items: center; gap: 12px; width: 78%; margin: 31px auto 0; color: var(--rose); }
.heart-divider i { height: 1px; background: var(--ink); flex: 1; transform: rotate(-2deg); }
.heart-divider i:last-child { transform: rotate(2deg); }
.heart-divider b { font: 28px "Caveat", cursive; }

.date-panel { padding-top: 56px; }
.eyebrow { margin: 0 0 8px; color: var(--rose); font-size: 26px; }
.date-stack { display: grid; justify-items: center; margin: 2px auto; }
.date-stack span { font: 600 56px/1 "Caveat", cursive; }
.date-stack strong { font-size: 34px; font-style: italic; font-weight: 500; line-height: .9; }
.monday { font-size: 21px; margin: 7px 0; }
.clock-doodle {
  display: block;
  width: 108%;
  height: auto;
  margin: 8px -4% 0;
  filter: drop-shadow(0 8px 11px rgba(72, 48, 44, .08));
}
.time { font-size: 28px; margin: 2px 0 10px; }
.time small { font-size: 15px; color: var(--rose); font-family: "Caveat", cursive; }

button { font: inherit; }
.text-button {
  border: 0;
  background: none;
  border-bottom: 1px solid var(--ink);
  padding: 4px 2px;
  cursor: pointer;
  font: 21px "Caveat", cursive;
  color: var(--ink);
}
.text-button:hover { color: var(--rose); border-color: var(--rose); }

.venue-panel { padding-top: 62px; }
.venue-name {
  max-width: 100%;
  margin: 12px auto 18px;
  font: 600 clamp(34px, 4.2vw, 48px)/.92 "Caveat", cursive;
  letter-spacing: -1px;
  text-wrap: balance;
  transform: rotate(-2deg);
}
.venue-illustration {
  display: block;
  width: 118%;
  height: auto;
  margin: 18px -9% 22px;
  filter: drop-shadow(0 8px 10px rgba(72, 48, 44, .08));
}

.oval-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 210px;
  padding: 12px 22px 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  font: 600 20px "Caveat", cursive;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.oval-button:hover { transform: rotate(-2deg) scale(1.03); color: var(--rose); border-color: var(--rose); }
.pin { font-family: serif; }
.scribble-note { margin: 12px 0 0; font-size: 16px; transform: rotate(-3deg); }

.schedule-panel h2, .wishes-panel h2 {
  margin: 0 0 27px;
  font: 600 clamp(50px, 5vw, 68px)/.85 "Caveat", cursive;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.timeline { width: 92%; margin: 18px auto 5px; text-align: left; }
.timeline-item { display: grid; grid-template-columns: 62px 18px 1fr; align-items: start; min-height: 66px; }
.timeline-item > span { font: 21px "Caveat", cursive; color: var(--rose); }
.timeline-item i { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; margin: 6px 0 0 3px; position: relative; }
.timeline-item:not(:last-child) i::after { content: ""; position: absolute; width: 1px; height: 56px; background: var(--ink); left: 2px; top: 8px; transform: rotate(2deg); }
.timeline-item p { margin: 0; }
.timeline-item b { display: block; font-size: 19px; font-weight: 600; }
.timeline-item small { font-size: 15px; color: var(--muted); font-style: italic; }
.schedule-illustration {
  display: block;
  width: 94%;
  height: auto;
  margin: 16px auto -8px;
  filter: drop-shadow(0 8px 10px rgba(72, 48, 44, .07));
}

.wishes-panel h2 { font-size: clamp(50px, 6vw, 74px); margin: 14px 0 22px; }
.floral-doodle {
  display: block;
  width: 112%;
  height: auto;
  margin: 20px -6% 10px;
  filter: drop-shadow(0 8px 11px rgba(72, 48, 44, .08));
}
.compliments { color: var(--rose); font-size: 21px; margin: 0; }
.wishes-panel h3 { font: 600 38px "Caveat", cursive; margin: 0; }

.thanks-panel {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(320px, 1.25fr) minmax(160px, .65fr);
  grid-template-rows: auto auto auto 1fr;
  align-items: center;
  gap: 8px clamp(24px, 4vw, 58px);
  padding: 64px clamp(54px, 7vw, 92px);
}
.thanks-illustration {
  grid-column: 2;
  grid-row: 3 / 5;
  display: block;
  width: 100%;
  height: auto;
  margin: 8px auto 0;
  filter: drop-shadow(0 8px 10px rgba(72, 48, 44, .07));
}
.confetti {
  grid-column: 1;
  grid-row: 1;
  font: 26px "Caveat", cursive;
  color: var(--rose);
  margin-bottom: 15px;
}
.thanks-panel h2 {
  grid-column: 1;
  grid-row: 2 / 5;
  font: 600 clamp(60px, 7vw, 88px)/.7 "Caveat", cursive;
  margin: 0;
  text-transform: uppercase;
  transform: rotate(3deg);
}
.thanks-panel h2 span { color: var(--rose); font-size: .7em; }
.thanks-panel p { font-size: 18px; line-height: 1.4; max-width: 250px; margin: 7px auto; }
.thanks-panel p:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.thanks-panel p:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.monogram { grid-column: 3; grid-row: 2; display: flex; align-items: center; margin: 0 auto 7px; }
.monogram span { width: 65px; height: 65px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font: 35px "Caveat", cursive; }
.monogram span:last-child { margin-left: -8px; }
.monogram b { z-index: 1; color: var(--rose); font: 31px "Caveat", cursive; margin: 0 -7px; background: var(--paper); border-radius: 50%; }
.thanks-panel .date-signoff { grid-column: 3; grid-row: 3; font-size: 18px; color: var(--rose); }

footer { text-align: center; padding: 0 20px 34px; font-size: 19px; }
footer span { color: var(--rose); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 25px);
  padding: 13px 22px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font: 18px "Caveat", cursive;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 30;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .invitation { width: min(760px, calc(100% - 34px)); grid-template-columns: repeat(2, 1fr); }
  .card-thanks { grid-column: 1 / -1; }
  .thanks-panel {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 58px 42px;
  }
  .thanks-panel h2 { margin: 0 0 38px; }
  .thanks-illustration { width: min(560px, 100%); margin: 26px auto 8px; }
  .monogram { margin: 36px 0 7px; }
}

@media (max-width: 650px) {
  .mini-header { padding-top: 20px; }
  .invitation { width: min(430px, calc(100% - 28px)); grid-template-columns: 1fr; gap: 23px; margin-top: 15px; }
  .card { border-radius: 36px; }
  .card-thanks { grid-column: auto; }
  .panel { padding: 48px 28px; }
  .intro-panel { padding-top: 44px; }
  .card-details, .card-thanks { margin-top: 0; }
  .thanks-panel { min-height: 500px; }
  .hero-panel { padding: 45px 28px 42px; }
  .hero-panel h1 { font-size: clamp(60px, 18vw, 78px); }
  .venue-name { font-size: clamp(31px, 8vw, 35px); letter-spacing: -1.2px; }
}

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