:root {
  --blue: #c6d7ea;
  --pink: #fdeceb;
  --cream: #fff7dc;
  --green: #dbe6d4;
  --deep-green: #596637;
  --red: #b71926;
  --ink: #38402e;
  --paper: #fff8e8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--green);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  background:
    radial-gradient(circle at 18% 0, rgba(198, 215, 234, 0.85), transparent 31rem),
    linear-gradient(180deg, var(--pink) 0 20%, var(--cream) 20% 63%, var(--green) 63% 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(89, 102, 55, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 102, 55, 0.1) 1px, transparent 1px);
  background-size: 34px 34px;
}

.invite {
  width: min(100%, 440px);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 248, 232, 0.88);
  box-shadow: 0 0 42px rgba(47, 55, 39, 0.14);
}

.section {
  position: relative;
  padding: 32px 24px;
}

.section + .section {
  border-top: 1px dashed rgba(183, 25, 38, 0.22);
}

h1,
h2,
.hero__note,
.hero__names,
.hero__formula {
  margin: 0;
  font-family: "Marck Script", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

h1,
h2 {
  color: var(--deep-green);
  font-size: 42px;
  line-height: 1;
  text-align: center;
}

p {
  margin: 14px auto 0;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.hero {
  min-height: 680px;
  padding-top: 34px;
  background:
    linear-gradient(rgba(255, 248, 232, 0.72), rgba(255, 248, 232, 0.82)),
    var(--pink);
}

.hero__note {
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 0 auto 26px;
  padding: 14px 28px 18px;
  color: #fff;
  font-size: 30px;
  line-height: 0.95;
  text-align: center;
  background: var(--deep-green);
  border-radius: 0 0 28px 28px;
}

.hero__names {
  font-size: 38px;
  text-align: center;
}

.hero__formula {
  width: 120px;
  margin: -4px auto 0;
  color: var(--red);
  font-size: 31px;
  text-align: center;
  border-bottom: 3px solid var(--red);
}

.child-collage {
  position: relative;
  min-height: 385px;
  margin: 28px -8px 12px;
}

.child-card {
  position: absolute;
  width: 56%;
  margin: 0;
  filter: drop-shadow(0 16px 20px rgba(47, 55, 39, 0.2));
}

.child-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.child-card figcaption {
  width: fit-content;
  margin: -10px auto 0;
  padding: 5px 20px 7px;
  color: #fff;
  font-family: "Marck Script", cursive;
  font-size: 27px;
  line-height: 1;
  background: var(--deep-green);
  border-radius: 999px;
}

.child-card--left {
  left: -4px;
  top: 28px;
  transform: rotate(-5deg);
}

.child-card--right {
  right: -6px;
  top: 76px;
  transform: rotate(5deg);
}

.heart-burst {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.heart-burst span {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: rotate(-45deg);
  background: var(--red);
}

.heart-burst span::before,
.heart-burst span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: inherit;
  border-radius: 50%;
}

.heart-burst span::before {
  top: -12px;
  left: 0;
}

.heart-burst span::after {
  left: 12px;
  top: 0;
}

.heart-burst span:nth-child(1) { left: 9%; top: 6%; transform: rotate(-34deg) scale(0.7); }
.heart-burst span:nth-child(2) { left: 47%; top: 2%; transform: rotate(-45deg) scale(0.5); }
.heart-burst span:nth-child(3) { right: 8%; top: 17%; transform: rotate(-56deg) scale(0.6); }
.heart-burst span:nth-child(4) { display: none; }
.heart-burst span:nth-child(5) { right: 22%; bottom: 4%; transform: rotate(-48deg) scale(0.72); }

.date-pill {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 24px 12px;
  color: #fff;
  font-family: "Marck Script", cursive;
  font-size: 26px;
  line-height: 1;
  background: var(--deep-green);
  border-radius: 999px;
}

.intro {
  background: var(--cream);
}

.calendar {
  padding-top: 20px;
  background: var(--cream);
}

.calendar::before,
.calendar::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  height: 18px;
  border: 4px solid var(--red);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  opacity: 0.86;
}

.calendar::before {
  top: 18px;
}

.calendar::after {
  bottom: 18px;
  transform: rotate(180deg);
}

.calendar__week,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  width: min(100%, 310px);
  margin: 18px auto 0;
  text-align: center;
}

.calendar__week {
  color: var(--deep-green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar__grid span {
  display: grid;
  min-height: 28px;
  place-items: center;
  font-size: 13px;
}

.calendar__grid .is-wedding {
  color: #fff;
  font-weight: 700;
  background: var(--red);
  border-radius: 50%;
}

.timing {
  background: var(--paper);
}

.timeline {
  width: min(100%, 300px);
  margin: 20px auto 0;
}

.timeline article {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(183, 25, 38, 0.16);
}

.timeline time {
  color: var(--deep-green);
  font-family: "Marck Script", cursive;
  font-size: 34px;
  font-weight: 400;
}

.timeline p {
  margin: 0;
  text-align: left;
}

.location {
  padding-top: 40px;
  padding-bottom: 46px;
  background:
    radial-gradient(circle at 18% 18%, rgba(253, 236, 235, 0.92), transparent 7rem),
    radial-gradient(circle at 86% 80%, rgba(198, 215, 234, 0.82), transparent 8rem),
    var(--green);
}

.location-card {
  position: relative;
  width: min(100%, 330px);
  margin: 26px auto 0;
  padding: 58px 24px 26px;
  text-align: center;
  background: rgba(255, 248, 232, 0.86);
  border: 2px solid rgba(183, 25, 38, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(56, 64, 46, 0.14);
}

.location-card::before,
.location-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 18px;
  border: 3px solid var(--red);
  opacity: 0.72;
}

.location-card::before {
  top: 18px;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.location-card::after {
  bottom: 18px;
  border-top: 0;
  border-radius: 0 0 50% 50%;
}

.location-card__ornament {
  position: absolute;
  top: -20px;
  left: 50%;
  display: flex;
  gap: 9px;
  align-items: center;
  transform: translateX(-50%);
}

.location-card__ornament span {
  width: 25px;
  height: 25px;
  transform: rotate(-45deg);
  background: var(--red);
}

.location-card__ornament span::before,
.location-card__ornament span::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  background: inherit;
  border-radius: 50%;
}

.location-card__ornament span::before {
  top: -12px;
  left: 0;
}

.location-card__ornament span::after {
  top: 0;
  left: 12px;
}

.location-card__ornament span:nth-child(2) {
  width: 36px;
  height: 36px;
  background: var(--deep-green);
}

.location-card__ornament span:nth-child(2)::before,
.location-card__ornament span:nth-child(2)::after {
  width: 36px;
  height: 36px;
}

.location-card__ornament span:nth-child(2)::before {
  top: -18px;
}

.location-card__ornament span:nth-child(2)::after {
  left: 18px;
}

.location-card__eyebrow {
  margin: 0 auto 8px;
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-card h3 {
  margin: 0;
  color: var(--deep-green);
  font-family: "Marck Script", cursive;
  font-size: 43px;
  font-weight: 400;
  line-height: 0.95;
}

.location-card address {
  margin-top: 12px;
  font-style: normal;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.location-card__button {
  display: block;
  width: fit-content;
  margin: 24px auto 8px;
  padding: 13px 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(183, 25, 38, 0.22);
}

.wishes,
.dress-code,
.memories,
.rsvp,
.finale {
  background: var(--paper);
}

.wish-letter {
  position: relative;
  width: min(100%, 330px);
  margin: 24px auto 0;
  padding: 26px 22px;
  background: rgba(255, 247, 220, 0.78);
  border: 1px solid rgba(183, 25, 38, 0.24);
  border-radius: 8px;
}

.wish-letter::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 58px;
  height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(198, 215, 234, 0.76);
  border-radius: 2px;
}

.wish-letter p {
  margin: 0;
  max-width: none;
  font-size: 16px;
  line-height: 1.48;
  text-align: left;
}

.wish-letter p + p {
  margin-top: 14px;
}

.wish-note {
  width: min(100%, 330px);
  margin: 18px auto 0;
  padding: 20px 20px 22px;
  background: rgba(198, 215, 234, 0.44);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.wish-note h3 {
  margin: 0;
  color: var(--deep-green);
  font-family: "Marck Script", cursive;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.wish-note p {
  margin-top: 12px;
  max-width: none;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

.dress-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: min(100%, 330px);
  margin: 26px auto 0;
}

.fabric {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(56, 64, 46, 0.08);
  border-radius: 50%;
  box-shadow:
    inset 10px 14px 22px rgba(255, 255, 255, 0.5),
    inset -12px -15px 22px rgba(56, 64, 46, 0.16),
    0 8px 18px rgba(56, 64, 46, 0.1);
}

.fabric--01 { background: radial-gradient(circle at 24% 22%, #fffbe1 0 15%, transparent 16%), linear-gradient(135deg, #f8efae, #fff7d1 35%, #dec45d 64%, #fff2b7); }
.fabric--02 { background: radial-gradient(circle at 70% 28%, rgba(255,255,255,0.8), transparent 18%), linear-gradient(145deg, #f7e8a8, #c9a24c 38%, #fff4bd 62%, #d5ad51); }
.fabric--03 { background: linear-gradient(135deg, #f6d784, #fff3b5 28%, #e9b849 54%, #fff1ac 78%, #d99c35); }
.fabric--04 { background: linear-gradient(145deg, #e8d1a4, #b88f58 42%, #f6dfb7 58%, #a87945); }
.fabric--05 { background: linear-gradient(135deg, #c9aa8d, #7a5f50 44%, #d4bdac 61%, #6a4c3d); }
.fabric--06 { background: linear-gradient(145deg, #9a6f52, #4d3228 45%, #b58a6e 64%, #39251f); }
.fabric--07 { background: linear-gradient(135deg, #fff0ef, #f8c7c9 38%, #fff8f6 58%, #e8a4aa); }
.fabric--08 { background: linear-gradient(145deg, #f3c4c8, #ca7e86 42%, #ffe0df 59%, #b95f69); }
.fabric--09 { background: linear-gradient(135deg, #dc929b, #b35e6a 42%, #ebaeb4 62%, #9d4d59); }
.fabric--10 { background: linear-gradient(145deg, #f7fbff, #c9d9e9 40%, #ffffff 58%, #9eb3c7); }
.fabric--11 { background: linear-gradient(135deg, #d9effb, #9ec9e2 44%, #effaff 63%, #83b8d3); }
.fabric--12 { background: linear-gradient(145deg, #cbd6e9, #8494ad 44%, #e5ecf8 62%, #667890); }
.fabric--13 { background: linear-gradient(135deg, #cbd7b8, #819269 42%, #e1ead4 60%, #6f7f55); }
.fabric--14 { background: linear-gradient(145deg, #a7b391, #556947 42%, #c0c9ab 60%, #3f5337); }
.fabric--15 { background: linear-gradient(135deg, #6f7c49, #2f431f 44%, #8b9865 62%, #1e3217); }

.memories {
  border-top: 14px dashed var(--red);
  border-bottom: 14px dashed var(--red);
}

.button {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
  padding: 13px 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--red);
  border-radius: 4px;
}

.rsvp-form {
  width: min(100%, 330px);
  margin: 24px auto 0;
}

.rsvp-form label {
  display: block;
  margin-top: 16px;
}

.rsvp-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--deep-green);
  font-size: 15px;
  font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(89, 102, 55, 0.28);
  border-radius: 6px;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: 2px solid rgba(183, 25, 38, 0.32);
  border-color: rgba(183, 25, 38, 0.58);
}

.rsvp-form .button {
  border: 0;
  cursor: pointer;
}

.rsvp-form .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.rsvp-form__status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--deep-green);
  font-size: 15px;
  font-weight: 600;
}

.finale {
  min-height: 260px;
  background:
    linear-gradient(rgba(255, 248, 232, 0.9), rgba(255, 248, 232, 0.9)),
    var(--pink);
}

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

.countdown span {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
}

.countdown b {
  color: var(--deep-green);
  font-family: "Marck Script", cursive;
  font-size: 34px;
  line-height: 1;
}

.countdown small {
  font-size: 10px;
}

@media (min-width: 700px) {
  body {
    padding: 28px;
  }

  .invite {
    border-radius: 22px;
  }
}

@media (max-width: 370px) {
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero__note {
    font-size: 27px;
  }

  .child-card img {
    height: 250px;
  }

  .timeline {
    width: 100%;
  }
}
