:root {
  --bg: #fffaf7;
  --surface: rgba(255, 249, 244, 0.92);
  --surface-strong: #fffdfb;
  --surface-deep: #f3e4db;
  --text: #3f342e;
  --text-soft: #73645c;
  --heading: #241715;
  --accent: #d7b271;
  --accent-soft: rgba(215, 178, 113, 0.18);
  --blush: #efd8d3;
  --rose: #c99a96;
  --line: rgba(97, 71, 58, 0.12);
  --shadow-lg: 0 24px 70px rgba(81, 56, 44, 0.12);
  --shadow-md: 0 18px 38px rgba(81, 56, 44, 0.1);
  --shadow-sm: 0 10px 24px rgba(81, 56, 44, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --container: min(1120px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 216, 211, 0.7), transparent 30%),
    radial-gradient(circle at top right, rgba(215, 178, 113, 0.12), transparent 22%),
    linear-gradient(180deg, #fffcfa 0%, #fff7f2 52%, #fffdfa 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.invitation-locked {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  overflow: clip;
}

.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(calc(100vw - 1.2rem), 25rem);
  padding: 0.55rem;
  border: 1px solid rgba(255, 244, 233, 0.16);
  border-radius: 999px;
  background: rgba(45, 29, 24, 0.72);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  box-shadow: 0 18px 40px rgba(18, 10, 8, 0.2);
}

.mobile-dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  color: rgba(255, 247, 240, 0.88);
  font-size: 0.82rem;
  text-align: center;
}

.mobile-dock__cta {
  background: linear-gradient(135deg, #f1d6cb, #d7b271);
  color: #2b1c16 !important;
  font-weight: 600;
}

.invitation-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  overflow: hidden;
  perspective: 1800px;
}

.invitation-cover[hidden] {
  display: none;
}

.invitation-cover__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(242, 220, 188, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(28, 18, 15, 0.52), rgba(28, 18, 15, 0.62)),
    url("./assets/6.jpeg") center 38% / cover;
  transform: scale(1.04);
  filter: blur(6px) saturate(0.8);
}

.invitation-cover__card {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  padding: 2rem 1.6rem 1.8rem;
  border: 1px solid rgba(184, 143, 87, 0.26);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 234, 223, 0.98));
  color: var(--heading);
  text-align: center;
  box-shadow:
    0 40px 90px rgba(18, 10, 8, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  overflow: hidden;
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    opacity 300ms ease;
}

.invitation-cover__card:hover,
.invitation-cover__card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 48px 110px rgba(18, 10, 8, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.invitation-cover__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, transparent 70%, rgba(200, 164, 108, 0.1));
  pointer-events: none;
}

.invitation-cover__glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(234, 198, 139, 0.16), transparent 58%);
  opacity: 0.9;
  pointer-events: none;
}

.invitation-cover__frame {
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(191, 149, 91, 0.34);
  border-radius: 1.45rem;
  pointer-events: none;
}

.invitation-cover__frame::before,
.invitation-cover__frame::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(191, 149, 91, 0.18);
  border-radius: 1rem;
}

.invitation-cover__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 7.2rem;
  height: 7.2rem;
  margin: 0 auto 1rem;
  padding: 0.42rem;
  border-radius: 50%;
  border: 1px solid rgba(191, 149, 91, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 228, 211, 0.92));
  box-shadow: 0 18px 34px rgba(110, 79, 57, 0.16);
}

.invitation-cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 50%;
}

.invitation-cover__seal {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(191, 149, 91, 0.34);
  background: rgba(255, 255, 255, 0.58);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: #b68a45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.invitation-cover__eyebrow,
.invitation-cover__date,
.invitation-cover__hint,
.invitation-cover__venue {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.invitation-cover__eyebrow {
  position: relative;
  z-index: 1;
  color: #af8b64;
  font-size: 0.72rem;
}

.invitation-cover h2 {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 9vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #2f201c;
}

.invitation-cover__date {
  position: relative;
  z-index: 1;
  color: #8e7258;
  font-size: 0.78rem;
}

.invitation-cover__venue {
  position: relative;
  z-index: 1;
  margin-top: 0.55rem;
  color: #a07e5c;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}

.invitation-cover__divider {
  position: relative;
  z-index: 1;
  display: block;
  width: 8.5rem;
  height: 1px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(191, 149, 91, 0.72), transparent);
}

.invitation-cover__divider::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1d7a8, #ba8a42);
  transform: translate(-50%, -50%);
}

.invitation-cover__hint {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  color: #b68a45;
  font-size: 0.75rem;
}

.invitation-open .invitation-cover__card {
  animation: invitationOpenCard 1500ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.invitation-open .invitation-cover__backdrop {
  animation: invitationOpenBackdrop 1500ms ease forwards;
}

.invitation-open .invitation-cover__photo {
  animation: invitationOpenPhoto 1100ms ease forwards;
}

.page-shell {
  transition: opacity 700ms ease, transform 900ms ease;
}

body.invitation-locked .page-shell {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

body.invitation-open .page-shell {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 4.5rem 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.65), rgba(247, 236, 230, 0.72));
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading h2,
.quote-card blockquote,
.hero h1,
.info-card h3,
.travel-card h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--heading);
}

.section-heading h2 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(2.1rem, 10vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-heading p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--rose);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(25, 16, 14, 0.18), rgba(25, 16, 14, 0.02));
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.topbar__nav {
  display: none;
  align-items: center;
  gap: 1.1rem;
  color: rgba(255, 248, 243, 0.92);
  transition: color 220ms ease;
}

.topbar__nav a:not(.button) {
  font-size: 0.92rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #fff7f1;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 247, 241, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.brand-mark__monogram {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.brand-mark__ampersand {
  color: var(--accent);
}

.topbar.is-scrolled {
  background: rgba(255, 250, 245, 0.8);
  border-bottom: 1px solid rgba(97, 71, 58, 0.08);
  box-shadow: 0 8px 30px rgba(27, 16, 13, 0.08);
}

.topbar.is-scrolled .topbar__nav {
  color: rgba(47, 32, 28, 0.86);
}

.topbar.is-scrolled .brand-mark {
  color: #3b2b24;
  border-color: rgba(97, 71, 58, 0.12);
  background: rgba(255, 255, 255, 0.48);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(135deg, #f1d6cb, #d7b271);
  color: #291d18;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button--ghost {
  background: rgba(255, 252, 249, 0.08);
  border-color: rgba(255, 245, 239, 0.38);
  color: #fff9f4;
  box-shadow: none;
}

.button--sm {
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
}

.hero {
  min-height: 100svh;
  padding: 6.5rem 0 6rem;
  display: grid;
  align-items: end;
  color: #fffaf6;
}

.hero__media,
.hero__overlay,
.hero__ornament {
  position: absolute;
  inset: 0;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.04);
  filter: saturate(0.88) contrast(1.02);
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(14, 8, 7, 0.2) 0%, rgba(18, 10, 8, 0.16) 25%, rgba(21, 11, 10, 0.42) 100%),
    linear-gradient(90deg, rgba(34, 20, 17, 0.42) 0%, rgba(34, 20, 17, 0.22) 32%, rgba(34, 20, 17, 0.05) 60%, rgba(34, 20, 17, 0.02) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 214, 201, 0.12), transparent 28%);
}

.hero__ornament {
  pointer-events: none;
}

.hero__ornament::before,
.hero__ornament::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.38;
}

.hero__ornament--top::before {
  width: 14rem;
  height: 14rem;
  top: 12%;
  right: -3rem;
  background: radial-gradient(circle, rgba(239, 216, 211, 0.8), transparent 70%);
  animation: drift 10s ease-in-out infinite;
}

.hero__ornament--bottom::after {
  width: 18rem;
  height: 18rem;
  bottom: 8%;
  left: -4rem;
  background: radial-gradient(circle, rgba(215, 178, 113, 0.28), transparent 65%);
  animation: drift 12s ease-in-out infinite reverse;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

.hero__panel {
  width: min(100%, 40rem);
  padding: 1.3rem 1.15rem 1.35rem;
  border: 1px solid rgba(255, 248, 243, 0.08);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(38, 24, 20, 0.08), rgba(38, 24, 20, 0.12));
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(21, 11, 10, 0.06);
}

.hero h1 {
  margin: 0;
  display: grid;
  gap: 0.1em;
  font-size: clamp(2.75rem, 13vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: #fff8f2;
  text-shadow: 0 10px 30px rgba(24, 13, 11, 0.24);
}

.hero h1 span {
  color: var(--accent);
}

.hero__line {
  display: block;
  color: #fff8f2;
}

.hero__ampersand {
  display: block;
  justify-self: center;
  font-size: 0.82em;
  line-height: 0.7;
}

.hero__meta {
  margin: 1.1rem 0 0;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__meta--subtle {
  margin-top: 0.35rem;
  letter-spacing: 0.12em;
  color: rgba(255, 248, 243, 0.86);
}

.hero__lede {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: rgba(255, 248, 243, 0.9);
  font-size: 0.98rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__actions .button {
  width: 100%;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 5.4rem;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  color: rgba(255, 248, 243, 0.84);
}

.scroll-indicator span {
  width: 1.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 248, 243, 0.42);
  border-radius: 999px;
  position: relative;
}

.scroll-indicator span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.4rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}

.scroll-indicator small {
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.timeline-card,
.info-card,
.travel-card,
.countdown-panel,
.rsvp-form,
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.timeline-card {
  position: relative;
  padding: 1.35rem 1.2rem 1.35rem 3.2rem;
}

.timeline-card__icon {
  position: absolute;
  left: 0.45rem;
  top: 1.35rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5e0d7, #e6c38c);
  color: #5b4031;
  box-shadow: 0 0 0 0.45rem rgba(255, 250, 247, 0.9);
}

.timeline-card__year,
.info-card__label {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--rose);
}

.timeline-card h3,
.info-card h3,
.travel-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}

.timeline-card p:last-child,
.travel-card p:last-of-type {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
}

.gallery-grid {
  columns: 1;
  column-gap: 1rem;
}

.gallery-card {
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  overflow: hidden;
  border-radius: 1.8rem;
  background: transparent;
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  height: auto;
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.02);
}

.details-grid,
.rsvp-layout,
.field-grid {
  display: grid;
  gap: 1rem;
}

.info-card,
.travel-card {
  padding: 1.3rem;
}

.info-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.details-feature {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.map-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.85), rgba(241, 225, 214, 0.84)),
    radial-gradient(circle at 10% 20%, rgba(201, 154, 150, 0.12), transparent 28%);
  min-height: 320px;
  box-shadow: var(--shadow-md);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.map-card:hover,
.map-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.map-card__canvas {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(170, 138, 126, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 138, 126, 0.08) 1px, transparent 1px);
  background-size: 2.4rem 2.4rem;
}

.map-card__canvas p,
.map-card__canvas small,
.map-card__cta {
  position: relative;
  z-index: 1;
}

.map-card__canvas p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--heading);
}

.map-card__canvas small {
  color: var(--text-soft);
}

.map-card__cta {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(191, 149, 91, 0.24);
  color: var(--heading);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-card__pin {
  position: absolute;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #c68f92, #d7b271);
  box-shadow: 0 0 0 0.7rem rgba(215, 178, 113, 0.16);
}

.map-card__ring {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(201, 154, 150, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-card__ring--one {
  width: 12rem;
  height: 12rem;
}

.map-card__ring--two {
  width: 18rem;
  height: 18rem;
}

.countdown {
  color: #fff8f2;
}

.countdown__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 12, 10, 0.7), rgba(18, 12, 10, 0.7)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  background-attachment: fixed;
}

.countdown-panel {
  position: relative;
  z-index: 1;
  padding: 1.4rem;
  text-align: center;
  background: rgba(28, 18, 15, 0.5);
  border-color: rgba(255, 248, 243, 0.12);
}

.countdown-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.countdown-unit {
  padding: 1.2rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 243, 0.08);
  border: 1px solid rgba(255, 248, 243, 0.12);
}

.countdown-unit span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 12vw, 4.6rem);
  line-height: 0.9;
}

.countdown-unit small {
  display: block;
  margin-top: 0.45rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 248, 243, 0.75);
}

.rsvp-layout {
  align-items: start;
}

.rsvp-form {
  padding: 1.3rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field span,
.field legend {
  color: var(--heading);
  font-size: 0.92rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(121, 93, 82, 0.16);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-status {
  min-height: 1.4rem;
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.form-status.is-success {
  color: #2f6b4f;
}

.form-status.is-error {
  color: #9b3d3d;
}

.field input:focus,
.field textarea:focus,
.toggle-pill input:focus-visible + span {
  outline: 2px solid rgba(215, 178, 113, 0.4);
  outline-offset: 2px;
}

.field--toggle {
  margin: 0;
  border: 0;
  padding: 0;
}

.toggle-pill {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.toggle-pill label {
  position: relative;
}

.toggle-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.toggle-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  text-align: center;
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(121, 93, 82, 0.14);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.toggle-pill input:checked + span {
  background: linear-gradient(135deg, rgba(241, 214, 203, 0.8), rgba(215, 178, 113, 0.24));
  border-color: rgba(215, 178, 113, 0.45);
  transform: translateY(-1px);
}

.quote-card {
  padding: 2rem 1.2rem;
  text-align: center;
}

.quote-card__divider {
  width: min(10rem, 40vw);
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  position: relative;
}

.quote-card__divider::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d8cd, #d7b271);
  transform: translate(-50%, -50%);
}

.quote-card blockquote {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.quote-card p {
  margin: 1rem 0 0;
  color: var(--text-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.footer {
  padding: 2.5rem 0 7rem;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0), rgba(244, 231, 223, 0.72));
}

.footer__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__thanks {
  margin: 0;
  color: var(--text-soft);
}

.brand-mark--footer {
  color: var(--heading);
  border-color: rgba(97, 71, 58, 0.14);
  background: rgba(255, 255, 255, 0.65);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  color: var(--text-soft);
}

.lightbox {
  width: min(92vw, 1080px);
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(11, 7, 6, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 251, 247, 0.86);
  color: var(--heading);
}

.celebration-modal {
  width: min(92vw, 32rem);
  padding: 0;
  border: 0;
  background: transparent;
}

.celebration-modal::backdrop {
  background: rgba(16, 9, 8, 0.58);
  backdrop-filter: blur(8px);
}

.celebration-modal__card {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 1.5rem 1.6rem;
  border-radius: 2rem;
  border: 1px solid rgba(191, 149, 91, 0.18);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 233, 223, 0.98));
  box-shadow: 0 36px 90px rgba(27, 16, 13, 0.2);
  text-align: center;
}

.celebration-modal__eyebrow {
  margin: 0;
  color: var(--rose);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.celebration-modal h3 {
  margin: 0.9rem 0 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 7vw, 3.3rem);
  line-height: 0.92;
  color: var(--heading);
}

.celebration-modal p:last-of-type {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
}

.celebration-burst {
  position: relative;
  width: 5.4rem;
  height: 5.4rem;
  margin: 0 auto 1rem;
}

.celebration-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.6rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1d7a8, #d7b271);
  transform-origin: center -0.8rem;
  opacity: 0;
  animation: burstRay 900ms ease forwards;
}

.celebration-burst span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); animation-delay: 0ms; }
.celebration-burst span:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); animation-delay: 70ms; }
.celebration-burst span:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); animation-delay: 140ms; }
.celebration-burst span:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg); animation-delay: 210ms; }
.celebration-burst span:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg); animation-delay: 280ms; }
.celebration-burst span:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg); animation-delay: 350ms; }

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

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

@keyframes scrollDot {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35%,
  65% {
    opacity: 1;
    transform: translate(-50%, 1rem);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes invitationOpenCard {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
  }
  30% {
    opacity: 1;
    transform: translateY(-8px) scale(1.01) rotateX(4deg) rotateY(-3deg);
  }
  68% {
    opacity: 1;
    transform: translateY(-12px) scale(0.995) rotateX(0deg) rotateY(-18deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(-15vw, -2rem, -200px) scale(0.92) rotateY(-68deg) rotateX(6deg);
  }
}

@keyframes invitationOpenBackdrop {
  0% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes invitationOpenPhoto {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.86) translateY(-10px);
    opacity: 0.18;
  }
}

@keyframes burstRay {
  0% {
    opacity: 0;
    transform-origin: center 100%;
    scale: 0.4;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    scale: 1;
  }
}

@media (min-width: 720px) {
  .section {
    padding: 6.5rem 0;
  }

  .topbar {
    padding: 1rem 1.4rem;
  }

  .topbar__nav {
    display: flex;
  }

  .mobile-dock {
    display: none;
  }

  .hero__panel {
    padding: 2rem 2rem 2.1rem;
  }

  .hero {
    padding: 7.5rem 0 3rem;
  }

  .hero__content {
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 8.2vw, 6.2rem);
  }

  .hero__meta {
    font-size: 0.96rem;
    letter-spacing: 0.18em;
  }

  .hero__lede {
    margin: 1.2rem 0 0;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
  }

  .hero__actions .button {
    width: auto;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  .invitation-cover__card {
    width: min(100%, 36rem);
    padding: 2.8rem 2.5rem 2.4rem;
  }

  .invitation-cover__photo {
    width: 8.2rem;
    height: 8.2rem;
  }

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

  .timeline::before {
    left: 0;
    right: 0;
    top: 2rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .timeline-card {
    padding: 4rem 1.5rem 1.5rem;
  }

  .timeline-card__icon {
    left: 1.4rem;
    top: 1.15rem;
    box-shadow: 0 0 0 0.55rem rgba(255, 250, 247, 0.95);
  }

  .gallery-grid {
    columns: 2;
  }

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

  .details-feature,
  .rsvp-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

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

@media (min-width: 1040px) {
  .section {
    padding: 7.5rem 0;
  }

  .hero__content {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 4rem;
  }

  .hero__panel {
    width: min(100%, 44rem);
    padding: 2.2rem 2.3rem 2.4rem;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 6.6vw, 6.8rem);
  }

  .gallery-grid {
    columns: 3;
  }

  .gallery-card:nth-child(2),
  .gallery-card:nth-child(5) {
    margin-top: 2.5rem;
  }

  .info-card,
  .travel-card,
  .rsvp-form {
    padding: 1.75rem;
  }
}

@media (max-width: 719px) {
  .topbar {
    padding: 0.85rem;
  }

  .brand-mark {
    padding: 0.5rem 0.7rem;
  }

  .invitation-cover {
    padding: 0.9rem;
  }

  .invitation-cover__card {
    width: min(100%, 26rem);
    padding: 1.45rem 1rem 1.25rem;
    border-radius: 1.65rem;
  }

  .invitation-cover__frame {
    inset: 0.7rem;
    border-radius: 1.2rem;
  }

  .invitation-cover__frame::before,
  .invitation-cover__frame::after {
    inset: 0.45rem;
    border-radius: 0.88rem;
  }

  .invitation-cover__photo {
    width: 5.2rem;
    height: 5.2rem;
    margin-bottom: 0.7rem;
  }

  .invitation-cover__seal {
    width: 3.35rem;
    height: 3.35rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }

  .invitation-cover h2 {
    font-size: clamp(2.45rem, 11vw, 3.3rem);
    margin: 0.7rem 0 0.65rem;
  }

  .invitation-cover__eyebrow,
  .invitation-cover__date,
  .invitation-cover__hint {
    letter-spacing: 0.22em;
  }

  .invitation-cover__venue {
    letter-spacing: 0.14em;
    font-size: 0.62rem;
  }

  .hero {
    align-items: end;
    padding: 5.8rem 0 6rem;
  }

  .hero__media img {
    object-position: center 18%;
    transform: scale(1.02);
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(14, 8, 7, 0.08) 0%, rgba(18, 10, 8, 0.18) 42%, rgba(21, 11, 10, 0.62) 100%),
      radial-gradient(circle at 50% 18%, rgba(255, 230, 202, 0.08), transparent 28%);
  }

  .hero__content {
    padding-bottom: 1.2rem;
  }

  .hero__panel {
    width: min(100%, 23rem);
    margin: 0 auto;
    padding: 1.15rem 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(38, 24, 20, 0.1), rgba(38, 24, 20, 0.16));
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.5rem);
  }

  .hero__meta {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .hero__lede {
    font-size: 0.92rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body.invitation-locked .page-shell,
  body.invitation-open .page-shell {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .hero__media img,
  .reveal {
    transform: none !important;
  }
}
.timeline .timeline-card:nth-child(4) .timeline-card__icon {
  background: linear-gradient(135deg, #f3ddd1, #d7b271);
}

.timeline .timeline-card:nth-child(5) .timeline-card__icon {
  background: linear-gradient(135deg, #f1ddd9, #e1bc93);
}

.timeline .timeline-card:nth-child(6) .timeline-card__icon {
  background: linear-gradient(135deg, #f4e5d6, #d8b47d);
}
