:root {
  --ink: #24211f;
  --paper: #fff9ea;
  --cream: #fff4d6;
  --orange: #f15b3a;
  --orange-dark: #d9472a;
  --yellow: #ffc83d;
  --blue: #7fd4e8;
  --pink: #f4a6bd;
  --green: #a8d65e;
  --white: #fffdf8;
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

main, section, footer { max-width: 100%; }

button, input, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.confetti {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle, var(--yellow) 0 2px, transparent 3px),
    radial-gradient(circle, var(--blue) 0 2px, transparent 3px);
  background-size: 165px 181px, 213px 197px;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 0 1.25rem 4.5rem;
  color: var(--white);
  background: var(--orange);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "70";
  position: absolute;
  top: -4.5rem;
  right: -1.4rem;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.16);
  font: 400 13rem/1 "Shrikhand", Georgia, serif;
  transform: rotate(8deg);
}

.hero__copy, .hero__photo-wrap { position: relative; z-index: 1; }

.hero__copy {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 .75rem;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow--dark { color: var(--orange-dark); }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  margin-bottom: 1.1rem;
  font-family: "Shrikhand", Georgia, serif;
  font-weight: 400;
  line-height: .95;
  letter-spacing: .005em;
}

h1 {
  max-width: 100%;
  font-size: clamp(3.3rem, 16vw, 5.2rem);
  overflow-wrap: anywhere;
}
h1 span {
  display: block;
  color: var(--yellow);
  font-size: .86em;
  white-space: normal;
}
h2 { font-size: clamp(2.45rem, 12vw, 4.8rem); }

.hero__quote {
  max-width: 35rem;
  margin: 1.8rem 0 2rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.hero__quote span,
.hero__quote strong {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: .45rem .7rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  line-height: 1.35;
}

.hero__quote span {
  color: var(--ink);
  background: var(--white);
  transform: rotate(-1deg);
}

.hero__quote strong {
  margin: .65rem 0 0 1.1rem;
  color: var(--ink);
  background: var(--pink);
  transform: rotate(1deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.6rem;
  padding: .9rem 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}

.button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.button:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 4px solid #222; outline-offset: 4px; }
.button--primary { background: var(--yellow); }

.hero__photo-wrap {
  width: 100vw;
  max-width: none;
  margin: 0 0 1.5rem calc(50% - 50vw);
  transform: none;
  overflow: hidden;
}

.hero__photo-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--orange));
}

.hero__photo {
  aspect-ratio: 27 / 32;
  padding: 0;
  background: var(--orange);
  border: 0;
  box-shadow: none;
}

.hero__photo img { width: 100%; height: 100%; object-fit: contain; }

.tape {
  position: absolute;
  z-index: 2;
  top: -1.5rem;
  left: 50%;
  width: 7.6rem;
  height: 2.4rem;
  display: none;
  background: rgba(255, 218, 113, .9);
  transform: translateX(-50%) rotate(-3deg);
}

.photo-note {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1.2rem;
  padding: .55rem .8rem;
  color: var(--ink);
  background: var(--blue);
  border: 2px solid var(--ink);
  font-weight: 800;
  transform: rotate(-5deg);
}

.details, .location, .message-section { padding: 5.5rem 1.25rem; }
.section-heading { max-width: 43rem; margin: 0 auto 2.3rem; text-align: center; }
.section-heading > p:last-child { max-width: 31rem; margin: 0 auto; }
.section-heading > p:last-child { font-size: 1.15rem; font-weight: 600; }

.details__rsvp-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 .8rem;
  align-items: center;
  max-width: 37rem;
  margin: 0 auto 2.4rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 1rem;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
}

.details__rsvp-note > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  aspect-ratio: 1;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.details__rsvp-note strong { line-height: 1.2; }
.details__rsvp-note small { margin-top: .15rem; color: #514c47; font-size: .9rem; }

.detail-grid { display: grid; gap: 1.4rem; max-width: 72rem; margin: 0 auto; }

.detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1.1rem 1.35rem 1.25rem;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.detail-card::after {
  content: "";
  position: absolute;
  right: -2.2rem;
  bottom: -2.2rem;
  width: 8rem;
  aspect-ratio: 1;
  border: 2px solid rgba(36,33,31,.35);
  border-radius: 50%;
}

.detail-card--yellow { background: var(--yellow); transform: rotate(-1deg); }
.detail-card--blue { background: var(--blue); transform: rotate(1.2deg); }
.detail-card--pink { background: var(--pink); transform: rotate(-.7deg); }
.detail-card__icon { display: block; margin-bottom: .35rem; font-size: 1.8rem; }
.detail-card p { margin-bottom: .25rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }
.detail-card h3 { margin: 0; font: 400 2rem/1.1 "Shrikhand", Georgia, serif; }

.location {
  display: grid;
  gap: 2.5rem;
  background: var(--cream);
  border-block: 3px solid var(--ink);
}

.location__content { max-width: 30rem; }
.location__content > p:not(.eyebrow):not(.location__address) { font-size: 1.1rem; }
.location__address { margin: 1.5rem 0 .6rem; font-size: 1.3rem; font-weight: 800; }
.text-link { display: inline-block; margin-top: .6rem; font-weight: 800; text-underline-offset: .3rem; text-decoration-thickness: 2px; }

.map-frame {
  min-height: 21rem;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  overflow: hidden;
}

.map-frame iframe { width: 100%; height: 100%; min-height: 21rem; border: 0; filter: saturate(.8) contrast(1.05); }

.rsvp {
  position: relative;
  padding: 6rem 1.25rem;
  color: var(--white);
  background: var(--ink);
  text-align: center;
  overflow: hidden;
}

.rsvp::before, .rsvp::after {
  content: "✦";
  position: absolute;
  color: var(--yellow);
  font-size: 4rem;
  opacity: .85;
}

.rsvp::before { top: 2rem; left: 6%; transform: rotate(10deg); }
.rsvp::after { right: 6%; bottom: 2rem; transform: rotate(-12deg); }
.rsvp h2 { color: var(--yellow); }
.rsvp > p:not(.eyebrow) { max-width: 34rem; margin-inline: auto; font-size: 1.15rem; font-weight: 600; }
.rsvp__cta {
  width: min(100%, 34rem);
  margin: 1.5rem auto 0;
}

.rsvp__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 .4rem;
  color: var(--yellow);
  font: 400 1.35rem "Shrikhand", Georgia, serif;
  text-align: center;
  transform: none;
}

.rsvp__arrow b { font: 800 2rem/1 "DM Sans", sans-serif; }

.button--whatsapp {
  width: 100%;
  min-height: 4.8rem;
  margin: 0;
  padding: 1.1rem 1.5rem;
  background: #62d58a;
  font-size: 1.15rem;
  box-shadow: 7px 7px 0 var(--yellow);
}

.button--whatsapp:hover { box-shadow: 4px 4px 0 var(--yellow); }
.rsvp__burst {
  position: absolute;
  top: 2rem;
  right: 4%;
  display: grid;
  place-items: center;
  width: 5rem;
  aspect-ratio: 1;
  color: var(--ink);
  background: var(--pink);
  border-radius: 42% 58% 63% 37% / 57% 42% 58% 43%;
  font: 400 1.4rem "Shrikhand", Georgia, serif;
  transform: rotate(12deg);
}

.message-section { background: var(--green); }
.message-section__intro { position: relative; max-width: 33rem; margin-bottom: 2.5rem; }
.message-section__intro > p:not(.eyebrow) { font-size: 1.1rem; font-weight: 500; }
.doodle-arrow { display: none; }

.message-form {
  position: relative;
  max-width: 40rem;
  padding: 1.5rem;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.form-field { position: relative; margin-bottom: 1.35rem; }
.form-field label { display: block; margin-bottom: .45rem; font-size: 1.05rem; font-weight: 800; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: .9rem 1rem;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: .6rem;
  font-size: 1.05rem;
}
.form-field textarea { min-height: 10rem; resize: vertical; padding-bottom: 2rem; }
.char-count { position: absolute; right: .75rem; bottom: .55rem; color: #625d58; font-size: .78rem; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button--send { width: 100%; background: var(--orange); color: var(--white); }
.form-status { min-height: 1.6em; margin: 1rem 0 0; font-weight: 700; text-align: center; }
.form-status.is-error { color: #a32214; }
.form-status.is-success { color: #216125; }

footer {
  padding: 2.5rem 1.25rem;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}
footer p { margin: .25rem 0; }
footer p:first-child { font-weight: 700; }

@media (min-width: 760px) {
  .hero { padding: 2.5rem max(3rem, calc((100vw - 76rem) / 2)) 5.5rem; }
  .hero__photo-wrap {
    width: min(calc(100vw - 6rem), 68.75rem);
    max-width: 68.75rem;
    max-height: none;
    margin: 0 auto 3.5rem;
  }
  .hero__photo-wrap::after { height: 18%; }
  .hero__photo { height: auto; aspect-ratio: 27 / 32; }
  h1 { font-size: clamp(4.5rem, 8vw, 7rem); }
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
  .location { grid-template-columns: .78fr 1.22fr; align-items: center; padding-inline: max(2rem, calc((100vw - 72rem) / 2)); }
  .details { padding-inline: 2rem; }
  .message-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 5rem; align-items: center; padding-inline: max(2rem, calc((100vw - 72rem) / 2)); }
  .message-section__intro { margin: 0; }
  .doodle-arrow { display: block; position: absolute; right: .5rem; bottom: -5rem; font: 400 5rem "Shrikhand", Georgia, serif; transform: rotate(10deg); }
  .message-form { padding: 2.2rem; }
}

@media (min-width: 1000px) {
  .hero__copy {
    display: grid;
    grid-template-areas:
      "eyebrow quote"
      "title quote"
      "title button";
    grid-template-columns: minmax(0, 1.1fr) minmax(24rem, .9fr);
    grid-template-rows: auto 1fr auto;
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }

  .hero__copy .eyebrow { grid-area: eyebrow; }
  .hero__copy h1 { grid-area: title; margin-bottom: 0; }
  .hero__quote { grid-area: quote; margin: 0; }
  .hero__button { grid-area: button; justify-self: start; margin-top: 1.5rem; }
}

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