:root {
  --ivory: #FAF7F2;
  --paper: #FFFDF8;
  --sage: #5E7C67;
  --sage-dark: #263A2F;
  --gold: #C6A85A;
  --brown: #6D5A43;
  --line: rgba(94, 124, 103, 0.18);
  --shadow: 0 18px 50px rgba(45, 58, 48, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--ivory);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--sage-dark);
  overflow-x: hidden;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(94, 124, 103, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--paper), var(--ivory));
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  color: var(--sage-dark);
  background: var(--paper);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.monogram,
.brand {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

.monogram {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(198, 168, 90, 0.45);
  border-radius: 50%;
  font-size: 2.2rem;
}

.loader p {
  margin: 0;
  color: var(--brown);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(94, 124, 103, 0.08);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(198, 168, 90, 0.38);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.2rem);
}

.nav-links a {
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.music-toggle {
  justify-self: end;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--sage-dark);
  cursor: pointer;
  background: rgba(198, 168, 90, 0.72);
  box-shadow: 0 10px 24px rgba(90, 74, 35, 0.12);
}

.music-toggle.is-playing {
  color: var(--paper);
  background: var(--sage);
}

.paper-world {
  position: relative;
  z-index: 2;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(109, 90, 67, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(109, 90, 67, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
}

.petal-field {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -8vh;
  width: 14px;
  height: 24px;
  border-radius: 80% 20% 70% 30%;
  background: linear-gradient(145deg, #fff, #ead9c4);
  opacity: 0.22;
  animation: petalFall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.invite-section {
  position: relative;
  z-index: 3;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) 1.25rem;
  text-align: center;
}

.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.15rem;
  overflow: hidden;
}

.botanical {
  position: absolute;
  z-index: -1;
  width: min(38vw, 360px);
  height: min(44vw, 420px);
  opacity: 0.5;
  filter: blur(0.2px);
  background:
    radial-gradient(ellipse at 18% 18%, rgba(94, 124, 103, 0.28) 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 32% 28%, rgba(94, 124, 103, 0.22) 0 9%, transparent 9.5%),
    radial-gradient(ellipse at 14% 42%, rgba(94, 124, 103, 0.2) 0 10%, transparent 10.5%),
    radial-gradient(ellipse at 38% 52%, rgba(94, 124, 103, 0.16) 0 11%, transparent 11.5%),
    radial-gradient(ellipse at 22% 68%, rgba(94, 124, 103, 0.14) 0 10%, transparent 10.5%),
    linear-gradient(116deg, transparent 0 17%, rgba(94, 124, 103, 0.22) 17.2% 18%, transparent 18.2% 100%);
}

.botanical::before {
  position: absolute;
  inset: 10% auto auto 6%;
  width: 64%;
  height: 70%;
  content: "";
  border-left: 1px solid rgba(94, 124, 103, 0.18);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.botanical--left {
  left: 0;
  top: 0;
}

.botanical--right {
  right: 0;
  top: 0;
  transform: scaleX(-1);
}

.section-kicker,
.timeline-label {
  margin: 0;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  color: var(--sage-dark);
  font-size: clamp(4.2rem, 12vw, 8rem);
  line-height: 0.92;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin: 0.1rem 0;
  color: var(--gold);
  font-style: normal;
  font-size: 0.5em;
}

h2 {
  color: var(--sage-dark);
  font-size: clamp(2.1rem, 6vw, 3.5rem);
}

h3 {
  color: var(--sage-dark);
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.hero-note,
.hero time,
.final-section p {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1rem, 2.6vw, 1.18rem);
}

.hero time {
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.primary-button,
.secondary-button {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.35rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  color: var(--paper);
  background: var(--sage);
  box-shadow: 0 14px 30px rgba(94, 124, 103, 0.18);
}

.secondary-button {
  color: var(--sage-dark);
  border: 1px solid rgba(94, 124, 103, 0.22);
  background: rgba(255, 253, 248, 0.72);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.compact-section {
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.countdown-card {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 30px rgba(45, 58, 48, 0.06);
}

.countdown-card strong {
  color: var(--sage-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  line-height: 1;
  transition: transform 220ms ease, color 220ms ease;
}

.countdown-card strong.is-changing {
  color: var(--gold);
  transform: translateY(-3px);
}

.countdown-card span {
  color: var(--brown);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.event-card,
.venue-card,
.rsvp-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow);
}

.event-card,
.venue-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 236px;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  text-align: left;
}

.event-card p,
.event-card time,
.venue-card p {
  margin: 0;
  color: var(--brown);
  line-height: 1.6;
}

.event-card--highlight {
  border-color: rgba(198, 168, 90, 0.55);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(170px, 1fr));
  gap: 1rem;
}

.gallery-card {
  min-height: 170px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow);
}

.gallery-card--feature {
  grid-row: span 2;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card--text {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  color: var(--sage-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.gallery-card--text p {
  margin: 0;
}

.gallery-card--text span {
  color: var(--gold);
  font-size: 0.68em;
}

.gallery-card--pattern {
  background:
    radial-gradient(circle at 20% 20%, rgba(198, 168, 90, 0.28), transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(94, 124, 103, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.85), rgba(250, 247, 242, 0.68));
}

.rsvp-section {
  width: min(100%, 760px);
}

.rsvp-shell {
  position: relative;
  min-height: 650px;
  perspective: 1200px;
}

.rsvp-shell.is-flipped .rsvp-card--front {
  transform: rotateY(180deg);
}

.rsvp-shell.is-flipped .rsvp-card--back {
  transform: rotateY(0deg);
}

.rsvp-card {
  position: absolute;
  inset: auto 1.25rem 0;
  min-height: 650px;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 700ms ease;
}

.rsvp-card--back {
  place-items: center;
  transform: rotateY(-180deg);
}

.field {
  position: relative;
  display: grid;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(94, 124, 103, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1rem 0.72rem;
  color: var(--sage-dark);
  outline: 0;
  background: rgba(255, 253, 248, 0.74);
}

.field textarea {
  resize: vertical;
}

.field span {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgba(109, 90, 67, 0.72);
  pointer-events: none;
  transition: transform 160ms ease, font-size 160ms ease, color 160ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(94, 124, 103, 0.1);
}

.field input:focus + span,
.field textarea:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:not(:placeholder-shown) + span {
  color: var(--sage);
  font-size: 0.7rem;
  transform: translateY(-0.72rem);
}

.attendance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  border: 0;
  padding: 0.25rem 0;
}

.attendance legend {
  margin-bottom: 0.65rem;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.attendance label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.form-error {
  min-height: 1.2rem;
  margin: 0;
  color: #8f2f2f;
  font-size: 0.84rem;
}

.final-section {
  display: grid;
  gap: 0.5rem;
  padding-bottom: 5rem;
}

.ripple::after {
  position: absolute;
  inset: var(--ripple-y, 50%) auto auto var(--ripple-x, 50%);
  width: 0;
  height: 0;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
}

.ripple.is-rippling::after {
  animation: ripple 520ms ease-out;
}

@keyframes ripple {
  to {
    width: 280px;
    height: 280px;
    opacity: 0;
  }
}

@keyframes petalFall {
  to {
    transform: translate3d(var(--sway), 112vh, 0) rotate(360deg);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 44px 1fr 44px;
    padding-inline: 0.75rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: calc(92svh - 70px);
  }

  h1 {
    font-size: clamp(3.8rem, 17vw, 5.1rem);
  }

  .botanical {
    width: 44vw;
    height: 54vw;
  }

  .countdown,
  .event-grid,
  .venue-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card--feature {
    grid-row: auto;
    aspect-ratio: 3 / 4;
  }

  .rsvp-card {
    inset-inline: 0;
  }
}

/* Interactive invitation cover */
body.is-locked {
  height: 100svh;
  overflow: hidden;
}

.cover-scene {
  position: fixed;
  inset: 0;
  z-index: 26;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  overflow: hidden;
  perspective: 1400px;
  background:
    radial-gradient(circle at 50% 42%, rgba(34, 53, 83, 0.86), transparent 42%),
    #071326;
}

.cover-scene[hidden] {
  display: none !important;
}

.cover-scene::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(205, 175, 105, 0.42) 0 1px, transparent 1.5px);
  background-size: 52px 52px;
  opacity: 0.14;
}

.cover-card {
  position: relative;
  width: min(92vw, 430px);
  max-height: 90svh;
  padding: 0;
  border: 1px solid rgba(214, 185, 112, 0.22);
  border-radius: 4px;
  color: #f7ead0;
  cursor: pointer;
  background: #071326;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.025);
  transform-style: preserve-3d;
  animation: coverFloat 4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.cover-card:focus-visible {
  outline: 2px solid #d6b970;
  outline-offset: 8px;
}

.cover-card img {
  display: block;
  width: 100%;
  max-height: 90svh;
  object-fit: contain;
}

.cover-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cover-glow::after {
  position: absolute;
  top: -20%;
  left: -70%;
  width: 38%;
  height: 145%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 237, 190, 0.16), transparent);
  transform: rotate(14deg);
  animation: coverShine 3.8s ease-in-out infinite;
}

.tap-hint {
  position: absolute;
  right: 0;
  bottom: clamp(1.1rem, 4vw, 1.8rem);
  left: 0;
  display: grid;
  place-items: center;
  gap: 0.18rem;
  text-shadow: 0 2px 12px #061126;
}

.tap-hint strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tap-hint small {
  color: rgba(247, 234, 208, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tap-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(214, 185, 112, 0.68);
  border-radius: 50%;
  animation: tapPulse 1.55s ease-out infinite;
}

.tap-icon::before {
  display: grid;
  height: 100%;
  place-items: center;
  content: "✦";
  color: #d6b970;
  font-size: 0.8rem;
}

.opening-stage {
  position: fixed;
  inset: 0;
  z-index: 25;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
}

.opening-stage.is-active {
  visibility: visible;
}

.fold-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: #0a1930;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.22);
  backface-visibility: hidden;
}

.fold-panel--left {
  left: 0;
  border-right: 1px solid rgba(214, 185, 112, 0.22);
  transform-origin: left center;
}

.fold-panel--right {
  right: 0;
  border-left: 1px solid rgba(214, 185, 112, 0.22);
  transform-origin: right center;
}

.gold-light {
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 225, 170, 0.92), rgba(247, 239, 227, 0.35) 40%, transparent 72%);
  filter: blur(20px);
}

/* Reference-led botanical home screen */
.hero {
  min-height: calc(100svh - 76px);
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(247, 242, 231, 0.08), rgba(255, 252, 245, 0.72) 42%, rgba(255, 252, 245, 0.74)),
    url("../assets/beige-floral-background.png") center / cover;
  box-shadow: none;
}

.hero-logo-frame {
  display: none;
}

.hero .section-kicker {
  color: #617566;
  letter-spacing: 0.3em;
}

.hero h1 {
  max-width: 900px;
  color: #29382e;
  font-size: clamp(3.6rem, 10vw, 7rem);
  line-height: 0.98;
}

.hero h1 em {
  color: #b69b58;
}

.hero-note {
  max-width: 620px;
  color: #3f463f;
  line-height: 1.65;
}

.hero time {
  color: #657768;
  font-size: 1.12rem;
}

.hero .primary-button {
  min-width: 176px;
  background: #647d69;
  box-shadow: 0 14px 32px rgba(72, 98, 79, 0.2);
}

@keyframes tapPulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 185, 112, 0.48); transform: scale(0.95); }
  70% { box-shadow: 0 0 0 14px rgba(214, 185, 112, 0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(214, 185, 112, 0); transform: scale(0.95); }
}

@keyframes coverFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes coverShine {
  0%, 28% { left: -70%; }
  65%, 100% { left: 135%; }
}

@media (max-width: 760px) {
  .cover-scene { padding: 0; }

  .cover-card {
    width: 100vw;
    max-width: none;
    max-height: 100svh;
    border: 0;
    box-shadow: none;
  }

  .cover-card img {
    height: 100svh;
    max-height: none;
    object-fit: cover;
  }

  .site-header {
    grid-template-columns: 44px 1fr 44px;
  }

  .nav-links {
    display: grid;
    place-items: center;
    overflow: visible;
  }

  .nav-links::before {
    content: "☰";
    color: #647d69;
    font-size: 1.8rem;
    line-height: 1;
  }

  .nav-links a { display: none; }

  .hero {
    width: 100%;
    min-height: calc(100svh - 64px);
    padding: 5rem 1.3rem 6rem;
    background-position: 39% center;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
    line-height: 1.03;
  }

  .hero .section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  .hero-note {
    max-width: 330px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover-card,
  .cover-glow::after,
  .tap-icon { animation: none; }
}

/* White and navy botanical interior */
:root {
  --ivory: #f7f6f2;
  --paper: #fffefa;
  --sage: #496782;
  --sage-dark: #102a43;
  --gold: #b89554;
  --brown: #43566a;
  --wine: #183c5d;
  --blush: #829bb2;
  --line: rgba(16, 42, 67, 0.15);
  --shadow: 0 20px 55px rgba(16, 42, 67, 0.1);
}

html,
body {
  background-color: #f8f7f3;
}

body {
  color: var(--sage-dark);
  background-image:
    linear-gradient(rgba(255, 254, 250, 0.48), rgba(255, 254, 250, 0.48)),
    url("../assets/navy-botanical-background.png");
}

.site-header {
  border-bottom-color: rgba(16, 42, 67, 0.12);
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 8px 30px rgba(16, 42, 67, 0.06);
}

.nav-links a,
.calendar-link {
  color: var(--sage-dark);
}

.nav-links a::after {
  background: #183c5d;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 254, 250, 0.1), rgba(255, 254, 250, 0.62) 38%, rgba(255, 254, 250, 0.66)),
    url("../assets/navy-botanical-background.png") center / cover;
}

.hero h1 {
  color: #102a43;
  font-family: "Allura", "Cormorant Garamond", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.86);
}

.hero h1 em {
  color: #b89554;
  letter-spacing: 0;
}

.hero .section-kicker,
.hero time,
.section-kicker,
.timeline-label {
  color: #496782;
}

.hero-note,
.final-section p,
.event-card p,
.event-card time,
.venue-card p {
  color: #43566a;
}

.hero .primary-button,
.primary-button {
  background: #183c5d;
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.2);
}

.hero .primary-button:hover,
.primary-button:hover {
  background: #102a43;
}

.compact-section,
.final-section {
  border-color: rgba(16, 42, 67, 0.13);
  background: rgba(255, 254, 250, 0.68);
  box-shadow: 0 24px 65px rgba(16, 42, 67, 0.07);
}

.countdown-card,
.event-card,
.venue-card,
.rsvp-card {
  border-color: rgba(16, 42, 67, 0.16);
  background: rgba(255, 255, 252, 0.88);
  box-shadow: 0 16px 42px rgba(16, 42, 67, 0.09);
}

.countdown-card strong,
.gallery-card--pattern p {
  color: #183c5d;
}

.event-card--highlight {
  border-color: rgba(184, 149, 84, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 252, 0.96), rgba(233, 239, 244, 0.9));
}

.secondary-button {
  color: #183c5d;
  border-color: rgba(16, 42, 67, 0.22);
  background: rgba(255, 255, 252, 0.82);
}

.field input,
.field textarea {
  border-color: rgba(16, 42, 67, 0.18);
  color: #102a43;
  background: rgba(255, 255, 252, 0.9);
}

.field input:focus,
.field textarea:focus {
  border-color: #496782;
  box-shadow: 0 0 0 4px rgba(73, 103, 130, 0.1);
}

.field input:focus + span,
.field textarea:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:not(:placeholder-shown) + span {
  color: #183c5d;
}

.petal {
  background: linear-gradient(145deg, #9eb0c1, #183c5d);
  opacity: 0.2;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 44px 1fr 44px;
  }

  .nav-links::before {
    color: #183c5d;
  }

  .hero {
    background-position: 43% center;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.35rem);
    letter-spacing: -0.045em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* AK custom direction: ivory-led on mobile, with navy reserved for monogram accents. */
:root {
  --sage: #687863;
  --sage-dark: #173129;
  --navy: #081a38;
  --gold: #bf9544;
  --brown: #6b5a48;
  --line: rgba(191, 149, 68, 0.22);
}

.loader-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 35px rgba(8, 26, 56, 0.18);
}

.brand {
  overflow: hidden;
  border: 0;
  background: transparent;
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.music-toggle span { font-size: 0; }
.music-toggle span::before { content: "♪"; font-size: 1rem; }

.hero { gap: 1.05rem; }

.hero-logo-frame {
  width: clamp(86px, 13vw, 118px);
  aspect-ratio: 1;
  margin-bottom: 0.35rem;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(191, 149, 68, 0.4);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(8, 26, 56, 0.12);
}

.hero-logo-frame img,
.final-monogram {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: contain;
}

.gallery-card--feature {
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 8vw, 5rem);
  background: linear-gradient(145deg, #fffdf8, #f7eedc);
}

.gallery-card--feature img { object-fit: contain; }

.calendar-link {
  width: fit-content;
  margin: 0.25rem auto 0;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.event-card--highlight {
  background: linear-gradient(145deg, #fffdf8, #faf3e4);
}

.gallery-card--pattern {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
}

.gallery-card--pattern p,
.gallery-card--pattern span { margin: 0; }

.gallery-card--pattern p {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
}

.gallery-card--pattern span {
  color: var(--brown);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.final-monogram {
  width: 72px;
  height: 72px;
  margin: 0.5rem auto;
  box-shadow: 0 12px 35px rgba(8, 26, 56, 0.14);
}

@media (max-width: 760px) {
  .site-header { height: 62px; }

  .nav-links {
    justify-content: flex-start;
    gap: 1rem;
    padding-inline: 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }

  .hero {
    min-height: calc(92svh - 62px);
    padding-top: 3.2rem;
  }

  h1 { font-size: clamp(3.35rem, 16vw, 4.75rem); }

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

  .countdown-card {
    min-height: 86px;
    padding: 0.35rem;
    border-radius: 12px;
  }

  .countdown-card strong { font-size: clamp(1.6rem, 9vw, 2.45rem); }
  .countdown-card span { font-size: 0.56rem; letter-spacing: 0.08em; }
  .invite-section { padding-inline: 1rem; }
  .hero-logo-frame { width: 92px; }
}

/* Warm botanical redesign */
:root {
  --ivory: #f1e4d3;
  --paper: #fffaf1;
  --sage: #79806a;
  --sage-dark: #49342d;
  --gold: #b18443;
  --brown: #73564b;
  --wine: #8b4850;
  --blush: #c9827b;
  --line: rgba(139, 72, 80, 0.18);
  --shadow: 0 22px 60px rgba(91, 61, 48, 0.12);
}

html,
body {
  background-color: #eadbc8;
}

body {
  background-image:
    linear-gradient(rgba(247, 239, 227, 0.68), rgba(247, 239, 227, 0.68)),
    url("../assets/beige-floral-background.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.loader {
  background:
    linear-gradient(rgba(247, 239, 227, 0.76), rgba(247, 239, 227, 0.76)),
    url("../assets/beige-floral-background.png") center / cover;
}

.site-header {
  height: 76px;
  border-bottom-color: rgba(139, 72, 80, 0.14);
  background: rgba(247, 239, 227, 0.82);
  box-shadow: 0 8px 32px rgba(91, 61, 48, 0.07);
}

.nav-links a {
  position: relative;
  color: var(--brown);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links a::after {
  position: absolute;
  right: 50%;
  bottom: -0.45rem;
  left: 50%;
  height: 1px;
  content: "";
  background: var(--wine);
  transition: right 180ms ease, left 180ms ease;
}

.nav-links a:hover::after {
  right: 0;
  left: 0;
}

.music-toggle {
  color: #fffaf1;
  background: var(--wine);
  box-shadow: 0 10px 24px rgba(139, 72, 80, 0.2);
}

.music-toggle.is-playing {
  background: var(--sage);
}

.paper-grain {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.invite-section {
  width: min(calc(100% - 2rem), 1080px);
}

.hero {
  min-height: calc(100svh - 76px);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(177, 132, 67, 0.2);
  border-radius: 32px;
  background: rgba(255, 250, 241, 0.58);
  box-shadow: 0 30px 90px rgba(91, 61, 48, 0.1);
  backdrop-filter: blur(4px);
}

.botanical {
  opacity: 0.22;
}

.section-kicker,
.timeline-label {
  color: var(--wine);
}

h1 {
  color: #53372f;
  text-shadow: 0 2px 0 rgba(255, 250, 241, 0.8);
}

h1 em {
  color: var(--gold);
}

h2,
h3 {
  color: #543a32;
}

.hero time {
  color: var(--wine);
}

.primary-button {
  color: #fffaf1;
  background: var(--wine);
  box-shadow: 0 14px 30px rgba(139, 72, 80, 0.22);
}

.primary-button:hover {
  background: #743a42;
}

.secondary-button {
  color: var(--wine);
  border-color: rgba(139, 72, 80, 0.26);
  background: rgba(255, 250, 241, 0.72);
}

.compact-section {
  margin-block: 1.25rem;
  border: 1px solid rgba(177, 132, 67, 0.16);
  border-radius: 28px;
  background: rgba(255, 250, 241, 0.52);
  box-shadow: 0 24px 70px rgba(91, 61, 48, 0.08);
  backdrop-filter: blur(5px);
}

.countdown-card,
.event-card,
.venue-card,
.rsvp-card,
.gallery-card {
  border-color: rgba(177, 132, 67, 0.22);
  background: rgba(255, 250, 241, 0.8);
  box-shadow: 0 16px 42px rgba(91, 61, 48, 0.1);
}

.countdown-card strong {
  color: var(--wine);
}

.event-card--highlight {
  border-color: rgba(139, 72, 80, 0.36);
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.94), rgba(238, 211, 198, 0.86));
}

.gallery-card--feature {
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.9), rgba(232, 212, 188, 0.78));
}

.gallery-card--pattern {
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 130, 123, 0.3), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(121, 128, 106, 0.22), transparent 28%),
    rgba(255, 250, 241, 0.78);
}

.field input,
.field textarea {
  border-color: rgba(139, 72, 80, 0.2);
  color: #49342d;
  background: rgba(255, 253, 247, 0.78);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(139, 72, 80, 0.1);
}

.field input:focus + span,
.field textarea:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:not(:placeholder-shown) + span {
  color: var(--wine);
}

.final-section {
  margin-top: 1.25rem;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 250, 241, 0.56);
}

.petal {
  background: linear-gradient(145deg, #f1c2b3, #9d5159);
  opacity: 0.28;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .site-header {
    height: 64px;
  }

  .invite-section {
    width: min(calc(100% - 1rem), 1080px);
  }

  .hero {
    min-height: calc(92svh - 64px);
    margin-top: 0.5rem;
    border-radius: 22px;
  }

  .compact-section {
    margin-block: 0.75rem;
    border-radius: 22px;
  }
}

/* Final white and navy theme — keep last in the cascade. */
:root {
  --ivory: #f7f6f2;
  --paper: #fffefa;
  --sage: #496782;
  --sage-dark: #102a43;
  --gold: #b89554;
  --brown: #43566a;
  --wine: #183c5d;
  --blush: #829bb2;
  --line: rgba(16, 42, 67, 0.15);
  --shadow: 0 20px 55px rgba(16, 42, 67, 0.1);
}

html,
body {
  background-color: #f8f7f3;
}

body {
  color: var(--sage-dark);
  background-image:
    linear-gradient(rgba(255, 254, 250, 0.48), rgba(255, 254, 250, 0.48)),
    url("../assets/navy-botanical-background.png");
}

.site-header {
  border-bottom-color: rgba(16, 42, 67, 0.12);
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 8px 30px rgba(16, 42, 67, 0.06);
}

.nav-links a,
.calendar-link { color: var(--sage-dark); }
.nav-links a::after { background: #183c5d; }

.hero {
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 254, 250, 0.1), rgba(255, 254, 250, 0.62) 38%, rgba(255, 254, 250, 0.66)),
    url("../assets/navy-botanical-background.png") center / cover;
  box-shadow: none;
}

.hero h1 {
  color: #102a43;
  font-family: "Allura", "Cormorant Garamond", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.86);
}

.hero h1 em { color: #b89554; letter-spacing: 0; }
.hero .section-kicker,
.hero time,
.section-kicker,
.timeline-label { color: #496782; }

.hero-note,
.final-section p,
.event-card p,
.event-card time,
.venue-card p { color: #43566a; }

.hero .primary-button,
.primary-button {
  background: #183c5d;
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.2);
}

.hero .primary-button:hover,
.primary-button:hover { background: #102a43; }

.compact-section,
.final-section {
  border-color: rgba(16, 42, 67, 0.13);
  background: rgba(255, 254, 250, 0.68);
  box-shadow: 0 24px 65px rgba(16, 42, 67, 0.07);
}

.countdown-card,
.event-card,
.venue-card,
.rsvp-card {
  border-color: rgba(16, 42, 67, 0.16);
  background: rgba(255, 255, 252, 0.88);
  box-shadow: 0 16px 42px rgba(16, 42, 67, 0.09);
}

.countdown-card strong { color: #183c5d; }

.event-card--highlight {
  border-color: rgba(184, 149, 84, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 252, 0.96), rgba(233, 239, 244, 0.9));
}

.secondary-button {
  color: #183c5d;
  border-color: rgba(16, 42, 67, 0.22);
  background: rgba(255, 255, 252, 0.82);
}

.field input,
.field textarea {
  border-color: rgba(16, 42, 67, 0.18);
  color: #102a43;
  background: rgba(255, 255, 252, 0.9);
}

.field input:focus,
.field textarea:focus {
  border-color: #496782;
  box-shadow: 0 0 0 4px rgba(73, 103, 130, 0.1);
}

.petal {
  background: linear-gradient(145deg, #9eb0c1, #183c5d);
  opacity: 0.2;
}

@media (max-width: 760px) {
  .nav-links::before { color: #183c5d; }
  .hero { margin-top: 0; border-radius: 0; background-position: 43% center; }
  .hero h1 { font-size: clamp(4rem, 18vw, 6rem); letter-spacing: 0.01em; }
}
