/* ============================================================
   Lucrecia & Juan Sebastián — Wedding Site
   Palette and typography matched to the Save the Date.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Paper & ink */
  --paper:       #ECE5D4;
  --paper-deep:  #DDD3BD;
  --paper-soft:  #F2ECDC;

  /* Burgundy wax-seal palette */
  --wine:        #6E2C2A;
  --wine-deep:   #4A1E1B;
  --wine-soft:   #8E4A41;

  /* Ink & muted */
  --ink:         #2B1A17;
  --muted:       #8A746A;
  --gold:        #B69B6F;

  /* Fonts */
  --display: "Cormorant Garamond", "Cormorant", Garamond, serif;
  --body:    "Cormorant Garamond", Garamond, serif;
  --script:  "Pinyon Script", "Allura", cursive;
  --roman:   "Cinzel", "Trajan", serif;

  /* Layout */
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --pad-y: clamp(4rem, 10vw, 10rem);
  --maxw: 1280px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Subtle paper texture using layered radial gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(110, 44, 42, 0.025), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.02), transparent 50%);
}

/* ---------- Reusable ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); position: relative; z-index: 1; }
.container.narrow { max-width: 880px; }
.center { text-align: center; }
.center-block { display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  font-family: var(--roman);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
  font-weight: 400;
  color: var(--wine);
  margin: 0 0 1.5rem;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--wine);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
  margin: 0;
}

.display {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--wine);
  margin: 0 0 1.5rem;
}

.display-sm {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: var(--wine);
  margin: 0 0 0.6rem;
}

.sub {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--wine);
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.01em;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 auto 2rem;
  font-style: italic;
}

.link {
  position: relative;
  border-bottom: 1px solid currentColor;
  color: var(--wine);
  transition: opacity .2s ease;
}
.link:hover { opacity: 0.7; }

/* ---------- Decorative divider ---------- */
.rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--wine);
  margin: 1.2rem auto;
  opacity: 0.6;
}

/* ---------- Sticky nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.9rem var(--pad-x);
  background: rgba(236, 229, 212, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(110, 44, 42, 0.10), 0 4px 12px rgba(74, 30, 27, 0.05);
  transition: padding .3s ease, box-shadow .3s ease;
  color: var(--wine);
}
.nav.scrolled {
  padding: 0.5rem var(--pad-x);
  box-shadow: 0 1px 0 rgba(110, 44, 42, 0.14), 0 6px 14px rgba(74, 30, 27, 0.06);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-left {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.8rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.nav-left a { transition: opacity .2s; }
.nav-left a:hover { opacity: 0.7; }

.nav-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform .35s ease;
}
.nav-center img {
  display: block;
  height: 96px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(74, 30, 27, 0.30));
  transition: height .3s ease, filter .3s ease;
}
.nav.scrolled .nav-center img {
  height: 80px;
  filter: drop-shadow(0 1px 3px rgba(74, 30, 27, 0.20));
}
.nav-center:hover { transform: translateY(-1px); }

.nav-cta {
  justify-self: end;
  background: var(--wine);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--wine-deep); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-left { display: none; }
  .nav-center { justify-self: start; }
  .nav-center img { height: 80px; }
  .nav.scrolled .nav-center img { height: 72px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(110, 44, 42, 0.10), transparent 60%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 50%, var(--paper-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--pad-x) 4rem;
  overflow: hidden;
  text-align: center;
}

/* Wax seal monogram (SVG) */
.wax-seal {
  display: block;
  width: clamp(120px, 15vw, 175px);
  height: auto;
  margin: 0 auto 2.5rem;
  transform: rotate(-6deg) scale(0.6);
  transform-origin: center;
  opacity: 0;
  animation: sealDrop 1.1s cubic-bezier(.2,1.4,.4,1) 0.2s forwards;
}

.hero-date {
  font-family: var(--roman);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(110, 44, 42, 0.25);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 -1px 0 rgba(110, 44, 42, 0.12);
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero-script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--wine);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  margin: 0 0 0.4rem;
  opacity: 0;
  animation: fadeUp 1.1s ease 0.9s forwards;
}

.hero-rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--wine);
  margin: 1.5rem auto 1.8rem;
  opacity: 0;
  animation: ruleGrow 0.7s ease 1.2s forwards;
}

.hero-names {
  font-family: var(--display);
  font-weight: 500;
  color: var(--wine);
  font-size: clamp(1.6rem, 3.5vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: 0.005em;
  opacity: 0;
  animation: fadeUp 1.1s ease 1.3s forwards;
}
.hero-names .amp { font-style: italic; padding: 0 0.2em; }

.hero-place {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: 0.04em;
  margin: 0;
  opacity: 0;
  animation: fadeUp 1.1s ease 1.6s forwards;
}

.hero-coming {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 4rem 0 0;
  opacity: 0;
  animation: fadeUp 1s ease 1.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ruleGrow {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 0.7; transform: scaleX(1); }
}
@keyframes sealDrop {
  0%   { opacity: 0; transform: rotate(-30deg) scale(0.3); }
  60%  { opacity: 1; transform: rotate(-3deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}

/* ---------- Header photo (full viewport, fills the screen) ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: #000;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.hero-banner-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  /* Slight overscan so the section never shows its black background at the edges */
  transform: scale(1.12);
  opacity: 1;
  transition: transform 4s cubic-bezier(.2,.7,.2,1), opacity 1.2s ease;
}
.hero-banner.in .hero-banner-img {
  transform: scale(1.06);
  opacity: 1;
}
.hero-banner-fallback {
  display: none;
  padding: 4rem var(--pad-x);
  background: var(--paper-deep);
  color: var(--wine);
  font-family: var(--display);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  border-radius: 4px;
}
.hero-banner-fallback code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(110, 44, 42, 0.10);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-style: normal;
}
.hero-banner.no-photo .hero-banner-img { display: none; }
.hero-banner.no-photo .hero-banner-fallback { display: block; line-height: 1.5; }

/* ---------- Hero overlay (date, names, countdown) ---------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(10rem, 14vh, 14rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 7vh, 6rem);
  color: #F5EBD9;
  z-index: 2;
  line-height: 1.4;
  pointer-events: none;
  gap: 0;
}
.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.58) 35%,
      rgba(0, 0, 0, 0.58) 65%,
      rgba(0, 0, 0, 0.50) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-overlay-date {
  font-family: var(--roman);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: 0.06em;
  margin: 0;
  color: rgba(245, 235, 217, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 14px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(20px);
  animation: overlayUp 1.1s ease 0.4s forwards;
}

.hero-overlay-rule {
  display: block;
  width: 110px;
  height: 1px;
  background: rgba(245, 235, 217, 0.75);
  margin: clamp(1.6rem, 2.6vw, 2.4rem) auto;
  opacity: 0;
  transform: scaleX(0);
  animation: overlayRule 0.7s ease 0.85s forwards;
}

.hero-overlay-names {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  color: rgba(245, 235, 217, 0.96);
  margin: 0 0 0.9rem;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(20px);
  animation: overlayUp 1.1s ease 1.0s forwards;
}
.hero-overlay-names .amp { font-style: italic; padding: 0 0.2em; }

.hero-overlay-place {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: rgba(245, 235, 217, 0.85);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(20px);
  animation: overlayUp 1.1s ease 1.2s forwards;
}

.hero-overlay-coming {
  font-family: var(--display);
  font-style: italic;
  color: rgba(245, 235, 217, 0.70);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  letter-spacing: 0.05em;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(20px);
  animation: overlayUp 1.1s ease 1.4s forwards;
}

.hero-overlay-cd {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  opacity: 0;
  transform: translateY(20px);
  animation: overlayUp 1.1s ease 1.7s forwards;
}
.hero-overlay-label {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 235, 217, 0.78);
  margin: 0 0 1.4rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.hero-overlay .hero-overlay-countdown,
.hero-overlay-countdown.countdown {
  font-family: var(--roman);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  letter-spacing: 0.10em;
  color: rgba(245, 235, 217, 0.98);
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  font-weight: 500;
  text-align: center;
}
.hero-overlay-labels {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.6rem);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  letter-spacing: 0.18em;
  color: rgba(245, 235, 217, 0.65);
  text-transform: lowercase;
  margin: 1.4rem 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

@keyframes overlayUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes overlayRule {
  to { opacity: 0.75; transform: scaleX(1); }
}

/* ---------- Full photo (legacy) ---------- */
.full-photo { padding: 0; }
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #cbb7a3 0%, #8a6b5c 100%);
  overflow: hidden;
}
.photo-frame.wide { aspect-ratio: 16 / 8; }
.photo-frame.tall { aspect-ratio: 4 / 5; height: 100%; }
.photo-frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(74, 30, 27, 0.18), transparent 55%);
}
.photo-hint {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(236, 229, 212, 0.78);
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
  z-index: 1;
}
.photo-frame.has-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}
.photo-frame.has-photo::after,
.photo-frame.has-photo .photo-hint { display: none; }

/* ---------- Intro paragraph (scroll word reveal) ---------- */
.intro {
  padding: clamp(6rem, 14vw, 12rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hearts {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--wine);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}
.hearts .big { font-size: 1.4rem; }
.hearts span { transition: transform .4s ease; }
.intro:hover .hearts span { transform: translateY(-3px); }

.intro-text {
  max-width: 22ch;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.25;
  text-align: center;
  margin: 0;
  color: var(--muted);
}
.intro-text .word {
  display: inline-block;
  color: var(--wine);
  opacity: 0.18;
  transition: opacity .4s ease;
  white-space: pre;
}
.intro-text .word.in { opacity: 1; }

/* ---------- Section base ---------- */
.section {
  padding: var(--pad-y) 0;
  position: relative;
  z-index: 1;
}

.section-script {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--wine);
  margin: 0 0 0.4rem;
  line-height: 1;
}

/* ---------- Location ---------- */
.location .display { max-width: 22ch; }
.location .photo-frame { margin: 3rem 0; }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.cols-3 article { color: var(--ink); }
.cols-3 p { color: var(--ink); }
.cols-3 .sub { margin-top: 0; }

@media (max-width: 800px) {
  .cols-3 { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Dress Code ---------- */
.dresscode {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(110, 44, 42, 0.35), transparent 55%),
    linear-gradient(180deg, #2C100E 0%, #1F0908 100%);
  color: #E8D9C0;
}
.dresscode .eyebrow,
.dresscode .display { color: #E8D9C0; }
.dresscode .section-script { color: #C8A37A; }

.dc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: 3rem;
  align-items: stretch;
}
.dc-col {
  display: flex;
  flex-direction: column;
}
.dc-col .dc-card { margin-top: auto; }
.dc-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: #E8D9C0;
  margin: 0 0 1rem;
}
.dc-lead {
  color: #E8D9C0;
  font-size: 1.1rem;
  margin: 0 0 1.6rem;
  font-style: italic;
}
.dc-body-text {
  color: rgba(232, 217, 192, 0.85);
  font-size: 1.05rem;
  margin: 0 0 1.6rem;
  max-width: 40ch;
}
.dc-label {
  font-family: var(--roman);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: rgba(232, 217, 192, 0.55);
  margin: 2rem 0 1.4rem;
}

.dc-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 0.95rem;
  padding-bottom: 1.6rem;
}
.dc-swatches-reserved { margin-bottom: 1rem; }

.dc-swatch {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c, #444);
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease;
}
.dc-swatch:not(.is-reserved):not(.is-static):hover { transform: translateY(-1px); }
.dc-swatch.is-active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(232, 217, 192, 0.55);
  pointer-events: none;
}
.dc-swatch.is-reserved,
.dc-swatch.is-static { cursor: default; }
.dc-swatch.is-silver {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 3px, transparent 3px 6px),
    var(--c);
}
.dc-swatch-name {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--roman);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 217, 192, 0.7);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.dc-swatch.is-active .dc-swatch-name,
.dc-swatch.is-reserved .dc-swatch-name { opacity: 1; }

/* Preview card */
.dc-card {
  margin-top: 2.2rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(232, 217, 192, 0.12);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1.2fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
  min-height: 360px;
}
.dc-illus {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dc-illus svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}
.dc-illus-dress {
  color: #610D08;
  transition: color .45s ease;
}
.dc-card-meta { text-align: left; }
.dc-card-eyebrow {
  font-family: var(--roman);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: rgba(232, 217, 192, 0.55);
  margin: 0 0 1rem;
}
.dc-card-name {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: #E8D9C0;
  margin: 0 0 0.7rem;
  line-height: 1.1;
}
.dc-card-hex {
  font-family: var(--roman);
  letter-spacing: 0.12em;
  color: rgba(232, 217, 192, 0.55);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .dc-grid { grid-template-columns: 1fr; }
  .dc-card { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .dc-card-meta { text-align: center; }
}

/* ---------- Hotels ---------- */
.hotels { background: var(--paper-soft); }
.hotels .display { max-width: 20ch; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: 3rem;
}
.split-text p { color: var(--ink); }
.dot-list { padding-left: 1rem; }
.dot-list li::marker { color: var(--wine); }
.dot-list li { margin: 0.4rem 0; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- The Day (Timeline) ---------- */
.theday { background: var(--paper); }
.theday .container.narrow { padding-bottom: 4rem; }

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.timeline-track {
  position: absolute;
  left: calc(var(--pad-x) + 1rem);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--wine) 6%, var(--wine) 94%, transparent);
  opacity: 0.4;
}

.tl-item {
  position: relative;
  padding: 0 0 5rem 3rem;
}
.tl-marker {
  position: absolute;
  left: 0.65rem;
  top: 0.6rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 4px var(--paper);
  transform: scale(0);
  transition: transform .6s cubic-bezier(.2,1.5,.4,1);
}
.tl-item.in .tl-marker { transform: scale(1); }

.tl-content .time {
  font-family: var(--roman);
  color: var(--wine);
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}
.tl-content p { color: var(--ink); }
.tl-content .photo-frame {
  margin-top: 1.2rem;
  aspect-ratio: 16 / 9;
}

@media (max-width: 600px) {
  .tl-item { padding-left: 2rem; }
  .timeline-track { left: calc(var(--pad-x) + 0.5rem); }
  .tl-marker { left: 0.25rem; }
}

/* ---------- Gifts / Closing ---------- */
.gifts { background: var(--paper-soft); }
.closing { background: var(--paper); }

/* ---------- RSVP ---------- */
.rsvp { background: var(--paper-deep); }
.countdown {
  font-family: var(--roman);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--wine);
  text-align: center;
  margin: 0 0 1rem;
}
.countdown-labels {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin: 0 0 2.5rem;
}

.rsvp-form {
  display: grid;
  gap: 1.3rem;
  max-width: 540px;
  margin: 0 auto;
}
.rsvp-form label > span {
  display: block;
  font-family: var(--display);
  color: var(--wine);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.req { color: var(--wine); margin-left: 0.15rem; }

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(110, 44, 42, 0.35);
  padding: 0.6rem 0;
  font: inherit;
  font-family: var(--body);
  color: var(--ink);
  outline: none;
  transition: border-color .25s ease;
}
.rsvp-form input:focus,
.rsvp-form textarea:focus { border-color: var(--wine); }
.rsvp-form textarea { resize: vertical; }

.radio-row {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.radio-row legend {
  font-family: var(--display);
  font-style: italic;
  color: var(--wine);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.radio { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.radio input { accent-color: var(--wine); }

.btn-primary {
  margin-top: 0.8rem;
  justify-self: center;
  background: var(--wine);
  color: var(--paper);
  border: none;
  padding: 0.95rem 2.3rem;
  border-radius: 999px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 14px rgba(74, 30, 27, 0.20);
}
.btn-primary:hover {
  background: var(--wine-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(74, 30, 27, 0.28);
}

.thanks {
  text-align: center;
  color: var(--wine);
  margin: 1rem 0 0;
  font-family: var(--script);
  font-size: 1.8rem;
}

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.accordion {
  max-width: 720px;
  margin: 2.5rem auto 0;
  border-top: 1px solid rgba(110, 44, 42, 0.25);
}
.accordion details {
  border-bottom: 1px solid rgba(110, 44, 42, 0.25);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--wine);
  transition: color .2s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--wine-soft); }
.chev {
  font-family: var(--roman);
  font-size: 1.4rem;
  color: var(--wine);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  display: inline-block;
}
.accordion details[open] .chev { transform: rotate(45deg); }
.ans {
  overflow: hidden;
  color: var(--ink);
  padding: 0 0 1.4rem;
  animation: ansIn .35s ease;
}
.ans p { margin: 0; max-width: 60ch; }

@keyframes ansIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Closing ---------- */
.contact { color: var(--wine); font-size: 1.05rem; }
.contact a { border-bottom: 1px solid currentColor; }
.signature {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--wine);
  margin-top: 2rem;
  line-height: 1;
}

/* ---------- Footer ---------- */
.footer {
  padding: 4.5rem var(--pad-x) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--display);
  font-style: italic;
  background: #ffffff;
  border-top: 1px solid rgba(110, 44, 42, 0.14);
}
.footer::before {
  content: "";
  display: block;
  width: clamp(220px, 32vw, 360px);
  aspect-ratio: 2 / 1;
  margin: 0 auto 1.75rem;
  background-image: url("assets/footer-dogs.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.footer p {
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .intro-text .word { opacity: 1; }
}
