@font-face {
    font-family: "Gloriant";
    src: url("Fonts/Gloriant.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Phosphorus";
    src: url("Fonts/Phosb___.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Cormorant";
    src: url("Fonts/Cormorant-VariableFont_wght.woff2") format("woff2");
    font-display: swap;
}

:root {

    /* Main palette */
    --burgundy: #550100;
    --emerald: #205c52;
    --teal: #577c8e;
    --sage: #8a9b7b;
    --gold: #b88a4a;

    /*Text*/
    --text: #3A3A3A;
    --linen: #F6F2EC;


  }
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
    min-height: 100vh;

    display: grid;
    place-items: center;

    overflow: auto;

    background-image: url("Assets/background.jpg");
    background-size: auto;
    background-position: top center;
    background-repeat: repeat;
}

  .envelope {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow: hidden;

  z-index: 10;

  display: grid;
  place-items: center;
}


.flap {
  position: absolute;
  top: 0;

  width: 50%;
  height: 100%;

  object-fit: fill;

  z-index: 2;

  transition: transform 1.35s cubic-bezier(.25, .8, .25, 1);
}

.flap-left {
  left: 0;

  filter: drop-shadow(
    4px 0 6px rgba(0, 0, 0, 0.20)
  );
}

.flap-right {
  right: 0;

  filter: drop-shadow(
    -4px 0 6px rgba(0, 0, 0, 0.20)
  );
}

.flap-left::after{
    content:"";

    position:absolute;
    top:0;
    right:-2px;

    width:18px;
    height:100%;

    pointer-events:none;

    background:linear-gradient(
        to right,
        rgba(0,0,0,.12),
        rgba(0,0,0,0)
    );
}

.flap-right::after{
    content:"";

    position:absolute;
    top:0;
    left:-2px;

    width:18px;
    height:100%;

    pointer-events:none;

    background:linear-gradient(
        to left,
        rgba(0,0,0,.12),
        rgba(0,0,0,0)
    );
}

.seal {
  position: relative;

  top: auto;
  left: auto;

  z-index: 3;

  width: 122px;

  padding: 0;
  border: 0;
  background: transparent;

  cursor: pointer;

  animation: seal-pulse 2s ease-in-out infinite;

  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
}

.seal img {
  display: block;

  width: 100%;
  height: auto;
}

.envelope.is-open .flap-left {
  transform: translateX(-90%)
}

.envelope.is-open .flap-right {
  transform: translateX(90%)
}

.envelope.is-open .seal {
  opacity: 0;
  pointer-events: none;
  animation: none;

  transform: scale(0.7);
}

.envelope.is-open {
  pointer-events: none;
}

@keyframes seal-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.page {
  width: 100%;
  min-height: 100vh;

  display: flex;
  justify-content: center;
}

.invitation {
  width: min(92vw, 520px);
  min-height: 100vh;

  opacity: 0;
  transition: opacity 1.1s ease 1.15s;
}

.invitation.visible {
  opacity: 1;
}

.hero {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 48px 24px 0px;

  text-align: center;

}

.hero-illustration {
  display: block;

  width: min(88%, 370px);
  height: auto;

  margin: 10px auto 16px;
}

.hero-kicker {
    margin: 0 0 -3px;

    font-family: "Phosphorus", serif;
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 400;
    font-style: italic;
    text-transform: uppercase;

    color: var(--teal);
    letter-spacing: 0.02em;
}

.couple-names {
   width: 100%;

  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.14em;

  margin: 10px 0 0;
  padding: 0.12em 0.25em 0.22em;

  overflow: visible;

  font-family: "Gloriant", serif;
  font-size: clamp(2.6rem, 15vw, 4.6rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;

  color: var(--burgundy);

  white-space: nowrap;
}

.name {
  display: inline-block;
}

.ampersand {
  display: inline-block;

  margin: 0;
  font-size: 0.35em;
  line-height: 1;
  font-style:normal;

  color: var(--teal);
}

.wedding-date {
  margin: 0px;

  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 4.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.05em;

  color: var(--text);
}

.introduction {
  width: 100%;

  padding: 0 24px 10px;

  text-align: center;
}

.introduction-text {

    max-width: 32ch;

    margin: 0px auto 25px;

    font-family: "Cormorant", serif;
    font-size: 1.2rem;
    line-height: 1.5;

    color:var(--text);
}

.couple-fullnames {

    margin: 10px;

    font-family: "Gloriant", serif;
    font-size: clamp(2rem, 5vw, 3rem);

    font-style: italic;
    font-weight: 500;
    line-height: 1;

    color:var(--burgundy);
}

.couple-fullnames span {

    font-size: .45em;

    color: var(--text);
}

@media (min-width: 700px) {
  .envelope {
    width: min(720px, 100%);
    height: 100%;

    left: 50%;
    right: auto;

    transform: translateX(-50%);
  }
}

/* =========================
   FAMILY + PADRINOS
   ========================= */

.family-section {
  width: 100%;
  max-width: 430px;

  margin: 0 auto;
  padding: 26px 24px 10px;

  text-align: center;
}


/* =========================
   LABELS
   ========================= */

.family-label {
  max-width: 30ch;

  margin: 0 auto 16px;

  font-family: "Cormorant", serif;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;

  color: var(--text);

  text-align: center;
}


/* =========================
   PARENT / PADRINO GROUPS
   ========================= */

.family-group {
  width: 86%;
  max-width: 360px;

  margin: 0 auto 26px;

  text-align: center;
}


/* =========================
   GROUP LABELS
   ========================= */

.family-side-label {
  margin: 0 auto 8px;

  font-family: "Cormorant", serif;
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.1;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: var(--burgundy);

  text-align: center;
}


/* =========================
   NAMES
   ========================= */

.family-name {
  width: 100%;

  margin: 0 auto;

  font-family: "Phosphorus", serif;
  font-size: clamp(0.95rem, 3.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.2;

  color: var(--teal);

  text-align: center;
  overflow-wrap: normal;
}


/* =========================
   AMPERSAND
   ========================= */

.family-ampersand {
  display: block;

  margin: 2px 0;

  font-family: "Cormorant", serif;
  font-size: 0.95rem;
  line-height: 1;

  color: var(--burgundy);
}


/* =========================
   DECORATIVE DIVIDER
   ========================= */

.family-divider {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  margin: 24px auto;
}

.family-divider img {
  display: block;

  width: clamp(60px, 18vw, 90px);
  height: auto;
}


/* =========================
   PADRINOS
   ========================= */

.family-label-padrinos {
  margin-top: 0;
  margin-bottom: 6px;
}

.family-role {
  margin: 15px auto 10px;

  font-family: "Cormorant", serif;
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.1;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: var(--burgundy);

  text-align: center;
}

.family-padrino-group {
  margin-bottom: 30px;
}


/* =========================
   LAST GROUP
   ========================= */

.family-group-last {
  margin-bottom: 0;
}

/* COUNTDOWN */

.countdown-section {
  width: 100%;

  padding: 48px 20px 5px;

  text-align: center;
}

.countdown-kicker {
  margin: 0 0 18px;

  font-family: "Phosphorus", serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 0.04em;

  color: var(--teal);
}

.countdown {
  width: 100%;
  max-width: 470px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 18px);

  margin: 0 auto;
}

.countdown-item {
  min-width: 0;
}

.countdown-box {
  position: relative;

  width: 100%;
  aspect-ratio: 1 / 1;
}

.countdown-box img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.countdown-number {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-2px);

    font-family: "Cormorant", serif;
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    font-weight: 500;
    line-height: 1;

    color: var(--burgundy);
}

.countdown-label {
  margin: 7px 0 0;

  font-family: "Cormorant", serif;
  font-size: clamp(0.72rem, 2.8vw, 0.95rem);
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.04em;

  color: var(--text);
}

.countdown-message {
  margin: 20px auto 0;

  font-family: "Cormorant", serif;
  font-size: 1.1rem;
  line-height: 1.3;

  color: var(--burgundy);
}

/* CALENDAR */

.calendar-section {
  width: 100%;

  padding: 5px 24px 48px;

  text-align: center;
}

.calendar-title {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 8px;

    margin: 0 0 18px;

    font-family: "Cormorant", serif;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--text);
}

.calendar-title::before,
.calendar-title::after {

    content: "";

    width: 150%;
    height: 2px;

    background: var(--emerald);
}

.calendar-days {
  width: 100%;
  max-width: 420px;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;

  margin: 0 auto;
}

.calendar-day {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 9px;
}

.calendar-weekday {
  font-family: "Cormorant", serif;
  font-size: clamp(0.78rem, 3.2vw, 1rem);
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--text);
}

.calendar-number {
  font-family: "Cormorant", serif;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 500;
  line-height: 1;

  color: var(--text);
}

.calendar-heart {
  position: relative;

  width: clamp(62px, 17vw, 82px);
  margin-top: -10px;
}

.calendar-heart img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.calendar-heart .calendar-number {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  transform: translateY(-1px);

  color: var(--linen);
}

/* =========================
   ITINERARY
   ========================= */

.itinerary-section {
  width: 100%;
  padding: 0 24px 28px;
  margin-top: -20px;

  text-align: center;
}


/* TIMELINE CONTAINER */

.itinerary {
  position: relative;

  width: 100%;
  max-width: 430px;

  margin: 10px auto;
}


/* VERTICAL LINE */

.itinerary-line-art {
  position: absolute;

  top: 0;
  bottom: 0;
  left: 38%;

  width: 36px;
  height: 100%;

  transform: translateX(-50%);

  object-fit: fill;

  z-index: 1;

  pointer-events: none;
}


/* EACH ITINERARY EVENT */

.itinerary-item {
  position: relative;

  display: grid;

  /* icon | timeline | information */
  grid-template-columns: 32% 12% 56%;

  align-items: center;

  min-height: 165px;
}


/* =========================
   LEFT — ILLUSTRATION
   ========================= */

.itinerary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.itinerary-icon img {
  display: block;

  width: clamp(68px, 19vw, 98px);
  height: auto;

  object-fit: contain;
}


/* =========================
   CENTER — TIMELINE MARKER
   ========================= */

.itinerary-marker {
  position: relative;
  z-index: 2;

  width: 9px;
  height: 9px;

  justify-self: center;

  border-radius: 50%;

  background: var(--burgundy);
}


/* =========================
   RIGHT — INFORMATION
   ========================= */

.itinerary-content {
  padding-left: 14px;

  text-align: left;
}


/* TIME */

.itinerary-time {
  margin: 0;

  font-family: "Gloriant", serif;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;

  color: var(--burgundy);
}


/* EVENT */

.itinerary-title {
  margin: 6px 0 0;

  font-family: "Cormorant", serif;
  font-size: clamp(1.15rem, 4.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.15;

  text-transform: uppercase;
  letter-spacing: 0.06em;

  color: var(--text);
}


/* ADDRESS */

.itinerary-address {
  max-width: 22ch;

  margin: 8px 0 0;

  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  font-weight: 400;
  line-height: 1.3;

  color: var(--text);
}

/* =========================
   LOCATIONS
   ========================= */

.locations-section {
  width: 100%;
  max-width: 430px;

  margin: 0 auto;
  padding: 8px 24px 58px;
}


/* 2 x 2 COMPOSITION */

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;

  column-gap: 20px;
  row-gap: 38px;

  width: 100%;
}


/* =========================
   ILLUSTRATIONS
   ========================= */

.location-art {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 120px;
}

.location-art img {
  display: block;

  width: 145px;
  max-width: 100%;
  height: auto;

  object-fit: contain;
}


/* =========================
   LOCATION INFORMATION
   ========================= */

.location-info {
  text-align: center;
}


/* PLACE NAME */

.location-name {
  margin: 0 0 7px;

  font-family: "Phosphorus", serif;
  font-size: clamp(1rem, 3.8vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;

  color: var(--teal);
}


/* ADDRESS */

.location-address {
  margin: 0 auto 12px;

  font-family: "Cormorant", serif;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.3;

  color: var(--text);
}


/* =========================
   MAP BUTTON
   ========================= */

.location-button {
  display: inline-block;

  padding: 8px 18px;

  border: 1px solid var(--emerald);

  background: var(--emerald);

  font-family: "Cormorant", serif;
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  font-weight: 500;
  line-height: 1;

  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;

  color: var(--linen);

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.location-button:hover,
.location-button:focus-visible {
  background: var(--linen);
  color: var(--emerald);
}


/* =========================
   DRESS CODE
   ========================= */

.dresscode-section {
  position: relative;

  width: 100%;
  max-width: 100%;

  min-height: 250px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 0 46px;

  overflow: hidden;
}


/* =========================
   CENTER TEXT
   ========================= */

.dresscode-content {
  position: relative;
  z-index: 2;

  width: 52%;
  max-width: 240px;

  margin: 0 auto;

  text-align: center;
}

.dresscode-text {
  margin: 0;

  font-family: "Cormorant", serif;
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;

  color: var(--text);
}


/* FORMAL */

.dresscode-formal {
  display: block;

  margin-top: 5px;

  font-family: "Phosphorus", serif;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 400;
  font-style: italic;

  text-transform: uppercase;
  letter-spacing: 0.05em;

  color: var(--teal);
}


/* NOTE */

.dresscode-note {
  max-width: 22ch;

  margin: 14px auto 0;

  font-family: "Cormorant", serif;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.35;

  color: var(--text);
}


/* =========================
   SIDE ILLUSTRATIONS
   ========================= */

.dresscode-side {
  position: absolute;
  top: 50%;

  z-index: 1;

  transform: translateY(-50%);
}

.dresscode-side img {
  display: block;

  width: auto;
  height: clamp(175px, 45vw, 210px);

  object-fit: contain;
}


/* LEFT — DRESS */

.dresscode-side-left {
  left: 0;
}

.dresscode-side-left img {
  transform: translateX(-14px);
}


/* RIGHT — SUIT */

.dresscode-side-right {
  right: 0;
}

.dresscode-side-right img {
  transform: translateX(0);
}

/* =========================
   DRESS CODE — DESKTOP
   ========================= */

@media (min-width: 769px) {

  .dresscode-section {
    width: 100%;
    max-width: 430px;

    margin-left: auto;
    margin-right: auto;
  }

}

/* =========================
   GIFTS
   ========================= */

.gifts-section {
  width: 100%;
  max-width: 430px;

  margin: 0 auto;
  padding: 4px 24px 10px;

  text-align: center;
}

/* ILLUSTRATION */

.gifts-icon {
  display: block;

  width: min(82%, 330px);
  height: auto;

  margin: 0 auto 18px;
}


/* BODY TEXT */

.gifts-text {
  max-width: 31ch;

  margin: 0 auto;

  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  font-weight: 400;
  line-height: 1.4;

  color: var(--text);
}

.gifts-text-secondary {
  margin-top: 14px;
}


/* LLUVIA DE SOBRES */

.gifts-envelope {
  margin: 5px 0 0;

  font-family: "Phosphorus", serif;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 400;
  font-style: italic;

  text-transform: uppercase;
  letter-spacing: 0.06em;

  color: var(--teal);
}

/* =========================
   RSVP SECTION
   ========================= */

.rsvp-section {
  width: 100%;
  max-width: 430px;

  margin: 20px auto;
  padding: 2px 24px 40px;

  text-align: center;
}

/* =========================
   RSVP TOP BOW
   ========================= */

.rsvp-divider-top {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  margin: 0 auto 2px;
}

.rsvp-divider-top img {
  display: block;

  width: clamp(190px, 58vw, 270px);
  max-width: 100%;
  height: auto;

  margin: 0 auto;
}

/* =========================
   HEADING
   ========================= */

.rsvp-heading {
  margin: 0 auto 10px;

  font-family: "Gloriant", serif;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.05;

  color: var(--burgundy);
}


/* =========================
   INTRO TEXT
   ========================= */

.rsvp-intro {
  max-width: 28ch;

  margin: 0 auto 22px;

  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 3.7vw, 1.15rem);
  font-weight: 400;
  line-height: 1.3;

  color: var(--text);
}


/* =========================
   GUEST NAME
   ========================= */

.rsvp-guest-name {
  width: 86%;
  max-width: 340px;

  margin: 0 auto 28px;

  font-family: "Phosphorus", serif;
  font-size: clamp(1.22rem, 4.8vw, 1.55rem);
  font-weight: 400;
  

  letter-spacing: 0.02em;
  line-height: 1.05;

  text-align: center;

  color: var(--teal);
}

.guest-ampersand {
  display: inline-block;
  margin: -1px 0;
  font-size: 0.85em;
}

/* =========================
   MAIN RSVP ROW
   ========================= */

.rsvp-card {
 display: grid;

  grid-template-columns:
    0.85fr
    0.85fr
    1.2fr;

  align-items: center;

  width: 100%;

  column-gap: 8px;
}


/* =========================
   ENVELOPE ILLUSTRATION
   ========================= */

.rsvp-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-illustration img {
  display: block;

  width: clamp(70px, 20vw, 105px);
  max-width: 100%;
  height: auto;

  object-fit: contain;
}


/* =========================
   INVITED SEATS
   ========================= */

.rsvp-seats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.rsvp-label {
  margin: 0 0 6px;

  font-family: "Cormorant", serif;
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  font-weight: 500;
  line-height: 1.15;

  text-transform: uppercase;
  letter-spacing: 0.05em;

  color: var(--text);
}

.rsvp-seat-count {
  margin: 0;

  font-family: "Phosphorus", serif;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;

  color: var(--teal);
}


/* =========================
   RSVP RESPONSE BUTTONS
   ========================= */

.rsvp-response {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rsvp-choice {
  appearance: none;

  width: 100%;
  padding: 9px 6px;

  border: 1px solid var(--emerald);
  border-radius: 0;

  background: var(--linen);

  font-family: "Cormorant", serif;
  font-size: clamp(0.82rem, 3vw, 0.95rem);
  font-weight: 500;
  line-height: 1.1;

  color: var(--emerald);

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}


/* HOVER — DESKTOP ONLY */

@media (hover: hover) and (pointer: fine) {

  .rsvp-choice:hover {
    background: var(--sage);
    color: var(--linen);
    border-color: var(--sage);
  }

}


/* KEYBOARD FOCUS */

.rsvp-choice:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}


/* SELECTED */

.rsvp-choice.is-selected {
  background: var(--emerald);
  color: var(--linen);
  border-color: var(--emerald);
}


/* =========================
   NUMBER ATTENDING
   ========================= */

.rsvp-attending-count {
  display: none;

  margin: 24px auto 0;

  text-align: center;
}

.rsvp-attending-count.is-visible {
  display: block;
}

.rsvp-attending-label {
  display: block;

  margin: 0 0 8px;

  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  font-weight: 500;
  line-height: 1.2;

  color: var(--text);
}

.rsvp-attending-select {
  min-width: 64px;

  padding: 7px 12px;

  border: 1px solid var(--emerald);
  border-radius: 0;

  background: var(--linen);

  font-family: "Cormorant", serif;
  font-size: 1.1rem;
  font-weight: 500;

  text-align: center;

  color: var(--emerald);

  cursor: pointer;
}


/* =========================
   INVITATION LIMIT NOTE
   ========================= */

.rsvp-limit-note {
  max-width: 28ch;

  margin: 22px auto 0;

  font-family: "Cormorant", serif;
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.3;

  color: var(--text);

  text-align: center;
}


/* =========================
   NO SMALL CHILDREN NOTE
   ========================= */

.rsvp-children-note {
  max-width: 30ch;

  margin: 0 auto;

  font-family: "Cormorant", serif;
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;

  color: var(--text);

  text-align: center;
}

.rsvp-note-divider {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  margin: 16px auto;
}

.rsvp-note-divider img {
  display: block;

  width: clamp(45px, 13vw, 65px);
  height: auto;
}


/* =========================
   RSVP BOTTOM BOW
   ========================= */

.rsvp-divider-bottom {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  margin: 24px auto 0;
}

.rsvp-divider-bottom img {
  display: block;

  width: clamp(190px, 58vw, 270px);
  max-width: 100%;
  height: auto;

  margin: 0 auto;
}

/* =========================
   RSVP CONFIRM BUTTON
   ========================= */

.rsvp-submit {
  appearance: none;

  display: block;

  margin: 20px auto 0;
  padding: 5px 3px;

  border: 0;
  border-bottom: 1px solid var(--burgundy);

  background: transparent;

  font-family: "Cormorant", serif;
  font-size: clamp(0.95rem, 3.3vw, 1.05rem);
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--burgundy);

  cursor: pointer;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}


/* DISABLED — NO RSVP SELECTED YET */

.rsvp-submit:disabled {
  opacity: 0.3;
  cursor: default;
}


/* HOVER — DESKTOP */

@media (hover: hover) and (pointer: fine) {

  .rsvp-submit:hover:not(:disabled) {
    color: var(--emerald);
    border-color: var(--emerald);
  }

}


/* KEYBOARD FOCUS */

.rsvp-submit:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
}


/* =========================
   RSVP CONFIRMATION MESSAGE
   ========================= */

.rsvp-status {
  min-height: 1.3em;

  max-width: 28ch;

  margin: 10px auto 0;

  font-family: "Cormorant", serif;
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;

  color: var(--emerald);

  text-align: center;
}

/* =========================
   DEADLINE
   ========================= */

.rsvp-deadline {
  width: 85%;
  max-width: 360px;
  margin: 10px auto 22px;
  text-align: center;
}

.rsvp-deadline-label {
  margin: 0;
  font-family: "Cormorant", serif;
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  line-height: 1.3;
  color: var(--text);
}

.rsvp-deadline-date {
  margin: 3px 0 0;

  font-family: "Cormorant", serif;
  font-size: clamp(1rem, 3.8vw, 1.15rem);
  font-weight: 600;
  font-style: normal;

  letter-spacing: 0.03em;

  color: var(--teal);
}

/* =========================
   FAREWELL
   ========================= */

.farewell-section {
  width: 100%;
  max-width: 430px;

  margin: 0 auto;
  padding: 5px 20px 0;

  text-align: center;

  overflow: hidden;
}


/* TEXT */

.farewell-text {
  margin: 0 auto 18px;

  font-family: "Phosphorus", serif;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;

  color: var(--teal);
}


/* ILLUSTRATION */

.farewell-illustration {
  display: flex;
  justify-content: center;
  align-items: flex-end;

  width: 100%;
}

.farewell-illustration img {
  display: block;

  width: clamp(230px, 72vw, 340px);
  max-width: 100%;
  height: auto;
}

/* =========================
   MUSIC CONTROL
   ========================= */

.music-toggle {
  position: fixed;

  right: 18px;
  bottom: 18px;

  z-index: 30;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7px;

  border: 0;
  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.4s ease,
    transform 0.25s ease;
}


/* APPEARS AFTER ENVELOPE OPENS */

.music-toggle.is-visible {
  opacity: 0.92;
  pointer-events: auto;
}


.music-toggle img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


@media (hover: hover) and (pointer: fine) {

  .music-toggle:hover {
    opacity: 1;
    transform: scale(1.06);
  }

}


.music-toggle:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* =========================
   MUSIC — OFF PULSE
   ========================= */

.music-toggle.is-visible:not(.is-playing) {
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle {
    animation: none !important;
  }
}