/* ============================================================
   Wedding Invitation Site — Mobile-First Stylesheet
   ============================================================ */

/* ----- Custom properties ----- */
:root {
  --color-bg:         #FAF6F0;
  --color-bg-alt:     #F0E9DD;
  --color-text:       #3D3229;
  --color-text-light: #7A6E62;
  --color-text-muted: #A89B8F;
  --color-gold:       #B89B5E;
  --color-gold-dark:  #96793B;
  --color-olive:      #6B7B3A;
  --color-sage:       #9CAF88;
  --color-terracotta: #C47850;
  --color-blush:      #E8D5C4;
  --color-wine:       #722F37;
  --color-white:      #FFFFFF;
  --color-overlay:    rgba(44, 36, 22, 0.55);

  --ff-heading: 'Cormorant Garamond', 'Georgia', serif;
  --ff-body:    'Raleway', 'Helvetica Neue', sans-serif;
  --ff-script:  'Great Vibes', cursive;

  --shadow-sm:  0 2px 8px rgba(61, 50, 41, 0.06);
  --shadow-md:  0 4px 20px rgba(61, 50, 41, 0.08);
  --shadow-lg:  0 8px 40px rgba(61, 50, 41, 0.12);

  --radius:     12px;
  --nav-height: 64px;
}


/* ============================================================
   Envelope Entry — Full-screen video
   ============================================================ */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  background: #0a0a0a;
}

.envelope__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.envelope__prompt {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.4s ease;
}

.envelope__prompt.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.envelope__tap {
  font-family: var(--ff-script);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  animation: pulse-hint 2.5s ease-in-out infinite;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.envelope-overlay.is-fading {
  animation: envelope-fade-out 1s ease-in-out forwards;
}

@keyframes envelope-fade-out {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@media (min-width: 768px) {
  .envelope__tap { font-size: 1.8rem; }
}


/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--color-gold-dark); text-decoration: none; }
a:hover { color: var(--color-gold); }

ul { list-style: none; }


/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-text);
}


/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding: 5rem 0;
  text-align: center;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__overline {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}


/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.4s, box-shadow 0.4s;
}

.nav.is-scrolled {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 max(1.5rem, env(safe-area-inset-right)) 0 max(1.5rem, env(safe-area-inset-left));
  height: 100%;
}

.nav__logo {
  font-family: var(--ff-script);
  font-size: 1.5rem;
  color: var(--color-white);
  transition: color 0.4s;
  text-decoration: none;
  z-index: 110;
}

.nav.is-scrolled .nav__logo {
  color: var(--color-text);
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}

.nav.is-scrolled .nav__toggle span {
  background: var(--color-text);
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--color-white);
}
.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--color-white);
}

/* Mobile menu overlay */
.nav__menu {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 22, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav__menu.is-active {
  opacity: 1;
  visibility: visible;
}

.nav__list {
  text-align: center;
}

.nav__link {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-white);
  padding: 1rem 2rem;
  transition: color 0.3s;
  text-decoration: none;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-gold);
}


/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  color: var(--color-white);
  background-color: #2C2416;
  background-image:
    linear-gradient(180deg, rgba(44,36,22,0.25) 0%, rgba(44,36,22,0.55) 100%),
    url('https://images.unsplash.com/photo-1760681554922-801169f34745?auto=format&fit=crop&w=768&q=75');
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__prelude {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.hero__name {
  font-family: var(--ff-script);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-white);
}

.hero__amp {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  opacity: 0.8;
}

/* Ornamental rule */
.hero__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.hero__rule-line {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.hero__rule-diamond {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.hero__invite {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero__date {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.hero__location {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.countdown__number {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
}

.countdown__label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.35rem;
}

.countdown__sep {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.4;
  padding-top: 0.15rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.6;
  transition: opacity 0.3s;
  animation: bounce 2.5s infinite;
}

.hero__scroll:hover {
  opacity: 1;
  color: var(--color-white);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}


/* ============================================================
   Welcome
   ============================================================ */
.welcome__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.welcome__body p + p {
  margin-top: 1.25rem;
}


/* ============================================================
   Venue
   ============================================================ */
.venue__intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.venue__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.venue__card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.venue__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.venue__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.venue__card:hover .venue__img {
  transform: scale(1.03);
}

.venue__caption {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
}

.venue__caption h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.venue__caption p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  padding: 0.9rem 2rem;
  border: 1.5px solid var(--color-gold);
  border-radius: 50px;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn svg {
  transition: transform 0.3s;
}

.btn:hover svg {
  transform: translate(2px, -2px);
}


/* ============================================================
   Image break
   ============================================================ */
.image-break {
  position: relative;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
}

.image-break__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.image-break__quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 22, 0.45);
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
}

.image-break__quote p {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  max-width: 500px;
}

.image-break__quote cite {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 1rem;
}


/* ============================================================
   Timeline / Agenda
   ============================================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-gold) 4rem,
    var(--color-gold) calc(100% - 4rem),
    transparent
  );
}

.timeline__event {
  position: relative;
  padding-bottom: 3rem;
}

.timeline__event:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-left: -2rem;
}

.timeline__dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-gold);
  order: -1;
}

.timeline__time {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  white-space: nowrap;
}

.timeline__card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.timeline__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.timeline__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.timeline__gallery .timeline__img:first-child {
  height: 200px;
}

.timeline__gallery .timeline__img:not(:first-child) {
  height: 140px;
}

.timeline__body {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
}

.timeline__body h3 {
  font-family: var(--ff-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.timeline__body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-light);
}


/* ============================================================
   RSVP form
   ============================================================ */
.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.rsvp-form__group {
  margin-bottom: 1.5rem;
}

.rsvp-form__label {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.rsvp-form__input {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-blush);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
}

.rsvp-form__input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.15);
}

.rsvp-form__input::placeholder {
  color: var(--color-text-muted);
}

.rsvp-form__input:invalid:not(:placeholder-shown) {
  border-color: var(--color-terracotta);
}

.rsvp-form__textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio buttons */
.rsvp-form__radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.rsvp-form__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text);
  cursor: pointer;
}

.rsvp-form__radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rsvp-form__radio-mark {
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-blush);
  border-radius: 50%;
  background: var(--color-white);
  position: relative;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.rsvp-form__radio input:checked + .rsvp-form__radio-mark {
  border-color: var(--color-gold);
}

.rsvp-form__radio input:checked + .rsvp-form__radio-mark::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
}

.rsvp-form__radio input:focus-visible + .rsvp-form__radio-mark {
  box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.15);
}

/* Hint text */
.rsvp-form__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

/* Guest rows */
.rsvp-form__guests {
  border: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.rsvp-form__guests legend {
  margin-bottom: 0.75rem;
}

.guest-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.guest-row__fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guest-row__remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  background: none;
  border: 1.5px solid var(--color-blush);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.guest-row__remove:hover {
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.rsvp-form__add-guest {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-gold-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.rsvp-form__add-guest:hover {
  color: var(--color-gold);
}

/* Status message */
.rsvp-form__status {
  min-height: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
}

.rsvp-form__status--success {
  color: var(--color-olive);
}

.rsvp-form__status--error {
  color: var(--color-terracotta);
}

/* Submit button */
.rsvp-form__submit {
  display: block;
  width: 100%;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-gold);
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
}

.rsvp-form__submit:hover {
  background: var(--color-gold-dark);
}

.rsvp-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ============================================================
   Admin page
   ============================================================ */
.admin-body {
  background: var(--color-bg-alt);
  min-height: 100vh;
  min-height: 100dvh;
}

.admin { padding: 2rem 1rem; }

.hidden { display: none !important; }

/* Login */
.admin__login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
}

.admin__login-card {
  width: 100%;
  max-width: 380px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.admin__login-title {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
}

.admin__login-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Dashboard */
.admin__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin__title {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 300;
}

.admin__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn--sm {
  font-size: 0.7rem;
  padding: 0.6rem 1.2rem;
}

.btn--ghost {
  background: none;
  color: var(--color-text-light);
  border-color: var(--color-text-muted);
}

.btn--ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Stat cards */
.admin__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card__number {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.stat-card--green .stat-card__number { color: var(--color-olive); }
.stat-card--red .stat-card__number   { color: var(--color-terracotta); }

.stat-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* Guest table */
.admin__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin__table th {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  text-align: left;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.admin__table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-bg-alt);
  vertical-align: top;
}

.admin__empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem 1rem !important;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.badge--yes {
  background: rgba(107, 123, 58, 0.12);
  color: var(--color-olive);
}

.badge--no {
  background: rgba(196, 120, 80, 0.12);
  color: var(--color-terracotta);
}


/* ============================================================
   Placeholder sections
   ============================================================ */
.placeholder {
  max-width: 460px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border: 1.5px dashed var(--color-text-muted);
  border-radius: var(--radius);
  color: var(--color-text-light);
}

.placeholder__icon {
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.placeholder p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.placeholder p + p {
  margin-top: 0.5rem;
}


/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 3.5rem max(1.5rem, env(safe-area-inset-right)) calc(3.5rem + env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.footer__names {
  font-family: var(--ff-script);
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.footer__date {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.footer__location {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1.5rem auto;
}

.footer__credit {
  font-size: 0.7rem;
  opacity: 0.5;
  line-height: 1.6;
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }


/* ============================================================
   Responsive — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }

  .section__title {
    font-size: 3rem;
  }

  /* Nav: inline links */
  .nav__toggle { display: none; }

  .nav__menu {
    position: static;
    background: transparent;
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .nav__list {
    display: flex;
    gap: 0.25rem;
  }

  .nav__link {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s;
  }

  .nav.is-scrolled .nav__link {
    color: var(--color-text);
  }

  .nav.is-scrolled .nav__link:hover,
  .nav.is-scrolled .nav__link:focus-visible {
    color: var(--color-gold);
  }

  /* Hero */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(44,36,22,0.2) 0%, rgba(44,36,22,0.5) 100%),
      url('https://images.unsplash.com/photo-1760681554922-801169f34745?auto=format&fit=crop&w=1920&q=80');
  }

  .hero__name {
    font-size: 5rem;
  }

  .hero__amp {
    font-size: 2rem;
  }

  .hero__date {
    font-size: 2.25rem;
  }

  .hero__rule-line { width: 100px; }

  .countdown__number { font-size: 2.75rem; }
  .countdown__label  { font-size: 0.7rem; }
  .countdown { gap: 0.75rem; }

  /* Timeline */
  .timeline {
    max-width: 800px;
    padding-left: 2.5rem;
  }

  .timeline__img {
    height: 300px;
  }

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

  .timeline__gallery .timeline__img:first-child {
    grid-column: span 2;
    height: 260px;
  }

  .timeline__gallery .timeline__img:not(:first-child) {
    height: 180px;
  }

  /* Venue gallery */
  .venue__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .venue__card--wide {
    grid-column: span 2;
  }

  .venue__card--wide .venue__img {
    height: 380px;
  }

  .venue__img {
    height: 320px;
  }

  /* Image break */
  .image-break__quote p {
    font-size: 1.75rem;
  }
}


/* ============================================================
   Responsive — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }

  .section__title {
    font-size: 3.5rem;
  }

  .hero__name {
    font-size: 6rem;
  }

  .hero__prelude {
    font-size: 1.15rem;
  }

  .hero__invite {
    font-size: 1.15rem;
  }

  .countdown__number { font-size: 3rem; }
  .countdown { gap: 1rem; }

  .venue__card--wide .venue__img {
    height: 440px;
  }

  .venue__img {
    height: 360px;
  }

  /* Timeline desktop */
  .timeline__img {
    height: 340px;
  }

  .timeline__gallery .timeline__img:first-child {
    height: 300px;
  }

  .timeline__gallery .timeline__img:not(:first-child) {
    height: 200px;
  }

  .timeline__body h3 {
    font-size: 1.5rem;
  }

  .image-break {
    height: 60vh;
  }

  .image-break__quote p {
    font-size: 2rem;
  }
}


/* ============================================================
   Responsive — Large (1440px+)
   ============================================================ */
@media (min-width: 1440px) {
  .hero__name {
    font-size: 7rem;
  }

  .venue__card--wide .venue__img {
    height: 480px;
  }
}


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

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

  .hero__scroll { animation: none; }
  .envelope__tap { animation: none; opacity: 1; }
  .envelope-overlay.is-fading { animation-duration: 0.01s; }

  .venue__card:hover .venue__img { transform: none; }
  .venue__card:hover { transform: none; }
  .timeline__card:hover { transform: none; }
}
