/* ==========================================================================
   Caren & Zayrol — Powder blue + buttermilk yellow
   Soft pastels, typography-led, full-bleed prenup hero.
   ========================================================================== */

:root {
  --cloud: #fbf8ef;
  --mist: #f3ecd8;
  --stone: #d5e0e8;
  --powder: #9ec5dc;
  --powder-deep: #6a9fbd;
  --butter: #f0dfa0;
  --butter-deep: #e2c86a;
  --ink: #24303a;
  --ink-soft: #3d4b56;
  --muted: #6b7782;
  --white: #ffffff;

  /* aliases used across the stylesheet */
  --sage: var(--powder);
  --sage-deep: var(--powder-deep);
  --champagne: var(--butter-deep);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --max: 68rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cloud);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%239ec5dc' stroke-opacity='0.14' stroke-width='1'%3E%3Cpath d='M10 40c8-12 18-12 26 0s18 12 26 0'/%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23e2c86a' fill-opacity='0.35' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 80% at 8% -10%, rgba(158, 197, 220, 0.28), transparent 52%),
    radial-gradient(ellipse 90% 60% at 100% 18%, rgba(240, 223, 160, 0.35), transparent 48%),
    linear-gradient(180deg, var(--cloud) 0%, var(--mist) 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  background-size: 80px 80px, auto, auto, auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
  position: relative;
}

/* Side & background ornaments */

.page-decor {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-decor__vine {
  position: absolute;
  top: 18vh;
  width: clamp(4.5rem, 9vw, 7.5rem);
  height: auto;
  opacity: 0.7;
}

.page-decor__vine--left {
  left: max(0.35rem, env(safe-area-inset-left));
}

.page-decor__vine--right {
  right: max(0.35rem, env(safe-area-inset-right));
  transform: scaleX(-1);
  top: 42vh;
}

.page-decor__corner {
  position: absolute;
  width: clamp(5.5rem, 12vw, 9rem);
  height: auto;
  opacity: 0.55;
}

.page-decor__corner--tl {
  top: 6rem;
  left: max(0.5rem, env(safe-area-inset-left));
}

.page-decor__corner--br {
  right: max(0.5rem, env(safe-area-inset-right));
  bottom: 4rem;
  transform: scale(-1);
}

.page-decor__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.page-decor__orb--a {
  width: 14rem;
  height: 14rem;
  top: 30%;
  left: -5rem;
  background: radial-gradient(circle, rgba(158, 197, 220, 0.22), transparent 70%);
}

.page-decor__orb--b {
  width: 18rem;
  height: 18rem;
  top: 58%;
  right: -7rem;
  background: radial-gradient(circle, rgba(240, 223, 160, 0.28), transparent 70%);
}

.page-decor__orb--c {
  width: 12rem;
  height: 12rem;
  bottom: 8%;
  left: 20%;
  background: radial-gradient(circle, rgba(158, 197, 220, 0.16), transparent 70%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
}

.section.story::before,
.section.info::before,
.section.rsvp::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: max(0.75rem, env(safe-area-inset-right));
  width: 4.5rem;
  height: 4.5rem;
  background: url("../assets/decor-corner.svg") center / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.section.details::after,
.section.gallery::after {
  content: "";
  position: absolute;
  bottom: 1.25rem;
  left: max(0.75rem, env(safe-area-inset-left));
  width: 4.5rem;
  height: 4.5rem;
  background: url("../assets/decor-corner.svg") center / contain no-repeat;
  opacity: 0.3;
  transform: scaleY(-1);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cloud);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  padding-top: env(safe-area-inset-top);
  padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(243, 245, 244, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(23, 26, 23, 0.06);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .site-nav a {
  color: var(--ink);
}

.site-header.is-scrolled .logo img {
  filter: brightness(0) saturate(100%);
  opacity: 0.88;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: var(--cloud);
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.logo img {
  display: block;
  height: 2.65rem;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.logo span {
  color: var(--champagne);
  margin: 0 0.15em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 245, 244, 0.88);
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.site-nav a:hover {
  opacity: 0.7;
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid currentColor;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: var(--cloud);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero — full-bleed, brand-first
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end stretch;
  color: var(--cloud);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #6a8fa8 0%, #9ec5dc 45%, #3d5568 100%);
  transform: scale(1.05);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__media img {
  object-fit: cover;
  object-position: center 32%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 48, 58, 0.28) 0%, rgba(36, 48, 58, 0.12) 35%, rgba(36, 48, 58, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 4rem) 5.5rem;
  max-width: 42rem;
}

.hero__meta {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.25rem, 14vw, 8.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 12px rgba(36, 48, 58, 0.35);
}

.hero__brand .amp {
  font-family: var(--font-script);
  font-size: 0.55em;
  font-weight: 400;
  color: var(--champagne);
  margin: 0.05em 0;
  text-shadow: none;
}

.hero__line {
  margin: 1.5rem 0 2rem;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: rgba(243, 245, 244, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1.5rem;
  height: 2.25rem;
  border: 1px solid rgba(243, 245, 244, 0.45);
  border-radius: 999px;
}

.hero__scroll span {
  display: block;
  width: 3px;
  height: 3px;
  margin: 0.45rem auto 0;
  border-radius: 50%;
  background: var(--champagne);
  animation: scroll-dot 1.8s var(--ease) infinite;
}

@keyframes hero-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.btn--primary {
  background: var(--powder-deep);
  color: var(--cloud);
  border-color: var(--powder-deep);
}

.btn--primary:hover {
  background: #547f9c;
  border-color: #547f9c;
}

.btn--ghost {
  background: transparent;
  color: var(--cloud);
  border-color: rgba(243, 245, 244, 0.45);
}

.btn--ghost:hover {
  border-color: var(--cloud);
}

.btn--wide {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: var(--space-2xl) 0;
}

.section__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.section__title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 5.5vw, 3.85rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  max-width: 14ch;
}

/* Story */

.story__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

.story__lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
}

.story__aside p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.story__note {
  padding-top: 1rem;
  border-top: 1px solid var(--stone);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--sage-deep) !important;
}

/* Details — interaction list, not card chrome */

.details {
  background: linear-gradient(180deg, transparent, rgba(158, 197, 220, 0.14) 30%, transparent);
}

.details__list {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--stone);
}

.detail {
  padding: var(--space-md) 0 0;
  border: 0;
  background: transparent;
}

.detail__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
}

.detail__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink-soft);
}

.detail__place {
  margin: 0;
  font-weight: 400;
  color: var(--ink-soft);
}

.detail__addr {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.detail__addr a {
  color: var(--powder-deep);
  border-bottom: 1px solid rgba(106, 159, 189, 0.4);
}

.detail__addr a:hover {
  color: var(--ink);
}

/* Attire guide */

.attire-guide {
  margin-top: var(--space-xl);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 40% 50% at 8% 30%, rgba(107, 115, 64, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 50% at 92% 70%, rgba(47, 90, 60, 0.1), transparent 60%),
    linear-gradient(180deg, #f7f3ea 0%, #f1ebe0 100%);
  border: 1px solid rgba(107, 115, 64, 0.18);
  position: relative;
  overflow: hidden;
}

.attire-guide::before,
.attire-guide::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(139, 115, 85, 0.18);
  border-radius: 50% 40% 55% 45%;
  pointer-events: none;
}

.attire-guide::before {
  top: -2rem;
  left: -2rem;
  transform: rotate(-18deg);
}

.attire-guide::after {
  bottom: -2.5rem;
  right: -1.5rem;
  transform: rotate(22deg);
}

.attire-guide__script {
  margin: 0 0 1.15rem;
  font-family: var(--font-script);
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 400;
  color: #6b5344;
  line-height: 1.1;
}

.attire-guide__invite {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: #5c4a3d;
}

.attire-guide__invite em {
  font-style: italic;
}

.attire-guide__theme {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  font-weight: 400;
  color: #4a3b30;
}

.attire-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 8.5rem));
  gap: clamp(0.85rem, 3vw, 1.5rem);
  justify-content: center;
  margin: 0;
}

.swatch {
  margin: 0;
}

.swatch__chip {
  aspect-ratio: 1;
  width: 100%;
  background: var(--swatch);
  border: 1px solid rgba(74, 59, 48, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.swatch figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #5c4a3d;
}

.map-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--powder-deep);
  border-bottom: 1px solid rgba(106, 159, 189, 0.45);
  padding-bottom: 0.15rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.map-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Embedded venue maps */

.maps-guide {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--stone);
}

.maps-guide__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--powder-deep);
}

.maps-guide__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-soft);
}

.maps-guide__lead {
  margin: 0 0 var(--space-md);
  max-width: 42ch;
  color: var(--muted);
}

.maps-guide__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.map-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(158, 197, 220, 0.45);
  overflow: hidden;
}

.map-card__frame {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--mist);
}

.map-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-card__body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.map-card__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--butter-deep);
}

.map-card__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink-soft);
}

.map-card__addr {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.map-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn--map {
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.68rem;
}

.btn--ghost-ink {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--stone);
}

.btn--ghost-ink:hover {
  border-color: var(--powder-deep);
  color: var(--powder-deep);
}

/* Countdown */

.countdown {
  padding: var(--space-lg) 0;
  border-block: 1px solid var(--stone);
  background:
    linear-gradient(90deg, rgba(158, 197, 220, 0.18), rgba(240, 223, 160, 0.22));
}

.countdown__inner {
  text-align: center;
}

.countdown__label {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--powder-deep);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 5.5rem));
  gap: clamp(0.65rem, 3vw, 1.25rem);
  justify-content: center;
}

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

.flip {
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 6vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink-soft);
  padding: 0.65rem 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(158, 197, 220, 0.45);
  perspective: 400px;
}

.flip span {
  display: block;
  transform-origin: center bottom;
}

.flip.is-flipping span {
  animation: flip-down 0.45s var(--ease);
}

@keyframes flip-down {
  0% { transform: rotateX(0deg); opacity: 1; }
  45% { transform: rotateX(-85deg); opacity: 0.35; }
  46% { transform: rotateX(85deg); opacity: 0.35; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

.countdown__unit small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown__date {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Guest info */

.info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  border-top: 1px solid var(--stone);
  padding-top: var(--space-md);
}

.info-card {
  margin: 0;
  padding: 1.25rem 1.2rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(251, 248, 239, 0.75)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(158, 197, 220, 0.05) 11px,
      rgba(158, 197, 220, 0.05) 12px
    );
  border: 1px solid rgba(158, 197, 220, 0.35);
  box-shadow: 0 10px 28px rgba(106, 159, 189, 0.08);
}

.info-card__label {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--butter-deep);
}

.info-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-soft);
}

.info-card p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Gallery — editorial mosaic */

.gallery {
  overflow: hidden;
}

.gallery__lead {
  margin: calc(var(--space-lg) * -0.55) 0 var(--space-lg);
  max-width: 34ch;
  color: var(--muted);
}

.gallery__mosaic {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  grid-template-areas:
    "feature tall-a tall-b"
    "wide-a  wide-a wide-b";
  gap: clamp(0.85rem, 2vw, 1.35rem);
  width: min(100% - 1.5rem, calc(var(--max) + 3rem));
  margin: 0 auto;
  align-items: end;
}

.frame {
  margin: 0;
  position: relative;
}

.frame--feature { grid-area: feature; }
.frame--tall.frame--tilt-a { grid-area: tall-a; }
.frame--tall.frame--tilt-b { grid-area: tall-b; }
.frame--wide:not(.frame--accent) { grid-area: wide-a; }
.frame--accent { grid-area: wide-b; }

.frame__mat {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 0.7rem 0.7rem 1.85rem;
  border: 1px solid rgba(36, 48, 58, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(36, 48, 58, 0.04),
    0 18px 40px rgba(106, 159, 189, 0.12);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.frame__mat::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 1px dashed rgba(106, 159, 189, 0.28);
  pointer-events: none;
  z-index: 1;
}

.frame__mat--powder {
  background: linear-gradient(165deg, #e8f2f8 0%, #cfe3ef 100%);
  padding-bottom: 1.85rem;
}

.frame__mat--butter {
  background: linear-gradient(165deg, #fbf6e4 0%, #f0dfa0 100%);
  padding-bottom: 1.85rem;
}

.frame__mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.frame--feature .frame__mat img {
  aspect-ratio: 4 / 5;
  min-height: 22rem;
}

.frame--tall .frame__mat img {
  aspect-ratio: 3 / 4;
  min-height: 16rem;
}

.frame--wide .frame__mat img {
  aspect-ratio: 16 / 10;
  min-height: 11rem;
}

.frame--tilt-a .frame__mat {
  transform: rotate(-1.6deg) translateY(0.5rem);
}

.frame--tilt-b .frame__mat {
  transform: rotate(1.8deg) translateY(-0.35rem);
}

.frame:hover .frame__mat {
  transform: rotate(0deg) translateY(-0.35rem);
  box-shadow:
    0 1px 0 rgba(36, 48, 58, 0.05),
    0 24px 48px rgba(106, 159, 189, 0.2);
}

.frame:hover .frame__mat img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.04);
}

.frame figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.55rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
}

.frame figcaption span {
  color: var(--powder-deep);
  font-weight: 400;
}

.frame--accent figcaption span {
  color: #b8962e;
}

/* RSVP */

.rsvp {
  padding-bottom: var(--space-2xl);
}

.rsvp__inner {
  max-width: 36rem;
}

.rsvp__frame {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(243, 236, 216, 0.55));
  border: 1px solid rgba(158, 197, 220, 0.55);
  box-shadow:
    0 0 0 6px rgba(251, 248, 239, 0.8),
    0 0 0 7px rgba(226, 200, 106, 0.35),
    0 24px 48px rgba(106, 159, 189, 0.12);
}

.rsvp__script {
  margin: 0 0 0.35rem;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3.25rem);
  color: #6b5344;
  text-align: center;
  line-height: 1;
}

.rsvp__frame .eyebrow,
.rsvp__frame .section__title,
.rsvp__frame .rsvp__intro {
  text-align: center;
}

.rsvp__frame .section__title {
  margin-left: auto;
  margin-right: auto;
}

.rsvp__intro {
  margin: calc(var(--space-lg) * -0.5) 0 var(--space-lg);
  color: var(--muted);
}

.rsvp__intro strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.rsvp-form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field > label,
.field > legend {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
  color: var(--muted);
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--stone);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.65);
  outline: none;
  font-size: 1rem; /* prevents iOS zoom on focus */
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sage);
  background: var(--white);
}

.field.is-invalid input:not([type="radio"]):not([type="checkbox"]),
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #8b3a3a;
  background: rgba(139, 58, 58, 0.04);
}

.field-error {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #8b3a3a;
}

.field-error[hidden] {
  display: none;
}

.field-row {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr 1fr;
}

.field--choice {
  border: 0;
  padding: 0;
  margin: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--stone);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.3;
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.choice:has(input:checked) {
  border-color: var(--powder-deep);
  background: rgba(158, 197, 220, 0.18);
}

.choice input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--powder-deep);
}

.choice span {
  flex: 1;
  min-width: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--sage-deep);
}

.form-status.is-error {
  color: #8b3a3a;
}

.form-status.is-success {
  color: var(--sage-deep);
}

/* Footer */

.site-footer {
  padding: var(--space-xl) clamp(1.25rem, 4vw, 2.5rem) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--stone);
  background: rgba(23, 26, 23, 0.03);
}

.footer__logo {
  display: inline-flex;
  justify-content: center;
  margin: 0 0 0.85rem;
  line-height: 0;
}

.footer__logo img {
  display: block;
  height: 4.5rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  opacity: 0.82;
}

.footer__brand {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.85rem;
  font-weight: 400;
}

.footer__meta {
  margin: 0.5rem 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.footer__thanks {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Reveal motion
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero [data-reveal] {
  transition-delay: 0.1s;
}

.hero [data-reveal]:nth-child(2) { transition-delay: 0.22s; }
.hero [data-reveal]:nth-child(3) { transition-delay: 0.34s; }
.hero [data-reveal]:nth-child(4) { transition-delay: 0.46s; }

/* --------------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .story__grid,
  .details__list,
  .info__grid,
  .maps-guide__grid {
    grid-template-columns: 1fr;
  }

  .gallery__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature feature"
      "tall-a  tall-b"
      "wide-a  wide-b";
    align-items: start;
  }

  .frame--feature .frame__mat img {
    aspect-ratio: 16 / 11;
    min-height: 14rem;
  }

  .frame--tilt-a .frame__mat,
  .frame--tilt-b .frame__mat {
    transform: none;
  }

  .detail {
    padding-top: 1.25rem;
    border-top: 1px solid var(--stone);
  }

  .details__list {
    border-top: 0;
  }

  .section__title {
    max-width: 18ch;
  }
}

/* --------------------------------------------------------------------------
   Responsive — phone
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --header-h: 3.75rem;
    --space-lg: 2rem;
    --space-xl: 3.25rem;
    --space-2xl: 4.5rem;
  }

  .logo img {
    height: 2.25rem;
  }

  body {
    font-size: 1rem;
    background-attachment: scroll, scroll, scroll, scroll;
  }

  .hero {
    min-height: 78svh;
    min-height: 78dvh;
  }

  .hero__media img {
    object-fit: cover;
    object-position: center 30%;
  }

  .page-decor__vine,
  .page-decor__corner {
    opacity: 0.28;
    width: 3.25rem;
  }

  .page-decor__corner {
    width: 3.75rem;
  }

  .page-decor__vine--right {
    top: 55vh;
  }

  .section.story::before,
  .section.info::before,
  .section.rsvp::before,
  .section.details::after,
  .section.gallery::after {
    width: 3rem;
    height: 3rem;
    opacity: 0.22;
  }

  .nav-toggle {
    display: block;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding:
      calc(var(--header-h) + env(safe-area-inset-top))
      1.5rem
      calc(2rem + env(safe-area-inset-bottom));
    background: rgba(23, 26, 23, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    color: var(--cloud);
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    padding: 0.75rem 1.25rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .nav-cta {
    margin-top: 0.5rem;
    min-width: 10rem;
    justify-content: center;
  }

  .site-header.nav-open .nav-toggle span:first-of-type {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:last-of-type {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-header.nav-open .nav-toggle span {
    background: var(--cloud);
  }

.site-header.nav-open .logo {
  color: var(--cloud);
  position: relative;
  z-index: 60;
}

.site-header.nav-open .logo img {
  filter: none;
  opacity: 1;
}

  .hero {
    min-height: 78svh;
    min-height: 78dvh;
  }

  .hero__content {
    width: 100%;
    max-width: none;
    padding:
      calc(var(--header-h) + env(safe-area-inset-top) + 1.5rem)
      max(1.15rem, env(safe-area-inset-right))
      calc(5.5rem + env(safe-area-inset-bottom))
      max(1.15rem, env(safe-area-inset-left));
  }

  .hero__brand {
    font-size: clamp(3.5rem, 16vw, 5.25rem);
    word-break: break-word;
  }

  .hero__line {
    max-width: 28ch;
    margin: 1.15rem 0 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 18rem;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 3rem;
  }

  .hero__media img {
    object-position: center 26%;
  }

  .hero__scroll {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .section__inner {
    width: min(100% - 2rem, var(--max));
  }

  .section__title {
    margin-bottom: var(--space-md);
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
    max-width: none;
  }

  .story__lead {
    font-size: clamp(1.2rem, 5.5vw, 1.45rem);
  }

  .story__grid {
    gap: 1.25rem;
  }

  .details__list {
    gap: 0;
  }

  .detail {
    padding: 1.35rem 0;
  }

  .detail__title {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  .gallery__mosaic {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "tall-a"
      "tall-b"
      "wide-a"
      "wide-b";
    gap: 1.15rem;
    width: min(100% - 1.5rem, var(--max));
  }

  .frame--feature .frame__mat img,
  .frame--tall .frame__mat img,
  .frame--wide .frame__mat img {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .map-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .map-card__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .attire-swatches {
    grid-template-columns: repeat(3, minmax(0, 6.5rem));
    gap: 0.75rem;
  }

  .attire-guide__script {
    font-size: clamp(2.4rem, 12vw, 3.25rem);
  }

  .info__grid {
    gap: 1.5rem;
    border-top: 0;
    padding-top: 0;
  }

  .info-card {
    padding-top: 1.25rem;
    border-top: 1px solid var(--stone);
  }

  .countdown__grid {
    grid-template-columns: repeat(4, minmax(0, 4.5rem));
  }

  .rsvp__inner {
    max-width: none;
  }

  .rsvp__intro {
    margin-top: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .choice {
    padding: 0.6rem 0.8rem;
    min-height: 0;
  }

  .btn--wide {
    min-height: 3.1rem;
  }

  .site-footer {
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero__brand {
    font-size: 3.1rem;
  }

  .hero__meta {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .btn {
    letter-spacing: 0.1em;
    padding-inline: 1rem;
  }
}

/* Landscape phones — keep hero usable */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 3.5rem;
  }

  .hero__brand {
    font-size: clamp(2.6rem, 12vh, 3.75rem);
  }

  .hero__scroll {
    display: none;
  }
}

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

  .hero__media,
  .hero__scroll span,
  [data-reveal],
  .petal,
  .flip.is-flipping span {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .page-decor__orb,
  .petal {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Design extras — monogram, dividers, timeline, petals, date lockup
   -------------------------------------------------------------------------- */

.monogram {
  position: absolute;
  inset: 10% 0 auto;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 1;
  color: rgba(158, 197, 220, 0.16);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section.story .section__inner,
.section.rsvp .section__inner {
  position: relative;
  z-index: 1;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
}

.divider span {
  display: block;
  width: min(16rem, 55vw);
  height: 1.25rem;
  background:
    radial-gradient(circle at center, rgba(226, 200, 106, 0.85) 0 2px, transparent 2.5px),
    linear-gradient(90deg, transparent, rgba(158, 197, 220, 0.75), transparent);
  background-size: 100% 100%, 100% 1px;
  background-repeat: no-repeat;
  background-position: center, center;
}

.date-lockup {
  text-align: center;
  padding: var(--space-lg) 1.25rem;
}

.date-lockup__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--powder-deep);
}

.date-lockup__digits {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.1;
  color: var(--ink-soft);
}

.date-lockup__meta {
  margin: 0.75rem 0 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 1.25rem 1.15rem;
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(158, 197, 220, 0.4);
}

.timeline__item {
  display: grid;
  grid-template-columns: 5.5rem 1rem 1fr;
  gap: 0.85rem;
  align-items: center;
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.timeline__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--butter-deep);
  box-shadow: 0 0 0 4px rgba(158, 197, 220, 0.25);
  justify-self: center;
}

.timeline__text {
  font-size: 0.95rem;
  color: var(--muted);
}

.petal {
  position: absolute;
  width: 0.7rem;
  height: 1.05rem;
  border-radius: 70% 10% 70% 10%;
  background: linear-gradient(145deg, rgba(158, 197, 220, 0.55), rgba(240, 223, 160, 0.5));
  opacity: 0.35;
  animation: petal-fall linear infinite;
}

.petal--1 { left: 12%; top: -5%; animation-duration: 18s; animation-delay: 0s; }
.petal--2 { left: 28%; top: -8%; width: 0.55rem; height: 0.85rem; animation-duration: 22s; animation-delay: -4s; }
.petal--3 { left: 48%; top: -6%; animation-duration: 20s; animation-delay: -8s; background: linear-gradient(145deg, rgba(240, 223, 160, 0.6), rgba(158, 197, 220, 0.4)); }
.petal--4 { left: 66%; top: -10%; width: 0.6rem; height: 0.9rem; animation-duration: 24s; animation-delay: -2s; }
.petal--5 { left: 78%; top: -4%; animation-duration: 19s; animation-delay: -11s; }
.petal--6 { left: 90%; top: -7%; width: 0.5rem; height: 0.8rem; animation-duration: 21s; animation-delay: -6s; }

@keyframes petal-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  100% { transform: translate3d(-4vw, 110vh, 0) rotate(220deg); opacity: 0; }
}

@media (max-width: 720px) {
  .timeline__item {
    grid-template-columns: 4.5rem 0.85rem 1fr;
    gap: 0.55rem;
  }

  .monogram {
    font-size: 5.5rem;
    opacity: 0.85;
  }

  .petal {
    opacity: 0.22;
  }

  .rsvp__frame {
    padding: 1.25rem 1rem 1.5rem;
    box-shadow:
      0 0 0 4px rgba(251, 248, 239, 0.85),
      0 0 0 5px rgba(226, 200, 106, 0.3),
      0 16px 32px rgba(106, 159, 189, 0.1);
  }
}
