@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,700&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600;7..72,700&display=swap");

:root {
  --ink: #221d18;
  --bark: #5b4534;
  --moss: #5f734f;
  --leaf: #8da36f;
  --cream: #fbf4e4;
  --paper: #f4e3c6;
  --linen: #fff9ec;
  --clay: #bb5f43;
  --rose: #d89078;
  --marigold: #e2aa43;
  --blue: #6c98a3;
  --line: rgba(34, 29, 24, 0.18);
  --shadow: 0 24px 60px rgba(66, 47, 30, 0.16);
  --radius: 8px;
  --button-radius: 10px;
  --flight-progress: 0;
  --flight-sway: 0px;
  --hero-shift: 0px;
  --font-display: "Bodoni Moda", Didot, "Bodoni 72", "Bodoni 72 Oldstyle", Georgia, serif;
  --font-body: Literata, "Iowan Old Style", "Palatino Linotype", Palatino, Charter, serif;
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.48;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  min-width: 320px;
  margin: 0;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--ink);
  background: var(--cream);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loading-screen p {
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.is-ready .loading-screen {
  opacity: 0;
  visibility: hidden;
}

.loading-balloon {
  position: relative;
  width: 92px;
  height: 138px;
  background: url("assets/flight-balloon.svg") center / contain no-repeat;
  filter: drop-shadow(0 12px 22px rgba(74, 53, 36, 0.14));
}

.loading-balloon::before {
  content: "";
  position: absolute;
  right: -44px;
  top: 38px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 115, 79, 0.34), transparent);
  box-shadow:
    -18px 18px 0 rgba(95, 115, 79, 0.2),
    6px 33px 0 rgba(95, 115, 79, 0.16);
}

.loading-balloon::after {
  content: none;
}

.loading-balloon {
  animation: liftOff 1.35s cubic-bezier(.22, .61, .36, 1) both;
}

.flight-path {
  position: fixed;
  right: 14px;
  top: 24px;
  z-index: 12;
  width: 58px;
  height: calc(100vh - 48px);
  border: 0;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.78;
  background: transparent;
}

.flight-path::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid rgba(95, 115, 79, 0.22);
}

.flight-path::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: calc(var(--flight-progress) * 100%);
  transform: translateX(-50%);
  background: rgba(95, 115, 79, 0.48);
}

.flight-marker {
  position: absolute;
  left: 50%;
  bottom: calc(var(--flight-progress) * (100% - 49px));
  width: 34px;
  height: 52px;
  transform: translateX(calc(-50% + var(--flight-sway)));
  background: url("assets/flight-balloon.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 249, 236, 0.92));
  transition: bottom 160ms linear;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 29, 24, 0.08) 0 1px, transparent 1.4px),
    radial-gradient(circle at 80% 10%, rgba(34, 29, 24, 0.06) 0 1px, transparent 1.4px);
  background-size: 38px 42px, 54px 58px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
.scene-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 8.4ch;
  font-size: clamp(4.8rem, 10.5vw, 10rem);
  line-height: 0.95;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.65rem, 7vw, 6.1rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.02;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(34, 29, 24, 0.26);
  border-radius: 6px;
  color: var(--ink);
  background: #fffdf4;
}

input {
  min-height: 50px;
  padding: 0 13px;
}

textarea {
  min-height: 118px;
  padding: 12px 13px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(84, 72, 59, 0.66);
  font-weight: 500;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(108, 152, 163, 0.38);
  outline-offset: 3px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(187, 95, 67, 0.9);
  box-shadow: inset 0 0 0 1px rgba(187, 95, 67, 0.28);
}

.wrap {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(34, 29, 24, 0.16);
  background: rgba(252, 246, 232, 0.84);
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--bark);
  text-decoration: none;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
}

.brand small {
  color: var(--moss);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.site-header nav a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--bark);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover {
  background: rgba(95, 115, 79, 0.14);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 244, 228, 0.94) 0 36%, rgba(251, 244, 228, 0.74) 52%, rgba(251, 244, 228, 0.08) 100%),
    linear-gradient(180deg, rgba(251, 244, 228, 0.08), rgba(251, 244, 228, 0.88)),
    url("assets/hero-garden-balloon.png") center calc(50% + var(--hero-shift)) / cover no-repeat;
}

.hero-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 0 44px;
}

.hero-copy {
  width: min(620px, 100%);
}

.kicker {
  margin-bottom: 18px;
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lead {
  max-width: 710px;
  margin-top: 28px;
  color: #4d4337;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.62;
}

.hero-actions,
.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.btn {
  position: relative;
  min-height: 50px;
  border: 1px solid rgba(34, 29, 24, 0.46);
  border-radius: var(--button-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.62), rgba(244, 227, 198, 0.2));
  box-shadow: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-align: center;
  text-transform: none;
  white-space: normal;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn.primary {
  color: #fff9ec;
  background:
    linear-gradient(180deg, rgba(34, 29, 24, 0.92), rgba(34, 29, 24, 0.98));
  border-color: rgba(34, 29, 24, 0.96);
  box-shadow: inset 0 -2px 0 rgba(187, 95, 67, 0.44);
}

.btn::after {
  content: "→";
  margin-left: 12px;
  font-size: 0.95em;
  transform: translateY(-1px);
}

.btn:hover {
  border-color: var(--moss);
  background: rgba(255, 249, 236, 0.82);
  transform: translateY(-1px);
}

.btn.primary:hover {
  border-color: var(--clay);
  background: linear-gradient(180deg, rgba(34, 29, 24, 0.86), rgba(34, 29, 24, 0.96));
}

.hero-details {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(42px, 8vh, 92px);
  border-block: 1px solid rgba(34, 29, 24, 0.24);
  background: rgba(255, 249, 236, 0.58);
  backdrop-filter: blur(4px);
}

.hero-details div {
  padding: 16px 18px 18px;
  border-right: 1px solid rgba(34, 29, 24, 0.18);
}

.hero-details div:last-child {
  border-right: 0;
}

.hero-details dt {
  color: var(--moss);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-details dd {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1;
}

.balloon-scene {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(34, 29, 24, 0.2);
  border-radius: 24px 24px 12px 12px;
  background:
    linear-gradient(180deg, #d9e8e4 0 54%, #e9dfc7 54% 100%);
  box-shadow: var(--shadow);
}

.balloon-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 76%, rgba(95, 115, 79, 0.18) 0 9%, transparent 9.4%),
    radial-gradient(circle at 72% 78%, rgba(141, 163, 111, 0.22) 0 12%, transparent 12.4%);
}

.cloud {
  position: absolute;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.88);
  box-shadow:
    28px -10px 0 8px rgba(255, 249, 236, 0.88),
    58px 0 0 3px rgba(255, 249, 236, 0.88);
}

.cloud-one {
  width: 82px;
  top: 88px;
  left: 38px;
}

.cloud-two {
  width: 64px;
  top: 164px;
  right: 96px;
  transform: scale(0.78);
}

.balloon {
  position: absolute;
  top: 56px;
  left: 50%;
  width: min(242px, 52%);
  aspect-ratio: 0.78;
  transform: translateX(-50%) rotate(-3deg);
}

.balloon-cap {
  position: absolute;
  inset: 0 0 22%;
  overflow: hidden;
  border: 2px solid rgba(34, 29, 24, 0.72);
  border-radius: 50% 50% 46% 46% / 46% 46% 58% 58%;
  background:
    linear-gradient(90deg,
      var(--clay) 0 18%,
      var(--paper) 18% 32%,
      var(--marigold) 32% 50%,
      var(--paper) 50% 64%,
      var(--blue) 64% 82%,
      var(--clay) 82% 100%);
}

.balloon-cap::before,
.balloon-cap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.balloon-cap::before {
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0 36%, rgba(34, 29, 24, 0.16) 37% 38%, transparent 39%),
    linear-gradient(90deg, transparent 0 17%, rgba(34, 29, 24, 0.18) 17.4% 18%, transparent 18.4% 31%, rgba(34, 29, 24, 0.18) 31.4% 32%, transparent 32.4% 49%, rgba(34, 29, 24, 0.18) 49.4% 50%, transparent 50.4% 63%, rgba(34, 29, 24, 0.18) 63.4% 64%, transparent 64.4% 81%, rgba(34, 29, 24, 0.18) 81.4% 82%, transparent 82.4%);
}

.balloon-cap::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%, rgba(34, 29, 24, 0.08));
}

.basket {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 72px;
  height: 58px;
  transform: translateX(-50%);
  border: 2px solid rgba(34, 29, 24, 0.76);
  background:
    linear-gradient(90deg, rgba(34, 29, 24, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(34, 29, 24, 0.13) 1px, transparent 1px),
    #b47a4a;
  background-size: 18px 14px;
}

.basket::before,
.basket::after {
  content: "";
  position: absolute;
  top: -74px;
  width: 2px;
  height: 74px;
  background: rgba(34, 29, 24, 0.68);
}

.basket::before {
  left: 10px;
  transform: rotate(10deg);
}

.basket::after {
  right: 10px;
  transform: rotate(-10deg);
}

.garden-card {
  position: absolute;
  right: 24px;
  bottom: 30px;
  left: 24px;
  padding: 22px;
  border: 1px solid rgba(34, 29, 24, 0.2);
  border-radius: 12px 12px 8px 8px;
  background: rgba(255, 249, 236, 0.88);
  backdrop-filter: blur(6px);
}

.scene-title {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 9vw, 5.8rem);
  line-height: 0.88;
}

.garden-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.garden-card div {
  border-top: 1px solid rgba(34, 29, 24, 0.18);
  padding-top: 10px;
}

.garden-card dt,
.poster-grid span,
.card-number,
.email-label {
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.garden-card dd {
  margin-top: 4px;
  color: var(--bark);
  font-weight: 650;
}

.garden-bed {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 118px;
  overflow: hidden;
}

.garden-bed::before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -68px;
  left: -8%;
  height: 146px;
  border-radius: 50% 50% 0 0;
  background: var(--leaf);
}

.garden-bed span {
  position: absolute;
  bottom: 36px;
  width: 12px;
  height: 44px;
  border-radius: 12px 12px 0 0;
  background: var(--moss);
}

.garden-bed span::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 24px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--marigold);
  box-shadow:
    14px 4px 0 -7px var(--clay),
    -13px 5px 0 -8px var(--blue);
}

.garden-bed span:nth-child(1) { left: 12%; height: 54px; }
.garden-bed span:nth-child(2) { left: 27%; height: 38px; }
.garden-bed span:nth-child(3) { left: 58%; height: 60px; }
.garden-bed span:nth-child(4) { left: 73%; height: 42px; }
.garden-bed span:nth-child(5) { left: 87%; height: 52px; }

.split-section,
.rsvp-section,
.email-section,
.admin-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.split-section {
  border-top: 1px solid var(--line);
}

.split-section,
.rsvp-section,
.email-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-card,
.email-preview article,
.stats article,
.rsvp-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 236, 0.72);
  box-shadow: 0 1px 0 rgba(34, 29, 24, 0.08);
}

.detail-card {
  min-height: 236px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.detail-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 90px;
  height: 120px;
  border-radius: 50% 50% 0 0;
  background: rgba(141, 163, 111, 0.18);
  transform: rotate(28deg);
}

.detail-card h3 {
  margin: 18px 0 12px;
}

.detail-card p,
.rsvp-copy p,
.email-preview p {
  color: #54483b;
}

.rsvp-copy {
  position: sticky;
  top: 104px;
}

.rsvp-copy h2 {
  margin-bottom: 16px;
}

.rsvp-copy > p:not(.kicker) {
  max-width: 440px;
}

.countdown {
  width: min(300px, 100%);
  margin-top: 28px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.countdown span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
}

.countdown small {
  display: block;
  margin-top: 6px;
  color: var(--moss);
  font-weight: 650;
}

.rsvp-form {
  padding: 24px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.segmented legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--bark);
  font-weight: 600;
}

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 29, 24, 0.24);
  border-radius: var(--button-radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.84), rgba(244, 227, 198, 0.18));
  box-shadow: inset 0 -1px 0 rgba(95, 115, 79, 0.16);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.segmented input:checked + span {
  color: #fff9ec;
  border-color: var(--moss);
  background:
    linear-gradient(180deg, rgba(95, 115, 79, 0.96), rgba(77, 96, 63, 1));
  box-shadow: inset 0 -1px 0 rgba(34, 29, 24, 0.18);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rsvp-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--bark);
  font-weight: 600;
}

.rsvp-form input,
.rsvp-form textarea {
  font-weight: 500;
}

.rsvp-form label input,
.rsvp-form label textarea {
  margin-top: 7px;
}

#formStatus {
  min-height: 24px;
  color: var(--moss);
  font-weight: 650;
}

.field-error {
  margin: 7px 0 0;
  color: #9b4c35;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.email-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.email-preview article {
  padding: 22px;
}

.email-preview h3 {
  margin: 14px 0 10px;
}

.email-tools {
  display: grid;
  grid-template-columns: minmax(280px, 440px);
  gap: 16px;
  align-items: start;
}

.test-email-form h3 {
  margin: 8px 0 18px;
}

.test-recipient-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.test-recipient-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.test-recipient-option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.test-recipient-option span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 29, 24, 0.24);
  border-radius: var(--button-radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.84), rgba(244, 227, 198, 0.18));
}

.test-recipient-option input:checked + span {
  border-color: var(--moss);
  box-shadow: inset 0 0 0 1px var(--moss);
}

.test-recipient-option strong {
  color: var(--bark);
}

.test-recipient-option small {
  color: #54483b;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-login-section {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: 88px 0;
}

.admin-login-section h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(4rem, 10vw, 7rem);
}

.admin-login-section p:not(.kicker),
.admin-note {
  color: #54483b;
}

.admin-login-form {
  align-self: center;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-note {
  margin-top: 14px;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats article {
  padding: 18px;
}

.stats span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.9;
}

.stats p {
  color: var(--moss);
  font-weight: 650;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 236, 0.72);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

caption {
  padding: 14px 16px;
  text-align: left;
  color: var(--moss);
  font-weight: 650;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: #453a30;
}

.actions-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.remove-rsvp {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(187, 95, 67, 0.52);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clay);
  background: rgba(255, 249, 236, 0.72);
  font-size: 0;
  line-height: 0;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.remove-rsvp::before,
.remove-rsvp::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.remove-rsvp::before {
  transform: rotate(45deg);
}

.remove-rsvp::after {
  transform: rotate(-45deg);
}

.remove-rsvp:hover {
  border-color: rgba(187, 95, 67, 0.92);
  color: #fff9ec;
  background: var(--clay);
  transform: translateY(-1px);
}

.remove-rsvp:disabled {
  cursor: progress;
  opacity: 0.58;
  transform: none;
}

.empty-row {
  color: #75685a;
  font-style: italic;
}

.success-dialog {
  width: min(680px, calc(100vw - 32px));
  border: 1px solid rgba(34, 29, 24, 0.2);
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: var(--linen);
  box-shadow: 0 28px 80px rgba(34, 29, 24, 0.24);
}

.success-dialog::backdrop {
  background: rgba(34, 29, 24, 0.42);
}

.dialog-grid {
  display: grid;
  gap: 34px;
  padding: clamp(34px, 5vw, 54px);
}

.dialog-grid h2 {
  margin-bottom: 20px;
}

.dialog-grid p:not(.kicker) {
  max-width: 40ch;
  color: #54483b;
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.55;
}

.site-footer {
  padding: 34px 0 48px;
  color: #6d604f;
}

@keyframes liftOff {
  0% {
    opacity: 0;
    transform: translate3d(-10px, 34px, 0) scale(0.94);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(8px, -20px, 0) scale(1);
  }
}

.footer-grid {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .split-section,
  .rsvp-section,
  .email-section {
    grid-template-columns: 1fr;
  }

  .admin-login-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rsvp-copy {
    position: static;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 40px, 1160px);
  }

  .site-header {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding-block: 12px;
    padding-inline: 20px;
    gap: 10px;
  }

  .site-header nav {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .site-header nav a {
    padding: 5px 4px;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  .brand {
    gap: 2px;
  }

  .brand span {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(
        100deg,
        rgba(251, 244, 228, 0.96) 0 48%,
        rgba(251, 244, 228, 0.58) 72%,
        rgba(251, 244, 228, 0.22) 100%
      ),
      url("assets/hero-garden-balloon.png") 62% calc(100% + var(--hero-shift)) / cover no-repeat;
  }

  .hero-inner {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: flex-start;
    padding:
      max(80px, calc(env(safe-area-inset-top) + 34px))
      0
      max(42px, calc(env(safe-area-inset-bottom) + 34px));
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 16.2vw, 4.45rem);
    line-height: 0.94;
    overflow-wrap: break-word;
  }

  .lead {
    max-width: min(34ch, 100%);
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .kicker {
    max-width: 30ch;
    margin-bottom: 14px;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions,
  .form-footer,
  .footer-grid,
  .admin-head,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .flight-path {
    top: max(88px, calc(env(safe-area-inset-top) + 72px));
    right: max(6px, calc(env(safe-area-inset-right) + 6px));
    display: block;
    width: 50px;
    height: calc(100vh - 128px);
    height: calc(100svh - 128px);
    cursor: default;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .is-scrolling .flight-path {
    opacity: 1;
  }

  .flight-path::before {
    border-left-color: rgba(95, 115, 79, 0.46);
  }

  .flight-path::after {
    background: rgba(95, 115, 79, 0.7);
  }

  .flight-marker {
    bottom: calc(var(--flight-progress) * (100% - 49px));
    width: 34px;
    height: 52px;
    filter:
      drop-shadow(0 0 4px rgba(255, 249, 236, 0.96))
      drop-shadow(0 2px 4px rgba(34, 29, 24, 0.18));
    transition: bottom 90ms linear;
  }

  .hero-details div:nth-child(2) {
    border-right: 0;
  }

  .hero-details div:nth-child(n + 3) {
    border-top: 1px solid rgba(34, 29, 24, 0.18);
  }

  .balloon-scene {
    min-height: 600px;
    border-radius: 18px 18px 10px 10px;
  }

  .balloon {
    top: 72px;
    width: min(210px, 58%);
  }

  .garden-card {
    right: 18px;
    left: 18px;
    bottom: 24px;
    padding: 18px;
  }

  .scene-title {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .garden-card dl,
  .notice-inner,
  .detail-grid,
  .field-grid,
  .segmented,
  .email-preview,
  .email-tools,
  .stats {
    grid-template-columns: 1fr;
  }

  .split-section,
  .rsvp-section,
  .email-section,
  .admin-section,
  .admin-login-section {
    padding: 72px 0;
  }

  .detail-card {
    min-height: 0;
    padding: 22px;
  }

  .rsvp-form {
    padding: 22px;
  }

  .success-dialog {
    width: min(680px, calc(100vw - 40px));
  }
}

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

  .loading-screen {
    display: none;
  }
}
