:root {
  --ivory: #faf7ef;
  --paper: #f4eddf;
  --paper-deep: #e9ddc8;
  --ink: #263831;
  --ink-soft: #5f6f67;
  --sage: #758b7d;
  --sage-deep: #3e5b4d;
  --blue: #8ca8ae;
  --gold: #b68a38;
  --gold-light: #d9bc79;
  --white: #fffefa;
  --danger: #9a5047;
  --shadow: 0 24px 70px rgba(63, 75, 66, 0.12);
  --serif: "Cormorant Garamond", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(182, 138, 56, 0.06), transparent 25%),
    radial-gradient(circle at 85% 80%, rgba(117, 139, 125, 0.08), transparent 25%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(250, 247, 239, 0.1), rgba(250, 247, 239, 0.08)),
    url("assets/primera-comunion-acuarela.png") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.25),
      rgba(250, 247, 239, 0.75) 35%,
      rgba(250, 247, 239, 0.78) 65%,
      rgba(250, 247, 239, 0.22)
    );
  content: "";
}

.nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  padding: 24px 0;
  transform: translateX(-50%);
}

.nav__brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.nav__cross {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 25px;
  border: 1px solid var(--sage-deep);
  border-radius: 100px;
  color: var(--white);
  background: var(--sage-deep);
  box-shadow: 0 10px 25px rgba(62, 91, 77, 0.15);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  background: #304a3d;
  box-shadow: 0 13px 30px rgba(62, 91, 77, 0.22);
  transform: translateY(-2px);
}

.button:focus-visible,
.text-button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(182, 138, 56, 0.35);
  outline-offset: 3px;
}

.button--small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.7rem;
}

.button--outline {
  color: var(--sage-deep);
  background: rgba(255, 254, 250, 0.58);
  backdrop-filter: blur(10px);
}

.button--outline:hover {
  color: var(--white);
}

.hero__content {
  align-self: center;
  justify-self: center;
  width: min(760px, calc(100% - 36px));
  padding: 115px 32px 70px;
  text-align: center;
  animation: rise-in 900ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.host-symbol {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 1px solid rgba(182, 138, 56, 0.65);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 254, 250, 0.35);
  box-shadow: inset 0 0 0 5px rgba(255, 254, 250, 0.2);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.hero__occasion {
  margin: 0;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-style: italic;
}

.hero h1 {
  margin: 4px 0 18px;
  color: #29443a;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-wrap: balance;
}

.hero__message {
  max-width: 590px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.date-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  width: fit-content;
  margin: 27px auto 0;
  padding: 10px 19px 10px 15px;
  border: 1px solid rgba(182, 138, 56, 0.4);
  border-radius: 4px;
  background: rgba(255, 254, 250, 0.48);
  box-shadow: 0 10px 30px rgba(70, 78, 68, 0.06);
  backdrop-filter: blur(7px);
}

.date-card__day {
  grid-row: 1 / 3;
  padding-right: 13px;
  border-right: 1px solid rgba(182, 138, 56, 0.35);
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.date-card__month,
.date-card__status {
  padding-left: 13px;
  text-align: left;
}

.date-card__month {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.date-card__status {
  color: var(--gold);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: var(--sage-deep);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll span {
  font-size: 1rem;
  animation: float 1.8s ease-in-out infinite;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.blessing {
  text-align: center;
}

.ornament {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
}

.ornament span:not(.ornament__cross) {
  width: 55px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.ornament span:last-child {
  transform: rotate(180deg);
}

.ornament__cross {
  font-size: 1.1rem;
}

h2 {
  margin: 0;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.section__lead {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
}

blockquote {
  position: relative;
  max-width: 740px;
  margin: 62px auto;
  padding: 35px 45px;
  border-top: 1px solid var(--paper-deep);
  border-bottom: 1px solid var(--paper-deep);
}

blockquote::before {
  position: absolute;
  top: -26px;
  left: 50%;
  padding: 0 14px;
  color: var(--gold-light);
  background: var(--ivory);
  content: "“";
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  transform: translateX(-50%);
}

blockquote p {
  margin: 0 0 12px;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
}

blockquote cite {
  color: var(--gold);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

.sacrament-card {
  min-height: 250px;
  padding: 40px 24px 30px;
  border: 1px solid var(--paper-deep);
  border-radius: 200px 200px 16px 16px;
  background: rgba(255, 254, 250, 0.65);
}

.sacrament-card--featured {
  min-height: 290px;
  padding-top: 50px;
  border-color: rgba(182, 138, 56, 0.4);
  background: linear-gradient(180deg, #f8efd9, var(--white));
  box-shadow: var(--shadow);
}

.sacrament-card__icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.sacrament-card h3 {
  margin: 0 0 7px;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.sacrament-card p {
  max-width: 220px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.chalice span {
  position: relative;
  width: 24px;
  height: 19px;
  border: 2px solid var(--gold);
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.chalice span::before {
  position: absolute;
  top: 18px;
  left: 9px;
  width: 2px;
  height: 12px;
  background: var(--gold);
  content: "";
}

.chalice span::after {
  position: absolute;
  top: 29px;
  left: 3px;
  width: 16px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.details-section {
  width: 100%;
  max-width: none;
  padding: 90px max(20px, calc((100% - 1120px) / 2));
  background: #e9efeb;
}

.details-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid rgba(117, 139, 125, 0.25);
  border-radius: 280px 12px 12px 280px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.details-card__art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 254, 250, 0.94) 0 18%, transparent 19%),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(217, 188, 121, 0.36) 0deg 2deg,
      transparent 2deg 12deg
    ),
    linear-gradient(145deg, #b9cbd0, #708f8a);
}

.details-card__art::before,
.details-card__art::after {
  position: absolute;
  bottom: -65px;
  width: 220px;
  height: 330px;
  border: 3px solid rgba(255, 254, 250, 0.5);
  border-radius: 100% 0 0;
  content: "";
}

.details-card__art::before {
  left: -25px;
  transform: rotate(25deg);
}

.details-card__art::after {
  right: -25px;
  transform: scaleX(-1) rotate(25deg);
}

.details-card__host {
  position: relative;
  z-index: 1;
  display: grid;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  background: var(--ivory);
  box-shadow:
    0 0 0 10px rgba(255, 254, 250, 0.16),
    0 0 70px rgba(255, 246, 199, 0.65);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.15em;
}

.details-card__stem {
  position: absolute;
  bottom: 105px;
  left: 50%;
  width: 3px;
  height: 95px;
  background: var(--gold-light);
  transform: translateX(-50%);
}

.details-card__stem::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 75px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  content: "";
  transform: translateX(-50%);
}

.details-card__copy {
  align-self: center;
  max-width: 490px;
  padding: 55px 65px;
}

.details-card__copy h2 {
  margin-bottom: 15px;
}

.details-card__copy p:not(.eyebrow) {
  margin: 25px 0 30px;
  color: var(--ink-soft);
}

.pending-badge {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(182, 138, 56, 0.35);
  border-radius: 100px;
  color: #8c6826;
  background: #fbf3de;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.rsvp__intro {
  position: sticky;
  top: 50px;
}

.rsvp__intro > p:not(.eyebrow) {
  max-width: 430px;
  margin: 25px 0;
  color: var(--ink-soft);
}

.local-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 430px;
  padding: 16px;
  border-left: 2px solid var(--gold-light);
  background: rgba(233, 221, 200, 0.35);
}

.local-note > span {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
}

.local-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 22px;
  padding: 44px;
  border: 1px solid var(--paper-deep);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--sage-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #d9d8cf;
  border-radius: 3px;
  color: var(--ink);
  background: #fcfbf7;
  transition:
    border 180ms ease,
    box-shadow 180ms ease;
}

.field input::placeholder {
  color: #9a9d97;
}

.field input:focus {
  border-color: var(--sage);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(117, 139, 125, 0.1);
}

.button--submit {
  width: 100%;
  margin-top: 7px;
  border-radius: 3px;
}

.form-message {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.form-message.is-error {
  color: var(--danger);
}

.guest-section {
  padding-top: 30px;
}

.guest-section__heading {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--paper-deep);
}

.guest-section__heading h2 {
  max-width: 700px;
}

.guest-stats {
  display: grid;
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  place-content: center;
  color: var(--gold);
  text-align: center;
}

.guest-stats strong {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 0.9;
}

.guest-stats span {
  margin-top: 7px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  min-height: 230px;
  place-content: center;
  color: #89928d;
  text-align: center;
}

.empty-state span {
  margin-bottom: 13px;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.empty-state p {
  margin: 0;
}

.guest-list {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: guests;
}

.guest-item {
  display: grid;
  grid-template-columns: 48px 1.4fr 1fr auto 38px;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--paper-deep);
  border-radius: 5px;
  background: rgba(255, 254, 250, 0.88);
  counter-increment: guests;
  animation: rise-in 350ms ease both;
}

.guest-item::before {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  place-items: center;
  color: var(--gold);
  content: counter(guests, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.83rem;
}

.guest-item__name {
  display: block;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.15;
}

.guest-item__family {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.guest-item__meta {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.guest-item__people {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 100px;
  color: var(--sage-deep);
  background: #edf2ee;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.guest-item__delete {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: #8a7772;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.guest-item__delete:hover {
  color: var(--danger);
  background: #f7eae7;
}

.guest-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 25px;
}

.text-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--sage-deep);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-button--danger {
  color: var(--danger);
}

footer {
  display: grid;
  justify-items: center;
  padding: 65px 20px;
  color: #dce7e0;
  background: var(--sage-deep);
  text-align: center;
}

.footer__cross {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

footer p {
  margin: 10px 0 4px;
  font-family: var(--serif);
  font-size: 1.4rem;
}

footer span:last-child {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.noscript {
  position: fixed;
  z-index: 5;
  right: 20px;
  bottom: 20px;
  max-width: 350px;
  padding: 14px 18px;
  color: #fff;
  background: var(--danger);
}

.mobile-rsvp {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: 900px;
    background-position: 48% center;
  }

  .hero::before {
    background: rgba(250, 247, 239, 0.64);
  }

  .hero__content {
    padding-top: 130px;
  }

  .sacrament-grid,
  .rsvp {
    grid-template-columns: 1fr;
  }

  .sacrament-grid {
    max-width: 520px;
    margin: 0 auto;
  }

  .sacrament-card,
  .sacrament-card--featured {
    min-height: 230px;
  }

  .details-card {
    grid-template-columns: 1fr;
    border-radius: 220px 220px 12px 12px;
  }

  .details-card__art {
    min-height: 440px;
  }

  .details-card__copy {
    max-width: none;
    text-align: center;
  }

  .rsvp__intro {
    position: static;
  }

  .rsvp__intro > p:not(.eyebrow),
  .local-note {
    max-width: none;
  }

  .guest-item {
    grid-template-columns: 42px 1fr auto;
  }

  .guest-item__meta {
    grid-column: 2;
  }

  .guest-item__people {
    grid-row: 1;
    grid-column: 3;
  }

  .guest-item__delete {
    grid-row: 2;
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .nav {
    width: calc(100% - 28px);
    padding-top: max(17px, env(safe-area-inset-top));
  }

  .nav__brand span:last-child {
    display: none;
  }

  .button--small {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.6rem;
  }

  .hero {
    min-height: max(680px, 100svh);
    background-position: center;
    background-image:
      linear-gradient(rgba(250, 247, 239, 0.1), rgba(250, 247, 239, 0.08)),
      url("assets/primera-comunion-movil.jpg");
  }

  .hero__content {
    padding: max(92px, calc(72px + env(safe-area-inset-top))) 8px 32px;
  }

  .host-symbol {
    width: 54px;
    height: 54px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.65rem);
  }

  .hero__message {
    max-width: 360px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .date-card {
    margin-top: 22px;
  }

  .hero__scroll {
    margin-top: 18px;
  }

  .section {
    width: min(100% - 24px, 1120px);
    padding: 64px 0;
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.15rem);
  }

  .section__lead {
    margin-top: 18px;
    font-size: 1.08rem;
  }

  blockquote {
    margin: 46px auto;
    padding: 28px 8px;
  }

  blockquote p {
    font-size: 1.35rem;
  }

  .sacrament-grid {
    gap: 14px;
  }

  .sacrament-card,
  .sacrament-card--featured {
    min-height: 190px;
    padding: 32px 20px 24px;
    border-radius: 150px 150px 12px 12px;
  }

  .sacrament-card--featured {
    min-height: 205px;
  }

  .sacrament-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }

  .details-section {
    width: 100%;
    padding-block: 64px;
    padding-inline: 14px;
  }

  .details-card {
    border-radius: 190px 190px 10px 10px;
  }

  .details-card__art {
    min-height: 285px;
  }

  .details-card__host {
    width: 84px;
    height: 84px;
    font-size: 1.1rem;
  }

  .details-card__stem {
    bottom: 67px;
    height: 62px;
  }

  .details-card__copy {
    padding: 38px 21px 44px;
  }

  .details-card__copy p:not(.eyebrow) {
    margin: 20px 0 26px;
  }

  .rsvp {
    gap: 34px;
    scroll-margin-top: 16px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 17px;
  }

  .field--wide {
    grid-column: auto;
  }

  .field input {
    height: 56px;
    font-size: 1rem;
  }

  .button--submit {
    min-height: 56px;
  }

  .guest-section {
    padding-top: 0;
    padding-bottom: 100px;
  }

  .guest-section__heading {
    display: grid;
    gap: 24px;
    justify-items: start;
  }

  .guest-stats {
    width: 92px;
    height: 92px;
  }

  .guest-stats strong {
    font-size: 2.3rem;
  }

  .guest-item {
    grid-template-columns: 34px 1fr 44px;
    gap: 12px;
    padding: 17px 10px 17px 12px;
  }

  .guest-item::before {
    width: 30px;
    height: 30px;
  }

  .guest-item__people {
    grid-row: 2;
    grid-column: 2;
    width: fit-content;
  }

  .guest-item__meta {
    grid-row: 3;
    grid-column: 2;
  }

  .guest-item__delete {
    grid-row: 1;
    grid-column: 3;
    width: 44px;
    height: 44px;
  }

  .guest-actions {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }

  .text-button {
    min-height: 44px;
  }

  footer {
    padding-bottom: max(85px, calc(65px + env(safe-area-inset-bottom)));
  }

  .mobile-rsvp {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 13px 19px;
    border: 1px solid rgba(255, 254, 250, 0.25);
    border-radius: 8px;
    color: var(--white);
    background: rgba(46, 75, 60, 0.96);
    box-shadow: 0 12px 35px rgba(38, 56, 49, 0.3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .mobile-rsvp span:last-child {
    color: var(--gold-light);
    font-size: 1.15rem;
  }

  .mobile-rsvp.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 3.55rem);
  }

  .hero__occasion {
    font-size: 1.35rem;
  }

  .eyebrow {
    letter-spacing: 0.2em;
  }

  .date-card {
    padding-right: 13px;
    padding-left: 11px;
  }

  .rsvp-form {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
