:root {
  --bg: #f7f1e7;
  --bg-soft: #fdf9f3;
  --surface: rgba(255, 251, 245, 0.76);
  --text: #17141d;
  --text-soft: #4b4654;
  --muted: #746c7f;
  --gold: #b69459;
  --gold-line: rgba(182, 148, 89, 0.28);
  --blush: #d9b59a;
  --shadow: rgba(23, 20, 29, 0.12);
  --ring: rgba(182, 148, 89, 0.5);
  --serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(217, 181, 154, 0.24), transparent 32%),
    radial-gradient(circle at 80% 12%, rgba(182, 148, 89, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f3ea 0%, #f5ede1 45%, #f8f4ed 100%);
  overflow-x: hidden;
  hyphens: none;
  -webkit-hyphens: none;
}

::selection {
  background: rgba(182, 148, 89, 0.24);
}

/* --- Intro overlay (grand reveal) --- */

body.is-loading {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
}

body.is-loading > .siteHeader,
body.is-loading > main,
body.is-loading > .muteToggle,
body.is-loading > .scrollProgress {
  opacity: 0;
  pointer-events: none;
}

/* Header uses opacity-only reveal: transform on .siteHeader would create a containing block
   and break position:fixed for .navDrawer / .navDrawer__overlay (sidebar only as tall as the bar). */
body.is-revealed > .siteHeader {
  animation: revealFadeInHeader 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.is-revealed > main,
body.is-revealed > .muteToggle,
body.is-revealed > .scrollProgress {
  animation: revealFadeIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes revealFadeInHeader {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes revealFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.introOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.introOverlay__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  transition: transform 850ms cubic-bezier(0.7, 0, 0.2, 1), opacity 850ms ease;
}

.introOverlay__half--left {
  left: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(217, 181, 154, 0.18), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(182, 148, 89, 0.12), transparent 50%),
    linear-gradient(160deg, #1a1520 0%, #0f0c14 100%);
}

.introOverlay__half--right {
  right: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(182, 148, 89, 0.16), transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(217, 181, 154, 0.1), transparent 50%),
    linear-gradient(200deg, #1a1520 0%, #0f0c14 100%);
}

.introOverlay__half--left::after,
.introOverlay__half--right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(182, 148, 89, 0.25), transparent);
}

.introOverlay__half--left::after {
  right: 0;
}

.introOverlay__half--right::after {
  left: 0;
}

.introOverlay.is-leaving .introOverlay__half--left {
  transform: translateX(-100%);
  opacity: 0;
}

.introOverlay.is-leaving .introOverlay__half--right {
  transform: translateX(100%);
  opacity: 0;
}

/* Canvas particle layer */

.introOverlay__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Noise texture overlay */

.introOverlay__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  pointer-events: none;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Radial glow behind the seal */

.introOverlay__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 148, 89, 0.18) 0%, rgba(182, 148, 89, 0.06) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

/* Content with staggered entrance */

.introOverlay__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 1.5rem;
}

.introOverlay.is-leaving .introOverlay__text,
.introOverlay.is-leaving .introOverlay__cta {
  opacity: 1;
  animation: introElFadeOut 500ms ease forwards !important;
}

@keyframes introElFadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* Staggered entrance: text first, then seal, then button */

.introOverlay__text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(182, 148, 89, 0.85);
  opacity: 0;
  animation: introFadeUp 800ms 300ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  background: linear-gradient(
    105deg,
    rgba(182, 148, 89, 0.85) 40%,
    rgba(255, 235, 190, 1) 50%,
    rgba(182, 148, 89, 0.85) 60%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    introFadeUp 800ms 300ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    textShimmer 4s 1.5s ease-in-out infinite;
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.introSeal {
  width: clamp(220px, 60vw, 340px);
  height: clamp(220px, 60vw, 340px);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 300ms ease;
  filter: drop-shadow(0 0 40px rgba(182, 148, 89, 0.12));
  opacity: 0;
  animation:
    introScaleIn 900ms 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    sealFloat 5s 1.8s ease-in-out infinite;
}

.introSeal::before,
.introSeal::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  pointer-events: none;
}

.introSeal::before {
  background: conic-gradient(
    from 0deg,
    rgba(182, 148, 89, 0.05),
    rgba(245, 230, 200, 0.35),
    rgba(182, 148, 89, 0.05),
    rgba(201, 162, 101, 0.3),
    rgba(182, 148, 89, 0.05)
  );
  animation: sealRingSpin 12s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

.introSeal::after {
  inset: -14px;
  border: 1px solid rgba(182, 148, 89, 0.15);
  animation: sealGlowPulse 3s ease-in-out infinite;
}

@keyframes sealRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes sealGlowPulse {
  0%, 100% { border-color: rgba(182, 148, 89, 0.12); box-shadow: 0 0 20px rgba(182, 148, 89, 0.04); }
  50%      { border-color: rgba(182, 148, 89, 0.3); box-shadow: 0 0 30px rgba(182, 148, 89, 0.1); }
}

@keyframes introScaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

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

.introSeal.is-cracking {
  opacity: 1;
  animation: sealCrack 350ms ease forwards;
}

@keyframes sealCrack {
  0%   { transform: scale(1); filter: drop-shadow(0 0 40px rgba(182, 148, 89, 0.12)); }
  30%  { transform: scale(1.08); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1.03); filter: drop-shadow(0 0 50px rgba(182, 148, 89, 0.35)) brightness(1.15); }
}

.introOverlay.is-leaving .introSeal {
  animation: sealExit 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes sealExit {
  0%   { opacity: 1; transform: scale(1.03); filter: brightness(1.15) drop-shadow(0 0 50px rgba(182, 148, 89, 0.35)); }
  35%  { opacity: 1; transform: scale(1.12); filter: brightness(1.5) drop-shadow(0 0 80px rgba(182, 148, 89, 0.6)); }
  100% { opacity: 0; transform: scale(1.25); filter: brightness(2) drop-shadow(0 0 100px rgba(255, 235, 190, 0.4)); }
}

.introSeal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: radial-gradient(circle, #faf7f2 0%, #f0ece4 100%);
  border: 3px solid rgba(182, 148, 89, 0.4);
  outline: 1px solid rgba(182, 148, 89, 0.12);
  outline-offset: 3px;
  box-shadow:
    inset 0 0 30px rgba(182, 148, 89, 0.06),
    0 0 40px rgba(182, 148, 89, 0.25),
    0 0 80px rgba(182, 148, 89, 0.12),
    0 10px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  user-select: none;
}

.introOverlay.is-leaving .introSeal__img {
  animation: imgGlow 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes imgGlow {
  0%   { box-shadow: inset 0 0 30px rgba(182, 148, 89, 0.06), 0 0 40px rgba(182, 148, 89, 0.25), 0 0 80px rgba(182, 148, 89, 0.12), 0 10px 40px rgba(0, 0, 0, 0.35); }
  35%  { box-shadow: inset 0 0 40px rgba(182, 148, 89, 0.12), 0 0 60px rgba(182, 148, 89, 0.45), 0 0 100px rgba(255, 235, 190, 0.25), 0 0 0 6px rgba(182, 148, 89, 0.2); }
  100% { box-shadow: inset 0 0 50px rgba(255, 235, 190, 0.08), 0 0 80px rgba(182, 148, 89, 0.15), 0 0 120px rgba(255, 235, 190, 0.06), 0 0 0 8px rgba(255, 235, 190, 0.06); }
}

.introOverlay__cta {
  margin-top: 0.5rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(182, 148, 89, 0.35);
  border-radius: 999px;
  background: rgba(182, 148, 89, 0.12);
  color: rgba(255, 245, 225, 0.9);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 200ms ease, transform 160ms ease, border-color 200ms ease, box-shadow 200ms ease;
  opacity: 0;
  animation:
    introFadeUp 700ms 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    ctaPulse 2.5s 2s ease-in-out infinite;
}

.introOverlay__cta:hover {
  background: rgba(182, 148, 89, 0.22);
  border-color: rgba(182, 148, 89, 0.6);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(182, 148, 89, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.introOverlay__cta:active {
  transform: scale(0.97);
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 148, 89, 0.3); }
  50%      { box-shadow: 0 0 0 12px rgba(182, 148, 89, 0); }
}

button,
a,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.skipLink {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-160%);
  box-shadow: 0 12px 30px var(--shadow);
}

.skipLink:focus {
  transform: translateY(0);
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 100;
  transform: translateX(-50%) translateY(0);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(23, 20, 29, 0.94);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
  width: min(92vw, 28rem);
  animation: toastIn 280ms ease forwards;
}

.toast.is-leaving {
  animation: toastOut 260ms ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(182, 148, 89, 0.12);
}

.siteHeader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(249, 243, 234, 0.72);
}

.siteHeader__inner,
main {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.siteHeader__inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Keeps the bar to two flex children (brand + slot) so the menu toggle stays flush right on small screens. */
.siteHeader__navSlot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--gold-line);
  box-shadow: 0 10px 24px rgba(23, 20, 29, 0.08);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand__amp {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--gold);
  font-size: 1rem;
}

.navToggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--gold-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(23, 20, 29, 0.08);
  padding: 0;
  cursor: pointer;
}

.navToggle__line {
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
}

.navDrawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(21rem, 88vw);
  min-height: 100dvh;
  min-height: 100vh;
  padding: 5rem 1.2rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  /* Opaque base + gradient so the panel never reads as “empty” over the page */
  background-color: var(--bg-soft);
  background-image: linear-gradient(
    180deg,
    rgba(255, 251, 245, 0.99),
    rgba(249, 243, 234, 1)
  );
  border-left: 1px solid var(--gold-line);
  box-shadow: -30px 0 60px rgba(23, 20, 29, 0.16);
  transform: translateX(100%);
  transition: transform 220ms ease, visibility 220ms ease;
  visibility: hidden;
  pointer-events: none;
}

.navDrawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.navDrawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(23, 20, 29, 0.36);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  pointer-events: none;
}

.navDrawer__overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.navDrawer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 1rem;
  background: rgba(182, 148, 89, 0.12);
  cursor: pointer;
}

.navDrawer__close::before,
.navDrawer__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.navDrawer__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navDrawer__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav__link {
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background: rgba(182, 148, 89, 0.12);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  align-items: center;
  padding: 2.25rem 0 3rem;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(160deg, rgba(255, 251, 245, 0.56), rgba(255, 251, 245, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 60%);
  border: 1px solid rgba(182, 148, 89, 0.16);
}

.hero__halo,
.hero__grid,
.hero__grain {
  position: absolute;
  inset: 0;
}

.hero__halo {
  border-radius: 50%;
  filter: blur(12px);
}

.hero__halo--1 {
  inset: -8% auto auto -8%;
  width: 14rem;
  height: 14rem;
  background: rgba(217, 181, 154, 0.26);
}

.hero__halo--2 {
  inset: auto -10% 18% auto;
  width: 18rem;
  height: 18rem;
  background: rgba(182, 148, 89, 0.18);
}

.hero__halo--3 {
  inset: 38% auto auto 35%;
  width: 10rem;
  height: 10rem;
  background: rgba(182, 148, 89, 0.09);
}

.hero__grid {
  background-image:
    linear-gradient(rgba(182, 148, 89, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 148, 89, 0.06) 1px, transparent 1px);
  background-size: 1.75rem 1.75rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
}

.hero__grain {
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(23, 20, 29, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(23, 20, 29, 0.03) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 80%, rgba(23, 20, 29, 0.03) 0 1px, transparent 1px);
  background-size: 6rem 6rem;
}

.hero__inner,
.block__inner {
  position: relative;
  z-index: 1;
}

.hero__inner {
  width: min(46rem, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}

.eyebrow,
.sectionTag,
.venueCard__label,
.guestbookCard__label,
.detailsCard__label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.sectionTag {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.names {
  margin: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 17vw, 7rem);
  line-height: 1.02;
  font-weight: 600;
}

.names__amp {
  color: var(--gold);
  font-size: 0.45em;
}

.subtitle,
.venueCard__body,
.footer__sub {
  color: var(--text-soft);
  line-height: 1.75;
  text-wrap: pretty;
}

.subtitle {
  width: min(36rem, 100%);
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.hero__meta,
.hero__secondaryActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.hero__meta {
  margin-top: 1.5rem;
}

.hero__metaItem,
.chipButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.54);
  color: var(--text-soft);
  box-shadow: 0 10px 24px rgba(23, 20, 29, 0.06);
}

.ornament {
  width: 8rem;
  height: 1px;
  margin: 1.7rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.ornament::before {
  left: 1.25rem;
}

.ornament::after {
  right: 1.25rem;
}

.detailsCard,
.block__inner,
.venueCard,
.guestbookForm,
.guestbookCard {
  background: var(--surface);
  border: 1px solid rgba(182, 148, 89, 0.15);
  box-shadow: 0 18px 36px rgba(23, 20, 29, 0.07);
}

.detailsCard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
}

.detailsCard__item {
  display: grid;
  gap: 0.35rem;
}

.detailsCard__item--wide {
  grid-column: 1 / -1;
}

.detailsCard__label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.detailsCard__value {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  text-wrap: pretty;
}

.ctaRow,
.guestbookForm__actions {
  display: grid;
  gap: 0.75rem;
}

.guestbookForm__actions {
  margin-top: 1.1rem;
  padding-top: 0.35rem;
}

.guestbookForm__actions .btn {
  min-height: 2.85rem;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 0;
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.ctaRow {
  margin-top: 1.4rem;
}

.hero__secondaryActions {
  margin-top: 1rem;
}

.btn,
.chipButton,
.detailLink {
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.chipButton:hover,
.detailLink:hover {
  transform: translateY(-1px);
}

.btn {
  min-height: 3.3rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
}

.btn--primary {
  color: #fff9f3;
  background: linear-gradient(135deg, #1d1822, #443749);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(182, 148, 89, 0.16);
}

.btn--soft,
.detailLink {
  background: rgba(182, 148, 89, 0.14);
  border-color: rgba(182, 148, 89, 0.22);
}

.btn__hint {
  font-size: 0.7rem;
  opacity: 0.7;
}

.finePrint,
.countdown__note,
.footer__line {
  color: var(--muted);
}

.finePrint {
  margin: 1rem 0 0;
  text-wrap: pretty;
}

.block {
  padding: 1.1rem 0 0;
}

.block__inner {
  padding: 1.65rem;
  border-radius: var(--radius-xl);
}

.block__inner--cta {
  text-align: center;
}

.block__inner--cta .block__lede {
  margin-inline: auto;
}

.block__title,
.guestbookCard__quote,
.footer__names {
  font-family: var(--serif);
  font-weight: 600;
}

.block__title {
  margin: 0.5rem 0 0;
  font-size: clamp(2.3rem, 10vw, 4rem);
  line-height: 1.12;
  text-wrap: balance;
}

.footer__names {
  line-height: 1.06;
}

.block__lede {
  margin: 1rem 0 0;
  max-width: min(46rem, 100%);
  color: var(--text-soft);
  line-height: 1.75;
  /* Default wrapping; `pretty` can split phrases awkwardly on wide desktop lines */
  text-wrap: wrap;
}

.venueGrid,
.guestbook {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.countdown {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-top: 1.75rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.countdown__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.countdown__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  align-items: center;
  justify-items: center;
  padding: 1rem;
}

.countdown__unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: min(140px, 100%);
  aspect-ratio: 1;
}

.countdown__unit::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 148, 89, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.countdown__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter:
    drop-shadow(0 0 4px rgba(182, 148, 89, 0.4))
    drop-shadow(0 0 14px rgba(182, 148, 89, 0.2));
}

.countdown__ringTrack {
  fill: none;
  stroke: rgba(182, 148, 89, 0.1);
  stroke-width: 2;
}

.countdown__ringGlow {
  fill: none;
  stroke: rgba(182, 148, 89, 0.12);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.9s linear;
}

.countdown__ringFill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.9s linear;
}

.countdown__number {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: #f7f1e7;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(182, 148, 89, 0.5);
  position: relative;
}

.countdown__label {
  position: relative;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(182, 148, 89, 0.85);
}

.countdown__note {
  margin: 1.25rem 0 0;
  max-width: min(42rem, 100%);
  text-wrap: pretty;
}

.countdown__sep {
  display: none;
  align-items: center;
  justify-content: center;
}

.countdown__sep::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(182, 148, 89, 0.7);
  box-shadow: 0 12px 0 rgba(182, 148, 89, 0.7);
  animation: countdownPulse 2.5s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.25; }
}

.venueCard,
.guestbookForm,
.guestbookCard {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.venueCard__label,
.guestbookCard__label {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 800;
}

.venueCard__body,
.guestbookCard__name {
  margin: 0.8rem 0 0;
}

.detailLink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.detailLink__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.detailLink__icon--arrow {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.6;
  transition: transform 160ms ease, opacity 160ms ease;
}

.detailLink:hover .detailLink__icon--arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.fieldLabel {
  display: block;
  margin-top: 0.9rem;
  color: var(--text-soft);
  font-weight: 700;
}

.fieldLabel:first-child {
  margin-top: 0;
}

.fieldInput,
.fieldTextarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(182, 148, 89, 0.18);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  resize: vertical;
}

.guestbookCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(182, 148, 89, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(255, 251, 245, 0.68));
}

.guestbookCard__quote {
  margin: 1rem 0 0;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 1.15;
  text-wrap: pretty;
}

.footer {
  padding: 2rem 0 4rem;
  text-align: center;
}

.footer__line {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer__names {
  margin: 0.8rem 0 0;
  font-size: clamp(2.5rem, 10vw, 4rem);
}

.footer__sub {
  margin: 0.8rem auto 0;
  max-width: min(34rem, 100%);
}

.muteToggle {
  position: fixed;
  right: 1rem;
  bottom: 4.75rem;
  z-index: 25;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(23, 20, 29, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease, transform 160ms ease;
}

.muteToggle.is-visible {
  opacity: 1;
  visibility: visible;
}

.muteToggle:hover {
  transform: translateY(-2px);
}

.muteToggle[aria-pressed="true"] {
  border-color: rgba(182, 148, 89, 0.12);
}

.muteToggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  position: relative;
}

.muteToggle__bar {
  display: block;
  width: 3px;
  border-radius: 1.5px;
  background: var(--gold);
  transition: height 300ms ease, opacity 300ms ease;
}

.muteToggle__bar:nth-child(1) {
  height: 6px;
  animation: eqBar1 1.2s ease-in-out infinite;
}

.muteToggle__bar:nth-child(2) {
  height: 10px;
  animation: eqBar2 1s ease-in-out infinite;
}

.muteToggle__bar:nth-child(3) {
  height: 4px;
  animation: eqBar3 1.4s ease-in-out infinite;
}

@keyframes eqBar1 {
  0%, 100% { height: 6px; }
  50% { height: 12px; }
}

@keyframes eqBar2 {
  0%, 100% { height: 10px; }
  50% { height: 4px; }
}

@keyframes eqBar3 {
  0%, 100% { height: 4px; }
  50% { height: 11px; }
}

.muteToggle__slash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.4rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease;
  pointer-events: none;
  box-shadow: 0 0 3px rgba(182, 148, 89, 0.4);
}

.muteToggle[aria-pressed="true"] .muteToggle__bar {
  animation: none;
  opacity: 0.35;
}

.muteToggle[aria-pressed="true"] .muteToggle__bar:nth-child(1),
.muteToggle[aria-pressed="true"] .muteToggle__bar:nth-child(2),
.muteToggle[aria-pressed="true"] .muteToggle__bar:nth-child(3) {
  height: 3px;
}

.muteToggle[aria-pressed="true"] .muteToggle__slash {
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

.muteToggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.scrollProgress {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 24px rgba(23, 20, 29, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.scrollProgress.is-visible {
  opacity: 1;
  visibility: visible;
}

.scrollProgress:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(23, 20, 29, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.scrollProgress:active {
  transform: translateY(0) scale(0.95);
}

.scrollProgress__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scrollProgress__track {
  fill: none;
  stroke: rgba(182, 148, 89, 0.14);
  stroke-width: 2.5;
}

.scrollProgress__fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  transition: stroke-dashoffset 120ms ease;
}

.scrollProgress__heart {
  width: 1rem;
  height: 1rem;
  fill: var(--gold);
  position: relative;
}

.scrollProgress__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.nav-open {
  overflow: hidden;
}

/* --- Personalized guest greeting --- */

.guestGreeting {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* --- Handwriting SVG animation --- */

.names {
  position: relative;
}

.names--hw .names__name,
.names--hw .names__amp {
  opacity: 0;
}

.names--hw-done .names__name,
.names--hw-done .names__amp {
  opacity: 1;
}

.hwSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.hwSvg__text {
  fill: var(--text);
  fill-opacity: 0;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hwSvg__text--amp {
  fill: var(--gold);
  stroke: var(--gold);
  stroke-width: 1;
}

@media (min-width: 700px) {
  .siteHeader__inner,
  main {
    width: min(1120px, calc(100% - 2rem));
  }

  .navToggle {
    display: none;
  }

  .navDrawer {
    position: static;
    z-index: auto;
    width: auto;
    min-height: 0;
    padding: 0;
    padding-bottom: 0;
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .navDrawer__close {
    display: none;
  }

  .navDrawer__overlay {
    display: none;
  }

  .nav {
    flex-direction: row;
    align-items: center;
  }

  .names {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .detailsCard {
    grid-template-columns: 1fr 1fr;
  }

  .ctaRow {
    grid-auto-flow: column;
    justify-content: center;
  }

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

  .venueGrid {
    grid-template-columns: 1fr 1fr;
  }

  .countdown {
    aspect-ratio: 5 / 2;
  }

  .countdown__overlay {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
  }

  .countdown__unit {
    width: min(170px, 100%);
  }

  .countdown__number {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
  }

  .countdown__label {
    font-size: 0.65rem;
  }

  .countdown__sep {
    display: flex;
  }
}

@media (min-width: 960px) {
  .guestbookForm__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f4ede4;
    --text-soft: #d2c8d6;
    --muted: #a999b2;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(217, 181, 154, 0.12), transparent 28%),
      radial-gradient(circle at 80% 12%, rgba(182, 148, 89, 0.14), transparent 24%),
      linear-gradient(180deg, #0d0b11 0%, #140f19 45%, #110d16 100%);
  }

  .siteHeader::before {
    background: rgba(14, 11, 18, 0.76);
  }

  .navDrawer {
    background-color: #141018;
    background-image: linear-gradient(180deg, rgba(22, 18, 28, 1), rgba(14, 11, 18, 1));
  }

  .navDrawer__overlay {
    background: rgba(0, 0, 0, 0.5);
  }

  .brand__mark,
  .navToggle,
  .hero__metaItem,
  .chipButton,
  .btn--ghost,
  .detailsCard,
  .block__inner,
  .venueCard,
  .guestbookForm,
  .guestbookCard,
  .fieldInput,
  .fieldTextarea,
  .muteToggle,
  .scrollProgress {
    background-color: rgba(20, 16, 27, 0.72);
  }

  .scrollProgress {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .hero__bg {
    background:
      linear-gradient(160deg, rgba(35, 28, 44, 0.72), rgba(18, 15, 24, 0.6)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
  }

  .btn--primary {
    background: linear-gradient(135deg, #efe5d3, #be9a5f);
    color: #17141d;
  }

  .btn--soft,
  .detailLink {
    background: rgba(182, 148, 89, 0.16);
  }

  .guestbookCard {
    background:
      radial-gradient(circle at top right, rgba(182, 148, 89, 0.14), transparent 32%),
      linear-gradient(180deg, rgba(20, 16, 27, 0.9), rgba(20, 16, 27, 0.72));
  }

  .toast {
    background: rgba(239, 229, 211, 0.96);
    color: #17141d;
  }
}

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

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

  body.is-revealed > .siteHeader,
  body.is-revealed > main,
  body.is-revealed > .muteToggle,
  body.is-revealed > .scrollProgress {
    opacity: 1;
  }

  .introOverlay.is-leaving {
    opacity: 0;
  }

  .introOverlay.is-leaving .introOverlay__half--left,
  .introOverlay.is-leaving .introOverlay__half--right {
    opacity: 0;
  }
}
