:root {
  --parchment: #f5efe4;
  --parchment-deep: #ebe2cf;
  --ivory: #fbf7ee;
  --moss: #5a6b4a;
  --moss-deep: #3d4a32;
  --moss-shadow: #2a3322;
  --candlelight: #c8a464;
  --candlelight-soft: #d9bd87;
  --candlelight-text: #8a6524;
  --ink: #2b261d;
  --ink-soft: #4a4438;
  --rose-fog: #c9a899;
  --shadow: rgba(43, 38, 29, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200, 164, 100, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(90, 107, 74, 0.05) 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { flex: 1; }

/* — NAV — */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: rgba(245, 239, 228, 0.85);
  border-bottom: 1px solid rgba(43, 38, 29, 0.08);
}
nav .monogram {
  font-family: 'Italiana', serif;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--moss-deep);
  text-decoration: none;
}
nav .monogram span { color: var(--candlelight-text); }
nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
nav ul a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
nav ul a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--candlelight);
  transition: width 0.4s ease;
}
nav ul a:hover, nav ul a.active { color: var(--moss-deep); }
nav ul a:hover::after, nav ul a.active::after { width: 100%; }

.menu-toggle { display: none; }

/* — PAGE HEADER (used on subpages) — */
.page-header {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 2;
}
.page-header .section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 1rem;
}
.page-header .section-label::before, .page-header .section-label::after {
  content: '✦';
  color: var(--candlelight-text);
  margin: 0 1.5rem;
  font-size: 0.7rem;
}
.page-header h1 {
  font-family: 'Italiana', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--moss-deep);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.page-header h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--candlelight-text);
}
.page-header .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* — HERO (home page only) — */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 4rem 2rem 4rem;
  min-height: calc(100vh - 80px);
  background:
    linear-gradient(180deg, rgba(245, 239, 228, 0.4) 0%, rgba(245, 239, 228, 0.85) 70%, var(--parchment) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e8dec7'/%3E%3Cstop offset='1' stop-color='%23d4c8a8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='600' fill='url(%23sky)'/%3E%3Cg opacity='0.4'%3E%3Cpath d='M0 400 Q200 380 400 400 T800 400 L800 600 L0 600 Z' fill='%235a6b4a'/%3E%3Cpath d='M0 450 Q200 430 400 450 T800 450 L800 600 L0 600 Z' fill='%233d4a32' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.moss-drape {
  position: absolute;
  top: 0;
  width: 180px;
  opacity: 0.25;
  pointer-events: none;
  height: 400px;
}
.moss-drape.left { left: -20px; }
.moss-drape.right { right: -20px; transform: scaleX(-1); }

.hero-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1.2s 1.6s ease forwards;
}
.hero-tag::before, .hero-tag::after {
  content: '';
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--candlelight);
  vertical-align: middle;
  margin: 0 1.5rem;
}
.hero h1 {
  font-family: 'Italiana', serif;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.95;
  color: var(--moss-deep);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1.4s 1.9s ease forwards;
}
.hero h1 .amp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--candlelight-text);
  font-size: 0.7em;
  vertical-align: 0.1em;
  margin: 0 0.1em;
}
.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin: 1.5rem 0 0.5rem;
  opacity: 0;
  animation: fadeUp 1.2s 2.2s ease forwards;
}
.hero-location {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp 1.2s 2.4s ease forwards;
}
.countdown {
  margin-top: 3.5rem;
  display: flex;
  gap: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  animation: fadeUp 1.2s 2.6s ease forwards;
}
.countdown-unit { text-align: center; min-width: 70px; }
.countdown-num {
  font-family: 'Italiana', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--moss-deep);
  line-height: 1;
  display: block;
}
.countdown-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  display: block;
}
.countdown-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--candlelight), transparent);
  align-self: stretch;
}

.hero-cta {
  margin-top: 3.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1.2s 2.9s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }

/* — SECTIONS — */
section {
  position: relative;
  padding: 5rem 2rem;
  z-index: 2;
}
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  text-align: center;
  margin-bottom: 1rem;
}
.section-label::before, .section-label::after {
  content: '✦';
  color: var(--candlelight-text);
  margin: 0 1.5rem;
  font-size: 0.7rem;
}
.section-title {
  font-family: 'Italiana', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--moss-deep);
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.05;
}
.section-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--candlelight-text);
}

/* — STORY PAGE — */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.story-image {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px var(--shadow);
}
.story-image::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}
.story-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 228, 0.4);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.story-text p {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}
.story-text p:first-of-type::first-letter {
  font-family: 'Italiana', serif;
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--candlelight-text);
}
.story-pull {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--moss-deep);
  text-align: center;
  margin: 4rem auto 0;
  padding: 0 2rem;
  max-width: 800px;
  position: relative;
}
.story-pull::before, .story-pull::after {
  content: '"';
  font-size: 3rem;
  color: var(--candlelight-text);
  font-family: 'Italiana', serif;
  line-height: 0;
  vertical-align: -0.3em;
}

/* Timeline */
.timeline {
  margin-top: 5rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--candlelight), transparent);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}
.timeline-dot {
  width: 14px; height: 14px;
  background: var(--candlelight);
  border-radius: 50%;
  border: 3px solid var(--parchment);
  box-shadow: 0 0 0 1px var(--candlelight);
  z-index: 1;
}
.timeline-content {
  background: var(--ivory);
  padding: 1.5rem 2rem;
  border: 1px solid rgba(200, 164, 100, 0.2);
}
.timeline-content h4 {
  font-family: 'Italiana', serif;
  font-size: 1.3rem;
  color: var(--moss-deep);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.timeline-content .date {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 0.6rem;
}
.timeline-content p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }
.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; }
.timeline-item:nth-child(odd) { text-align: right; }

/* — DETAILS PAGE — */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.detail-card {
  background: var(--ivory);
  padding: 3.5rem 3rem;
  border: 1px solid rgba(200, 164, 100, 0.2);
  position: relative;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px var(--shadow);
}
.detail-card::before {
  content: '';
  position: absolute;
  top: 1rem; left: 1rem; right: 1rem; bottom: 1rem;
  border: 1px solid rgba(200, 164, 100, 0.25);
  pointer-events: none;
}
.detail-card-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 1rem;
}
.detail-card h3 {
  font-family: 'Italiana', serif;
  font-size: 2rem;
  color: var(--moss-deep);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.detail-card .venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--moss);
  margin-bottom: 1.5rem;
}
.detail-card .venue-address {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.detail-card .venue-notes {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 164, 100, 0.3);
}
.detail-card .map-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--candlelight);
  padding-bottom: 4px;
  transition: color 0.3s;
}
.detail-card .map-link:hover { color: var(--candlelight-text); }

/* Schedule */
.schedule {
  margin-top: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: var(--ivory);
  padding: 3rem;
  border: 1px solid rgba(200, 164, 100, 0.25);
}
.schedule h3 {
  font-family: 'Italiana', serif;
  font-size: 1.8rem;
  color: var(--moss-deep);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.schedule-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(200, 164, 100, 0.2);
  align-items: baseline;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-time {
  font-family: 'Italiana', serif;
  font-size: 1.2rem;
  color: var(--candlelight-text);
}
.schedule-event h4 {
  font-family: 'Italiana', serif;
  font-size: 1.2rem;
  color: var(--moss-deep);
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.schedule-event p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Lodging */
.lodging {
  margin-top: 5rem;
}
.lodging-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.lodging-card {
  background: var(--ivory);
  padding: 2rem;
  border: 1px solid rgba(200, 164, 100, 0.2);
  text-align: center;
}
.lodging-card h4 {
  font-family: 'Italiana', serif;
  font-size: 1.3rem;
  color: var(--moss-deep);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.lodging-card .tier {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 1rem;
}
.lodging-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* — DRESS CODE PAGE — */
.dress-section {
  background: var(--moss-deep);
  color: var(--parchment);
  text-align: center;
  padding: 5rem 2rem;
}
.dress-section .section-title { color: var(--parchment); }
.dress-section .section-label { color: var(--candlelight-text); }
.dress-section .section-label::before, .dress-section .section-label::after { color: var(--candlelight-text); }
.dress-code-callout {
  font-family: 'Italiana', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--candlelight-text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.dress-code-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.85;
}
.palette {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}
.palette-swatch {
  width: 70px; height: 70px;
  border-radius: 50%;
  position: relative;
  transition: transform 0.4s;
}
.palette-swatch:hover { transform: scale(1.1) rotate(5deg); }
.palette-swatch::after {
  content: attr(data-color);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  white-space: nowrap;
}
.dress-tips {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(200, 164, 100, 0.3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  text-align: left;
}
.dress-tip-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 0.6rem;
}
.dress-tip-text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* — GALLERY PAGE — */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--parchment-deep);
  cursor: pointer;
  transition: transform 0.6s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 228, 0.3);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.gallery-placeholder.alt { background: linear-gradient(135deg, var(--rose-fog) 0%, #a8857a 100%); }
.gallery-placeholder.alt2 { background: linear-gradient(135deg, var(--candlelight) 0%, #8a6f3d 100%); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 38, 29, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ivory);
  font-size: 1rem;
}
.gallery-upload {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  border: 1px dashed rgba(90, 107, 74, 0.3);
  background: rgba(255,255,255,0.3);
}
.gallery-upload p {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* — BUTTONS — */
.btn-primary {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: var(--moss-deep);
  color: var(--ivory);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--candlelight);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--moss-deep);
  color: var(--moss-deep);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: var(--moss-deep);
  color: var(--parchment);
}

/* — REGISTRY PAGE — */
.registry-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.registry-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
  background: var(--ivory);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(200, 164, 100, 0.25);
}
.stat {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(200, 164, 100, 0.25);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Italiana', serif;
  font-size: 2.5rem;
  color: var(--moss-deep);
  line-height: 1;
  display: block;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  display: block;
}
.registry-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(200, 164, 100, 0.3);
  flex-wrap: wrap;
}
.registry-tab {
  background: none;
  border: none;
  padding: 1rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}
.registry-tab.active { color: var(--moss-deep); }
.registry-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--candlelight);
}
.registry-tab:hover { color: var(--moss-deep); }
.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.registry-item {
  background: var(--ivory);
  border: 1px solid rgba(200, 164, 100, 0.2);
  padding: 1.8rem;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.registry-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px var(--shadow);
  border-color: var(--candlelight);
}
.registry-item.purchased { opacity: 0.55; }
.registry-item.purchased .registry-thumb::after {
  content: '✓ Purchased with love';
  position: absolute;
  inset: 0;
  background: rgba(90, 107, 74, 0.85);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 1rem;
}
.registry-thumb {
  aspect-ratio: 1;
  background: var(--parchment);
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--moss);
}
.registry-store {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 0.4rem;
}
.registry-name {
  font-family: 'Italiana', serif;
  font-size: 1.2rem;
  color: var(--moss-deep);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.registry-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex-grow: 1;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.registry-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 164, 100, 0.2);
}
.registry-price {
  font-family: 'Italiana', serif;
  font-size: 1.3rem;
  color: var(--moss-deep);
}
.registry-btn {
  background: var(--moss-deep);
  color: var(--ivory);
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}
.registry-btn:hover { background: var(--candlelight); }
.registry-btn:disabled { background: var(--moss); cursor: default; }
.registry-stores {
  margin-top: 4rem;
  text-align: center;
}
.registry-stores h4 {
  font-family: 'Italiana', serif;
  font-size: 1.5rem;
  color: var(--moss-deep);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.store-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.store-link {
  padding: 1rem 2rem;
  background: var(--ivory);
  border: 1px solid rgba(200, 164, 100, 0.3);
  text-decoration: none;
  color: var(--moss-deep);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.store-link:hover {
  background: var(--moss-deep);
  color: var(--ivory);
  border-color: var(--moss-deep);
}

/* — RSVP PAGE — */
.rsvp-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: var(--ivory);
  border: 1px solid rgba(200, 164, 100, 0.3);
  position: relative;
}
.rsvp-card::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(200, 164, 100, 0.4);
  pointer-events: none;
}
.rsvp-intro {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--parchment);
  border: 1px solid rgba(200, 164, 100, 0.3);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--ink);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--candlelight);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.radio-option {
  flex: 1;
  min-width: 140px;
  position: relative;
}
.radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-option label {
  display: block;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(200, 164, 100, 0.3);
  background: var(--parchment);
  cursor: pointer;
  font-family: 'Italiana', serif;
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  transition: all 0.3s;
  text-transform: none;
}
.radio-option input:checked + label {
  background: var(--moss-deep);
  color: var(--ivory);
  border-color: var(--moss-deep);
}
.form-submit {
  text-align: center;
  margin-top: 2.5rem;
}
.rsvp-deadline {
  text-align: center;
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candlelight-text);
}

/* — FOOTER — */
footer {
  background: var(--moss-shadow);
  color: var(--parchment);
  padding: 4rem 2rem 2rem;
  text-align: center;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
footer .monogram-large {
  font-family: 'Italiana', serif;
  font-size: 2.5rem;
  color: var(--candlelight-text);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
footer .footer-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}
footer .footer-quote {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  line-height: 1.7;
  opacity: 0.7;
  font-size: 0.95rem;
}
footer .copyright {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.4;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 164, 100, 0.15);
}

/* — MOBILE — */
@media (max-width: 900px) {
  nav.site-nav { padding: 1rem 1.5rem; }
  nav ul {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--parchment);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.4s ease;
    border-bottom: 1px solid rgba(43, 38, 29, 0.1);
  }
  nav ul.open { transform: translateY(0); }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--moss-deep);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
  }
  section, .page-header { padding-left: 1.5rem; padding-right: 1.5rem; }
  .page-header { padding-top: 3rem; padding-bottom: 2rem; }
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .details-grid { grid-template-columns: 1fr; }
  .lodging-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item.wide { grid-column: span 2; }
  .registry-grid { grid-template-columns: 1fr; }
  .registry-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat { border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(200, 164, 100, 0.25); }
  .dress-tips { grid-template-columns: 1fr; }
  .moss-drape { display: none; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 40px 1fr; }
  .timeline-item:nth-child(odd) { text-align: left; }
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content { grid-column: 2; }
  .schedule-row { grid-template-columns: 80px 1fr; gap: 1rem; }
}

/* WEDDING_FRAME_TREATMENT */
/* ==== Collage frame treatment � Option 3 (Hybrid) ====
   Soft (ivory mat) + Bold (colored mat) alternating across gallery,
   plus a shared shadow. Applied to gallery items, story image, and
   .we-card-photo strips inserted by edit-ui.js. ==== */

.gallery-item,
.story-image,
.we-card-photo {
  position: relative;
  padding: 8px;
  border-width: 2px;
  border-style: solid;
  box-shadow:
    0 18px 36px -14px rgba(43, 38, 29, 0.28),
    0 4px 12px -2px rgba(43, 38, 29, 0.12);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.gallery-item::before,
.story-image::before,
.we-card-photo::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--candlelight);
  pointer-events: none;
  z-index: 2;
}

/* Default look (gold border + ivory mat) */
.gallery-item,
.story-image,
.we-card-photo {
  border-color: var(--candlelight);
  background: var(--ivory);
}

/* --- Variant classes the JS will sprinkle across slots --- */
.we-frame-gold      { border-color: var(--candlelight); background: var(--ivory); }
.we-frame-moss      { border-color: var(--moss-deep);   background: var(--ivory); }
.we-frame-rose      { border-color: var(--rose-deep, #a8857a); background: var(--ivory); }
.we-frame-moss-mat  { border-color: var(--candlelight); background: var(--moss-deep); }
.we-frame-moss-mat::before { border-color: rgba(251, 247, 238, 0.45); }
.we-frame-rose-mat  { border-color: var(--candlelight); background: var(--rose-fog); }
.we-frame-gold-mat  { border-color: var(--moss-deep);   background: var(--candlelight); }
.we-frame-gold-mat::before { border-color: var(--ivory); opacity: 0.6; }

/* Gentle lift on hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover {
    transform: translateY(-2px);
    box-shadow:
      0 26px 46px -14px rgba(43, 38, 29, 0.36),
      0 6px 16px -2px rgba(43, 38, 29, 0.16);
  }
}

/* The card-photo strip (detail / lodging cards) keeps some breathing room */
.we-card-photo { margin-bottom: 24px; }

/* WEDDING_THEN_AND_NOW */
/* ==== Then & Now — sits inline within the hero, just above the countdown ==== */
.then-and-now--inline {
  max-width: 1260px;
  margin: 40px auto 0;
  padding: 0 8px;
  text-align: center;
  position: relative;
}

.then-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 36px;
  margin-bottom: 22px;
  flex-wrap: nowrap;
}

/* The polaroid card — caption sits as a real flow child, not absolute */
.then-photo {
  position: relative;
  flex: 1 1 0;
  max-width: 598px;
  padding: 18px 18px 32px;
  background: var(--ivory);
  border: 1px solid var(--candlelight);
  box-shadow:
    0 22px 40px -14px rgba(43, 38, 29, 0.32),
    0 8px 18px -4px rgba(43, 38, 29, 0.18);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
}

/* The window — wider aspect (5:6) so it feels more landscape */
.then-photo-window {
  width: 100%;
  aspect-ratio: 5 / 6;
  background-color: var(--moss-deep);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border: 1px solid rgba(200, 164, 100, 0.6);
  filter: sepia(0.05) saturate(0.95);
  flex: 0 0 auto;
}
.then-photo-window[data-we-has-image="1"] {
  background-color: transparent;
}

/* Tilt the polaroids in opposite directions */
.then-photo--zach      { transform: rotate(-2.5deg); }
.then-photo--valentina { transform: rotate(2.5deg); }
.then-photo--zach:hover      { transform: rotate(-1deg) translateY(-3px); }
.then-photo--valentina:hover { transform: rotate(1deg)  translateY(-3px); }

/* Caption sits in real flow space below the photo — no overlap possible */
.then-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  margin-top: 10px;
}
.then-name {
  font-family: 'Italiana', serif;
  font-size: 1.95rem;
  color: var(--moss-deep);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.then-when {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--candlelight-text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.then-amp {
  font-family: 'Italiana', serif;
  font-size: clamp(2rem, 5vw, 4.15rem);
  color: var(--candlelight-text);
  font-style: italic;
  line-height: 1;
  padding: 0 14px;
  text-shadow: 0 2px 4px rgba(43, 38, 29, 0.15);
  flex: 0 0 auto;
  align-self: center;
}

.then-footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--moss-deep);
  opacity: 0.75;
  max-width: 480px;
  margin: 10px auto 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
  position: relative;
}
.then-footer-quote::before,
.then-footer-quote::after {
  content: '\2726';
  color: var(--candlelight-text);
  font-size: 0.5rem;
  vertical-align: middle;
  opacity: 0.8;
  margin: 0 6px;
}

/* Mobile: wider photos, tighter spacing */
@media (max-width: 700px) {
  /* Break out of the hero's 2rem padding to give cards real room */
  .then-and-now--inline {
    width: calc(100% + 1.7rem);
    margin-left: -0.85rem !important;
    margin-right: -0.85rem !important;
    max-width: none;
    margin: 20px auto 0;
    padding: 0 2px;
  }
  .then-grid { gap: 4px; margin-bottom: 10px; }
  .then-photo {
    max-width: none;
    padding: 8px 8px 12px;
  }
  .then-name { font-size: 1.15rem; }
  .then-when { font-size: 0.65rem; letter-spacing: 0.18em; }
  .then-amp { padding: 0; font-size: 1.4rem; }
  .then-caption { margin-top: 7px; }
  .then-footer-quote {
    font-size: 0.85rem;
    margin-top: 10px;
    padding: 0 2px;
  }
  .then-footer-quote::before,
  .then-footer-quote::after {
    margin: 0 4px;
    font-size: 0.45rem;
  }
}

/* Pull the countdown closer to the polaroids */
.then-and-now--inline + .countdown,
.then-and-now--inline ~ .countdown {
  margin-top: 18px;
}

/* WEDDING_ANIMATIONS_V3 */
/* ============================================
   Bigger, mobile-first, always-on choreography.
   Replaces V2. Mobile gets the same treatment as desktop.
   ============================================ */

/* Honor reduced-motion at the CSS level only — JS no longer gates everything */
@media (prefers-reduced-motion: reduce) {
  .we-load-veil,
  .we-moss-particle,
  .we-scroll-progress { display: none !important; }
  .we-reveal { opacity: 1 !important; transform: none !important; }
  .countdown-num.we-flip,
  .then-photo,
  .we-sway { animation: none !important; }
}

/* ---------- 1) Scroll progress bar (top of page) ---------- */
.we-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right,
    rgba(200, 164, 100, 0) 0%,
    var(--candlelight) 30%,
    var(--candlelight) 70%,
    rgba(200, 164, 100, 0) 100%);
  z-index: 9998;
  pointer-events: none;
  transition: width 0.15s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 0 8px rgba(200, 164, 100, 0.4);
}

/* ---------- 2) Page-load veil (bigger, more dramatic) ---------- */
.we-load-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: weVeilLift 1.6s 1.6s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.we-load-veil::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}
.we-load-mark {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  animation:
    weMarkIn 0.95s 0.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    weMarkOut 0.65s 2.0s ease forwards;
}
.we-load-mono {
  font-family: 'Italiana', serif;
  font-size: clamp(2.6rem, 9vw, 4rem);
  letter-spacing: 0.32em;
  color: var(--moss-deep);
  display: inline-block;
}
.we-load-mono .amp {
  color: var(--candlelight-text);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.85em;
  margin: 0 0.18em;
  vertical-align: 0.05em;
}
.we-load-rule {
  display: block;
  width: 0;
  height: 1px;
  margin: 1.2rem auto 0;
  background: var(--candlelight);
  animation: weRuleGrow 1.2s 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.we-load-tag {
  display: block;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: weFadeOnly 0.8s 0.9s ease forwards;
}
@keyframes weVeilLift {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); visibility: hidden; }
}
@keyframes weMarkIn {
  from { opacity: 0; transform: translateY(14px); letter-spacing: 0.5em; }
  to   { opacity: 1; transform: translateY(0);    letter-spacing: 0.32em; }
}
@keyframes weMarkOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(1.04); }
}
@keyframes weRuleGrow {
  from { width: 0; }
  to   { width: 140px; }
}
@keyframes weFadeOnly {
  to { opacity: 0.7; }
}

body.we-loading { overflow: hidden; }

/* ---------- 3) Hero word-by-word reveal (won't break long words) ---------- */
.hero h1 .we-word {
  display: inline-block;
  white-space: nowrap;       /* never break a word mid-character */
  opacity: 0;
  transform: translateY(40px);
  animation: weWordIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  /* keep the italic amp styling working when it has .we-word */
}
@keyframes weWordIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Override the existing hero h1 animation since words do their own */
.hero h1.we-words-active {
  opacity: 1 !important;
  animation: none !important;
}

/* ---------- 4) Subpage header choreography (bigger) ---------- */
.page-header .section-label,
.page-header h1,
.page-header .subtitle {
  opacity: 0;
  animation: fadeUpBig 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.page-header .section-label { animation-delay: 0.7s; }
.page-header h1              { animation-delay: 0.9s; animation-duration: 1.5s; }
.page-header .subtitle       { animation-delay: 1.2s; }

@keyframes fadeUpBig {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.page-header::after {
  content: '';
  display: block;
  margin: 1.8rem auto 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--candlelight), transparent);
  animation: weDrawRule 1.4s 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes weDrawRule {
  to { width: 260px; }
}

/* ---------- 5) Scroll-triggered reveals (BIGGER movement) ---------- */
.we-reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.we-reveal.we-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.we-reveal.we-reveal--left  { transform: translateY(32px) translateX(-40px) scale(0.96); }
.we-reveal.we-reveal--right { transform: translateY(32px) translateX(40px) scale(0.96); }
.we-reveal.we-reveal--left.we-in,
.we-reveal.we-reveal--right.we-in { transform: translate(0, 0) scale(1); }

.we-stagger > .we-reveal {
  transition-delay: calc(var(--i, 0) * 140ms);
}

/* Cards lift higher on reveal */
.we-reveal.detail-card,
.we-reveal.lodging-card,
.we-reveal.registry-item,
.we-reveal.timeline-content {
  transform: translateY(60px) scale(0.94);
}
.we-reveal.detail-card.we-in,
.we-reveal.lodging-card.we-in,
.we-reveal.registry-item.we-in,
.we-reveal.timeline-content.we-in {
  transform: translateY(0) scale(1);
}

/* ---------- 6) Candlelight shimmer (stronger pulse) ---------- */
@keyframes weShimmer {
  0%, 100% { opacity: 1;    filter: brightness(1); }
  50%      { opacity: 0.65; filter: brightness(1.25); }
}
.section-label,
.page-header .section-label,
.detail-card-time,
.schedule-time,
.lodging-card .tier,
.registry-store,
.rsvp-deadline,
.then-when {
  animation: weShimmer 4.5s ease-in-out infinite;
}
.detail-card:nth-child(even) .detail-card-time { animation-delay: -2.2s; }
.lodging-card:nth-child(2) .tier { animation-delay: -1.5s; }
.lodging-card:nth-child(3) .tier { animation-delay: -3s; }
.schedule-row:nth-child(odd) .schedule-time { animation-delay: -2.8s; }
.schedule-row:nth-child(3n) .schedule-time { animation-delay: -1.2s; }

@keyframes weDividerBreathe {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.countdown-divider,
.timeline::before {
  animation: weDividerBreathe 5s ease-in-out infinite;
}

/* ---------- 7) Countdown digit reveal — gold wash sweep ---------- */
.countdown-num {
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.countdown-num::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 164, 100, 0.35) 45%,
    rgba(200, 164, 100, 0.55) 50%,
    rgba(200, 164, 100, 0.35) 55%,
    transparent 100%
  );
  transform: translateX(-110%);
  pointer-events: none;
}
.countdown-num.we-flip {
  animation: weDigitDrop 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}
.countdown-num.we-flip::after {
  animation: weDigitSweep 0.85s cubic-bezier(0.33, 1, 0.68, 1);
}
@keyframes weDigitDrop {
  0%   { transform: translateY(-12px) scale(0.85); opacity: 0; filter: blur(1px); }
  40%  { opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes weDigitSweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

/* The seconds digit gets a continuous gentle pulse so it always feels alive */
#cd-secs {
  animation: weSecondsPulse 1s ease-in-out infinite;
}
@keyframes weSecondsPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* ---------- 8) Then & Now polaroids — entrance + continuous sway ---------- */
.then-photo {
  opacity: 0;
}
.then-photo--zach {
  animation:
    weTiltDropZach 1.6s 1.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    weSwayZach 7s 3.5s ease-in-out infinite;
}
.then-photo--valentina {
  animation:
    weTiltDropVal 1.6s 1.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    weSwayVal 7.5s 3.7s ease-in-out infinite;
}
.then-amp {
  opacity: 0;
  animation:
    weFadeAmp 1.1s 2.2s ease forwards,
    weAmpGlow 4s 4s ease-in-out infinite;
}
.then-footer-quote {
  opacity: 0;
  animation: weFadeOnly 1.1s 2.5s ease forwards;
}
@keyframes weTiltDropZach {
  0%   { opacity: 0; transform: translateY(-50px) rotate(0deg)    scale(0.9); }
  60%  { opacity: 1; transform: translateY(8px)   rotate(-3.6deg) scale(1.02); }
  100% { opacity: 1; transform: translateY(0)     rotate(-2.5deg) scale(1); }
}
@keyframes weTiltDropVal {
  0%   { opacity: 0; transform: translateY(-50px) rotate(0deg)   scale(0.9); }
  60%  { opacity: 1; transform: translateY(8px)   rotate(3.6deg) scale(1.02); }
  100% { opacity: 1; transform: translateY(0)     rotate(2.5deg) scale(1); }
}
@keyframes weSwayZach {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50%      { transform: translateY(-4px) rotate(-2.0deg); }
}
@keyframes weSwayVal {
  0%, 100% { transform: translateY(0) rotate(2.5deg); }
  50%      { transform: translateY(-4px) rotate(2.0deg); }
}
@keyframes weFadeAmp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes weAmpGlow {
  0%, 100% { text-shadow: 0 2px 4px rgba(43, 38, 29, 0.15); filter: brightness(1); }
  50%      { text-shadow: 0 2px 12px rgba(200, 164, 100, 0.5), 0 2px 4px rgba(43, 38, 29, 0.15); filter: brightness(1.15); }
}

/* ---------- 9) Nav fade-in on page load ---------- */
nav.site-nav {
  opacity: 0;
  animation: weFadeNav 0.9s 1.0s ease forwards;
}
@keyframes weFadeNav {
  to { opacity: 1; }
}

/* ---------- 10) Drifting Spanish moss tendrils (hero only) ---------- */
/* SVG tendrils that drift slowly down through the hero with gentle sway.
   Mobile gets fewer tendrils. Honors prefers-reduced-motion. */
.we-moss-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.we-moss-tendril {
  position: absolute;
  top: -180px;
  left: 0;
  width: 80px;
  height: 180px;
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: weMossDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
}
.we-moss-tendril-inner {
  width: 100%;
  height: 100%;
  animation-name: weMossSway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  transform-origin: 50% 0;
}
.we-moss-tendril svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.we-moss-tendril--back  { filter: blur(1.4px); opacity: 0; }
.we-moss-tendril--mid   { filter: blur(0.6px); opacity: 0; }
.we-moss-tendril--front { filter: blur(0px);   opacity: 0; }

@keyframes weMossDrift {
  0%   { transform: translate3d(var(--mx, 0px), -10vh, 0); opacity: 0; }
  8%   { opacity: var(--mo, 0.5); }
  92%  { opacity: var(--mo, 0.5); }
  100% { transform: translate3d(var(--mx, 0px), 115vh, 0); opacity: 0; }
}
@keyframes weMossSway {
  from { transform: translateX(-6px) rotate(-1.2deg); }
  to   { transform: translateX(6px)  rotate(1.2deg);  }
}

.hero { overflow: hidden; position: relative; }

@media (max-width: 700px) {
  .we-moss-tendril { width: 56px; height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .we-moss-layer { display: none !important; }
}

/* ---------- 11) Card hover/touch lift ---------- */
.detail-card,
.lodging-card,
.registry-item,
.timeline-content {
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.4s ease;
}
.detail-card:hover,
.detail-card.we-touch,
.lodging-card:hover,
.lodging-card.we-touch,
.registry-item:hover,
.registry-item.we-touch,
.timeline-content:hover,
.timeline-content.we-touch {
  transform: translateY(-6px);
  box-shadow:
    0 36px 70px -28px rgba(43, 38, 29, 0.4),
    0 8px 20px -4px rgba(43, 38, 29, 0.18);
  border-color: var(--candlelight);
}

/* ---------- 12) Button shimmer-pulse on hover ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 164, 100, 0.5) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}
.btn-primary:hover::after,
.btn-primary.we-touch::after {
  animation: weBtnSheen 0.9s ease;
}
@keyframes weBtnSheen {
  to { left: 130%; }
}

/* ---------- 13) Gallery image entrance — gentle scale + fade ---------- */
.gallery-item.we-reveal {
  transform: translateY(40px) scale(0.92);
  filter: blur(4px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-item.we-reveal.we-in {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ---------- 14) Footer quote subtle breathing ---------- */
footer .footer-quote {
  animation: weFooterBreathe 8s ease-in-out infinite;
}
@keyframes weFooterBreathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 0.95; }
}

/* ---------- 15) Mobile-specific tuning ---------- */
@media (max-width: 700px) {
  /* Bigger reveal distance on mobile so it's actually noticeable */
  .we-reveal { transform: translateY(60px) scale(0.94); }
  .we-reveal.detail-card,
  .we-reveal.lodging-card,
  .we-reveal.registry-item,
  .we-reveal.timeline-content { transform: translateY(70px) scale(0.92); }
  .we-reveal.we-reveal--left  { transform: translateY(40px) translateX(-30px) scale(0.94); }
  .we-reveal.we-reveal--right { transform: translateY(40px) translateX(30px) scale(0.94); }

  /* Bump countdown digit drop for visibility */
  @keyframes weDigitDrop {
    0%   { transform: translateY(-18px) scale(0.7); opacity: 0; filter: blur(2px); }
    40%  { opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
  }

  /* Touch devices get a tap-feedback equivalent of hover */
  .palette-swatch:active { transform: scale(1.15) rotate(8deg); }
  .btn-primary:active { transform: scale(0.97); }
  .btn-secondary:active { transform: scale(0.97); }
}


/* WEDDING_ANIMATIONS_V4 - high-quality polish layer
   Adds:
   - Page crossfade overlay
   - Lazy blur-up for gallery + story images
   - Scroll-driven gold dividers between sections
   - Cursor glow (desktop only)
   - Subtle parallax on photos (desktop only)
   ============================================ */

/* ---------- 16) Page crossfade overlay ---------- */
.we-crossfade {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--parchment);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.we-crossfade.we-fade-out {
  opacity: 1;
  pointer-events: all;
}
.we-crossfade::after {
  /* same grain texture as body */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- 17) Lazy blur-up for images ---------- */
/* Images get this class on initial reveal, transition to sharp */
.gallery-item img,
.story-image img,
.we-card-photo img,
.then-photo-window {
  transition:
    filter 1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.we-blur-up {
  filter: blur(14px) brightness(1.05);
  opacity: 0.6;
}
.we-blur-up.we-blur-clear {
  filter: blur(0) brightness(1);
  opacity: 1;
}

/* ---------- 18) Scroll-driven section dividers ---------- */
/* These are inserted via JS between major sections.
   The --we-draw CSS variable is updated based on scroll position. */
.we-section-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin: 1rem auto;
  position: relative;
  pointer-events: none;
  text-align: center;
}
.we-section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(var(--we-draw, 0));
  transform-origin: center;
  width: 220px;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--candlelight) 50%, transparent 100%);
  transition: transform 0.1s linear;
}
.we-section-divider::after {
  content: '\2726';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--we-draw, 0));
  color: var(--candlelight-text);
  font-size: 0.7rem;
  opacity: 0.85;
  text-shadow: 0 0 8px rgba(200, 164, 100, 0.4);
  transition: transform 0.1s linear;
}

/* ---------- 19) Cursor glow (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .we-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(
      circle,
      rgba(200, 164, 100, 0.10) 0%,
      rgba(200, 164, 100, 0.05) 30%,
      transparent 70%
    );
    transform: translate(-50%, -50%);
    will-change: transform;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  .we-cursor-glow.we-active {
    opacity: 1;
  }
}
/* Hide entirely on touch */
@media (hover: none), (pointer: coarse) {
  .we-cursor-glow { display: none !important; }
}

/* ---------- 20) Parallax photos (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .we-parallax {
    will-change: transform;
    /* Y offset set by JS via --we-pxy */
    transform: translateY(var(--we-pxy, 0px));
    transition: transform 0.1s linear;
  }
}
@media (hover: none), (pointer: coarse) {
  .we-parallax { transform: none !important; }
}

/* ---------- 21) Reduced-motion overrides for new bits ---------- */
@media (prefers-reduced-motion: reduce) {
  .we-crossfade,
  .we-cursor-glow { display: none !important; }
  .we-blur-up { filter: none !important; opacity: 1 !important; }
  .we-section-divider::before { transform: translate(-50%, -50%) scaleX(1) !important; }
  .we-section-divider::after  { transform: translate(-50%, -50%) scale(1)  !important; }
  .we-parallax { transform: none !important; }
}


/* ---------- Story/subpage header tightening ---------- */
/* The injected .we-section-divider directly after .page-header duplicates
   the .page-header::after gold rule. Two rules ~100px apart read as a mistake. */
.page-header + .we-section-divider {
  display: none;
}

/* Reclaim the dead space between header and first section */
.page-header {
  padding-bottom: 2rem;
}

main > .page-header + section,
main > .page-header + .we-section-divider + section {
  padding-top: 2.5rem;
}

@media (max-width: 768px) {
  .page-header {
    padding-bottom: 1.5rem;
  }
  main > .page-header + section,
  main > .page-header + .we-section-divider + section {
    padding-top: 2rem;
  }
}


/* ---------- .we-card-photo geometry ----------
   These properties previously lived in the style block injected by
   edit-ui.js, which was removed 2026-09-01 when content was baked into
   the HTML. styles.css already supplies the frame (border/mat/shadow);
   without the sizing below the element collapses to a thin strip. */
.we-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Keep the photo inside the 8px mat so the ivory frame reads like the
     gallery items, where the <img> is a padded child rather than a bg. */
  background-origin: content-box;
  background-clip: content-box;
}

@media (max-width: 700px) {
  .we-card-photo { aspect-ratio: 4 / 3; }
}


/* ---------- Gold text legibility ----------
   Candlelight gold (#8a6524) on ivory is ~4.9:1, which is fine. What was
   undermining it:
     1. weShimmer dipped opacity to 0.65, dropping effective contrast to ~2.6
        on a 4.5s loop. Floor raised so the shimmer glows instead of fading.
     2. .schedule-time used Italiana -- a hairline display face with no bold
        weight -- at 19px, where its strokes are ~1px.
   Gold metadata now uses Cinzel: an engraved Roman capital face with real
   600/700 weights, so it reads as fancier than Inter without going hairline.
   Colour is unchanged. */

@keyframes weShimmer {
  0%, 100% { opacity: 1;    filter: brightness(1); }
  50%      { opacity: 0.92; filter: brightness(1.12); }
}

/* All gold "metadata" labels share one voice */
.schedule-time,
.section-label,
.page-header .section-label,
.detail-card-time,
.lodging-card .tier,
.registry-store,
.rsvp-deadline,
.then-when {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 600;
  text-transform: uppercase;
}

.schedule-time {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--candlelight-text);
  line-height: 1.55;
}

/* Cinzel runs optically small and tracks wide; nudge the tiny labels up
   and pull their letter-spacing in so they don't fall apart. */
.section-label,
.page-header .section-label {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
}
.detail-card-time { font-size: 0.72rem; letter-spacing: 0.22em; }
.lodging-card .tier { font-size: 0.66rem; letter-spacing: 0.18em; }
.registry-store,
.rsvp-deadline,
.then-when { letter-spacing: 0.16em; }

@media (max-width: 700px) {
  .schedule-time { font-size: 0.8rem; letter-spacing: 0.07em; }
  .section-label, .page-header .section-label { letter-spacing: 0.2em; }
}


/* ---------- Gallery grid backfill ----------
   .gallery-item.wide spans 2 columns and .tall spans 2 rows. With the default
   sparse placement algorithm, a wide item that reaches the last column skips to
   the next row and the leftover cell is never filled, leaving holes that read as
   missing photos. `dense` lets later smaller items backfill those gaps. */
.gallery-grid {
  grid-auto-flow: dense;
}


/* ---------- Hotel cards ----------
   .lodging sat in the right column of .details-grid (599px), so three cards
   got ~184px each and hotel names wrapped to four lines. The section now
   spans the full grid width, text is left-aligned, cards are equal height,
   and the Book Now button is pinned to the bottom so the row lines up. */

.lodging {
  grid-column: 1 / -1;
}

.lodging-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.lodging-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.25rem 1.25rem 1.5rem;
}

.lodging-card .we-card-photo {
  margin-bottom: 1.1rem;
}

.lodging-card .tier {
  margin-bottom: 0.5rem;
}

.lodging-card h4 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  /* names are short enough to sit on one line at this width */
  hyphens: none;
}

.lodging-card p {
  flex: 1 1 auto;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.lodging-card .btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .lodging-grid { grid-template-columns: 1fr; }
  .lodging-card h4 { font-size: 1.35rem; }
}


/* ---------- Details page: 3-across top row ----------
   Ceremony and reception sit side by side and size to their own content;
   the schedule runs underneath as a full-width horizontal timeline. The
   earlier 3-across version stretched both cards to the schedule's height,
   leaving a large empty block under each. */

.details-grid {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;          /* stop cards stretching to row height */
}

.detail-card {
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.detail-card h3 {
  font-size: 1.9rem;
  line-height: 1.15;
}

/* ---- Schedule as a horizontal timeline ---- */
.schedule {
  grid-column: 1 / -1;
  margin: 3.5rem 0 0;
  max-width: none;
  padding: 2rem 1.75rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 0;
  row-gap: 0;
}

.schedule h3 {
  grid-column: 1 / -1;
  font-size: 1.6rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

/* Each stop becomes a column; the shared top border draws the timeline rule
   and the dot marks the point on it. */
.schedule-row {
  display: block;
  border-bottom: none;
  border-top: 1px solid rgba(200, 164, 100, 0.45);
  padding: 1.5rem 0.85rem 0.25rem;
  position: relative;
}

.schedule-row::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0.85rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--candlelight);
  box-shadow: 0 0 0 3px var(--ivory);
}

.schedule-time {
  display: block;
  margin-bottom: 0.35rem;
}

.schedule-event h4 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.schedule-event p {
  font-size: 0.85rem;
  line-height: 1.45;
}

.lodging {
  grid-column: 1 / -1;
  margin-top: 4rem;
}

/* Six across gets cramped before the cards do — step down separately. */
@media (max-width: 1150px) {
  .schedule { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .details-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .schedule { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
  .lodging { margin-top: 2.5rem; }
}

@media (max-width: 560px) {
  .schedule {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
  }
  .schedule-row {
    border-top: none;
    border-bottom: 1px solid rgba(200, 164, 100, 0.2);
    padding: 1rem 0 1rem 1.25rem;
  }
  .schedule-row:last-child { border-bottom: none; }
  .schedule-row::before { top: 1.45rem; left: 0; }
}


/* ---------- Schedule: day headings ----------
   Welcome Drinks is Thursday; everything else is Friday. On the wide
   timeline the two days are separated by a vertical rule, so the split is
   visible at a glance rather than hidden in a "Thu ·" time prefix. */

.schedule-day {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--moss-deep);
  padding: 0 0.85rem 0.6rem;
  align-self: end;
}

.schedule-day span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--candlelight-text);
  margin-top: 0.15rem;
}

/* Explicit placement: DOM order is h3, Thu, Welcome Drinks, Fri, then the
   five Friday stops. Auto-flow can't produce this shape on its own. */
@media (min-width: 1151px) {
  .schedule > *:nth-child(2) { grid-column: 1 / 2;  grid-row: 2; }   /* Thursday */
  .schedule > *:nth-child(3) { grid-column: 1 / 2;  grid-row: 3; }   /* Welcome Drinks */
  .schedule > *:nth-child(4) { grid-column: 2 / -1; grid-row: 2; }   /* Friday */
  .schedule > *:nth-child(5) { grid-column: 2;      grid-row: 3; }
  .schedule > *:nth-child(6) { grid-column: 3;      grid-row: 3; }
  .schedule > *:nth-child(7) { grid-column: 4;      grid-row: 3; }
  .schedule > *:nth-child(8) { grid-column: 5;      grid-row: 3; }
  .schedule > *:nth-child(9) { grid-column: 6;      grid-row: 3; }

  /* vertical rule dividing the two days */
  .schedule > *:nth-child(4),
  .schedule > *:nth-child(5) {
    border-left: 1px solid rgba(200, 164, 100, 0.45);
  }
  .schedule > *:nth-child(4) { padding-left: 1.35rem; }
  .schedule > *:nth-child(5) { padding-left: 1.35rem; }
  .schedule > *:nth-child(5)::before { left: 1.35rem; }
}

/* Narrower: headings become full-width bands and rows flow normally. */
@media (max-width: 1150px) {
  .schedule-day {
    grid-column: 1 / -1;
    padding: 1.5rem 0 0.5rem;
    border-top: 1px solid rgba(200, 164, 100, 0.35);
  }
  .schedule-day--thu { padding-top: 0; border-top: none; }
  .schedule-day span { display: inline; margin-left: 0.6rem; }
}


/* ---------- Room block note ----------
   Sits inside the Santa Clara card between the description and the button.
   Set apart with a gold rule and small caps rather than a loud badge, so it
   reads as a quiet aside rather than a promotional banner. */
.lodging-note {
  position: relative;
  margin: 0.35rem 0 1.25rem;
  padding: 0.85rem 0 0.15rem 0.95rem;
  border-left: 2px solid var(--candlelight);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 0 0 auto;
}

.lodging-note::before {
  content: 'Coming soon';
  display: block;
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--candlelight-text);
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .lodging-note { font-size: 0.92rem; padding-left: 0.8rem; }
}


/* ---------- Details page: Getting There ----------
   Four nonstop gateways don't fill a card grid, so the routes read as a list
   with the airport code as a left rail - same rhythm as the schedule rows,
   but its own class so it stays clear of the horizontal-timeline overrides. */

.travel {
  grid-column: 1 / -1;
  margin-top: 5rem;
}

.route-panel {
  background: var(--ivory);
  border: 1px solid rgba(200, 164, 100, 0.25);
  padding: 2.5rem 3rem;
  margin-top: 2rem;
}

.route-panel h3 {
  font-family: 'Italiana', serif;
  font-size: 1.5rem;
  color: var(--moss-deep);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
}

.route-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(200, 164, 100, 0.2);
  align-items: baseline;
}

.route-row:last-child { border-bottom: none; }

.route-code {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--candlelight-text);
}

.route-detail h4 {
  font-family: 'Italiana', serif;
  font-size: 1.2rem;
  color: var(--moss-deep);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.route-detail p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
}

/* The United note is a correction, not a recommendation - set apart from the
   list so nobody skims it as a fifth option. */
.route-footnote {
  margin-top: 1.9rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(200, 164, 100, 0.3);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

.travel-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.travel-note {
  background: var(--ivory);
  border: 1px solid rgba(200, 164, 100, 0.2);
  padding: 1.85rem 2rem;
}

.travel-note-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--candlelight-text);
  margin-bottom: 0.85rem;
}

.travel-note h4 {
  font-family: 'Italiana', serif;
  font-size: 1.25rem;
  color: var(--moss-deep);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.travel-note p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.travel-note p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .travel { margin-top: 3rem; }
  .travel-notes { grid-template-columns: 1fr; }
  .route-panel { padding: 1.9rem 1.5rem; }
  .route-row { grid-template-columns: 62px 1fr; gap: 1.1rem; }
  .route-code { font-size: 0.92rem; letter-spacing: 0.14em; }
  .route-detail h4 { font-size: 1.1rem; }
  .travel-note { padding: 1.5rem 1.35rem; }
}
