:root {
  --cream: #f1e6f3;
  --ink: #3b2470;
  --night: #24104a;
  --butterfly-blue: #5f93cc;
  --light-blue: #89d4f2;
  --medium-blue: #4caad0;
  --deep-blue: #225ad9;
  --soft-purple: #a171ce;
  --deep-purple: #7843aa;
  --pink-lavender: #ebd3e6;
  --orchid: #d5b4e0;
  --lavender-blue: #ad9bdc;
  --periwinkle: #9181e7;
  --light-lavender: #e2d1f9;
  --muted-violet: #ac93c1;
  --line: rgba(226, 209, 249, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: white;
  background: var(--night);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  overflow-x: hidden;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  padding: 26px 4vw;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar nav a {
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.topbar nav a:hover {
  opacity: 1;
}

.topbar nav .nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(226, 209, 249, 0.72);
  border-radius: 999px;
  padding: 10px 15px;
  opacity: 1;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.topbar nav .nav-button:hover {
  color: var(--ink);
  background: var(--light-blue);
  transform: translateY(-2px);
}

.topbar nav .directions-button:hover {
  background: var(--orchid);
}

.topbar nav .menu-button:hover {
  background: var(--periwinkle);
}

.topbar nav .photos-button:hover {
  background: var(--lavender-blue);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 104px 20px 70px;
  background:
    linear-gradient(135deg, rgba(34, 90, 217, 0.28), rgba(145, 129, 231, 0.22) 46%, rgba(120, 67, 170, 0.36)),
    url("./images/IMG_5168.jpeg")
      center / cover;
  background-blend-mode: multiply;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(161, 113, 206, 0.04) 18%, rgba(36, 16, 74, 0.22) 100%),
    linear-gradient(180deg, rgba(34, 90, 217, 0.08), rgba(120, 67, 170, 0.28));
}

.invitation {
  position: relative;
  z-index: 1;
  width: min(560px, 90vw);
  padding: 56px 42px 42px;
  color: var(--ink);
  background: rgba(255, 250, 253, 0.94);
  box-shadow: 0 22px 80px rgba(24, 20, 74, 0.28);
  text-align: center;
  animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hosted-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.hosted-label svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.host-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
}

.host-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.host-avatar {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.host-avatar.sahithi {
  background: linear-gradient(135deg, #d5b4e0, #225ad9);
}

.host-avatar.tri {
  background: linear-gradient(135deg, #89d4f2, #7843aa);
}

.host-avatar i {
  position: absolute;
  right: -3px;
  bottom: -2px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
}

.host-avatar i svg {
  width: 9px;
  height: 9px;
  fill: white;
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.invitation h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 7vw, 64px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: none;
}

.party-note {
  margin: 16px 0 0;
  color: var(--deep-purple);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.date-line {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.time-line {
  margin: 8px 0 0;
  color: var(--muted-violet);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

.location {
  margin: 18px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.45;
}

.location span {
  display: block;
  margin-top: 6px;
  color: var(--muted-violet);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.location a {
  color: var(--deep-purple);
  border-bottom: 1px solid rgba(120, 67, 170, 0.35);
}

.venue-map {
  display: block;
  overflow: hidden;
  margin: 22px auto 0;
  max-width: 320px;
}

.venue-map img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.rsvp-link {
  display: inline-block;
  margin-top: 28px;
  border: 0;
  border-bottom: 1px solid rgba(120, 67, 170, 0.35);
  padding: 0 0 4px;
  color: var(--deep-purple);
  background: transparent;
  cursor: pointer;
  font: 600 11px "DM Sans", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rsvp-link:hover {
  color: var(--ink);
}

.menu-section {
  padding: 105px max(7vw, 30px);
  color: white;
  background:
    radial-gradient(circle at 90% 20%, rgba(137, 212, 242, 0.22), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(161, 113, 206, 0.28), transparent 32%),
    linear-gradient(135deg, var(--deep-blue), var(--periwinkle) 48%, var(--deep-purple));
}

.menu-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(226, 209, 249, 0.55);
  padding-bottom: 35px;
}

.menu-heading .eyebrow {
  margin-bottom: 9px;
}

.menu-heading h1,
.menu-heading h2 {
  font-size: clamp(50px, 7vw, 95px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(226, 209, 249, 0.55);
}

.menu-grid article {
  min-height: 260px;
  padding: 33px 35px 40px 0;
}

.menu-grid article + article {
  border-left: 1px solid rgba(226, 209, 249, 0.55);
  padding-left: 35px;
}

.menu-grid article > span {
  color: var(--light-blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.menu-grid h2,
.menu-grid h3 {
  margin: 60px 0 16px;
  font: 400 clamp(25px, 2.5vw, 36px) "Playfair Display", Georgia, serif;
}

.menu-grid p {
  max-width: 280px;
  margin: 0;
  color: var(--cream);
  font: 400 17px/1.55 "Playfair Display", Georgia, serif;
}

.menu-note {
  margin: 26px 0 0;
  color: var(--orchid);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-purple));
}

.menu-topbar {
  position: fixed;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.back-link span {
  font-size: 18px;
  transition: transform 180ms ease;
}

.back-link:hover span {
  transform: translateX(-4px);
}

.menu-screen {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding-top: 135px;
}

.menu-locked {
  align-items: center;
  text-align: center;
}

.menu-locked h1 {
  margin: 18px 0 12px;
  font-size: clamp(48px, 8vw, 84px);
}

.menu-locked p {
  margin: 0;
  color: var(--light-lavender);
  font-size: 16px;
}

.menu-locked .countdown {
  margin: 28px auto 0;
}

.menu-locked[hidden],
.menu-open[hidden] {
  display: none;
}

.potluck-intake {
  min-height: 100svh;
  padding-top: 120px;
}

.potluck-intake h2 {
  margin-top: 12px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.intake-lead {
  max-width: 460px;
  margin: 16px 0 0;
  color: var(--light-lavender);
  font-size: 16px;
  line-height: 1.6;
}

.potluck-card {
  max-height: none;
  margin-top: 28px;
  overflow: visible;
}

.potluck-card .rsvp-actions {
  justify-content: flex-end;
}

.dish-status {
  min-height: 1.2em;
  margin: 0;
  color: #65676b;
  font-size: 14px;
}

.dish-board {
  position: relative;
  width: min(980px, 100%);
  height: 440px;
  margin-top: 28px;
  overflow: hidden;
}

.dish-board[hidden] {
  display: none;
}

.dish-list {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish-bubble {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: max-content;
  max-width: 210px;
  padding: 22px 28px;
  border-radius: 999px;
  text-align: center;
  color: #2a1848;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 46%, rgba(213, 180, 224, 0.78));
  box-shadow:
    inset 0 -8px 16px rgba(120, 67, 170, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 18px 36px rgba(36, 16, 74, 0.16);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.dish-bubble strong {
  font: 600 16px/1.2 "DM Sans", sans-serif;
}

.dish-bubble span,
.dish-bubble p {
  margin: 0;
  color: #6d5a86;
  font-size: 13px;
  line-height: 1.3;
}

.drift-a { animation-name: drift-a; }
.drift-b { animation-name: drift-b; }
.drift-c { animation-name: drift-c; }
.drift-d { animation-name: drift-d; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(72px, -46px); }
  70% { transform: translate(18px, 42px); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-78px, 28px); }
  75% { transform: translate(-16px, -52px); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(34px, 48px); }
  65% { transform: translate(-64px, 8px); }
}

@keyframes drift-d {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(58px, 36px); }
  80% { transform: translate(-28px, -24px); }
}

@media (prefers-reduced-motion: reduce) {
  .dish-bubble {
    animation: none;
  }
}

.menu-date {
  margin: 0;
  font: 400 20px/1.25 "Playfair Display", Georgia, serif;
  text-align: right;
}

.menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.menu-footer a {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-footer a span {
  font-size: 20px;
  transition: transform 180ms ease;
}

.menu-footer a:hover span {
  transform: translateX(5px);
}

.rsvp-section {
  display: grid;
  min-height: 70vh;
  align-items: center;
  padding: 110px max(7vw, 30px);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(137, 212, 242, 0.36), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(161, 113, 206, 0.28), transparent 36%),
    linear-gradient(135deg, var(--cream), var(--pink-lavender) 58%, var(--light-lavender));
}

.eyebrow.dark {
  color: var(--deep-purple);
}

.rsvp-copy h2 {
  font-size: clamp(57px, 7vw, 104px);
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.rsvp-copy > p:last-child {
  max-width: 500px;
  margin: 35px 0 0;
  color: var(--muted-violet);
  font-size: 16px;
  line-height: 1.8;
}

.rsvp-open {
  margin-top: 36px;
  padding: 16px 28px;
  width: fit-content;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rsvp-modal[hidden] {
  display: none;
}

.rsvp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 16, 40, 0.62);
}

.rsvp-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(460px, 100%);
  max-height: min(90vh, 820px);
  overflow: hidden;
  color: #1c1e21;
  background: #f0f1f3;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(16, 10, 32, 0.38);
}

.rsvp-form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.modal-status {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 28px 24px 8px;
}

.modal-status-choice {
  display: grid;
  gap: 8px;
  place-items: center;
  min-width: 72px;
  border: 0;
  padding: 0;
  color: #1c1e21;
  background: transparent;
  cursor: pointer;
  font: 600 13px/1.2 "DM Sans", sans-serif;
}

.modal-status-choice span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(28, 30, 33, 0.1);
  font-size: 26px;
}

.modal-status-choice.is-selected span {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--deep-purple);
}

.modal-fields {
  display: grid;
  flex: 1;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 18px 28px 22px;
}

.modal-field {
  display: grid;
  gap: 4px;
  color: #65676b;
  font: 400 15px/1.3 "DM Sans", sans-serif;
}

.modal-field span {
  font-size: 14px;
}

.modal-field small {
  margin-top: 4px;
  color: #8a8d91;
  font-size: 12px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d6d8db;
  border-radius: 0;
  outline: 0;
  padding: 8px 0 10px;
  color: #1c1e21;
  background: transparent;
  font: 16px/1.4 "DM Sans", sans-serif;
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 72px;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: #65676b;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--deep-purple);
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #d6d8db;
}

.country-picker {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  height: 36px;
}

.country-flag {
  font-size: 20px;
  line-height: 1;
}

.country-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #65676b;
}

.country-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}

.phone-row input {
  border: 0;
  padding: 8px 0 10px;
}

.plus-one-block p {
  margin: 0 0 8px;
  color: #65676b;
  font-size: 14px;
}

.plus-one-add,
.comment-toggle {
  border: 0;
  cursor: pointer;
  text-align: left;
  font: 500 15px/1.2 "DM Sans", sans-serif;
}

.plus-one-add {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 14px 16px;
  color: #1c1e21;
  background: #e4e6e9;
}

.plus-one-add span {
  font-size: 18px;
  line-height: 1;
}

.plus-one-add.is-added {
  background: #ddd3ee;
  color: var(--deep-purple);
}

.comment-toggle {
  padding: 0;
  color: #1c1e21;
  background: transparent;
}

.comment-toggle[hidden],
.comment-field[hidden] {
  display: none;
}

.rsvp-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 360px;
}

.rsvp-status.on-card {
  margin-inline: auto;
}

.status-choice {
  display: grid;
  gap: 8px;
  place-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: 600 12px "DM Sans", sans-serif;
}

.status-choice span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 24px rgba(36, 16, 74, 0.12);
  font-size: 28px;
}

.status-choice:hover span {
  transform: translateY(-2px);
}

.rsvp-actions {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 18px;
  background: #fff;
}

.modal-cancel,
.modal-continue {
  border: 0;
  cursor: pointer;
  font: 500 16px "DM Sans", sans-serif;
}

.modal-cancel {
  padding: 10px 8px;
  color: #1c1e21;
  background: transparent;
}

.modal-continue {
  padding: 10px 22px;
  color: white;
  background: #1c1e21;
  border-radius: 999px;
  font-weight: 600;
}

.modal-continue:hover {
  background: var(--deep-purple);
}

.modal-continue:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note {
  margin: -10px 0 0;
  color: var(--muted-violet);
  font-size: 11px;
  text-align: center;
}

.rooftop-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 6vw;
  align-items: center;
  padding: 110px max(7vw, 30px);
  color: white;
  background:
    radial-gradient(circle at 12% 18%, rgba(137, 212, 242, 0.22), transparent 30%),
    radial-gradient(circle at 90% 82%, rgba(161, 113, 206, 0.28), transparent 34%),
    linear-gradient(135deg, var(--deep-blue), var(--periwinkle) 48%, var(--deep-purple));
}

.rooftop-copy .eyebrow {
  color: var(--light-blue);
}

.rooftop-copy h2 {
  margin-top: 18px;
  font-size: clamp(42px, 5.4vw, 78px);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.rooftop-copy p {
  max-width: 420px;
  margin: 28px 0 0;
  color: var(--light-lavender);
  font-size: 16px;
  line-height: 1.7;
}

.rooftop-copy em {
  font-style: italic;
  color: var(--orchid);
}

.rooftop-photo {
  margin: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(24, 16, 40, 0.32);
}

.rooftop-photo img {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  object-position: center 28%;
}

.photos-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 7vw;
  align-items: center;
  padding: 110px max(7vw, 30px);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(137, 212, 242, 0.28), transparent 30%),
    radial-gradient(circle at 92% 80%, rgba(161, 113, 206, 0.22), transparent 34%),
    linear-gradient(160deg, var(--cream), var(--pink-lavender));
}

.photos-copy h2 {
  font-size: clamp(50px, 6vw, 88px);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.photos-copy > p:last-child {
  max-width: 480px;
  margin: 32px 0 0;
  color: var(--muted-violet);
  font-size: 16px;
  line-height: 1.8;
}

.photos-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(120, 67, 170, 0.28);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 70px rgba(120, 67, 170, 0.12);
}

.photos-lock {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 48px 32px;
  text-align: center;
}

.lock-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(120, 67, 170, 0.35);
  border-radius: 50%;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-purple));
  font-size: 28px;
}

.photos-lock p {
  margin: 0 0 32px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 14px;
  width: min(100%, 420px);
}

.countdown div {
  display: grid;
  gap: 8px;
  padding: 16px 8px 14px;
  border: 1px solid rgba(120, 67, 170, 0.22);
  background: rgba(241, 230, 243, 0.7);
}

.countdown strong {
  color: var(--deep-purple);
  font: 400 30px/1 "Playfair Display", Georgia, serif;
}

.countdown span {
  color: var(--muted-violet);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.photos-section.is-open {
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.photos-section.is-open .photos-copy > p:last-child {
  margin-top: 14px;
}

.photos-section.is-open .photos-panel {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.photos-studio {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.photos-section.is-open .photos-studio {
  gap: 16px;
  padding: 0;
}

.upload-drop {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 150px;
  border: 1px dashed rgba(120, 67, 170, 0.45);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-drop strong {
  font: 400 22px "Playfair Display", Georgia, serif;
}

.upload-drop span {
  color: var(--muted-violet);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-drop:hover {
  background: rgba(226, 209, 249, 0.4);
}

.photos-section.is-open .upload-drop {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: white;
  background: linear-gradient(120deg, var(--deep-purple), #c46ad4);
}

.photos-section.is-open .upload-drop strong {
  font: 600 14px "DM Sans", sans-serif;
}

.photos-section.is-open .upload-drop span {
  color: rgba(255, 255, 255, 0.84);
  letter-spacing: 0.04em;
}

.photos-section.is-open .upload-drop:hover {
  background: var(--deep-purple);
}

.photo-grid {
  columns: 4 150px;
  column-gap: 6px;
}

.photo-grid img {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  break-inside: avoid;
}

.empty-photos {
  margin: 0;
  color: var(--muted-violet);
  font-size: 13px;
  text-align: center;
}

.empty-photos.is-hidden,
.photos-section.is-locked .photos-studio,
.photos-section.is-open .photos-lock {
  display: none;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 25px;
  bottom: 25px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 22px;
  color: white;
  background: linear-gradient(120deg, var(--deep-blue), var(--deep-purple));
  box-shadow: 0 12px 40px rgba(34, 90, 217, 0.24);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast > span {
  font-size: 28px;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 20px;
  }

  .hero {
    min-height: 900px;
    padding-inline: 14px;
  }

  .topbar nav {
    gap: 15px;
  }

  .topbar nav > a:not(.nav-button) {
    display: none;
  }

  .topbar nav .nav-button {
    padding: 9px 13px;
  }

  .topbar nav .nav-button span {
    display: none;
  }

  .invitation {
    width: min(100%, 520px);
    padding: 42px 22px 32px;
  }

  .rsvp-section {
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 90px 25px;
  }

  .menu-section {
    padding: 80px 25px;
  }

  .menu-heading {
    display: block;
  }

  .menu-heading h1,
  .menu-heading h2 {
    margin-top: 14px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-grid article {
    min-height: 0;
    padding: 30px 0;
  }

  .menu-grid article + article {
    border-top: 1px solid rgba(226, 209, 249, 0.55);
    border-left: 0;
    padding-left: 0;
  }

  .menu-grid h2,
  .menu-grid h3 {
    margin-top: 24px;
  }

  .menu-date {
    margin-top: 18px;
    text-align: left;
  }

  .menu-footer {
    display: block;
  }

  .rooftop-section,
  .photos-section {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 85px 25px;
  }

  .rooftop-photo img {
    height: 280px;
  }

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

  .photo-grid {
    columns: 2 120px;
  }
}

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

  .invitation {
    animation: none;
  }
}
