/* Base Layout & Structure - Shared across all themes */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.light-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
  z-index: -2;
}

.orb-a {
  width: 260px;
  height: 260px;
  top: -80px;
  left: -70px;
}

.orb-b {
  width: 320px;
  height: 320px;
  bottom: -120px;
  right: -90px;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
}

.cover {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 10px;
}

.audio-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 12;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.cover-mini {
  text-transform: uppercase;
  letter-spacing: 0.27em;
  font-size: 0.76rem;
}

.cover h1 {
  font-size: clamp(2.9rem, 9vw, 6rem);
}

.cover-date,
.cover-to {
  margin: 0;
}

.cover-to span {
  font-weight: 700;
}

.open-btn {
  margin: 20px auto 0;
  width: min(290px, 90%);
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.open-btn:hover {
  transform: translateY(-2px);
}

main {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 70px;
  display: grid;
  gap: 18px;
}

main.hidden {
  display: none;
}

.hero,
.card,
.footer {
  border-radius: 22px;
  border-width: 1px;
  border-style: solid;
}

.hero {
  text-align: center;
  padding: 30px 24px;
}

.hero h2 {
  font-size: clamp(2.3rem, 7vw, 4.1rem);
  margin: 8px 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.subtitle {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.dove-panel {
  margin-top: 14px;
}

.release-doves {
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dove-field {
  margin-top: 10px;
  min-height: 110px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.dove {
  position: absolute;
  width: 22px;
  height: 12px;
  pointer-events: none;
  animation: doveFly 2.8s ease-in forwards;
}

.dove .wing {
  position: absolute;
  width: 12px;
  height: 8px;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  border-width: 2px;
  border-style: solid;
  top: 2px;
}

.dove .left {
  left: 0;
  transform-origin: right bottom;
  animation: wingFlap 0.35s ease-in-out infinite;
}

.dove .right {
  right: 0;
  transform-origin: left bottom;
  animation: wingFlap 0.35s ease-in-out infinite reverse;
}

.dove .body {
  position: absolute;
  left: 9px;
  top: 4px;
  width: 8px;
  height: 4px;
  border-radius: 999px;
}

.countdown {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.count-item {
  border-radius: 14px;
  padding: 11px 8px;
  text-align: center;
}

.count-item strong {
  display: block;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
}

.count-item span {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  scroll-margin-top: 24px;
}

.card {
  padding: 25px;
}

.card h3 {
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
  margin-bottom: 10px;
}

.couple-grid,
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.person,
.schedule-grid article,
.timeline article,
.bank-panel {
  border-radius: 16px;
  padding: 16px;
  border-width: 1px;
  border-style: solid;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.role,
.tag,
.year,
.small-note,
.lead,
.quick-transfer p {
  font-size: 0.88rem;
}

.person h4,
.schedule-grid h4,
.timeline h4 {
  font-size: 1.5rem;
}

.timeline {
  display: grid;
  gap: 10px;
}

.map-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.gift-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.bank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tab,
.copy-btn,
.send-btn,
.amount {
  font: inherit;
  cursor: pointer;
}

.tab {
  border-radius: 999px;
  padding: 8px 14px;
}

.bank-name {
  margin: 0 0 3px;
}

.account-number {
  margin: 0;
  font-size: clamp(1.18rem, 3.3vw, 1.9rem);
  letter-spacing: 0.09em;
  font-weight: 800;
}

.account-holder {
  margin: 6px 0 12px;
}

.panel-actions,
.amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-btn,
.amount {
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 700;
}

.copy-btn {
  font-weight: 800;
}

.gift-form,
.rsvp-form {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: transparent;
}

.send-btn {
  margin-top: 7px;
  border-radius: 10px;
  padding: 11px;
  font-weight: 800;
  border: none;
}

.gift-status {
  min-height: 23px;
  margin-top: 10px;
  font-weight: 700;
}

.sparkle-zone {
  position: relative;
  height: 0;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: sparkle 1s ease forwards;
}

.footer {
  text-align: center;
  padding: 22px;
}

.hash {
  margin-top: 8px;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wingFlap {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-24deg);
  }
}

@keyframes doveFly {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.96;
  }
  to {
    transform: translate(var(--dx, 130px), var(--dy, -120px)) scale(0.5);
    opacity: 0;
  }
}

@keyframes sparkle {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(-74px) scale(0.32);
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .countdown,
  .couple-grid,
  .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .countdown,
  .couple-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .hero {
    padding: 18px;
  }

  .cover {
    padding-top: 86px;
  }
}
