/* Livana’s Baptism — editorial / glass / mesh aesthetic */

:root {
  --bg: #f6f1ea;
  --bg-elevated: rgba(255, 252, 247, 0.72);
  --ink: #1a1614;
  --ink-mid: #3d3630;
  --ink-soft: #6b625a;
  --champagne: #e8d5c4;
  --gold: #c4a574;
  --gold-deep: #9a7b4f;
  --rose: #c9a9a0;
  --sage: #9aab9e;
  --cream: #fffcf7;
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --shadow-sm: 0 4px 24px rgba(26, 22, 20, 0.06);
  --shadow-md: 0 16px 48px rgba(26, 22, 20, 0.1);
  --shadow-lg: 0 28px 80px rgba(26, 22, 20, 0.14);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

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

  .ambient__blob,
  .hero__title-shine,
  .closing__spark {
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
}

/* Ambient mesh + blobs */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(at 20% 20%, rgba(232, 213, 196, 0.55) 0%, transparent 45%),
    radial-gradient(at 80% 10%, rgba(201, 169, 160, 0.35) 0%, transparent 42%),
    radial-gradient(at 70% 75%, rgba(154, 171, 158, 0.28) 0%, transparent 48%),
    radial-gradient(at 10% 80%, rgba(196, 165, 116, 0.22) 0%, transparent 45%);
  filter: blur(0px);
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: blob-float 22s var(--ease-out) infinite;
}

.ambient__blob--a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: linear-gradient(135deg, rgba(232, 213, 196, 0.9), rgba(201, 169, 160, 0.5));
  top: -8%;
  left: -10%;
  animation-delay: 0s;
}

.ambient__blob--b {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  background: linear-gradient(200deg, rgba(154, 171, 158, 0.45), rgba(196, 165, 116, 0.35));
  top: 35%;
  right: -25%;
  animation-delay: -7s;
  animation-duration: 26s;
}

.ambient__blob--c {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: linear-gradient(320deg, rgba(255, 252, 247, 0.95), rgba(232, 213, 196, 0.4));
  bottom: -5%;
  left: 15%;
  animation-delay: -12s;
  animation-duration: 24s;
}

.ambient--interactive .ambient__blob {
  animation: none;
  opacity: 0.62;
  transition: opacity 0.6s var(--ease-out);
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.04);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.98);
  }
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.055;
  z-index: 999;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 5rem;
  text-align: center;
}

.hero__glow {
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 247, 0.9) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  z-index: 0;
}

.hero__ornament {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(196, 165, 116, 0.35);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 0;
}

.hero__ornament--tl {
  top: 18%;
  left: 8%;
  transform: rotate(-8deg);
}

.hero__ornament--br {
  bottom: 22%;
  right: 8%;
  transform: rotate(12deg);
}

@media (max-width: 640px) {
  .hero__ornament {
    width: 72px;
    height: 72px;
    opacity: 0.6;
  }
}

.hero__panel {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-elevated);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 var(--glass-highlight);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.25rem;
}

.hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero__title {
  position: relative;
  margin: 0;
  line-height: 0.95;
}

.hero__title-main {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 6.25rem);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero__title-shine {
  position: absolute;
  inset: -10% -15%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shine 7s var(--ease-out) infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: 1rem;
}

@keyframes shine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink-mid);
  margin: 0.65rem 0 0;
}

.hero__badge {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(196, 165, 116, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  box-shadow: 0 0 0 6px rgba(196, 165, 116, 0.15);
}

.hero__parents {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero__parents strong {
  color: var(--ink);
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gold-deep);
  z-index: 2;
}

.scroll-hint__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-hint__mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(196, 165, 116, 0.5);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color 0.3s var(--ease-out);
}

.scroll-hint:hover .scroll-hint__mouse,
.scroll-hint:focus-visible .scroll-hint__mouse {
  border-color: var(--gold-deep);
}

.scroll-hint:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

.scroll-hint__wheel {
  width: 4px;
  height: 8px;
  background: var(--gold-deep);
  border-radius: 2px;
  animation: wheel 2.2s var(--ease-out) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__wheel {
    animation: none;
  }
}

@keyframes wheel {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

/* Verse section */
.verse {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 10vw, 7rem);
  max-width: 72rem;
  margin: 0 auto;
}

.verse__layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .verse__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3rem;
  }
}

.verse__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(196, 165, 116, 0.25);
  margin-bottom: 1.25rem;
}

.verse__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.verse__deco {
  font-size: 1.25rem;
  color: var(--gold);
  opacity: 0.5;
  margin: 0;
}

.verse__card {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.verse__card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(196, 165, 116, 0.55),
    rgba(201, 169, 160, 0.35),
    rgba(154, 171, 158, 0.4)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.verse__mark {
  position: relative;
  width: 36px;
  height: auto;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.verse__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.42rem);
  line-height: 1.58;
  color: var(--ink);
  margin: 0 0 1.5rem;
  font-weight: 400;
  font-optical-sizing: auto;
}

.verse__ref {
  position: relative;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.verse__ref-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}

/* Venues bento */
.venues {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(4rem, 10vw, 7rem);
  max-width: 72rem;
  margin: 0 auto;
}

.venues__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.venues__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  font-optical-sizing: auto;
  color: var(--ink);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.bento {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: 1.08fr 1fr;
    align-items: stretch;
  }
}

.venue-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

@media (hover: hover) {
  .venue-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.venue-card--accent .venue-card__content {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.5) 0%, rgba(232, 213, 196, 0.2) 100%);
}

.venue-card__content {
  padding: 1.75rem 1.75rem 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.venue-card__step {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.venue-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-optical-sizing: auto;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.venue-card__place {
  font-weight: 600;
  color: var(--ink-mid);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.venue-card__address {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
  align-self: flex-start;
}

.btn__icon {
  transition: transform 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(26, 22, 20, 0.2);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26, 22, 20, 0.22);
  outline: none;
}

.btn--primary:hover .btn__icon,
.btn--primary:focus-visible .btn__icon {
  transform: translate(2px, -2px);
}

/* Closing */
.closing {
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.closing__card {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.25rem) 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.9), rgba(232, 213, 196, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.closing__spark {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, transparent 65%);
  animation: pulse-glow 5s var(--ease-out) infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1.08);
  }
}

.closing__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
}

.closing__sign {
  position: relative;
  margin: 1.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(196, 165, 116, 0.2);
  background: linear-gradient(180deg, transparent, rgba(255, 252, 247, 0.4));
}

.footer__top {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
}

.footer__top:hover,
.footer__top:focus-visible {
  color: var(--ink);
  outline: none;
}

.footer__note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.9;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
