:root {
  --paper: #ffffff;
  --paper-soft: #faf9f7;
  --ink: #444444;
  --ink-dark: #242424;
  --muted: #6a6a6a;
  --line: #dedbd6;
  --line-dark: #4d4d4d;
  --max: 1220px;
  --narrow: 760px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

body.guest-gate-active {
  overflow: hidden;
}

.guest-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  overflow-y: auto;
  background:
    linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.92)),
    var(--paper-soft);
}

.guest-gate::before,
.guest-gate::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: clamp(1.2rem, 4vw, 3.5rem);
  width: min(32vw, 430px);
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.28;
  pointer-events: none;
}

.guest-gate::before {
  left: clamp(-6rem, -4vw, -1.5rem);
  background-image: url("assets/floral-left-new.png");
  background-position: left top;
}

.guest-gate::after {
  right: clamp(-6rem, -4vw, -1.5rem);
  background-image: url("assets/floral-right-new.png");
  background-position: right top;
}

.guest-gate[hidden] {
  display: none;
}

.guest-gate-panel {
  position: relative;
  width: min(100%, 660px);
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.99)),
    #fff;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.35rem, 4vw, 3.4rem) clamp(1.7rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 26px 70px -46px rgba(36, 36, 36, 0.45);
}

.guest-gate-panel::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.guest-gate-floral {
  width: min(178px, 46vw);
  margin: 0 auto 0.45rem;
  opacity: 0.76;
}

.guest-gate-names {
  margin: 0.2rem 0 0.4rem;
  color: #484848;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guest-gate-panel .section-kicker {
  margin: 0 0 0.1rem;
  color: #555;
  font-size: clamp(2.85rem, 7vw, 4.45rem);
}

.guest-gate-panel h2 {
  margin: 0 0 0.82rem;
  font-size: clamp(1.8rem, 5.2vw, 3.15rem);
  letter-spacing: 0.11em;
}

.guest-gate-panel p:not(.section-kicker):not(.guest-gate-message):not(.guest-gate-names) {
  margin: 0 auto 1.55rem;
  max-width: 440px;
  color: #5f5f5f;
  font-size: 1.12rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.guest-gate-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  text-align: left;
}

.guest-gate-form label {
  display: grid;
  gap: 0.35rem;
  color: #4a4a4a;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guest-gate-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-dark);
  padding: 0.85rem 0.9rem;
  border-radius: 0;
  outline: none;
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  transition: border-color 180ms ease, background 180ms ease;
}

.guest-gate-form input:focus {
  border-color: var(--ink-dark);
  background: #fffdf9;
}

.guest-gate-form .button,
.guest-gate-message {
  grid-column: 1 / -1;
}

.guest-gate-form .button {
  width: 100%;
  max-width: none;
  margin-top: 0.35rem;
}

.guest-gate-message,
.rsvp-guest-context {
  margin: 0;
  color: #5d5d5d;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.guest-gate-message.is-error,
.form-message.is-error {
  color: #8a3d3d;
}

.form-message.is-success {
  color: #466248;
}

.text-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #5d5d5d;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  cursor: pointer;
}

.rsvp-form input[readonly] {
  background: var(--paper-soft);
  color: #555;
}

.rsvp-form input:disabled {
  background: #f4f2ef;
  color: #8a8580;
}
.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 1000;
  background: var(--ink-dark);
  color: white;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: var(--narrow);
  text-align: center;
}

.top-rule {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: #252525;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #fff;
}

.floral-spray {
  position: absolute;
  top: 44px;
  width: min(28vw, 430px);
  height: auto;
  opacity: 0.94;
  pointer-events: none;
  user-select: none;
}

.floral-left {
  left: clamp(1rem, 4.5vw, 5.8rem);
}

.floral-right {
  right: clamp(1rem, 4.5vw, 5.8rem);
}

.hero-center {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 238px;
  text-align: center;
}

.wedding-of {
  display: flex;
  justify-content: center;
  margin: 0;
}

.wedding-of-art {
  width: min(505px, 74vw);
  height: auto;
  opacity: 0.98;
}

.hero h1 {
  margin: 2.35rem 0 0.82rem;
  color: #454545;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 4.35rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-date,
.countdown-message {
  margin: 0;
  color: #565656;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.46rem);
  font-weight: 600;
  letter-spacing: 0.23em;
  line-height: 1.45;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem clamp(0.9rem, 1.8vw, 1.55rem);
  margin-top: 0.42rem;
  color: #565656;
  text-transform: uppercase;
}

.countdown-unit {
  display: inline-grid;
  gap: 0.05rem;
  min-width: 76px;
  text-align: center;
}

.countdown-number {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.05;
}

.countdown-label {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.countdown-message {
  margin-top: 0.22rem;
  font-size: clamp(0.95rem, 1.6vw, 1.14rem);
  letter-spacing: 0.18em;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.15rem, 2vw, 2.3rem);
  width: min(100%, 1100px);
  padding: 0 1rem;
}

.nav-links a {
  position: relative;
  color: #464646;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: var(--ink-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  padding: 0.7rem;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--ink-dark);
}

.section {
  padding: 5.6rem 0;
}

header[id],
section[id] {
  scroll-margin-top: 84px;
}

.event-block {
  padding-top: 2.1rem;
}

.event-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: min(6vw, 5rem);
  align-items: start;
}

.event-copy {
  padding-top: 0.2rem;
}

.big-date {
  margin: 0 0 2.45rem;
  color: #4c4c4c;
  font-size: clamp(2.7rem, 5vw, 4.15rem);
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.05;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 0.65rem;
  color: #4b4b4b;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.10em;
  line-height: 1.16;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 0.45rem;
  color: #4b4b4b;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-line {
  margin: 0.18rem 0;
  color: #555;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.10em;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 1.65rem;
  padding: 0.74rem 2.2rem;
  border: 1px solid var(--ink-dark);
  background: var(--ink-dark);
  color: white;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: white;
  color: var(--ink-dark);
}

.button.small {
  min-height: 42px;
  margin-top: 0.8rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.72rem;
}

.button.full {
  width: 100%;
}

.hero-photo {
  margin: 0;
  background: var(--paper-soft);
  min-height: 440px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.centered-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: #5b5b5b;
  font-family: "Mrs Saint Delafield", "Great Vibes", cursive;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: none;
}

.narrow p:not(.section-kicker) {
  margin: 0.8rem auto;
  max-width: 680px;
  color: #5f5f5f;
  font-size: 1.24rem;
  letter-spacing: 0.03em;
}

.photos-section,
.party-section,
.things-section,
.gifts-section {
  background: var(--paper-soft);
}

.photos-section h2,
.party-section h2,
.things-section h2,
.registry-section h2,
.gifts-section h2,
.qa-section h2,
.travel-section h2 {
  text-align: center;
}

.photos-section .section-kicker,
.party-section .section-kicker,
.things-section .section-kicker,
.registry-section .section-kicker,
.gifts-section .section-kicker,
.qa-section .section-kicker {
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.photo-carousel {
  position: relative;
  max-width: 950px;
  margin: 2.5rem auto 0;
}

.carousel-window {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 0.5rem;
}

.carousel-slide img {
  width: 100%;
  height: clamp(320px, 55vw, 620px);
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #5b5b5b;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #4d4d4d;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: #ffffff;
}

.carousel-arrow-left {
  left: 1rem;
}

.carousel-arrow-right {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #5b5b5b;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: #5b5b5b;
}

@media (max-width: 700px) {
  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .carousel-arrow-left {
    left: 0.5rem;
  }

  .carousel-arrow-right {
    right: 0.5rem;
  }

  .carousel-slide {
    padding: 0;
  }
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin: 2.2rem auto 0;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 2.2rem auto 0;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.1rem;
  max-width: 820px;
  margin: 2.2rem auto 0;
}

.party-card,
.list-grid article,
.gift-card,
.simple-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 2rem;
  text-align: center;
}

.party-photo {
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper-soft);
}

.party-photo img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.party-photo.has-photo img {
  display: block;
}

.party-photo.has-photo .initials {
  display: none;
}

.initials {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  font-size: 3.2rem;
  letter-spacing: 0.08em;
}

.rsvp-section {
  background:
    linear-gradient(rgba(255,255,255,0.84), rgba(255,255,255,0.84)),
    url("assets/floral-small-new.png") center top 42px / 230px auto no-repeat;
}

.rsvp-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: min(5vw, 4rem);
  align-items: start;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  padding: min(5vw, 4rem);
}

.rsvp-card h2,
.rsvp-card .section-kicker {
  text-align: left;
}

.rsvp-card p {
  font-size: 1.18rem;
  color: #5a5a5a;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.35rem;
  color: #4a4a4a;
  font-size: 1.04rem;
  letter-spacing: 0.06em;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-dark);
  padding: 0.85rem 0.9rem;
  border-radius: 0;
  outline: none;
}

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

.form-message {
  margin: 0;
  color: #5d5d5d;
  font-size: 0.95rem;
}

.faq-list {
  max-width: 900px;
  margin-top: 2rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  color: #4c4c4c;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list p {
  margin: 0.7rem 0 0;
  color: #5f5f5f;
  font-size: 1.16rem;
  letter-spacing: 0.03em;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(6vw, 5rem);
  align-items: center;
}

.travel-section .section-kicker,
.travel-section h2 {
  text-align: center;
}

.two-column p,
.simple-card p,
.list-grid p,
.gift-card p {
  color: #5f5f5f;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.simple-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.travel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: min(5vw, 4rem);
  align-items: start;
}

.travel-intro {
  grid-column: 1 / -1;
  max-width: var(--narrow);
  margin: 0 auto 0.2rem;
  text-align: center;
}

.travel-intro > p:not(.section-kicker) {
  margin: 0.8rem auto 0;
  max-width: 680px;
  color: #5f5f5f;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.travel-notes {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.2rem;
}

.travel-note {
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
}

.travel-note h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.travel-note p {
  margin: 0;
  color: #5f5f5f;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.travel-map-card {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem;
}

.travel-map-card iframe {
  display: block;
  width: 100%;
  height: min(48vw, 430px);
  min-height: 360px;
  border: 0;
}

.travel-map-card figcaption {
  margin: 0.85rem 0 0.15rem;
  color: #666;
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hotel-card {
  grid-column: 1 / -1;
  width: min(100%, 860px);
  justify-self: center;
}

#hotel-block {
  scroll-margin-top: 84px;
}

.field-help {
  display: block;
  color: #6a6a6a;
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.registry-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-detail {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.86rem !important;
  letter-spacing: 0.04em !important;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0.9rem auto 1rem;
  border: 1px solid var(--ink-dark);
  background:
    linear-gradient(90deg, transparent 46%, rgba(0,0,0,0.15) 47%, rgba(0,0,0,0.15) 53%, transparent 54%),
    linear-gradient(transparent 46%, rgba(0,0,0,0.15) 47%, rgba(0,0,0,0.15) 53%, transparent 54%);
  background-size: 24px 24px;
  color: var(--ink-dark);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.site-footer {
  padding: 4rem 1rem 4.5rem;
  text-align: center;
}

.site-footer img {
  width: 260px;
  margin: 0 auto 1.4rem;
  opacity: 0.75;
}

.footer-names {
  margin: 0;
  color: #444;
  font-size: 2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.25rem 0;
  color: #666;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer a {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: 580px;
  }

  .floral-spray {
    width: min(40vw, 370px);
    top: 58px;
  }

  .floral-left {
    left: -34px;
  }

  .floral-right {
    right: -34px;
  }

  .hero-center {
    padding-top: 194px;
  }

  .site-nav {
    justify-content: flex-end;
    min-height: 62px;
    padding: 0 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.5rem 1rem 1rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.74rem 0;
    text-align: center;
  }

  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .section {
    padding: 4.2rem 0;
  }

  .hero {
    min-height: 560px;
  }

  .floral-spray {
    width: 350px;
    opacity: 0.18;
  }

  .floral-left {
    left: -190px;
  }

  .floral-right {
    right: -190px;
  }

  .hero h1 {
    letter-spacing: 0.12em;
  }

  .hero-date,
  .countdown-message {
    letter-spacing: 0.16em;
  }

  .event-grid,
  .rsvp-card,
  .two-column,
  .travel-layout {
    grid-template-columns: 1fr;
  }

  .travel-intro {
    max-width: var(--narrow);
  }

  .travel-note {
    text-align: left;
  }

  .travel-map-card iframe {
    height: clamp(330px, 58vw, 460px);
    min-height: 330px;
  }

  .hotel-card {
    max-width: 720px;
  }

  .big-date {
    margin-bottom: 1.5rem;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 320px;
  }

  .photo-grid,
  .party-grid,
  .list-grid,
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-grid {
    max-width: 720px;
  }

  .rsvp-card h2,
  .rsvp-card .section-kicker,
  .travel-section .section-kicker,
  .travel-section h2 {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 500px;
  }

  .floral-spray {
    width: 305px;
    top: 42px;
    opacity: 0.16;
  }

  .hero-center {
    padding-top: 156px;
  }

  .wedding-of-art {
    width: min(430px, 84vw);
  }

  .hero h1 {
    font-size: 2.65rem;
    letter-spacing: 0.08em;
  }

  .hero-date,
  .countdown-message {
    font-size: 1.02rem;
    letter-spacing: 0.12em;
  }

  .countdown {
    gap: 0.45rem 0.55rem;
  }

  .countdown-unit {
    min-width: 62px;
  }

  .countdown-number {
    font-size: 1rem;
  }

  .countdown-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .big-date {
    font-size: 2.35rem;
    letter-spacing: 0.11em;
  }

  h2 {
    font-size: 2rem;
    letter-spacing: 0.08em;
  }

  .detail-line {
    font-size: 1.2rem;
  }

  .rsvp-card,
  .party-card,
  .list-grid article,
  .gift-card,
  .simple-card {
    padding: 1.3rem;
  }
}

/* Mobile optimization overrides */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

body.nav-open {
  overflow: hidden;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button,
a {
  -webkit-tap-highlight-color: rgba(36, 36, 36, 0.12);
}

input,
select,
textarea {
  font-size: 16px;
}

img {
  height: auto;
}

.site-nav {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    max-height: calc(100svh - 62px);
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
  }

  .nav-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .section {
    padding: 3.6rem 0;
  }

  header[id],
  section[id] {
    scroll-margin-top: 72px;
  }

  .photo-grid,
  .party-grid,
  .list-grid,
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .party-grid,
  .list-grid,
  .gift-grid {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    min-height: calc(82svh - 62px);
    min-height: calc(82dvh - 62px);
    display: flex;
    align-items: center;
    padding: 3.1rem 0 2.4rem;
  }

  .hero-center {
    width: min(440px, calc(100% - 1.25rem));
    padding-top: 0;
  }

  .floral-spray {
    top: 40px;
    width: min(76vw, 330px);
    opacity: 0.14;
  }

  .floral-left {
    left: -185px;
  }

  .floral-right {
    right: -185px;
  }

  .wedding-of-art {
    width: min(88vw, 380px);
  }

  .hero h1 {
    margin-top: 1.5rem;
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    letter-spacing: 0.075em;
  }

  .hero-date,
  .countdown-message {
    font-size: 0.98rem;
    letter-spacing: 0.1em;
  }

  .countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 350px);
    margin: 0.55rem auto 0;
    gap: 0.35rem;
  }

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

  .countdown-number {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .countdown-label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .event-block {
    padding-top: 3rem;
  }

  .event-copy {
    text-align: center;
  }

  .event-grid {
    gap: 2rem;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: 0.06em;
  }

  h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: 0.06em;
  }

  .section-kicker {
    font-size: clamp(2.6rem, 13vw, 3.7rem);
  }

  .narrow p:not(.section-kicker),
  .two-column p,
  .simple-card p,
  .list-grid p,
  .gift-card p,
  .rsvp-card p,
  .faq-list p {
    font-size: 1.04rem;
    line-height: 1.58;
  }

  .detail-line {
    font-size: 1.12rem;
    line-height: 1.45;
  }

  .button {
    width: 100%;
    max-width: 320px;
    min-height: 52px;
    padding-left: 1rem;
    padding-right: 1rem;
    letter-spacing: 0.14em;
  }

  .hero-photo,
  .hero-photo img {
    min-height: 0;
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .photo-carousel {
    width: 100%;
    margin-top: 1.6rem;
  }

  .carousel-window {
    border: 1px solid var(--line);
    background: #fff;
  }

  .carousel-slide {
    padding: 0;
  }

  .carousel-slide img {
    height: clamp(360px, 112vw, 540px);
    max-height: 72svh;
    max-height: 72dvh;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1.35rem;
  }

  .carousel-arrow-left {
    left: 0.65rem;
  }

  .carousel-arrow-right {
    right: 0.65rem;
  }

  .carousel-dots {
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.25rem 0.25rem 0.45rem;
    scrollbar-width: none;
  }

  .carousel-dots::-webkit-scrollbar {
    display: none;
  }

  .carousel-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
  }

  .rsvp-card,
  .party-card,
  .list-grid article,
  .gift-card,
  .simple-card {
    padding: 1.2rem;
  }

  .rsvp-card {
    gap: 1.75rem;
  }

  .rsvp-form {
    gap: 0.85rem;
  }

  .travel-layout {
    gap: 2rem;
  }

  .travel-intro > p:not(.section-kicker),
  .travel-note p {
    font-size: 1.04rem;
  }

  .travel-map-card {
    padding: 0.5rem;
  }

  .travel-map-card iframe {
    height: clamp(300px, 78vw, 380px);
    min-height: 300px;
  }

  .travel-map-card figcaption {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .field-help {
    font-size: 0.72rem;
  }

  .rsvp-section {
    background-size: 150px auto;
    background-position: center top 24px;
  }

  .faq-list summary {
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }

  .payment-detail {
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 3rem 1rem 3.5rem;
  }

  .site-footer img {
    width: 190px;
  }

  .footer-names {
    font-size: 1.55rem;
    letter-spacing: 0.1em;
  }
}
.travel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.travel-links .button {
  margin-top: 0;
}

.card-links {
  justify-content: center;
}

.hotel-booking-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .travel-links {
    justify-content: center;
  }

  .travel-links .button {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 3rem 0 2.25rem;
  }

  .hero-center {
    padding-top: 0;
  }

  .wedding-of-art {
    width: min(340px, 55vw);
  }

  .hero h1 {
    margin-top: 1rem;
    font-size: 2.35rem;
  }

  .hero-date,
  .countdown-message {
    font-size: 0.9rem;
  }

  .section {
    padding: 3rem 0;
  }

  .carousel-slide img {
    height: min(68vh, 400px);
    height: min(68dvh, 400px);
    max-height: none;
  }
}
@media (max-width: 390px) {
  .container {
    width: min(var(--max), calc(100% - 1rem));
  }

  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 0.06em;
  }

  .hero-date {
    font-size: 0.9rem;
  }

  .countdown {
    gap: 0.25rem;
  }

  .countdown-number {
    font-size: 0.92rem;
  }

  .countdown-label {
    font-size: 0.52rem;
  }

  .floral-left {
    left: -205px;
  }

  .floral-right {
    right: -205px;
  }

  .section {
    padding: 3rem 0;
  }
}


@media (min-width: 1101px) and (min-height: 760px) {
  .guest-gate-panel {
    transform: translateY(0.4rem);
  }
}

@media (max-width: 900px) {
  .guest-gate::before,
  .guest-gate::after {
    width: min(54vw, 330px);
    opacity: 0.16;
  }
}

@media (max-width: 700px) {
  .guest-gate {
    align-items: start;
    padding: max(0.85rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }

  .guest-gate::before,
  .guest-gate::after {
    top: 1rem;
    width: 290px;
    opacity: 0.12;
  }

  .guest-gate::before {
    left: -178px;
  }

  .guest-gate::after {
    right: -178px;
  }

  .guest-gate-panel {
    width: 100%;
    margin: auto 0;
    padding: clamp(1.55rem, 8vw, 2.25rem) 1rem 1.1rem;
  }

  .guest-gate-panel::before {
    inset: 0.45rem;
  }

  .guest-gate-floral {
    width: min(150px, 44vw);
    margin-bottom: 0.2rem;
  }

  .guest-gate-names {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
  }

  .guest-gate-panel .section-kicker {
    font-size: clamp(2.65rem, 13vw, 3.75rem);
  }

  .guest-gate-panel h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.2rem);
    letter-spacing: 0.075em;
  }

  .guest-gate-panel p:not(.section-kicker):not(.guest-gate-message):not(.guest-gate-names) {
    margin-bottom: 1.15rem;
    font-size: 1rem;
    line-height: 1.52;
  }

  .guest-gate-form {
    grid-template-columns: 1fr;
    gap: 0.78rem;
  }

  .guest-gate-form input {
    min-height: 52px;
    font-size: 1.08rem;
  }

  .guest-gate-message {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 390px) {
  .guest-gate-panel {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .guest-gate-panel p:not(.section-kicker):not(.guest-gate-message):not(.guest-gate-names) {
    font-size: 0.96rem;
  }
}
/* RSVP and admin refinements */

.event-copy .event-kicker {
  margin-bottom: 0.25rem;
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
  text-align: left;
}

.detail-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-list .detail-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  margin: 0;
  line-height: 1.35;
}

.detail-line span {
  color: #6b6b6b;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.optional-label {
  color: #777;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-confirmation {
  border: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 1rem;
}

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

.rsvp-confirmation h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.rsvp-confirmation dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.rsvp-confirmation dl div {
  display: grid;
  grid-template-columns: minmax(112px, 0.44fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.rsvp-confirmation dt {
  color: #6b6b6b;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-confirmation dd {
  margin: 0;
  color: #4a4a4a;
  font-size: 1.05rem;
  line-height: 1.4;
}

.hotel-booking-note {
  display: inline-block;
  margin: 1.1rem 0 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  color: #5f5f5f;
  font-family: var(--sans);
  font-size: 0.74rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

.button.ghost {
  background: #fff;
  color: var(--ink-dark);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: var(--ink-dark);
  color: #fff;
}

.admin-page {
  background: var(--paper-soft);
  color: var(--ink-dark);
  font-family: var(--serif);
}

.admin-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 3rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin: 0;
  color: #3f3f3f;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-header p {
  max-width: 680px;
  margin: 0.45rem 0 0;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.5;
}

.admin-kicker,
.admin-section-label {
  margin: 0 0 0.35rem !important;
  color: #6a6a6a !important;
  font-family: var(--sans) !important;
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

.admin-back-link {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0.58rem 1rem;
  border: 1px solid var(--ink-dark);
  background: #fff;
  color: var(--ink-dark);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 860px;
  margin-top: 1.5rem;
}

.admin-login[hidden],
.admin-dashboard[hidden] {
  display: none;
}

.admin-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.admin-panel p {
  margin: 0;
  color: #646464;
  font-size: 1rem;
  line-height: 1.5;
}

.admin-form {
  display: grid;
  gap: 0.95rem;
}

.admin-form.compact {
  align-content: start;
}

.admin-form label,
.admin-search {
  display: grid;
  gap: 0.35rem;
  color: #4a4a4a;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form textarea,
.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-dark);
  padding: 0.78rem 0.82rem;
  border-radius: 0;
  outline: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-search input:focus {
  border-color: var(--ink-dark);
}

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

.admin-checks {
  display: grid;
  gap: 0.6rem;
}

.admin-check {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  gap: 0.65rem !important;
  align-items: center;
  letter-spacing: 0.08em !important;
}

.admin-check input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
}

.admin-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.admin-message {
  min-height: 1.35rem;
  margin: 0;
  color: #646464;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-message.is-error {
  color: #8a3d3d;
}

.admin-message.is-success {
  color: #466248;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-summary-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem;
}

.admin-summary-card span {
  display: block;
  color: #696969;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.admin-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #3e3e3e;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-list-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.admin-search {
  width: min(280px, 100%);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #5f5f5f;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td strong {
  color: #3f3f3f;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.admin-table td span {
  color: #6a6a6a;
  line-height: 1.45;
}

.admin-table tr.inactive {
  opacity: 0.62;
}

.admin-status {
  display: inline-block !important;
  width: fit-content;
  margin-bottom: 0.25rem;
  padding: 0.22rem 0.42rem;
  border: 1px solid var(--line);
  color: #4d4d4d !important;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-status.yes {
  border-color: #9bab91;
  color: #466248 !important;
}

.admin-status.no {
  border-color: #bca09d;
  color: #8a3d3d !important;
}

.admin-status.pending,
.admin-muted {
  color: #777 !important;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-row-actions button {
  min-height: 34px;
  border: 1px solid var(--line-dark);
  background: #fff;
  color: var(--ink-dark);
  padding: 0.35rem 0.55rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-row-actions button:hover,
.admin-row-actions button:focus-visible {
  background: var(--ink-dark);
  color: #fff;
}

.admin-empty {
  margin: 1rem 0 0;
  color: #666;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .detail-list .detail-line {
    grid-template-columns: 1fr;
    gap: 0.12rem;
    text-align: center;
  }

  .event-copy .event-kicker {
    text-align: center;
  }

  .rsvp-confirmation dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .admin-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 0.75rem;
  }

  .admin-header,
  .admin-login,
  .admin-toolbar,
  .admin-list-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-toolbar-actions,
  .admin-form-actions,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar-actions {
    display: grid;
    justify-content: stretch;
  }

  .admin-toolbar-actions .button,
  .admin-form-actions .button,
  .admin-back-link {
    width: 100%;
    max-width: none;
  }

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

  .admin-panel {
    padding: 1rem;
  }

  .admin-summary-card strong {
    font-size: 1.65rem;
  }
}

@media (max-width: 390px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}
/* Admin mobile fit fixes */

.admin-page .admin-shell,
.admin-page .admin-dashboard,
.admin-page .admin-grid,
.admin-page .admin-panel,
.admin-page .admin-table-wrap {
  max-width: 100%;
}

.admin-table td,
.admin-table th,
.admin-row-actions button,
.admin-search input,
.admin-form input,
.admin-form textarea {
  overflow-wrap: anywhere;
}

.admin-row-actions button:active,
.admin-toolbar-actions .button:active,
.admin-form-actions .button:active {
  transform: translateY(1px);
}

@media (max-width: 760px) {
  .admin-header {
    gap: 0.9rem;
    padding-bottom: 1rem;
  }

  .admin-header h1 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
    letter-spacing: 0.055em;
  }

  .admin-header p {
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .admin-dashboard {
    gap: 0.85rem;
  }

  .admin-toolbar {
    gap: 0.65rem;
  }

  .admin-toolbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .admin-toolbar-actions .button {
    min-height: 44px;
    margin-top: 0;
    padding: 0.58rem 0.6rem;
    font-size: 0.66rem;
    letter-spacing: 0.09em;
  }

  .admin-toolbar-actions .button:last-child {
    grid-column: 1 / -1;
  }

  .admin-summary-grid {
    gap: 0.5rem;
  }

  .admin-summary-card {
    min-width: 0;
    padding: 0.72rem;
  }

  .admin-summary-card span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .admin-summary-card strong {
    font-size: 1.45rem;
  }

  .admin-list-header {
    gap: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .admin-search {
    width: 100%;
  }

  .admin-table-wrap {
    overflow: visible;
    border: 0;
  }

  .admin-table {
    display: block;
    min-width: 0;
    width: 100%;
    background: transparent;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 0.78rem;
  }

  .admin-table tr {
    display: block;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.92rem;
  }

  .admin-table tr.inactive {
    opacity: 1;
    background: #f5f3ef;
  }

  .admin-table td {
    display: block;
    padding: 0.62rem 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-table td:first-child {
    padding-top: 0;
  }

  .admin-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .admin-table td::before {
    display: block;
    margin-bottom: 0.18rem;
    color: #6a6a6a;
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .admin-table td:nth-child(1)::before {
    content: "Guest";
  }

  .admin-table td:nth-child(2)::before {
    content: "Limit";
  }

  .admin-table td:nth-child(3)::before {
    content: "RSVP";
  }

  .admin-table td:nth-child(4)::before {
    content: "Shuttle";
  }

  .admin-table td:nth-child(5)::before {
    content: "Actions";
  }

  .admin-table td strong {
    font-size: 1.12rem;
    line-height: 1.18;
  }

  .admin-table td span {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .admin-status {
    margin-top: 0.05rem;
    margin-bottom: 0.3rem;
  }

  .admin-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .admin-row-actions button {
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.45rem;
  }
}

@media (max-width: 430px) {
  .admin-shell {
    width: min(100% - 0.75rem, 1180px);
  }

  .admin-panel {
    padding: 0.85rem;
  }

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

  .admin-table tr {
    padding: 0.82rem;
  }

  .admin-row-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}
/* Admin controls, RSVP clarity, and day-of quick info */

.rsvp-edit-note {
  margin-top: 0.65rem !important;
  color: #666 !important;
  font-family: var(--sans);
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em;
}

.quick-info-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.quick-info-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: min(5vw, 4rem);
  align-items: start;
}

.quick-info-intro p:not(.section-kicker) {
  margin: 0.8rem 0 0;
  max-width: 360px;
  color: #5f5f5f;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.quick-info-item {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.15rem;
}

.quick-info-item span {
  display: block;
  color: #6a6a6a;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.quick-info-item strong {
  display: block;
  margin-top: 0.28rem;
  color: #444;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.quick-info-item p {
  margin: 0.65rem 0 0;
  color: #5f5f5f;
  font-size: 1.02rem;
  line-height: 1.52;
  letter-spacing: 0.03em;
}

.admin-side-stack {
  display: grid;
  gap: 1rem;
}

.admin-settings-panel {
  display: grid;
  gap: 1rem;
}

.admin-help {
  margin-top: 0.45rem !important;
  color: #6a6a6a !important;
  font-family: var(--sans);
  font-size: 0.76rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em;
}

.admin-bulk-form textarea {
  min-height: 178px;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
}

.admin-settings-panel [data-admin-rsvp-status] {
  margin-top: 0.45rem;
  color: #466248;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-settings-panel [data-admin-rsvp-status].is-closed {
  color: #8a3d3d;
}

.admin-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.admin-switch input {
  appearance: none;
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid #9d9a94;
  border-radius: 999px;
  background: #f2f0ec;
  transition: background 180ms ease, border-color 180ms ease;
}

.admin-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6f6b65;
  transition: transform 180ms ease, background 180ms ease;
}

.admin-switch input:checked {
  border-color: #7e927c;
  background: #e9efe6;
}

.admin-switch input:checked::after {
  transform: translateX(20px);
  background: #466248;
}

.admin-switch input:focus-visible {
  outline: 2px solid #4d4d4d;
  outline-offset: 3px;
}

.admin-switch strong,
.admin-switch small {
  display: block;
}

.admin-switch strong {
  color: #444;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.admin-switch small {
  margin-top: 0.25rem;
  color: #6a6a6a;
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.admin-filters button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: #555;
  padding: 0.35rem 0.62rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-filters button.active,
.admin-filters button:hover,
.admin-filters button:focus-visible {
  border-color: var(--ink-dark);
  background: var(--ink-dark);
  color: #fff;
}

@media (max-width: 900px) {
  .quick-info-layout {
    grid-template-columns: 1fr;
  }

  .quick-info-intro,
  .quick-info-intro .section-kicker,
  .quick-info-intro h2 {
    text-align: center;
  }

  .quick-info-intro p:not(.section-kicker) {
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .quick-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .quick-info-item {
    padding: 1rem;
  }

  .quick-info-item strong {
    font-size: 1.25rem;
  }

  .admin-side-stack {
    gap: 0.85rem;
  }

  .admin-switch {
    align-items: start;
  }

  .admin-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .admin-filters button {
    width: 100%;
    min-height: 40px;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: 0.62rem;
  }
}
/* Public language toggle */

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  color: #5c5c5c;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.language-toggle button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  padding: 0.3rem 0.38rem;
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.language-toggle button:hover,
.language-toggle button:focus-visible,
.language-toggle button.active {
  border-color: var(--ink-dark);
  background: #fff;
  color: var(--ink-dark);
}

.language-toggle span {
  color: #9a9690;
}

.guest-language-toggle {
  position: relative;
  z-index: 1;
  margin: 0.2rem auto 0.45rem;
}

.nav-language-toggle {
  flex: 0 0 auto;
  margin-left: -0.25rem;
  padding-left: 0.35rem;
  border-left: 1px solid var(--line);
}

.mobile-top-language-toggle {
  display: none;
}

body.lang-bg .nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .site-nav {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .mobile-top-language-toggle {
    display: inline-flex;
    margin-right: auto;
  }

  .nav-language-toggle {
    display: none;
  }

  body.lang-bg .nav-links a {
    font-size: 0.95rem;
  }
}

@media (max-width: 700px) {
  .guest-language-toggle {
    margin-bottom: 0.25rem;
  }

  .language-toggle button {
    min-height: 34px;
  }
}
/* Story section refinements */
.story-copy {
  max-width: min(100%, 880px);
}

.story-copy .section-kicker,
.story-copy h2 {
  text-align: center;
}

.story-copy h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.story-copy p:not(.section-kicker) {
  max-width: 760px;
  margin: 1rem auto 0;
  color: #5f5f5f;
  font-size: 1.16rem;
  line-height: 1.72;
  letter-spacing: 0.02em;
  text-align: left;
  overflow-wrap: break-word;
}

.story-copy p[data-i18n="story.p9"] {
  margin-top: 1.35rem;
  color: #4b4b4b;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 700px) {
  .story-copy p:not(.section-kicker) {
    font-size: 1.02rem;
    line-height: 1.64;
  }

  .story-copy p[data-i18n="story.p9"] {
    font-size: 1.16rem;
  }
}
/* Guest wall desktop language refinements */
.guest-language-toggle {
  position: absolute;
  top: clamp(0.95rem, 1.8vw, 1.55rem);
  right: clamp(1rem, 2vw, 1.9rem);
  z-index: 2;
  margin: 0;
  gap: 0.42rem;
  color: #595959;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.guest-language-toggle button {
  min-width: auto;
  min-height: 28px;
  border: 0;
  background: transparent;
  padding: 0.2rem 0.06rem;
  text-decoration: none;
  text-underline-offset: 0.32em;
}

.guest-language-toggle button:hover,
.guest-language-toggle button:focus-visible,
.guest-language-toggle button.active {
  border-color: transparent;
  background: transparent;
  color: var(--ink-dark);
  text-decoration: underline;
}

.guest-language-toggle span {
  color: #aaa39a;
}

@media (min-width: 901px) {
  .guest-gate-panel {
    width: min(100%, 880px);
    padding: clamp(3rem, 5vw, 4.6rem) clamp(3.2rem, 6vw, 5.4rem) clamp(2.45rem, 4vw, 3.35rem);
  }

  .guest-gate-panel .section-kicker {
    font-size: clamp(4rem, 5.1vw, 5.55rem);
  }

  .guest-gate-panel h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.75rem, 3.7vw, 4.15rem);
    line-height: 1.08;
  }

  .guest-gate-panel p:not(.section-kicker):not(.guest-gate-message):not(.guest-gate-names) {
    max-width: 540px;
  }

  .guest-gate-form {
    width: min(100%, 660px);
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .guest-language-toggle {
    top: 0.85rem;
    right: 0.95rem;
    font-size: 0.66rem;
  }

  .guest-language-toggle button {
    min-height: 26px;
  }
}

body.lang-bg .guest-gate-panel h2 {
  letter-spacing: 0.075em;
}
/* Registry QR images */
.gift-card-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-qr-image {
  display: block;
  width: min(100%, 260px);
  max-height: 360px;
  margin: 0.85rem auto 1rem;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.gift-card-qr .payment-detail,
.gift-card-qr p {
  margin-top: auto;
}

@media (max-width: 700px) {
  .gift-qr-image {
    width: min(100%, 240px);
    max-height: 340px;
  }
}
/* Registry QR link */
.gift-qr-link {
  display: block;
  width: min(100%, 260px);
  margin: 0.85rem auto 1rem;
  line-height: 0;
}

.gift-qr-link .gift-qr-image {
  width: 100%;
  margin: 0;
}

.gift-qr-link:focus-visible {
  outline: 2px solid var(--ink-dark);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .gift-qr-link {
    width: min(100%, 240px);
  }
}
/* Hotel room block refinements */
.hotel-card {
  text-align: left;
}

.hotel-card h3,
.hotel-address,
.hotel-summary,
.hotel-card .hotel-booking-button,
.hotel-booking-note {
  text-align: center;
}

.hotel-address {
  margin: 0.75rem auto 0;
  color: #4f4f4f;
  font-size: 1.18rem;
  line-height: 1.55;
}

.hotel-summary {
  max-width: 700px;
  margin: 1.05rem auto 0;
  line-height: 1.6;
}

.hotel-booking-list {
  display: grid;
  gap: 0.7rem;
  max-width: 720px;
  margin: 1.2rem auto 0;
  padding-left: 1.2rem;
  color: #5f5f5f;
  font-size: 1.04rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.hotel-booking-list li::marker {
  color: #777;
}

.hotel-card .hotel-booking-button {
  display: flex;
  width: min(100%, 320px);
  margin: 1.45rem auto 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.hotel-booking-note {
  display: block;
  max-width: 720px;
  margin: 1.05rem auto 0;
  padding: 0.7rem 0.9rem;
  color: #5f5f5f;
  font-family: var(--serif);
  font-size: 1rem !important;
  line-height: 1.55;
  letter-spacing: 0.02em !important;
  text-transform: none;
}

@media (max-width: 700px) {
  .hotel-card {
    text-align: left;
  }

  .hotel-address,
  .hotel-summary,
  .hotel-booking-note {
    text-align: left;
  }

  .hotel-booking-list {
    padding-left: 1rem;
    font-size: 1rem;
  }
}
/* Hotel booking emphasis */
.hotel-booking-list strong {
  color: #454545;
  font-weight: 600;
}

.hotel-booking-list a {
  color: #454545;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hotel-booking-list a:hover,
.hotel-booking-list a:focus-visible {
  color: var(--ink-dark);
}
/* Localized hero artwork */
.wedding-of-bg {
  display: none;
  color: #555;
  font-family: "Marck Script", "Great Vibes", cursive;
  font-size: clamp(4.4rem, 7.1vw, 6.55rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: lowercase;
  transform: translateY(0.1rem) rotate(-1.2deg);
}

body.lang-bg .wedding-of-art {
  display: none;
}

body.lang-bg .wedding-of-bg {
  display: block;
}

@media (max-width: 700px) {
  .wedding-of-bg {
    font-size: clamp(3.55rem, 17vw, 5rem);
    letter-spacing: 0;
  }
}
/* RSVP section heading refinements */
.rsvp-card .section-kicker {
  margin-bottom: 0.35rem;
  font-size: clamp(3.25rem, 5.8vw, 5rem);
  line-height: 0.9;
  text-wrap: balance;
}

body.lang-bg .rsvp-card .section-kicker {
  font-size: clamp(3rem, 5.2vw, 4.55rem);
}

body.lang-bg .nav-links {
  gap: clamp(0.75rem, 1.4vw, 1.65rem);
}

@media (max-width: 700px) {
  .rsvp-card .section-kicker,
  body.lang-bg .rsvp-card .section-kicker {
    font-size: clamp(3.05rem, 15vw, 4.25rem);
  }
}

.hotel-summary strong {
  color: #454545;
  font-weight: 600;
}
/* Hotel mobile polish */
@media (max-width: 700px) {
  .hotel-booking-list {
    gap: 0.8rem;
  }

  .hotel-card .hotel-booking-button {
    width: 100%;
    max-width: 320px;
  }
}

/* Desktop navigation fit */
@media (min-width: 1101px) {
  .nav-links {
    gap: clamp(0.65rem, 1.05vw, 1.25rem);
    width: min(100%, 1180px);
  }

  .nav-links a {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  body.lang-bg .nav-links {
    gap: clamp(0.55rem, 0.9vw, 1.05rem);
  }

  body.lang-bg .nav-links a {
    font-size: 0.84rem;
    letter-spacing: 0.08em;
  }
}
