:root {
  --bg: #f6f1e8;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #28352d;
  --muted: #5d6b63;
  --accent: #73906c;
  --accent-2: #b78b61;
  --line: rgba(40, 53, 45, 0.12);
  --shadow: 0 24px 60px rgba(36, 46, 40, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(115, 144, 108, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(183, 139, 97, 0.16), transparent 30%),
    linear-gradient(180deg, #fbf8f2 0%, #f1ebdf 100%);
}

.site-nav {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  z-index: 1000;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.site-nav__toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(40, 53, 45, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.86);
  color: var(--accent-deep, #28352d);
  box-shadow: 0 12px 28px rgba(36, 46, 40, 0.13);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.site-nav__toggle span {
  width: 18px;
  height: 1.5px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav.is-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav__panel {
  min-width: 178px;
  padding: 10px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(40, 53, 45, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 244, 0.94);
  box-shadow: 0 16px 36px rgba(36, 46, 40, 0.16);
  backdrop-filter: blur(12px);
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav.is-open .site-nav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-nav__panel a {
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav__panel a:hover,
.site-nav__panel a:focus-visible {
  background: rgba(115, 144, 108, 0.12);
  color: var(--accent-deep, #28352d);
  outline: none;
  transform: translateX(2px);
}

.page-shell {
  width: min(1220px, calc(100% - 24px));
  margin: 12px auto 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  padding: 22px 28px 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18)),
    linear-gradient(135deg, rgba(115, 144, 108, 0.12), rgba(255,255,255,0));
}

.hero__bg {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px 0 8px;
}

.hero-topline {
  margin: 8px 0 14px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.03em;
  text-transform: none;
  text-align: center;
}

@media (min-width: 701px) {
  .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    grid-template-areas:
      "intro photo"
      "stats stats";
    column-gap: 26px;
    row-gap: 22px;
    align-items: stretch;
    text-align: left;
  }

  .intro-card {
    grid-area: intro;
    width: 100%;
    margin: 0;
    height: 100%;
    padding: 34px 32px 24px;
  }

  .hero-photo {
    grid-area: photo;
    width: 100%;
    margin: 0;
    height: 100%;
  }

  .stats {
    grid-area: stats;
    width: 100%;
    margin: 0;
  }

  .intro-line,
  .intro-meta {
    margin-left: 0;
  }
}

.eyebrow { color: var(--accent); margin: 0 0 12px; }
.hero-title {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
}

.hero-title--desktop {
  display: block;
}

.hero-title--mobile {
  display: none;
}

.lead {
  width: min(820px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.intro-card {
  width: min(980px, 100%);
  margin: 0 auto 18px;
  padding: 28px 28px 22px;
  display: grid;
  grid-template-columns: 64px 1px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  text-align: left;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(40,53,45,0.08);
  box-shadow: 0 20px 46px rgba(36,46,40,0.08);
}

.intro-date {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 0.9;
  font-weight: 700;
}

.intro-rule {
  width: 1px;
  height: 100%;
  min-height: 220px;
  background: rgba(40,53,45,0.35);
}

.intro-copy {
  padding-top: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.intro-copy .eyebrow {
  margin-bottom: 16px;
}

.intro-names {
  margin: 0;
  font-family: "Allura", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  transform: translateY(-2px);
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: -0.04em;
}

.intro-line {
  margin: 16px 0 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(17px, 1.9vw, 23px);
  line-height: 1.25;
  text-transform: none;
  color: rgba(40,53,45,0.92);
}

.intro-line__part {
  display: block;
  text-align: center;
}

.intro-logo {
  display: block;
  width: min(214px, 72%);
  max-width: 100%;
  margin: 2px auto 0;
  opacity: 0.96;
}

.intro-meta {
  margin: 16px 0 0;
  max-width: 560px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-meta span {
  display: block;
}

.countdown {
  width: min(640px, 100%);
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.countdown__item {
  text-align: center;
}

.countdown__item strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 6.8vw, 76px);
  line-height: 0.9;
  color: var(--text);
  font-weight: 700;
}

.countdown__item span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
}

.countdown-block {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  margin: 0 auto;
  padding-top: 8px;
}

.countdown-note {
  width: 100%;
  margin: 0 0 10px;
  color: rgba(40,53,45,0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: none;
}


.hero-photo {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto 18px;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hero-photo picture,
.venue-photo-wrap picture,
.final-photo-strip picture {
  display: block;
  width: 100%;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
}

.final-photo-strip {
  position: relative;
  z-index: 0;
  width: 100vw;
  margin: -118px 0 0 calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  background: var(--paper, var(--bg));
}

.final-photo-strip img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-photo__names {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-family: "Allura", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.intro-copy .hero-photo {
  width: 100%;
  margin: 8px 0 10px;
}

.calendar-block {
  width: min(360px, 100%);
  margin: 24px auto 0;
}

.calendar-card {
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(40,53,45,0.14);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 42px rgba(36,46,40,0.12);
}

.calendar__month {
  margin-bottom: 12px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: var(--text);
}

.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px 6px;
}

.calendar__weekdays {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.calendar__day {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

.calendar__day--blank {
  visibility: hidden;
}

.calendar__day--wedding {
  width: 34px;
  height: 34px;
  justify-self: center;
  position: relative;
  z-index: 1;
  color: #a97c10;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}

.calendar__day--wedding::before {
  content: "♡";
  position: absolute;
  left: 50%;
  top: 50%;
  color: #c84b4b;
  font-size: 63px;
  line-height: 1;
  opacity: 0.92;
  transform: translate(-54%, -40%) rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

.stats,
.grid {
  display: grid;
  gap: 18px;
}
.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(900px, 100%);
  margin: 24px auto 0;
}
.stat,
.card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(36,46,40,0.06);
  border-radius: 24px;
}
.stat { padding: 18px 16px 16px; text-align: left; }
.stat strong { display: block; font-size: 24px; margin: 10px 0 4px; }
.stat span { color: var(--muted); line-height: 1.45; }
.stat__label { color: var(--accent-2); }

main.content { padding: 22px 22px 0; display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: 1fr; }
main.content section.grid--2 {
  gap: 28px;
}
.panel--venue {
  display: grid;
  gap: 12px;
}

.panel--venue .card__kicker {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.venue-photo-wrap {
  position: relative;
  overflow: hidden;
}

.venue-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  filter: none;
}

.venue-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.venue-photo__overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
}

.venue-photo__overlay .intro-names {
  margin: 0;
  color: #fff;
  font-size: clamp(11px, 1.8vw, 18px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  transform: none;
  white-space: normal;
  text-wrap: balance;
  width: 100%;
  max-width: 100%;
}

.card__kicker { color: var(--accent); margin: 0 0 12px; }
.card h2, .panel h2 { font-size: 34px; margin-bottom: 12px; }
.card p, .panel p, .muted, .activity span, .activity strong, li { line-height: 1.65; }
.card p, .panel p, .muted { color: var(--muted); }
ul { margin: 16px 0 0; padding: 0 0 0 18px; color: var(--text); }
li { margin: 6px 0; }

.panel--schedule .card__kicker {
  margin: 0 0 22px;
  text-align: center;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.schedule-timeline {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 2px 0 4px;
}

.schedule-line {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 52px;
  transform: translateX(-50%);
  pointer-events: none;
}

.schedule-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 100' preserveAspectRatio='none'%3E%3Cpath d='M26 0 C 0 4, 52 8, 26 12 C 2 16, 50 20, 26 24 C 0 29, 52 33, 26 38 C 2 43, 50 47, 26 52 C 0 57, 52 61, 26 66 C 2 71, 50 75, 26 80 C 0 85, 52 89, 26 94 C 8 97, 44 99, 26 100' fill='none' stroke='rgba(40,53,45,0.84)' stroke-width='3.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}



.schedule-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  min-height: 96px;
  column-gap: 10px;
}

.schedule-copy {
  position: relative;
  z-index: 1;
}

.schedule-entry--left .schedule-copy {
  grid-column: 1;
  text-align: right;
}

.schedule-entry--right .schedule-copy {
  grid-column: 3;
  text-align: left;
}

.schedule-entry--left .schedule-icon {
  grid-column: 3;
  justify-self: center;
  transform: translateX(12px);
}

.schedule-entry--right .schedule-icon {
  grid-column: 1;
  justify-self: center;
  transform: translateX(-12px);
}

.schedule-copy time {
  display: block;
  margin-bottom: 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(16px, 3.8vw, 22px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.schedule-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 4vw, 25px);
  line-height: 1;
  font-weight: 600;
  color: var(--text);
}

.schedule-copy__title--tight {
  font-size: clamp(16px, 3.5vw, 23px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.schedule-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.schedule-heart {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 3;
  color: #fffdf6;
  font-size: 52px;
  line-height: 1;
  transform: translateX(-50%);
  text-shadow: 0 0 0 1px rgba(70,83,35,0.48), 0 3px 12px rgba(0,0,0,0.16);
  pointer-events: none;
  will-change: top, left, opacity, transform;
  transition: top 540ms ease-out, left 540ms ease-out, opacity 180ms ease-out, transform 540ms ease-out;
}

.schedule-entry--passed .schedule-dot {
  width: 30px;
  height: 30px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent);
}

.schedule-entry--passed .schedule-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  background: center / 24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 16.5 L13.2 22.7 L25.5 9.4' fill='none' stroke='%23fffdf6' stroke-width='5.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.schedule-entry--active .schedule-dot {
  background: var(--text);
  box-shadow: 0 0 0 16.5px var(--accent);
}

.schedule-entry--future .schedule-dot {
  background: var(--text);
}

.schedule-entry--transfer .schedule-dot {
  transform: translate(calc(-50% - 5px), -50%);
}

.schedule-entry--welcome .schedule-dot,
.schedule-entry--banquet-start .schedule-dot,
.schedule-entry--banquet-end .schedule-dot {
  transform: translate(calc(-50% - 4px), -50%);
}

.schedule-entry--photosession .schedule-dot {
  transform: translate(calc(-50% - 3px), -50%);
}

.schedule-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 16.5px var(--accent);
  transform: translate(-50%, -50%);
}

.schedule-icon {
  z-index: 1;
  color: rgba(40,53,45,0.58);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 8vw, 42px);
  line-height: 1;
}

.schedule-icon img {
  display: block;
  width: 72px;
  height: auto;
}

.schedule-icon--disco {
  color: rgba(40,53,45,0.64);
}

main.content .panel,
main.content .latest,
main.content .activity,
main.content .rsvp-form input,
main.content .rsvp-form select,
main.content .rsvp-form textarea,
main.content .button,
main.content .route__node {
  border-radius: 0;
}

main.content .venue-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: fit-content;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(183,139,97,0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(183,139,97,0.18), rgba(115,144,108,0.12));
  color: #6f4e35;
  font: 600 13px/1.1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(36,46,40,0.08);
}

main.content .venue-map-link:hover {
  border-color: rgba(183,139,97,0.42);
  color: #5e3f2a;
  box-shadow: 0 10px 22px rgba(36,46,40,0.12);
  transform: translateY(-1px);
}

main.content .panel,
main.content .latest,
main.content .activity {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.activity-list { display: grid; gap: 12px; }
.activity strong { display: block; color: var(--text); margin-bottom: 4px; }

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.rsvp-form label { display: grid; gap: 8px; }
.rsvp-form span { color: var(--muted); font-size: 14px; }
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(40,53,45,0.14);
  background: transparent;
  color: var(--text);
  padding: 12px 0;
  font: inherit;
  outline: none;
  box-shadow: none;
}
.rsvp-form textarea { resize: vertical; min-height: 108px; }
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-bottom-color: rgba(115,144,108,0.45);
  box-shadow: none;
}
.rsvp-textarea-shell {
  position: relative;
  margin-left: -8px;
}
.rsvp-textarea-shell__icon {
  position: absolute;
  left: 10px;
  top: 15px;
  z-index: 1;
  color: rgba(115,144,108,0.82);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.rsvp-textarea-shell textarea {
  padding-left: 34px;
  padding-top: 12px;
}

.rsvp-checks {
  margin: 2px 0 0;
  padding: 4px 0 2px;
  border: 0;
}

.rsvp-checks legend {
  margin: 0 0 10px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.rsvp-checks__grid {
  display: grid;
  gap: 8px;
}

.rsvp-checks__grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
}

.rsvp-form .rsvp-checks input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(40,53,45,0.38);
  accent-color: var(--accent-deep);
}

.rsvp-checks__grid span {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.12;
}

.rsvp-beer-option {
  position: relative;
  width: fit-content;
  overflow: visible;
}

.rsvp-beer-option--joking > span,
.rsvp-beer-option--blocked > span {
  color: rgba(40,53,45,0.52);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(40,53,45,0.62);
}

.rsvp-beer-option--blocked input[data-beer-option] {
  opacity: 0.62;
}

.rsvp-beer-option--blocked::after {
  content: "×";
  position: absolute;
  left: 7.5px;
  top: 50%;
  z-index: 2;
  color: rgba(40,53,45,0.72);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -52%);
}

.rsvp-beer-joke {
  position: absolute;
  left: 24px;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: max-content;
  max-width: min(300px, calc(100vw - 72px));
  padding: 8px 11px;
  border: 1px solid rgba(115,144,108,0.24);
  border-radius: 999px;
  background: rgba(255,253,244,0.96);
  color: var(--accent-deep);
  box-shadow: 0 10px 26px rgba(40,53,45,0.12);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rsvp-beer-option--joking .rsvp-beer-joke {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rsvp-companions {
  display: grid;
  gap: 18px;
  margin-top: 2px;
}

.rsvp-companions:empty {
  display: none;
}

.rsvp-companion {
  padding-top: 18px;
  border-top: 1px solid rgba(40,53,45,0.10);
}

.rsvp-companion__title {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}

.rsvp-companion__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rsvp-companion .rsvp-checks {
  margin-top: 0;
}

.panel--wishes .wishes-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.panel--menu {
  text-align: center;
}

.panel--menu .menu-vignette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 4px;
  color: var(--accent);
}

.panel--menu .menu-vignette::before,
.panel--menu .menu-vignette::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115,144,108,0.75), transparent);
}

.panel--menu .menu-vignette span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.panel--menu h2 {
  margin: 6px auto 0;
  text-align: center;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4.4vw, 44px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.panel--menu .menu-copy {
  max-width: 38ch;
  margin: 16px auto 0;
  color: rgba(40,53,45,0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 2.15vw, 23px);
  font-style: italic;
  line-height: 1.28;
}

.panel--wishes .wishes-lead {
  max-width: none;
  margin: 12px auto 6px;
  color: rgba(40,53,45,0.72);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.28;
  font-style: italic;
  text-align: center;
}

.panel--wishes .wishes-lead__line {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
}

.panel--wishes .wishes-vignette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 4px;
  color: var(--accent);
}

.rsvp-vignette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 4px;
  color: var(--accent);
}

.panel--wishes h2 {
  margin: 6px auto 0;
  text-align: center;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4.4vw, 44px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.panel--wishes .wishes-vignette::before,
.panel--wishes .wishes-vignette::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115,144,108,0.75), transparent);
}

.panel--wishes .wishes-vignette span {
  display: block;
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
}

.panel--wishes .wishes-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(40,53,45,0.09);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.22;
}

.panel--wishes .wishes-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel--wishes .wish__strike {
  color: rgba(40,53,45,0.48);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(40,53,45,0.55);
}

.panel--wishes .wishes-list strong {
  color: var(--accent-deep);
  font-weight: 600;
}

.panel--wishes .wishes-list li:last-child,
.panel--wishes .wishes-list li:nth-last-child(2) {
  color: var(--accent-deep);
}

.panel--wishes .wishes-list::before {
  content: "";
  display: block;
  width: 110px;
  height: 1px;
  margin: 10px auto 14px;
  background: linear-gradient(90deg, transparent, rgba(115,144,108,0.45), transparent);
}

body.mobile-mode .panel--wishes .wishes-lead {
  font-size: 15px;
  line-height: 1.25;
  max-width: none;
}

body.mobile-mode .rsvp-companion__grid {
  grid-template-columns: 1fr;
}

body.mobile-mode .rsvp-companion__title {
  font-size: 21px;
}

body.mobile-mode .panel--menu .menu-copy {
  max-width: 29ch;
  font-size: 17px;
  line-height: 1.3;
}

body.mobile-mode .panel--menu .menu-vignette {
  margin-top: 12px;
  gap: 8px;
}

body.mobile-mode .panel--menu .menu-vignette::before,
body.mobile-mode .panel--menu .menu-vignette::after {
  width: 30px;
}

body.mobile-mode .panel--menu h2 {
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1;
}

body.mobile-mode .panel--wishes .wishes-vignette {
  margin-top: 12px;
  gap: 8px;
}

body.mobile-mode .panel--wishes .wishes-vignette::before,
body.mobile-mode .panel--wishes .wishes-vignette::after {
  width: 30px;
}

body.mobile-mode .panel--wishes h2 {
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1;
}

.rsvp-form__full,
.button,
.form-note { grid-column: 1 / -1; }
.form-thanks {
  margin: 18px 0 0;
  color: rgba(40,53,45,0.88);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 35px;
  font-style: italic;
  line-height: 1.0;
  letter-spacing: 0.015em;
  text-align: center;
}
.button {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
  justify-self: start;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.summary-row strong { display: block; font-size: 36px; font-family: "Cormorant Garamond", serif; }
.summary-row--admin {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel--summary {
  overflow: hidden;
}

.admin-stats__group {
  margin-top: 18px;
}

.admin-stats__group h3 {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-style: italic;
  text-align: center;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
}

.admin-responses {
  display: grid;
  gap: 12px;
}

.admin-response {
  padding: 12px 14px;
  border: 1px solid rgba(40,53,45,0.10);
  border-radius: 16px;
  background: rgba(255,253,244,0.72);
}

.admin-response__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.admin-response__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(106, 129, 92, 0.28);
  background: rgba(255, 253, 244, 0.92);
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}

.admin-response__head strong {
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.admin-response__head span,
.admin-response__meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.admin-response__meta + .admin-response__meta {
  margin-top: 4px;
}

.latest__label { margin: 0 0 8px; color: var(--accent-2); }
.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
}
.route__node {
  padding: 10px 14px;
  background: transparent;
  font-weight: 800;
  color: var(--accent);
  border: 0;
}
.route__node--accent { background: transparent; color: #9d6f43; }
.route__line {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(115,144,108,0.16), rgba(183,139,97,0.28));
}

@media (max-width: 700px) {
  .page-shell { width: min(100%, calc(100% - 12px)); margin: 6px auto 16px; border-radius: 22px; }
  .hero { padding: 16px 16px 24px; }
  .content { padding: 14px; }
  .hero h1 { font-size: clamp(48px, 17vw, 76px); }
  .lead { font-size: 16px; }
  .card h2, .panel h2 { font-size: 28px; }
  .rsvp-form { grid-template-columns: 1fr; }
  .rsvp-form__full, .button, .form-note { grid-column: auto; }
}

body.mobile-mode .page-shell {
  width: 100%;
  margin: 0;
  border-radius: 0;
}

body.mobile-mode .hero {
  padding-top: 14px;
}

body.mobile-mode .hero__content,
body.mobile-mode .content {
  padding-left: 12px;
  padding-right: 12px;
}

body.mobile-mode .hero__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 14px;
  padding-left: 0;
  padding-right: 0;
}

body.mobile-mode .stats,
body.mobile-mode .grid--3,
body.mobile-mode .grid--2 {
  grid-template-columns: 1fr;
}

body.mobile-mode .intro-card {
  margin-bottom: 14px;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 18px 16px 16px;
}

body.mobile-mode .hero-photo {
  width: 100vw;
  margin: 0 calc(50% - 50vw) 16px;
  max-width: none;
}

body.mobile-mode .intro-date {
  display: grid;
  grid-auto-flow: row;
  gap: 4px;
  align-items: center;
  justify-items: center;
  line-height: 0.9;
}

body.mobile-mode .intro-copy h1 {
  font-size: clamp(34px, 12vw, 52px);
}

body.mobile-mode .intro-line {
  font-size: 18px;
}

body.mobile-mode .intro-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
}

body.mobile-mode .countdown {
  width: 100%;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
}

body.mobile-mode .countdown__item strong {
  font-size: 28px;
}

body.mobile-mode .countdown__item span {
  margin-top: 6px;
  font-size: 10px;
}


body.mobile-mode .hero-photo img {
  aspect-ratio: 4 / 5;
  object-position: 50% 28%;
}

@media (max-width: 700px) {
  body.mobile-mode .page-shell {
    width: 100%;
    margin: 0;
  }

  body.mobile-mode .hero {
    padding-top: 0;
  }

  body.mobile-mode .content {
    padding: 0 14px 22px;
  }

  body.mobile-mode .hero__content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  body.mobile-mode .intro-card {
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    grid-template-columns: 32px 1px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  body.mobile-mode .intro-rule {
    display: block;
    width: 1px;
    height: 100%;
    min-height: 1px;
    align-self: stretch;
  }

  body.mobile-mode .intro-copy {
    padding-top: 0;
    gap: 8px;
  }

  body.mobile-mode .intro-date {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 3px 0 5px;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 0.84;
  }

  body.mobile-mode .intro-date span {
    display: block;
    min-width: 0;
    text-align: center;
  }

  body.mobile-mode .intro-names {
    font-size: clamp(38px, 11vw, 56px);
  }

  body.mobile-mode .hero-title--desktop {
    display: none;
  }

  body.mobile-mode .hero-title--mobile {
    display: block;
    font-size: clamp(32px, 10vw, 46px);
    margin: 8px 0 10px;
    line-height: 0.95;
  }


  body.mobile-mode .intro-line {
    font-size: 17px;
    line-height: 1.25;
    max-width: 24ch;
  }

  body.mobile-mode .intro-meta {
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 5px;
  }

  body.mobile-mode .countdown-block {
    width: 100%;
    padding-top: 14px;
  }

  body.mobile-mode .venue-photo-wrap {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 2px;
  }

  body.mobile-mode .venue-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .venue-photo__overlay .intro-names {
    font-size: clamp(14px, 4.2vw, 22px);
  }

  body.mobile-mode .venue-map-link {
    width: 100%;
  }

  .schedule-copy h3 {
    font-size: clamp(17px, 4.1vw, 22px);
    line-height: 1.05;
  }

  .schedule-icon img {
    width: 56px;
  }

  .schedule-icon--photosession img {
    width: 60px;
  }

  .schedule-icon--transfer img {
    width: 58px;
  }

  .schedule-icon--welcome img {
    width: 60px;
  }

  .schedule-icon--banquet img {
    width: 64px;
  }

  .schedule-icon--banquet-end img {
    width: 58px;
  }

  .schedule-icon--disco img {
    width: 60px;
  }

  body.mobile-mode .calendar-block {
    width: 100%;
    margin-top: 14px;
  }

  body.mobile-mode .calendar-card {
    padding: 16px 14px 18px;
    border-radius: 14px;
  }

  body.mobile-mode .calendar__month {
    font-size: 28px;
  }

  body.mobile-mode .calendar__weekdays,
  body.mobile-mode .calendar__grid {
    gap: 6px 4px;
  }

  body.mobile-mode .calendar__day {
    min-height: 30px;
    font-size: 16px;
  }

  body.mobile-mode .countdown-note {
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: none;
    color: rgba(40,53,45,0.74);
  }

  body.mobile-mode .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  body.mobile-mode .countdown__item {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  body.mobile-mode .countdown__item strong {
    font-size: 27px;
  }

  body.mobile-mode .countdown__item span {
    margin-top: 5px;
    font-size: 10px;
  }

  body.mobile-mode .panel--wishes .wishes-list li {
    font-size: 18px;
    line-height: 1.2;
    padding: 12px 0;
  }

  body.mobile-mode .hero-photo {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 16px;
    max-width: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  body.mobile-mode .hero-photo img {
    object-position: 50% 24%;
  }
}
/* === GREEN INVITATION CONCEPT — 2026-07-22 === */
:root {
  --bg: #ecefe3;
  --paper: #fffdf6;
  --panel: rgba(255, 253, 246, 0.92);
  --panel-strong: #fffdf6;
  --text: #26311d;
  --muted: #667055;
  --accent: #68753b;
  --accent-2: #8f9662;
  --accent-deep: #465323;
  --line: rgba(38, 49, 29, 0.16);
  --shadow: 0 22px 54px rgba(38, 49, 29, 0.10);
}

html,
body {
  background: #ecefe3;
}

body {
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.004em;
  background:
    radial-gradient(circle at 14% 0%, rgba(104, 117, 59, 0.25), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(143, 150, 98, 0.18), transparent 30%),
    linear-gradient(180deg, #f7f5ea 0%, #e6ebdb 46%, #dfe7d3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.48;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(70,83,35,0.045) 38.2% 38.7%, transparent 39% 100%),
    radial-gradient(ellipse at bottom, rgba(70,83,35,0.10), transparent 58%);
}

.page-shell {
  width: min(560px, calc(100% - 28px));
  margin: 18px auto 42px;
  border: 1px solid rgba(255, 253, 246, 0.78);
  border-radius: 0;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.hero {
  padding: 34px 30px 30px;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255,253,246,0.94), rgba(255,253,246,0.78)),
    linear-gradient(135deg, rgba(104,117,59,0.14), transparent 58%);
}

.hero__content {
  display: block !important;
  padding: 0;
  text-align: center !important;
}

.hero-topline,
.hero-title,
.intro-line,
.calendar__month,
.countdown-note,
.panel--venue .card__kicker,
.panel--schedule .card__kicker,
.card__kicker,
.panel h2,
.latest__label {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--text);
  text-transform: none;
}

.hero-topline {
  margin: 0 0 24px;
  color: var(--accent-deep);
  font-size: clamp(30px, 8.5vw, 48px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0.018em;
}

.hero-topline::before,
.panel--venue .card__kicker::before,
.panel--schedule .card__kicker::before,
#rsvp .card__kicker::before,
.panel--summary .card__kicker::before {
  content: "✦";
  display: block;
  margin: 0 auto 12px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.hero-photo {
  width: 100%;
  margin: 0 auto 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 38%, rgba(31,40,24,0.38) 100%);
}

.hero-photo__names,
.intro-names {
  font-family: "Allura", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
}

.hero-photo__names {
  left: 18px;
  right: 18px;
  bottom: 22px;
  color: #fffdf6;
  text-align: center;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 18px rgba(22, 31, 18, 0.62);
}

.hero-title,
.hero-title--desktop,
.hero-title--mobile {
  color: var(--accent-deep) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-style: italic;
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hero-title--desktop {
  display: block;
  font-size: clamp(48px, 9vw, 80px) !important;
}

.hero-title--mobile {
  display: none !important;
}

.intro-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 34px 18px 28px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.intro-date {
  display: flex;
  justify-content: center;
  gap: 0.16em;
  padding: 0;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 8vw, 48px);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.intro-date span:not(:last-child)::after {
  content: " / ";
  margin-left: 0.08em;
  color: rgba(70, 83, 35, 0.42);
}

.intro-rule {
  display: none;
}

.intro-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 14px;
}

.intro-line {
  width: min(24ch, 100%);
  margin: 0 auto;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(19px, 5.4vw, 28px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.intro-meta {
  max-width: 31ch;
  margin: 22px auto 0;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-transform: none;
}

.intro-card::after,
.panel--venue::after,
.panel--schedule::after {
  content: "";
  display: block;
  width: 78px;
  height: 1px;
  margin: 34px auto 0;
  background: rgba(70, 83, 35, 0.32);
}

.calendar-block,
.countdown-block {
  width: 100%;
  margin: 0;
  padding: 26px 28px 0;
  border: 0;
}

.calendar-card {
  padding: 20px 18px 22px;
  border: 1px solid rgba(104,117,59,0.18);
  border-radius: 0;
  background: rgba(255,253,246,0.70);
  box-shadow: none;
}

.calendar__month {
  margin-bottom: 18px;
  color: var(--accent-deep);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.018em;
}

.calendar__weekdays {
  color: rgba(38,49,29,0.72);
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.calendar__day {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.calendar__day--wedding {
  color: #26311d;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,253,246,0.7);
}

.calendar__day--wedding::before {
  color: #c84b4b;
  opacity: 0.95;
  font-size: 63px;
}

.countdown-block {
  padding-top: 24px;
}

.countdown-note {
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0.035em;
  text-align: center;
}

.countdown {
  width: 100%;
  gap: 8px;
}

.countdown__item strong {
  color: var(--accent-deep);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 500;
}

.countdown__item span {
  margin-top: 5px;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: none;
}

main.content {
  padding: 48px 28px 46px;
  display: grid;
  gap: 50px;
  background: var(--paper);
}

main.content section.grid--2 {
  gap: 0;
}

main.content .panel,
main.content .latest,
main.content .activity {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel--venue,
#rsvp,
.panel--summary {
  text-align: center;
}

.panel--venue .card__kicker,
#rsvp .card__kicker,
.panel--summary .card__kicker {
  margin: 0 0 22px;
  color: var(--accent-deep);
  font-size: clamp(32px, 8.5vw, 46px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.012em;
  text-align: center;
}

.venue-photo-wrap {
  width: 100vw;
  margin: 0 calc(50% - 50vw) 18px;
  overflow: hidden;
}

.venue-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  filter: saturate(1.08) contrast(1.02) brightness(1.01);
}

.venue-photo-wrap::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.01) 42%, rgba(32,43,23,0.42) 100%);
}

.venue-photo__overlay {
  left: 18px;
  right: 18px;
  bottom: 22px;
  color: #fffdf6;
  text-align: center;
}

.venue-photo__overlay .intro-names {
  color: #fffdf6;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-shadow: 0 3px 18px rgba(22, 31, 18, 0.62);
}

main.content .venue-map-link {
  width: auto;
  min-height: auto;
  margin: 4px auto 0;
  padding: 10px 20px 9px;
  border: 1px solid rgba(104,117,59,0.35);
  border-radius: 0;
  background: var(--accent);
  color: #fffdf6;
  box-shadow: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: none;
}

main.content .venue-map-link:hover {
  border-color: var(--accent-deep);
  color: #fffdf6;
  background: var(--accent-deep);
  box-shadow: none;
  transform: none;
}

.card p,
.panel p,
.muted,
.activity span,
.activity strong,
li {
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.38;
}

.panel--venue > .muted,
#rsvp > .muted {
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 4.8vw, 24px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.panel--venue > .muted {
  max-width: 30ch;
  margin: 18px auto 0;
}

#rsvp > .muted {
  max-width: 33ch;
  margin: 18px auto 44px;
}

.panel--schedule {
  width: 100%;
  margin: 0;
  padding: 42px 22px 38px !important;
  color: #fffdf6;
  background: var(--accent) !important;
  text-align: center;
  overflow: hidden;
}

.panel--schedule::after {
  background: rgba(255,253,246,0.55);
}

.panel--schedule .card__kicker {
  margin: 0 0 28px;
  color: #fffdf6;
  font-size: clamp(34px, 9vw, 50px);
  font-style: normal;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.01em;
}

.panel--schedule .card__kicker::before {
  color: #fffdf6;
  opacity: 0.9;
}

.schedule-timeline {
  max-width: 460px;
  margin: 0 auto;
  gap: 2px;
  padding: 0;
}

.schedule-line {
  width: 50px;
}

.schedule-line::before {
  opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 100' preserveAspectRatio='none'%3E%3Cpath d='M26 0 C 0 4, 52 8, 26 12 C 2 16, 50 20, 26 24 C 0 29, 52 33, 26 38 C 2 43, 50 47, 26 52 C 0 57, 52 61, 26 66 C 2 71, 50 75, 26 80 C 0 85, 52 89, 26 94 C 8 97, 44 99, 26 100' fill='none' stroke='rgba(255,253,246,0.82)' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.schedule-entry {
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  column-gap: 8px;
}

.schedule-entry--left .schedule-icon {
  transform: translateX(18px);
}

.schedule-entry--right .schedule-icon {
  transform: translateX(-18px);
}

.schedule-copy time {
  color: #fffdf6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(21px, 5.8vw, 30px);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.schedule-copy h3,
.schedule-copy__title--tight {
  color: #fffdf6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 4.7vw, 24px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.012em;
}

.schedule-copy p {
  margin-top: 5px;
  color: rgba(255,253,246,0.82);
  font-size: 14px;
  line-height: 1.24;
}

.schedule-icon img {
  filter: none;
  opacity: 0.95;
  drop-shadow: none;
}

#rsvp h2,
.panel--summary h2 {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 500;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.rsvp-form {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
  text-align: left;
}

.rsvp-form span {
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  border: 0;
  border-bottom: 1px solid rgba(70,83,35,0.28);
  border-radius: 0;
  background: rgba(255,253,246,0.72);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
}

.button {
  width: 100%;
  min-height: 46px;
  justify-self: stretch;
  border: 0;
  border-radius: 0;
  background: var(--accent-deep);
  color: #fffdf6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 500;
}

.summary-row {
  gap: 18px;
  margin-top: 20px;
}

.summary-row strong {
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
}

.summary-row span,
.latest span {
  color: var(--muted);
}

.latest {
  margin-top: 22px;
  padding-top: 18px !important;
  border-top: 1px solid rgba(70,83,35,0.16) !important;
}

@media (min-width: 701px) {
  .page-shell {
    width: min(560px, calc(100% - 56px));
  }

  .hero__content {
    display: block !important;
  }
}

@media (max-width: 700px) {
  body.mobile-mode .page-shell,
  .page-shell {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  body.mobile-mode .hero,
  .hero {
    padding: 30px 24px 28px;
  }

  body.mobile-mode .hero-title--desktop,
  .hero-title--desktop {
    display: block !important;
  }

  body.mobile-mode .hero-title--mobile,
  .hero-title--mobile {
    display: none !important;
  }

  body.mobile-mode .intro-date,
  .intro-date {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    height: auto;
    gap: 0.16em;
    font-size: clamp(34px, 8.5vw, 50px);
    line-height: 1;
  }

  body.mobile-mode .intro-date span,
  .intro-date span {
    min-width: auto;
  }

  body.mobile-mode .intro-card,
  .intro-card {
    padding: 42px 6px 34px;
  }

  body.mobile-mode main.content,
    main.content {
      padding: 46px 24px 0;
      gap: 48px;
    }

  body.mobile-mode .hero-photo,
  .hero-photo,
  body.mobile-mode .venue-photo-wrap,
  .venue-photo-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
  }

  body.mobile-mode .hero-photo {
    margin-bottom: 0;
  }

  body.mobile-mode .hero-photo img,
  .hero-photo img {
    aspect-ratio: 4 / 5.28;
    object-position: 50% 24%;
  }

  body.mobile-mode .calendar-block,
  .calendar-block,
  body.mobile-mode .countdown-block,
  .countdown-block {
    padding-left: 0;
    padding-right: 0;
  }

  body.mobile-mode .calendar-card,
  .calendar-card {
    padding: 18px 12px 20px;
  }

  body.mobile-mode .panel--schedule,
  .panel--schedule {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 42px 24px 38px !important;
  }

  body.mobile-mode .schedule-timeline,
  .schedule-timeline {
    max-width: none;
  }

  body.mobile-mode .schedule-icon img,
  .schedule-icon img {
    width: 56px;
  }

  body.mobile-mode .schedule-icon--photosession img,
  .schedule-icon--photosession img {
    width: 60px;
  }

  body.mobile-mode .schedule-icon--transfer img,
  .schedule-icon--transfer img {
    width: 58px;
  }

  body.mobile-mode .schedule-icon--welcome img,
  .schedule-icon--welcome img {
    width: 60px;
  }

  body.mobile-mode .schedule-icon--banquet img,
  .schedule-icon--banquet img {
    width: 64px;
  }

  body.mobile-mode .schedule-icon--banquet-end img,
  .schedule-icon--banquet-end img {
    width: 58px;
  }

  body.mobile-mode .schedule-icon--disco img,
  .schedule-icon--disco img {
    width: 60px;
  }

  body.mobile-mode .venue-map-link,
  .venue-map-link {
    width: auto;
  }
}

.admin-shell {
  padding-bottom: 64px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 8px;
}

.admin-page {
  padding-top: 18px;
}

.admin-login h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-style: italic;
  line-height: 1.05;
}

.admin-login__text {
  margin: 14px auto 0;
  max-width: 34ch;
  color: rgba(40,53,45,0.76);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 2.1vw, 22px);
  font-style: italic;
  line-height: 1.3;
}

.admin-login__error {
  margin: 12px 0 0;
  color: #8d3c35;
  font-weight: 600;
}

.admin-login__form {
  display: grid;
  gap: 14px;
  max-width: 360px;
  margin: 24px auto 0;
}

.admin-login__form label {
  display: grid;
  gap: 8px;
}

.admin-login__form input {
  width: 100%;
}

.button--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(40,53,45,0.18);
}

.button--secondary:hover {
  background: rgba(255,255,255,0.42);
}

/* Desktop readability layer — ПК-версия */
@media (min-width: 900px) {
  body:not(.mobile-mode) {
    background:
      radial-gradient(circle at 12% 0%, rgba(104, 117, 59, 0.20), transparent 34%),
      radial-gradient(circle at 88% 16%, rgba(143, 150, 98, 0.14), transparent 30%),
      linear-gradient(180deg, #f7f5ea 0%, #eef1e4 48%, #e4ebd8 100%);
  }

  body:not(.mobile-mode) .page-shell {
    width: min(1180px, calc(100% - 72px));
    margin: 28px auto 56px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 253, 246, 0.92);
  }

  body:not(.mobile-mode) .site-nav {
    top: 24px;
    left: 24px;
  }

  body:not(.mobile-mode) .hero {
    padding: 42px 48px 46px;
    background:
      linear-gradient(180deg, rgba(255,253,246,0.96), rgba(255,253,246,0.82)),
      linear-gradient(135deg, rgba(104,117,59,0.13), transparent 58%);
  }

  body:not(.mobile-mode) .hero__content {
    display: grid !important;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    grid-template-areas:
      "topline topline"
      "intro photo"
      "calendar photo";
    align-items: stretch;
    gap: 28px 38px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    text-align: left !important;
  }

  body:not(.mobile-mode) .hero-topline {
    grid-area: topline;
    margin: 0 0 4px;
    text-align: center;
    font-size: clamp(32px, 3vw, 46px);
    line-height: 1;
  }

  body:not(.mobile-mode) .hero-photo {
    grid-area: photo;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 720px;
    margin: 0;
    align-self: stretch;
    border-radius: 0;
    overflow: hidden;
  }

  body:not(.mobile-mode) .hero-photo picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  body:not(.mobile-mode) .hero-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 52% 28%;
  }

  body:not(.mobile-mode) .hero-photo__names {
    left: 28px;
    right: 28px;
    bottom: 34px;
    font-size: clamp(56px, 5.8vw, 84px);
    line-height: 0.86;
  }

  body:not(.mobile-mode) .hero-title--mobile {
    display: none !important;
  }

  body:not(.mobile-mode) .hero-title--desktop {
    display: block !important;
    font-size: clamp(54px, 5.8vw, 78px) !important;
  }

  body:not(.mobile-mode) .intro-card {
    grid-area: intro;
    display: grid;
    grid-template-columns: 72px 1px minmax(0, 1fr);
    align-items: stretch;
    gap: 22px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 34px 34px 28px;
    border: 1px solid rgba(104,117,59,0.14);
    border-radius: 0;
    background: rgba(255,253,246,0.72);
    box-shadow: none;
    text-align: left;
  }

  body:not(.mobile-mode) .intro-card::after {
    display: none;
  }

  body:not(.mobile-mode) .intro-date {
    display: grid;
    grid-auto-flow: row;
    align-content: center;
    justify-items: center;
    gap: 13px;
    height: 100%;
    padding: 0;
    font-size: clamp(31px, 3vw, 44px);
    line-height: 1.02;
  }

  body:not(.mobile-mode) .intro-date span::after {
    content: none !important;
  }

  body:not(.mobile-mode) .intro-rule {
    display: block;
    width: 1px;
    min-height: 100%;
    background: rgba(70,83,35,0.24);
  }

  body:not(.mobile-mode) .intro-copy {
    justify-items: start;
    align-content: center;
    gap: 16px;
    padding-top: 0;
  }

  body:not(.mobile-mode) .intro-line {
    width: min(34ch, 100%);
    margin: 0;
    font-size: clamp(22px, 2.05vw, 30px);
    line-height: 1.16;
    text-align: left;
  }

  body:not(.mobile-mode) .intro-logo {
    width: min(170px, 54%);
    margin-top: 4px;
    justify-self: start;
  }

  body:not(.mobile-mode) .calendar-block {
    grid-area: calendar;
    width: 100%;
    margin: 0;
    padding: 0;
    align-self: start;
  }

  body:not(.mobile-mode) .calendar-card {
    width: 100%;
    padding: 24px 26px 26px;
    border: 1px solid rgba(104,117,59,0.16);
    background: rgba(255,253,246,0.64);
  }

  body:not(.mobile-mode) .calendar__month {
    font-size: 32px;
  }

  body:not(.mobile-mode) main.content {
    padding: 58px 48px 64px;
    gap: 58px;
    background: rgba(255,253,246,0.94);
  }

  body:not(.mobile-mode) main.content section.grid--2,
  body:not(.mobile-mode) .grid--2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  body:not(.mobile-mode) main.content .panel {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
  }

  body:not(.mobile-mode) .panel--venue {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "kicker"
      "photo"
      "copy"
      "link";
    row-gap: 20px;
    justify-items: center;
    align-items: center;
    text-align: center;
  }

  body:not(.mobile-mode) .panel--venue .card__kicker {
    grid-area: kicker;
    margin: 0 0 4px;
    text-align: center;
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1;
    white-space: normal;
  }

  body:not(.mobile-mode) .venue-photo-wrap {
    grid-area: photo;
    width: min(430px, 100%);
    max-width: none;
    margin: 0 auto;
  }

  body:not(.mobile-mode) .venue-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center center;
  }

  body:not(.mobile-mode) .venue-photo__overlay .intro-names {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 0.95;
    white-space: normal;
    text-wrap: balance;
  }

  body:not(.mobile-mode) .panel--venue > .muted {
    grid-area: copy;
    max-width: 34ch;
    margin: 2px auto 0;
    text-align: center;
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.18;
  }

  body:not(.mobile-mode) main.content .venue-map-link {
    grid-area: link;
    justify-self: center;
    margin: 0 auto;
    padding: 12px 24px 11px;
    border-radius: 999px;
  }

  body:not(.mobile-mode) .panel--schedule {
    max-width: 1040px;
    padding: 52px 72px 54px !important;
    border-radius: 0;
  }

  body:not(.mobile-mode) .panel--schedule .card__kicker {
    font-size: clamp(40px, 4vw, 58px);
  }

  body:not(.mobile-mode) .schedule-timeline {
    max-width: 820px;
    gap: 8px;
  }

  body:not(.mobile-mode) .schedule-entry {
    min-height: 112px;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    column-gap: 22px;
  }

  body:not(.mobile-mode) .schedule-entry--left .schedule-icon {
    transform: translateX(0);
  }

  body:not(.mobile-mode) .schedule-entry--right .schedule-icon {
    transform: translateX(0);
  }

  body:not(.mobile-mode) .schedule-copy time {
    font-size: clamp(24px, 2.4vw, 34px);
  }

  body:not(.mobile-mode) .schedule-copy h3,
  body:not(.mobile-mode) .schedule-copy__title--tight {
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.08;
  }

  body:not(.mobile-mode) .schedule-copy p {
    font-size: 15px;
    line-height: 1.3;
  }

  body:not(.mobile-mode) .panel--menu,
  body:not(.mobile-mode) .panel--wishes,
  body:not(.mobile-mode) #rsvp {
    max-width: 860px;
    text-align: center;
  }

  body:not(.mobile-mode) .panel--menu .menu-copy,
  body:not(.mobile-mode) .panel--wishes .wishes-lead,
  body:not(.mobile-mode) #rsvp > .muted {
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(22px, 1.9vw, 27px);
    line-height: 1.2;
  }

  body:not(.mobile-mode) .panel--wishes .wishes-list {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: left;
  }

  body:not(.mobile-mode) .panel--wishes .wishes-list li {
    font-size: 20px;
    line-height: 1.45;
  }

  body:not(.mobile-mode) .rsvp-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    max-width: 820px;
    margin: 30px auto 0;
  }

  body:not(.mobile-mode) .rsvp-form__full,
  body:not(.mobile-mode) .rsvp-checks,
  body:not(.mobile-mode) .rsvp-companions,
  body:not(.mobile-mode) .button,
  body:not(.mobile-mode) .form-thanks,
  body:not(.mobile-mode) .countdown-block,
  body:not(.mobile-mode) .form-note {
    grid-column: 1 / -1;
  }

  body:not(.mobile-mode) .rsvp-checks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.mobile-mode) .button {
    width: min(360px, 100%);
    justify-self: center;
    border-radius: 999px;
  }

  body:not(.mobile-mode) .final-photo-strip {
    width: 100vw;
    margin: -118px 0 0 calc(50% - 50vw);
  }
}

/* Opening envelope — first-touch invitation gate */
body.invitation-locked {
  overflow: hidden;
}

.invitation-gate {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  min-height: 100dvh;
  overflow: hidden;
  padding: max(26px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  isolation: isolate;
  color: #314035;
  background:
    radial-gradient(circle at 14% 14%, rgba(115, 144, 108, 0.24), transparent 25%),
    radial-gradient(circle at 86% 84%, rgba(183, 139, 97, 0.2), transparent 24%),
    linear-gradient(145deg, #fdfaf3 0%, #edf0e6 48%, #f8f2e8 100%);
  transition: opacity 520ms ease 180ms, visibility 0s linear 700ms;
}

.invitation-gate::before,
.invitation-gate::after {
  position: absolute;
  z-index: -1;
  width: min(56vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(70, 93, 72, 0.12);
  border-radius: 50%;
  content: "";
}

.invitation-gate::before {
  top: -24%;
  right: -13%;
}

.invitation-gate::after {
  bottom: -30%;
  left: -18%;
}

.invitation-gate__spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(115, 144, 108, 0.4);
  transform: rotate(45deg);
  animation: invitationSpark 3.2s ease-in-out infinite;
}

.invitation-gate__spark--one {
  top: 20%;
  left: 19%;
}

.invitation-gate__spark--two {
  right: 20%;
  bottom: 23%;
  width: 7px;
  height: 7px;
  animation-delay: -1.2s;
}

.invitation-envelope {
  position: relative;
  width: min(82vw, 500px);
  aspect-ratio: 1.52 / 1;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: 0 27px 46px rgba(44, 58, 45, 0.24);
  cursor: pointer;
  isolation: isolate;
  perspective: 1100px;
  transform: translateY(0) rotate(-1.5deg);
  transition: transform 220ms ease, filter 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

.invitation-envelope:hover,
.invitation-envelope:focus-visible {
  transform: translateY(-8px) rotate(-0.5deg);
  filter: brightness(1.025);
  outline: none;
}

.invitation-envelope:focus-visible {
  box-shadow: 0 0 0 4px rgba(115, 144, 108, 0.32), 0 27px 46px rgba(44, 58, 45, 0.24);
}


.invitation-envelope__back,
.invitation-envelope__front,
.invitation-envelope__flap,
.invitation-envelope__letter,
.invitation-envelope__seal {
  position: absolute;
}

.invitation-envelope__back {
  inset: 0;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(145deg, #a0a362, #505d29);
}

.invitation-envelope__letter {
  z-index: 2;
  top: 8%;
  left: 10%;
  width: 80%;
  height: 79%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 14% 9% 8%;
  overflow: hidden;
  border: 1px solid rgba(66, 84, 65, 0.17);
  border-radius: 2px;
  color: #344535;
  background: linear-gradient(135deg, #fffdf7, #f4ecdd);
  box-shadow: 0 4px 12px rgba(56, 69, 55, 0.12);
  opacity: 0;
  transform: translateY(20%);
  transition: transform 760ms cubic-bezier(.2,.78,.2,1) 0ms, opacity 220ms ease 0ms;
}

.invitation-envelope__letter-logo {
  width: min(100%, 220px);
  max-height: 100%;
  object-fit: contain;
  filter: saturate(0.88) contrast(1.03);
}

.invitation-envelope__letter-line {
  width: 40px;
  height: 1px;
  background: rgba(70, 94, 72, 0.48);
}

.invitation-envelope__letter-names {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(21px, 4.3vw, 33px);
  font-style: italic;
  font-weight: 600;
  line-height: 0.94;
  white-space: nowrap;
}

.invitation-envelope__letter-names i,
.invitation-envelope__seal i {
  color: #9c614e;
  font-family: Allura, "Cormorant Garamond", Georgia, serif;
  font-size: 1.2em;
  font-style: normal;
}

.invitation-envelope__letter-date {
  color: rgba(52, 69, 53, 0.66);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(8px, 1.45vw, 11px);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.invitation-envelope__front {
  z-index: 4;
  inset: 0;
  border-radius: 5px;
  pointer-events: none;
}

.invitation-envelope__front--left {
  clip-path: polygon(0 0, 51% 51%, 0 100%);
  background: linear-gradient(132deg, #8f9858, #55612d);
}

.invitation-envelope__front--right {
  clip-path: polygon(100% 0, 49% 51%, 100% 100%);
  background: linear-gradient(228deg, #879151, #4d5927);
}

.invitation-envelope__front--bottom {
  clip-path: polygon(0 100%, 50% 50.5%, 100% 100%);
  background: linear-gradient(180deg, #6e7a3b, #3e4920);
}

.invitation-envelope__flap {
  z-index: 5;
  inset: 0;
  border-radius: 5px 5px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 54%);
  background: linear-gradient(180deg, #a3a866, #5a662f);
  transform-origin: 50% 0;
  transition: transform 620ms cubic-bezier(.25,.8,.25,1), z-index 0s linear 300ms;
  backface-visibility: hidden;
}

.invitation-envelope__seal {
  z-index: 7;
  top: 51%;
  left: 50%;
  width: clamp(54px, 11vw, 72px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 2px solid rgba(112, 49, 42, 0.36);
  border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%;
  background:
    radial-gradient(circle at 34% 26%, rgba(232, 134, 113, 0.9) 0 4%, transparent 18%),
    radial-gradient(circle at 60% 64%, #9b453d 0 47%, #783a35 72%, #64312f 100%);
  box-shadow: 0 4px 8px rgba(77, 49, 39, 0.28), inset 0 0 0 3px rgba(255, 210, 184, 0.1);
  transform: translate(-50%, -50%) rotate(-4deg);
  transition: opacity 180ms ease 100ms, transform 360ms ease;
}

.invitation-envelope__seal::before {
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgba(94, 42, 38, 0.66);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(221, 111, 93, 0.13);
  content: "";
}

.invitation-envelope__seal::after {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(91, 42, 39, 0.82);
  content: "&";
  font-family: Allura, "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 5.5vw, 39px);
  font-style: normal;
  text-shadow: 0 1px rgba(232, 125, 105, 0.22);
  transform: translate(-50%, -52%) rotate(8deg);
}

.invitation-gate__hint {
  max-width: 27ch;
  margin: 0;
  color: rgba(48, 65, 52, 0.82);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(21px, 4.3vw, 28px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  transform: translateY(42px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.invitation-gate.is-opening .invitation-envelope {
  cursor: default;
  transform: translateY(4px) rotate(0deg);
}

.invitation-gate.is-opening .invitation-envelope__flap {
  z-index: 1;
  transform: rotateX(-180deg);
}

.invitation-gate.is-opening .invitation-envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
}

.invitation-gate.is-opening .invitation-envelope__letter {
  z-index: 3;
  opacity: 1;
  transform: translateY(-38%) rotate(-0.5deg);
  transition-delay: 640ms, 680ms;
}

.invitation-gate.is-opening .invitation-gate__hint {
  opacity: 0;
  transform: translateY(50px);
}

.invitation-gate.is-dismissed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.invitation-revealed .page-shell,
body.invitation-revealed .site-nav {
  animation: invitationPageReveal 760ms cubic-bezier(.2,.75,.25,1) both;
}

@keyframes invitationPageReveal {
  from { opacity: 0.18; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes invitationSpark {
  0%, 100% { opacity: 0.2; transform: rotate(45deg) scale(0.8); }
  50% { opacity: 0.85; transform: rotate(45deg) scale(1.25); }
}

@media (max-width: 520px) {
  .invitation-gate {
    gap: 22px;
  }

  .invitation-envelope {
    width: min(88vw, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-gate,
  .invitation-envelope,
  .invitation-envelope__letter,
  .invitation-envelope__flap,
  .invitation-envelope__seal,
  .invitation-gate__hint,
  .invitation-gate__spark {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}
