:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #202124;
  background: #f7f4ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.deploy-footer {
  position: fixed;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(6px, env(safe-area-inset-bottom));
  padding: 0;
  color: rgba(43, 36, 28, 0.36);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  text-align: right;
}

a {
  color: #126155;
}

.shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.shell.narrow {
  width: min(440px, calc(100% - 32px));
}

.shell.wide {
  width: min(1160px, calc(100% - 32px));
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #9b3d45;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
}

.panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #ded8ce;
  border-radius: 8px;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 700;
}

legend {
  padding: 0;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8c0b4;
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  background: #fffefa;
}

textarea {
  resize: vertical;
}

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.choice input {
  width: auto;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  border: 1px solid #126155;
  border-radius: 6px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: #126155;
  text-decoration: none;
  cursor: pointer;
}

button.secondary {
  color: #126155;
  background: #ffffff;
}

.link-button {
  min-height: auto;
  border: 0;
  padding: 0;
  color: #9b3d45;
  background: transparent;
  text-decoration: underline;
}

.error {
  color: #a42b32;
  font-size: 0.9rem;
  font-weight: 600;
}

.error.block {
  margin: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.admin-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.stats div {
  padding: 16px;
  border: 1px solid #ded8ce;
  border-radius: 8px;
  background: #ffffff;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 1.8rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #ded8ce;
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #eee7dc;
  text-align: left;
  vertical-align: top;
}

th {
  background: #fff9ef;
}

td p {
  margin: 0 0 6px;
}

.actions {
  white-space: nowrap;
}

.actions form {
  display: inline;
  margin-left: 10px;
}

@media (max-width: 720px) {
  .admin-header {
    display: grid;
    align-items: start;
  }

  .admin-header nav {
    align-items: start;
    flex-direction: column;
  }

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

.home-party {
  --home-ink: #2b241c;
  --home-muted: #625343;
  --home-paper: #fffaf0;
  --home-cream: #f8e8bf;
  --home-green: #285f44;
  --home-green-soft: #cfe7b2;
  --home-red: #ad4b3f;
  --home-yellow: #efc85f;
  --home-blue: #4d8792;
  --home-line: #9c805e;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--home-ink);
  font-family: ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(89, 70, 42, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(89, 70, 42, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, #fff6d8 0%, #f2edd2 48%, #eecf9d 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.home-party-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) 0;
  display: grid;
  grid-template-areas:
    "hero rsvp"
    "sections rsvp";
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.76fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.home-party-hero,
.home-party-rsvp {
  min-width: 0;
}

.home-party-hero {
  grid-area: hero;
  display: grid;
  grid-template-areas:
    "copy scene"
    "basics scene";
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.78fr);
  gap: clamp(18px, 2.8vw, 30px);
  align-items: end;
}

.home-party-copy {
  grid-area: copy;
}

.home-party-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 11px;
  border: 1px solid rgba(43, 36, 28, 0.22);
  border-radius: 999px;
  color: var(--home-red);
  background: rgba(255, 250, 240, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-party h1,
.home-party h2 {
  margin: 0;
  color: var(--home-green);
  letter-spacing: 0;
}

.home-party h1 {
  max-width: 8.2ch;
  font-size: clamp(3.05rem, 6.35vw, 5.35rem);
  font-weight: 900;
  line-height: 0.92;
}

.home-party h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.65rem);
  font-weight: 900;
  line-height: 1;
}

.home-party-lede,
.home-party-card-head p {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.62;
}

.home-party-basics {
  grid-area: basics;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.home-party-basics div {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(43, 36, 28, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 0 12px 28px rgba(73, 51, 29, 0.08);
}

.home-party-basics dt {
  margin: 0 0 4px;
  color: #7d3b33;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-party-basics dd {
  margin: 0;
  color: var(--home-green);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
}

.home-party-scene {
  grid-area: scene;
  position: relative;
  min-height: clamp(390px, 38vw, 500px);
  overflow: hidden;
  border: 2px solid rgba(43, 36, 28, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 226, 0.95) 0%, rgba(223, 239, 199, 0.95) 62%, rgba(187, 217, 144, 0.95) 100%);
  box-shadow: 14px 14px 0 rgba(43, 36, 28, 0.12);
  isolation: isolate;
}

.home-party-scene::before {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(43, 36, 28, 0.22);
  border-radius: 8px;
  content: "";
}

.home-party-sun {
  position: absolute;
  top: 34px;
  right: 44px;
  width: 74px;
  aspect-ratio: 1;
  border: 2px solid rgba(43, 36, 28, 0.42);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(173, 75, 63, 0.32) 0deg 8deg, transparent 8deg 16deg),
    var(--home-yellow);
}

.home-party-bunting {
  position: absolute;
  top: 86px;
  left: 8%;
  width: 70%;
  height: 56px;
  border-top: 3px solid rgba(43, 36, 28, 0.48);
  transform: rotate(-4deg);
}

.home-party-bunting span {
  position: absolute;
  top: -1px;
  width: 24px;
  height: 33px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--home-yellow);
}

.home-party-bunting span:nth-child(1) {
  left: 10%;
  background: var(--home-red);
}

.home-party-bunting span:nth-child(2) {
  left: 25%;
  background: var(--home-yellow);
}

.home-party-bunting span:nth-child(3) {
  left: 40%;
  background: var(--home-green);
}

.home-party-bunting span:nth-child(4) {
  left: 55%;
  background: var(--home-blue);
}

.home-party-bunting span:nth-child(5) {
  left: 70%;
  background: #fffaf0;
}

.home-party-hill {
  position: absolute;
  right: -18%;
  bottom: -12%;
  left: -12%;
  border-radius: 50% 50% 0 0;
}

.home-party-hill-back {
  height: 46%;
  background: #d6e9b9;
}

.home-party-hill-front {
  right: -26%;
  bottom: -24%;
  height: 50%;
  background: #a9ca75;
}

.home-party-four {
  position: absolute;
  left: 12%;
  bottom: 70px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 112px;
  border: 2px solid var(--home-ink);
  border-radius: 50% 50% 44% 44%;
  color: var(--home-red);
  background: var(--home-paper);
  font-size: 4.7rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 7px 8px 0 rgba(43, 36, 28, 0.12);
}

.home-party-four::after {
  position: absolute;
  bottom: -58px;
  left: calc(50% - 3px);
  width: 6px;
  height: 60px;
  border-radius: 8px;
  background: var(--home-ink);
  content: "";
}

.home-party-blanket {
  position: absolute;
  right: 12%;
  bottom: 72px;
  z-index: 2;
  width: 210px;
  height: 92px;
  border: 2px solid rgba(43, 36, 28, 0.32);
  border-radius: 7px;
  background:
    conic-gradient(from 90deg, var(--home-paper) 0 25%, var(--home-red) 0 50%, var(--home-paper) 0 75%, var(--home-red) 0) 0 0 / 48px 48px;
  transform: skewX(-10deg) rotate(-2deg);
  box-shadow: 10px 12px 0 rgba(43, 36, 28, 0.1);
}

.home-party-hotdog,
.home-party-cake,
.home-party-fruit {
  position: absolute;
  z-index: 4;
}

.home-party-hotdog {
  right: 28%;
  bottom: 128px;
  width: 92px;
  height: 26px;
  border: 2px solid rgba(43, 36, 28, 0.45);
  border-radius: 999px;
  background: #d7834e;
  transform: rotate(-7deg);
  box-shadow: 0 5px 0 rgba(43, 36, 28, 0.1);
}

.home-party-hotdog::before {
  position: absolute;
  inset: 5px 14px;
  border-radius: 999px;
  background: #7d3b33;
  content: "";
}

.home-party-hotdog span {
  position: absolute;
  top: 11px;
  left: 16px;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--home-yellow);
  transform: rotate(-3deg);
}

.home-party-cake {
  right: 13%;
  bottom: 126px;
  width: 66px;
  height: 46px;
  border: 2px solid rgba(43, 36, 28, 0.45);
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(180deg, #fffaf0 0 28%, #d86b58 28% 56%, #fff6df 56%);
  transform: rotate(5deg);
  box-shadow: 0 5px 0 rgba(43, 36, 28, 0.1);
}

.home-party-cake span {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: var(--home-blue);
}

.home-party-cake span::before {
  position: absolute;
  top: -9px;
  left: -4px;
  width: 14px;
  height: 10px;
  border-radius: 50% 50% 45% 45%;
  background: var(--home-yellow);
  content: "";
}

.home-party-fruit {
  right: 21%;
  bottom: 104px;
  display: flex;
  gap: 5px;
  transform: rotate(4deg);
}

.home-party-fruit span {
  width: 17px;
  aspect-ratio: 1;
  border: 2px solid rgba(43, 36, 28, 0.38);
  border-radius: 50%;
  background: var(--home-red);
}

.home-party-fruit span:nth-child(2) {
  background: var(--home-green-soft);
}

.home-party-fruit span:nth-child(3) {
  background: var(--home-yellow);
}

.home-party-block {
  position: absolute;
  bottom: 42px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  border: 2px solid rgba(43, 36, 28, 0.66);
  border-radius: 8px;
  color: var(--home-ink);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(43, 36, 28, 0.12);
}

.home-party-block-red {
  right: 34%;
  background: #d86b58;
  transform: rotate(7deg);
}

.home-party-block-green {
  right: 23%;
  background: #78a878;
  transform: rotate(-5deg);
}

.home-party-block-blue {
  right: 12%;
  background: #78a9ba;
  transform: rotate(4deg);
}

.home-party-rsvp {
  grid-area: rsvp;
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 26px);
  border: 2px solid rgba(43, 36, 28, 0.38);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 12px 12px 0 rgba(43, 36, 28, 0.12);
}

.home-party-sections {
  grid-area: sections;
  display: grid;
  gap: 14px;
}

.home-party-info {
  padding: clamp(18px, 3vw, 24px);
  border: 2px solid rgba(43, 36, 28, 0.32);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 10px 10px 0 rgba(43, 36, 28, 0.1);
}

.home-party-info p {
  margin: 12px 0 0;
  color: var(--home-muted);
  line-height: 1.62;
}

.home-party-rsvp::before {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 138px;
  height: 34px;
  border: 1px solid rgba(43, 36, 28, 0.12);
  background:
    repeating-linear-gradient(135deg, rgba(40, 95, 68, 0.13) 0 8px, rgba(255, 255, 255, 0.24) 8px 16px),
    rgba(255, 236, 172, 0.82);
  content: "";
  transform: translateX(-50%) rotate(-1deg);
}

.home-party-form {
  display: grid;
  gap: 16px;
}

.home-party-form label,
.home-party-form fieldset {
  gap: 8px;
}

.home-party-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
}

.home-party-form legend,
.home-party-form fieldset > .error {
  grid-column: 1 / -1;
}

.home-party-form input:not([type="radio"]),
.home-party-form textarea {
  border: 2px solid #8f7659;
  border-radius: 7px;
  background: #fffdf8;
}

.home-party-form .choice {
  justify-content: flex-start;
  min-height: 44px;
  border: 2px solid #967b5d;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff6df;
}

.home-party-form .choice:has(input:checked) {
  border-color: var(--home-green);
  background: #e7f1d7;
}

.home-party-form input:focus-visible,
.home-party-form textarea:focus-visible,
.home-party-form button:focus-visible,
.home-party-form .choice:has(input:focus-visible) {
  outline: 3px solid #2f6f86;
  outline-offset: 3px;
}

.home-party-form button {
  width: 100%;
  min-height: 50px;
  border-color: var(--home-green);
  border-radius: 8px;
  background: var(--home-green);
  box-shadow: 0 8px 0 rgba(40, 95, 68, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-party-form button:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(40, 95, 68, 0.18);
}

.party-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border: 2px solid var(--home-green);
  border-radius: 8px;
  padding: 9px 15px;
  color: #ffffff;
  background: var(--home-green);
  font: inherit;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 7px 0 rgba(40, 95, 68, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.party-button.secondary,
.admin-party button.secondary {
  color: var(--home-green);
  background: var(--home-paper);
}

.party-button:active,
.admin-party button:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(40, 95, 68, 0.16);
}

.party-message-shell,
.admin-login-shell,
.admin-shell {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0;
}

.party-message-shell,
.admin-login-shell {
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

.party-message-card,
.admin-card {
  position: relative;
  display: grid;
  gap: 18px;
  border: 2px solid rgba(43, 36, 28, 0.38);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.93);
  box-shadow: 12px 12px 0 rgba(43, 36, 28, 0.12);
}

.party-message-card {
  padding: clamp(24px, 5vw, 40px);
}

.party-message-card::before,
.admin-card::before {
  position: absolute;
  top: -16px;
  left: clamp(26px, 16%, 96px);
  width: 132px;
  height: 32px;
  border: 1px solid rgba(43, 36, 28, 0.12);
  background:
    repeating-linear-gradient(135deg, rgba(40, 95, 68, 0.13) 0 8px, rgba(255, 255, 255, 0.24) 8px 16px),
    rgba(255, 236, 172, 0.82);
  content: "";
  transform: rotate(-1deg);
}

.party-message-card h1,
.admin-party h1 {
  margin: 0;
  color: var(--home-green);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
}

.party-message-card h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
}

.party-message-card p:not(.home-party-kicker) {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.08rem;
}

.thanks-party .party-message-card {
  overflow: hidden;
  min-height: 360px;
  padding-top: clamp(118px, 18vw, 156px);
}

.thanks-celebration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.thanks-balloon {
  position: absolute;
  top: 24px;
  width: 54px;
  height: 68px;
  border: 2px solid rgba(43, 36, 28, 0.42);
  border-radius: 50% 50% 46% 46%;
  box-shadow: 5px 6px 0 rgba(43, 36, 28, 0.1);
  animation: thanks-float 4.8s ease-in-out infinite;
}

.thanks-balloon::before {
  position: absolute;
  top: 12px;
  left: 13px;
  width: 12px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.44);
  content: "";
  transform: rotate(28deg);
}

.thanks-balloon::after {
  position: absolute;
  bottom: -70px;
  left: 50%;
  width: 2px;
  height: 72px;
  background:
    repeating-linear-gradient(180deg, rgba(43, 36, 28, 0.58) 0 8px, transparent 8px 13px);
  content: "";
  transform: translateX(-50%);
}

.thanks-balloon-red {
  left: 28px;
  background: #d86b58;
  transform: rotate(-7deg);
}

.thanks-balloon-blue {
  top: 44px;
  right: 36px;
  background: #78a9ba;
  animation-delay: -1.6s;
  transform: rotate(6deg);
}

.thanks-balloon-yellow {
  top: 14px;
  left: 50%;
  background: var(--home-yellow);
  animation-delay: -3.1s;
  transform: translateX(-50%) rotate(2deg);
}

.thanks-confetti {
  position: absolute;
  width: 12px;
  height: 24px;
  border: 1px solid rgba(43, 36, 28, 0.22);
  border-radius: 3px;
  animation: thanks-confetti-drift 5.6s ease-in-out infinite;
}

.thanks-confetti-one {
  top: 95px;
  left: 18%;
  background: var(--home-blue);
  transform: rotate(18deg);
}

.thanks-confetti-two {
  top: 44px;
  left: 34%;
  width: 18px;
  height: 10px;
  background: var(--home-green-soft);
  animation-delay: -1.1s;
  transform: rotate(-22deg);
}

.thanks-confetti-three {
  top: 112px;
  right: 24%;
  background: var(--home-red);
  animation-delay: -2.2s;
  transform: rotate(34deg);
}

.thanks-confetti-four {
  top: 72px;
  right: 16%;
  width: 20px;
  height: 11px;
  background: var(--home-yellow);
  animation-delay: -3.3s;
  transform: rotate(-12deg);
}

.thanks-confetti-five {
  top: 146px;
  left: 44%;
  width: 10px;
  height: 20px;
  background: var(--home-green);
  animation-delay: -4.2s;
  transform: rotate(8deg);
}

@keyframes thanks-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes thanks-confetti-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 5px 12px;
  }
}

.admin-party {
  --admin-table-line: rgba(43, 36, 28, 0.18);
}

.admin-shell {
  width: min(820px, calc(100% - 40px));
}

.admin-shell-wide {
  width: min(1180px, calc(100% - 40px));
}

.admin-login-shell {
  width: min(440px, calc(100% - 40px));
}

.admin-login-card,
.admin-card {
  padding: clamp(20px, 3vw, 28px);
}

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

.admin-party .admin-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-party .admin-header form {
  margin: 0;
}

.admin-party h1 {
  font-size: clamp(2.55rem, 6vw, 4.45rem);
}

.admin-party button,
.admin-party .button-link {
  border-width: 2px;
  border-radius: 8px;
  font-weight: 900;
}

.admin-party label,
.admin-party fieldset {
  color: var(--home-ink);
}

.admin-party input:not([type="radio"]),
.admin-party textarea {
  border: 2px solid #8f7659;
  border-radius: 7px;
  background: #fffdf8;
}

.admin-party input:focus-visible,
.admin-party textarea:focus-visible,
.admin-party button:focus-visible,
.party-button:focus-visible,
.admin-party .choice:has(input:focus-visible) {
  outline: 3px solid #2f6f86;
  outline-offset: 3px;
}

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

.admin-party .stats div {
  padding: 16px;
  border: 2px solid rgba(43, 36, 28, 0.3);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 7px 7px 0 rgba(43, 36, 28, 0.1);
}

.admin-party .stats strong,
.admin-party .stats span {
  display: block;
}

.admin-party .stats strong {
  color: var(--home-green);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
}

.admin-party .stats span {
  margin-top: 5px;
  color: #7d3b33;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-party .table-wrap {
  overflow-x: auto;
  border: 2px solid rgba(43, 36, 28, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 12px 12px 0 rgba(43, 36, 28, 0.12);
}

.admin-party table {
  min-width: 860px;
}

.admin-party th,
.admin-party td {
  border-bottom: 1px solid var(--admin-table-line);
  padding: 13px 14px;
}

.admin-party th {
  color: #7d3b33;
  background: #fff1c8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-party tbody tr:nth-child(even) {
  background: rgba(255, 246, 223, 0.58);
}

.admin-party tbody tr:last-child td {
  border-bottom: 0;
}

.admin-party td {
  color: var(--home-ink);
}

.admin-party td a {
  color: var(--home-green);
  font-weight: 800;
}

.admin-party .actions {
  white-space: nowrap;
}

.admin-party .actions form {
  display: inline;
  margin-left: 10px;
}

.admin-party .link-button {
  min-height: auto;
  border: 0;
  padding: 0;
  color: #9b3d45;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 2px solid rgba(40, 95, 68, 0.28);
  border-radius: 8px;
  color: var(--home-green);
  background: rgba(207, 231, 178, 0.52);
  font-weight: 900;
}

.admin-content-form,
.admin-content-section {
  display: grid;
  gap: 16px;
}

.admin-content-section {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(43, 36, 28, 0.16);
}

.admin-content-section:last-of-type {
  border-bottom: 0;
}

.admin-content-section h2 {
  font-size: 1.35rem;
}

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

.admin-section-list {
  display: grid;
  gap: 14px;
}

.admin-section-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.18fr) minmax(180px, 0.5fr) minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(43, 36, 28, 0.24);
  border-radius: 8px;
  background: rgba(255, 246, 223, 0.56);
}

.admin-inline-choice {
  min-height: 44px;
  align-items: center;
  white-space: nowrap;
}

@media (max-width: 940px) {
  .home-party-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "sections"
      "rsvp";
    align-items: start;
  }

  .home-party h1 {
    max-width: 12ch;
  }

  .home-party-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  }

  .home-party-rsvp {
    max-width: 640px;
  }

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

@media (max-width: 760px) {
  .home-party-hero {
    grid-template-areas:
      "copy"
      "basics"
      "scene";
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-party-shell {
    display: flex;
    flex-direction: column;
    width: min(100% - 24px, 1180px);
    padding: 18px 0 34px;
  }

  .home-party-hero {
    display: contents;
  }

  .home-party-copy {
    order: 1;
  }

  .home-party-basics {
    order: 2;
  }

  .home-party-sections {
    order: 3;
  }

  .home-party-rsvp {
    order: 4;
    margin-top: 16px;
    padding: 18px;
  }

  .home-party-scene {
    order: 5;
    min-height: 250px;
    margin-top: 22px;
  }

  .home-party h1 {
    max-width: 11ch;
    font-size: clamp(2.55rem, 12vw, 3.35rem);
    line-height: 0.94;
  }

  .home-party-lede,
  .home-party-card-head p {
    margin-top: 12px;
    font-size: 1rem;
  }

  .home-party-basics {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .home-party-basics div {
    padding: 10px 12px;
  }

  .home-party-form fieldset {
    grid-template-columns: 1fr;
  }

  .home-party-sun {
    top: 22px;
    right: 22px;
    width: 58px;
  }

  .home-party-bunting {
    top: 76px;
    left: 6%;
    width: 88%;
  }

  .home-party-four {
    left: 28px;
    bottom: 58px;
    width: 74px;
    height: 92px;
    font-size: 3.5rem;
  }

  .home-party-blanket {
    right: 22px;
    bottom: 58px;
    width: 145px;
    height: 70px;
  }

  .home-party-hotdog {
    right: 96px;
    bottom: 99px;
    width: 66px;
    height: 21px;
  }

  .home-party-hotdog::before {
    inset: 4px 11px;
  }

  .home-party-hotdog span {
    top: 9px;
    left: 13px;
    width: 40px;
  }

  .home-party-cake {
    right: 30px;
    bottom: 96px;
    width: 47px;
    height: 34px;
  }

  .home-party-cake span {
    top: -16px;
    left: 21px;
    height: 16px;
  }

  .home-party-fruit {
    right: 72px;
    bottom: 79px;
  }

  .home-party-fruit span {
    width: 13px;
  }

  .home-party-block {
    width: 45px;
    bottom: 28px;
  }

  .party-message-shell,
  .admin-login-shell,
  .admin-shell,
  .admin-shell-wide {
    width: min(100% - 24px, 1180px);
    padding: 18px 0 34px;
  }

  .admin-party .admin-header {
    display: grid;
    align-items: start;
  }

  .admin-party .admin-header nav {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-party .admin-header nav .party-button,
  .admin-party .admin-header nav button {
    width: 100%;
  }

  .admin-party .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-party .stats div {
    padding: 13px;
  }

  .admin-content-grid,
  .admin-section-row {
    grid-template-columns: 1fr;
  }

  .thanks-party .party-message-card {
    min-height: 330px;
    padding-top: 112px;
  }

  .thanks-balloon {
    width: 43px;
    height: 56px;
  }

  .thanks-balloon-red {
    left: 18px;
  }

  .thanks-balloon-blue {
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thanks-balloon,
  .thanks-confetti {
    animation: none;
  }
}
