@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --sage: #b7beb0;
  --sage-deep: #707768;
  --sage-light: #d9ddd1;
  --paper: #efe2cf;
  --paper-soft: #f6ecdc;
  --sand: #e7d4bb;
  --sand-deep: #d5bb99;
  --gold: #b88b52;
  --gold-dark: #8b683e;
  --ink: #332e28;
  --muted: #777066;
  --line: rgba(95, 89, 80, .16);
  --shadow: 0 24px 70px rgba(53, 45, 36, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 208, 192, .32), transparent 26%),
    radial-gradient(circle at 90% 12%, rgba(203, 180, 160, .20), transparent 24%),
    linear-gradient(180deg, #f1efe9 0%, #e9e6df 100%);
  font-family: "Montserrat", system-ui, sans-serif;
}

.app {
  min-height: 100svh;
  overflow-x: hidden;
}

/* COVER */
.cover {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #e9e6df;
  transition: opacity 900ms ease, transform 900ms ease, visibility 900ms ease;
}

.cover__image {
  width: min(100vw, 700px);
  height: 100svh;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
}

/* Invisible clickable hotspot positioned on the wax seal */
.seal-button {
  position: absolute;
  left: 50%;
  top: 49.6%;
  transform: translate(-50%, -50%);
  width: min(24vw, 150px);
  height: min(24vw, 150px);
  min-width: 92px;
  min-height: 92px;
  max-width: 140px;
  max-height: 140px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.seal-button__pulse,
.seal-button__pulse::before,
.seal-button__pulse::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.seal-button__pulse::before,
.seal-button__pulse::after {
  content: "";
  border: 1px solid rgba(184, 139, 82, .45);
  animation: ringPulse 2.2s ease-out infinite;
}

.seal-button__pulse::after {
  animation-delay: 1.1s;
}

body.is-open .cover {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}

body:not(.is-open) { overflow: hidden; }

/* DETAIL */
.invitation {
  min-height: 100svh;
  padding: 42px 16px 34px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms ease 320ms, transform 900ms ease 320ms;
}

body.is-open .invitation {
  opacity: 1;
  transform: translateY(0);
}

.paper-panel,
footer {
  width: min(100%, 760px);
  margin-inline: auto;
}

.paper-panel {
  position: relative;
  background:
    radial-gradient(circle at 12% 8%, rgba(201,208,192,.18), transparent 20%),
    radial-gradient(circle at 88% 0%, rgba(231,212,187,.24), transparent 24%),
    linear-gradient(180deg, rgba(239,226,207,.97), rgba(247,236,220,.95));
  border: 1px solid rgba(140, 122, 98, .16);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel {
  padding: 40px 20px 34px;
  text-align: center;
}

.paper-panel__flowers {
  color: rgba(83, 88, 72, .40);
  font-size: 13px;
  letter-spacing: 9px;
  margin-bottom: 18px;
}

.date-line {
  margin: 0;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.names {
  margin: 14px 0 0;
  font-family: "Allura", cursive;
  font-size: clamp(62px, 18vw, 104px);
  font-weight: 400;
  line-height: .92;
  color: #302b25;
}

.names span {
  display: block;
  margin: 6px 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--gold-dark);
  font-size: .42em;
}

.motto {
  display: inline-block;
  margin: 14px auto 0;
  padding: 9px 15px;
  background: var(--sage-light);
  border-radius: 999px;
  color: #4f5748;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.intro {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.intro strong {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35em;
  font-weight: 700;
}

.program-panel {
  margin-top: 18px;
  padding: 26px 16px 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.section-title span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(115,123,105,.36), transparent);
}

.section-title h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--sage-deep);
  font-size: 30px;
  font-weight: 600;
}


.event-card,
.countdown {
  position: relative;
  z-index: 1;
  margin: 16px 0;
  border-radius: 22px;
  border: 1px solid rgba(140, 122, 98, .16);
  background:
    linear-gradient(180deg, rgba(232,220,201,.90), rgba(245,236,223,.94));
  box-shadow: 0 12px 30px rgba(73, 61, 49, .05);
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 22px 18px;
}

.event-time {
  margin: 0 0 6px;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0 0 8px;
  font-family: "Allura", cursive;
  font-size: 40px;
  font-weight: 400;
  color: #38332c;
}

.place {
  margin: 0 0 4px;
  font-weight: 700;
}

.address {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  border: 1px solid rgba(184,139,82,.42);
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.76), transparent 36%),
    linear-gradient(135deg, #b88b52, #d0aa72);
  color: #fffaf2;
  box-shadow: 0 14px 26px rgba(139,104,62,.18);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 36px rgba(139,104,62,.26);
  filter: saturate(1.06);
}

.icon-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-link svg path:first-child {
  fill: rgba(255,250,242,.15);
}

.countdown {
  padding: 20px 14px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(201,208,192,.30), rgba(241,230,214,.95));
}

.countdown p {
  margin: 0 0 12px;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-grid div {
  padding: 12px 4px;
  border-radius: 16px;
  background: rgba(255,248,239,.56);
  border: 1px solid rgba(141,122,98,.10);
}

.countdown-grid strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}



.actions {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(115,123,105,.18);
  background: linear-gradient(180deg, #d8dccf, #c8cfbd);
  color: #42493b;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(115,123,105,.16);
}

.calendar-link {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

footer {
  text-align: center;
  padding: 34px 0 10px;
}

footer p {
  margin: 0;
  font-family: "Allura", cursive;
  font-size: 42px;
}

footer small {
  color: var(--muted);
  letter-spacing: .24em;
  font-size: 11px;
}

@keyframes ringPulse {
  0% { transform: scale(.86); opacity: 0; }
  20% { opacity: .85; }
  100% { transform: scale(1.22); opacity: 0; }
}

@media (min-width: 720px) {
  .invitation { padding-top: 56px; }
  .hero-panel { padding: 46px 34px 38px; }
  .program-panel { padding: 30px 34px 34px; }
}

@media (max-width: 430px) {
  .seal-button {
    top: 49.5%;
    width: min(30vw, 132px);
    height: min(30vw, 132px);
  }

  .actions {
    gap: 10px;
  }

  .button {
    padding-inline: 18px;
    font-size: 14px;
  }

  .event-card {
    gap: 10px;
  }
}

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




.mixology-cta {
  position: relative;
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(140, 122, 98, .16);
  box-shadow: 0 12px 30px rgba(73, 61, 49, .05);
  background: linear-gradient(180deg, rgba(245,236,223,.96), rgba(236,225,209,.96));
}

.mixology-cta__image {
  display: block;
  width: 100%;
  height: auto;
}

.mixology-cta__overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 18px 16px;
}

.mixology-cta__overlay--bottom {
  bottom: 0;
  background: linear-gradient(180deg, rgba(245,236,223,0) 0%, rgba(238,228,213,.65) 24%, rgba(226,213,195,.88) 100%);
}

.actions--inside-image {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(250, 246, 239, .60);
  border: 1px solid rgba(140, 122, 98, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(84, 69, 52, .08);
}

.actions--inside-image .button {
  background: linear-gradient(180deg, #bec8b3, #aeb7a4);
  color: #364034;
}

.calendar-link {
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.74), transparent 36%),
    linear-gradient(135deg, #b88b52, #d0aa72);
}

@media (max-width: 540px) {
  .mixology-cta__overlay {
    padding: 12px 10px;
  }

  .actions--inside-image {
    width: calc(100% - 8px);
    gap: 10px;
    padding: 8px;
  }

  .actions--inside-image .button {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 16px;
    font-size: 14px;
  }
}
