* {
  box-sizing: border-box;
}

:root {
  --section-bg-a: #fcfcfa; /* base / colour X (intro + countdown) */
  --section-bg-b: #f3f0ea; /* alternate / colour Y (schedule) */
}

body {
  margin: 0;
  /* use Quattrocento for body and general text; Pinyon remains for decorative headings */
  font-family: "Quattrocento", Georgia, serif;
  background: var(--section-bg-a);
  color: #222;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scrolling caused by full-bleed elements */
html, body { overflow-x: hidden; }

/* Ensure headings and body text use Quattrocento unless overridden */
h2, p, li, a, .label, .section { font-family: "Quattrocento", Georgia, serif; }

/* Match nav link styling for body links */

main a, .section a {
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
main a:hover, .section a:hover {
  color: #000;
  border-color: rgba(0,0,0,0.12);
}

/* Section headings should match nav weight and spacing */
h2 {
  font-weight: 700;
  font-size: 1.6rem;
  color: #111;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Make body paragraphs and list items visually aligned with nav */
.section p, .section li {
  color: #333;
  font-size: 1rem;
}

/* Slightly subdue small meta text */
.section small, .hero-footer { color: rgba(0,0,0,0.65); }


.pinyon-script-regular {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-style: normal;
}


.container {
  /* content wrapper: not full-height so sections can flow normally */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}

.quattrocento-regular {
  font-family: "Quattrocento", serif;
  font-weight: 400;
  font-style: normal;
}

.quattrocento-bold {
  font-family: "Quattrocento", serif;
  font-weight: 700;
  font-style: normal;
}


/* Nav overlayed on hero: absolutely centered with no background */
.site-nav.top-nav {
  position: absolute;
  left: 50%;
  top: 28px;
  /* start slightly higher so reveal can slide down */
  transform: translate(-50%, -12px);
  z-index: 1100;
  width: max-content; /* shrink to content so it centers correctly */
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  height: 48px; /* anchor a consistent height for vertical centering */
  opacity: 0; /* hidden until .visible */
  visibility: hidden;
  transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}
/* When revealed, nav fades in (white text over hero) */
.site-nav.top-nav.visible { border-radius: 8px; opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.site-nav.top-nav .nav-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center !important;
  gap: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease;
  background: transparent;
  width: auto;
  position: relative;
  height: 44px; /* ensure links can center vertically */
}
.site-nav.top-nav.visible .nav-inner { opacity: 1; transform: translateY(0); transition-delay: 120ms; }

/* animated pill background for the scrolled state */
.site-nav.top-nav .nav-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.98);
  transform: scaleX(0.85) scaleY(0.9);
  opacity: 0;
  transition: transform 360ms cubic-bezier(.2,.9,.2,1), opacity 280ms ease, box-shadow 260ms ease;
  z-index: -1;
  pointer-events: none;
}

/* top links should be white when overlaying the hero */
.site-nav.top-nav .top-link { color: rgba(255,255,255,0.95); display: inline-flex; align-items: center; height: 100%; padding: 0; transition: color 220ms ease, transform 200ms ease; }
.site-nav.top-nav .top-links li:not(:last-child) .top-link::after { color: rgba(255,255,255,0.6); }

/* When page scrolls, make nav fixed at top (sticky) and show white background + black text */
.site-nav.scrolled {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  backdrop-filter: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
/* show a white pill behind the links when scrolled */
.site-nav.scrolled .nav-inner {
  padding: 8px 16px;
  border-radius: 8px;
  opacity: 1 !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.site-nav.scrolled .nav-inner::before {
  transform: scaleX(1) scaleY(1);
  opacity: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.site-nav.scrolled .top-link { color: #222 !important; }
.site-nav.scrolled .top-links li:not(:last-child) .top-link::after { color: rgba(0,0,0,0.35) !important; }

@media (max-width: 760px) {
  .site-nav.top-nav { max-width: 400px; }
  .site-nav.top-nav .nav-inner { justify-content: center !important; }
  .site-nav.top-nav .top-links { gap: 0; flex-wrap: wrap; justify-content: center; width: 100%; }
  .site-nav.top-nav .top-link { font-size: 0.9rem; }
  .site-nav.top-nav .top-links li:not(:last-child) .top-link::after { margin: 0 4px; }
}
.site-nav.top-nav .top-links { list-style:none; margin:0; padding:0; display:flex; gap:0; align-items:center; }
.site-nav.top-nav .top-link {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-nav.top-nav .top-links li:not(:last-child) .top-link::after {
  content: "|";
  display: inline-block;
  margin: 0 6px;
  color: inherit;
  line-height: 1;
  vertical-align: middle;
}
.site-nav.top-nav .top-link:hover, .site-nav.top-nav .top-link:focus { /* keep white on overlay */ color: rgba(255,255,255,0.95); transform: translateY(-1px); }
/* when scrolled show black links and active state */
.site-nav.scrolled .top-link:hover, .site-nav.scrolled .top-link:focus, .site-nav.scrolled .top-link.active { color: #000; font-weight:700; transform: translateY(-1px); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: transparent; /* ensure no white background */
}
.brand {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-links a:hover {
  background: rgba(0,0,0,0.04);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto; /* remove white spacers between sections */
  text-align: center;
  padding: 48px 20px;
  box-sizing: border-box;
  background: transparent;
  position: relative; /* for ::before full-bleed background */
  z-index: 1;
}

/* Remove unwanted top margin for the intro heading and set responsive size */
#intro h1 { margin-top: 0; margin-block-start: 0; font-size: clamp(1.6rem, 4.8vw, 3.5rem); }

/* Decorative heart divider */
.decor-wrap { display:flex; flex-direction:column; align-items:center; gap:8px; }
.decor-divider { display:flex; align-items:center; width:100%; max-width:640px; gap:12px; padding:8px 0; }
.decor-divider::before, .decor-divider::after { content: ''; flex: 1; height: 1px; background: #222222; }
.decor-divider .heart-svg { width: 56px; height: 28px; display:block; color: #111; }
.decor-divider .heart-svg path { transform: none; }

@media (max-width: 760px) {
  .decor-divider { max-width: 86%; }
  .decor-divider .heart-svg { width: 44px; height: 22px; }
}
/* create a full-bleed background behind each section using ::before */

.section::before {
  content: '';
  position: absolute;
  /* extend full-bleed to viewport while staying inside container positioning
     use negative viewport margins to avoid 100vw (which can create scrollbars) */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  top: 0;
  bottom: 0;
  z-index: -1;
}

/* Use explicit classes to alternate backgrounds (robust with wrappers) */
.section.bg-a::before { background: var(--section-bg-a); }
.section.bg-b::before { background: var(--section-bg-b); }

/* keep any existing wrapper neutral so it doesn't conflict */
.section-bg { background: transparent; }

/* spacing tweaks: bring intro + countdown closer, ensure schedule heading has extra top padding like RSVP */
#intro { padding-bottom: 20px; }
.countdown-grid.section { padding-top: 12px; max-width: 900px; margin: 12px auto 36px; }
#schedule { padding-top: 64px; }

/* FAQ accordion styles */
.faq-list { max-width: 900px; margin: 18px auto 0; display:flex; flex-direction:column; gap: 12px; }
.faq-list { max-width: 820px; margin: 18px auto 0; display:flex; flex-direction:column; }
.faq-list details { background: transparent; border: none; padding: 0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  margin: 0;
  padding: 18px 22px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { display: none; }
.faq-list summary::after {
  content: '\25BE';
  font-size: 0.95rem;
  color: rgba(0,0,0,0.45);
  transition: transform 220ms ease;
}
.faq-list details[open] summary::after { transform: rotate(180deg); color: rgba(0,0,0,0.7); }
.faq-list .answer { padding: 14px 22px 22px; color: #444; line-height: 1.6; font-size: 0.98rem; }

.faq-list .answer { text-align: left; }
.faq-list details + details { margin-top: 6px; }

/* Schedule: compact event rows with left-side thumbnail */
.schedule-list { display:block; max-width: 900px; margin: 0 auto; }
.schedule-list .day { margin: 18px 0; }
.day-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-weight: 700;
  padding: 10px 6px;
  color: #111;
  cursor: pointer;
}
.day .events { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.event {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}
.event-media { flex: 0 0 96px; width: 96px; height: 72px; overflow: hidden; border-radius: 8px;}
.event-media { flex: 0 0 120px; width: 120px; height: auto; overflow: hidden; border-radius: 8px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:8px; box-sizing:border-box; margin: 0 auto; }
.event-media img { width: 100%; height: 84px; object-fit: cover; display: block; border-radius: 6px; }
.event-media .media-title { margin: 8px 0 4px 0; font-size: 0.95rem; text-align:center; }
.event-media .media-title { font-weight: 700; }
.event-media .media-time { font-size: 0.85rem; color: #666; }
.event-body { flex: 1 1 auto; min-width: 0; text-align: left; }
.event-body h3 { display:none; }
/* Show event times for schedule entries (previously hidden globally) */
.schedule-list .event .time { display: block; }
.event .venue { color: #666; font-size: 0.92rem; margin-bottom: 8px; }
.event .note { margin: 0 0 8px 0; color: #444; font-size: 0.95rem; }
.links { display:flex; gap:8px; flex-wrap:wrap; }
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.06);
  color: #111;
  text-decoration: none;
  font-size: 0.9rem;
}
.link-btn:hover { background: rgba(0,0,0,0.04); }

@media (max-width: 760px) {
  .event { gap: 12px; padding: 10px; flex-direction: column; align-items: stretch; }
  .event-media { width: 100%; max-width: 240px; height: auto; flex: 0 0 auto; margin: 0 auto 8px auto; }
  .event-media img { height: auto; }
  .event-body { padding: 0 4vw 8px; }
  .link-btn { padding: 6px 8px; font-size: 0.85rem; }
}

/* Subtle sparkle overlay across the site; very low-opacity and slow motion */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* place above most content so sparkles are visible */
  z-index: 1150;
  mix-blend-mode: screen;
  opacity: 0.32; /* increased so subtle sparkles are actually visible */
}
.sparkles::before,
.sparkles::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  filter: blur(0.4px);
}
.sparkles::before {
  /* larger warm-gold sparkles (denser) */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,215,120,0.98) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(255,230,160,0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 30%, rgba(255,220,140,0.95) 0 1px, transparent 2px);
  background-size: 100px 100px, 120px 120px, 80px 80px;
  opacity: 0.32;
  animation: sparkleMove 28s linear infinite;
}
.sparkles::after {
  /* smaller, denser warm sparkles */
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255,235,170,0.98) 0 0.8px, transparent 2px),
    radial-gradient(circle at 60% 10%, rgba(255,215,120,0.95) 0 0.9px, transparent 2px);
  background-size: 50px 50px, 60px 60px;
  opacity: 0.28;
  animation: sparkleMove 42s linear infinite reverse;
}

@keyframes sparkleMove {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 220px -130px, -160px 90px, 120px 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .sparkles { opacity: 0.03; }
  .sparkles::before, .sparkles::after { animation: none; }
}

/* Debug helper: make sparkles very visible when body.sparkles-debug is present */
.sparkles-debug .sparkles { opacity: 1 !important; mix-blend-mode: screen !important; }
.sparkles-debug .sparkles::before { opacity: 1 !important; background-size: 60px 60px, 80px 80px, 50px 50px !important; }
.sparkles-debug .sparkles::after { opacity: 1 !important; background-size: 40px 40px, 50px 50px !important; }

@media (max-width: 760px) {
  .faq-list { padding: 0 6vw; }
  .faq-list summary { padding: 16px 4vw; text-align: left; justify-content: flex-start; }
  .faq-list summary::after { margin-left: auto; }
  .faq-list .answer { padding: 12px 4vw 20px; text-align: justify; }
}

/* ensure countdown grid is centered when using .section wrapper */
.countdown-grid.section { max-width: 900px; margin: 28px auto 36px; }

.game {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Hero / header - full-bleed slideshow */
.hero {
  position: relative;
  /* slightly shorter so page content shows below the fold */
  min-height: 65vh;
  height: 65vh;
  overflow: hidden;
  display: block;
}

/* single background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1);
}

/* On wider screens (27-inch monitors ~1440px+), use contain to show full image without zoom */
@media (min-width: 1440px) {
  .hero-bg {
    background-size: cover;
    background-repeat: no-repeat;
  }
}

/* darker overlay layer for legibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* much lighter overlay so background shows through */
  background: linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.18));
  z-index: 1;
  pointer-events: none;
}

/* overlay content */
.hero-overlay {
  position: relative;
  z-index: 2;
  /* fill the hero area */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-align: center;
  /* shift content up so faces aren't blocked */
  padding-top: 0;
  padding-bottom: 12vh;
}

/* Fade-in reveal helpers (opacity-only, slower) */
.fade-reveal {
  opacity: 0;
  transition: opacity 900ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity;
}
.fade-reveal.visible {
  opacity: 1;
}

/* Names (hero h1) should appear instantly without transition */
.hero-overlay h1 {
  transition: none; /* we'll reveal it immediately from JS */
}
/* nav reveal handled by primary .site-nav.top-nav rules above */

/* Respect reduced motion: disable transitions */
@media (prefers-reduced-motion: reduce) {
  .fade-reveal { transition: none !important; }
  .site-nav.top-nav { transition: none !important; transform: translate(-50%, 0) !important; }
  .site-nav.top-nav .nav-inner::before { transition: none !important; transform: none !important; opacity: 1 !important; }
  .site-nav.top-nav .nav-inner { transition: none !important; transform: none !important; }
}
/* Larger, heavier script like screenshot */
.hero-overlay h1 {
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.82;
  margin: 0;
  font-weight: 400;
  /* softer shadow for better clarity */
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 150px;
  /* opacity removed so fade-reveal controls visibility */
}


.hero::before {
  /* reduce vignette to very subtle or comment out to remove */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.06) 100%);
  z-index: 1;
  pointer-events: none;
}

.rsvp-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: transparent;
  transition: background 200ms ease, color 200ms ease, transform 160ms ease;
}
/* Hero-only positioning */
.hero .rsvp-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero .rsvp-btn:hover { background: rgba(255,255,255,0.06); transform: translate(-50%, -2px); }

.hero-footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  letter-spacing: 0.06em;
  z-index: 2;
}

.hero-footer .date { text-transform: uppercase; }
.hero-footer .venue { text-transform: uppercase; }

/* Countdown: three-image tiles with live days / minutes / seconds */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 36px;
}
.cd-tile {
  position: relative;
  /* doubled height for more dramatic tiles */
  height: 440px; /* was 220px */
  min-height: 320px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  filter: saturate(0.74) contrast(0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.cd-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  background: linear-gradient(to top, rgba(0,0,0,0.36), rgba(0,0,0,0.18));
}
.count-value {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.88;
  transform: translateY(10px);
}
.count-label { font-size: 0.85rem; letter-spacing:0.12em; text-transform:uppercase; }

/* staggered fade-in behavior for tiles */
.cd-tile.fade-reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms ease, transform 860ms cubic-bezier(.2,.9,.2,1); }
.cd-tile.fade-reveal.visible { opacity: 1; transform: none; }

/* pop on hover / active (tap) - smoother and slightly slower */
.cd-tile { transition: transform 420ms cubic-bezier(.2,.9,.2,1), box-shadow 420ms ease; will-change: transform, box-shadow; cursor: pointer; }
.cd-tile:hover, .cd-tile.active { transform: scale(1.05); z-index: 6; box-shadow: 0 28px 56px rgba(0,0,0,0.18); }
.cd-tile:focus { outline: none; }
/* overlay hides gradually for a smooth fade */
.cd-tile .cd-overlay { transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.9,.2,1); }
/* Only the active state (tap/click) hides the timer by default */
.cd-tile.active .cd-overlay { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* On desktop/hover-capable devices, hovering a tile also hides the timer */
@media (hover: hover) and (pointer: fine) {
  .cd-tile:hover .cd-overlay { opacity: 0; pointer-events: none; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .cd-tile.fade-reveal { transition: none !important; transform: none !important; }
  .cd-tile { transition: none !important; }
  .cd-tile .cd-overlay { transition: none !important; transform: none !important; }
}

@media (max-width: 760px) {
  .countdown-grid { grid-template-columns: 1fr; gap: 12px; }
  .cd-tile { height: 260px; }
  /* Fine-tune mobile crop for individual countdown images */
  .cd-tile.tile-1 { background-position: top center; }
  .cd-tile.tile-2 { background-position: bottom center; }
}

.schedule { max-width: 900px; width: min(900px, 100%); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* Schedule layout */
.schedule-list { margin-top: 12px; display:block; width: 100%; }
.day { margin-bottom: 22px; }
.day-toggle { background: none; border: none; padding: 10px 0; width: 100%; text-align: center; font-weight: 700; font-size: clamp(1.05rem, 2.0vw, 1.4rem); cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase; display:block; font-family: "Quattrocento", serif; -webkit-tap-highlight-color: transparent; }
.day-toggle::after { content: ''; display:none; }
.day.open .day-toggle::after { transform: rotate(180deg); }
.events { margin-top: 12px; max-width: 820px; margin-left: auto; margin-right: auto; }
  .schedule-list .event { background: transparent; padding: 14px 0; margin-bottom: 12px; border-bottom: none; }
.event h3 { margin: 0 0 6px 0; font-size:1.05rem; text-align:center; font-weight:700; }
.time { color: #333; font-weight:700; text-align:center; margin-bottom:8px; }
.schedule .venue { color: #444; font-size:0.95rem; margin-top:4px; text-align:left; }
.note { margin-top:8px; color: rgba(0,0,0,0.7); }
.links { margin-top:10px; display:flex; gap:10px; align-items:center; justify-content:flex-start; }
.links a { text-decoration: none; color: #111; background: rgba(255,255,255,0.96); padding:8px 12px; border-radius:6px; border:1px solid rgba(0,0,0,0.06); font-weight:600; }

/* Desktop three-column layout for events: Title | Body | Media */
@media (min-width: 760px) {
  .day { padding-left: 0; }
  .day-toggle { cursor: default; text-align: center; }
  .events { margin-top: 18px; }
  .schedule-list .event { display: grid; grid-template-columns: 50% 50%; gap: 28px; align-items: center; padding: 22px 0; background: transparent; border-radius: 0; max-width: 820px; margin: 0 auto; box-sizing: border-box; }
  /* Place media, title, and time in the left column and center them */
  .schedule-list .event-media { grid-column: 1; justify-self: center; align-self: start; width: 100%; max-width: 260px; display:flex; flex-direction:column; align-items:center; gap:4px; }
  .schedule-list .event-media img { width: 100%; height: auto; display: block; border-radius: 8px; }
  /* Left container to align image, title and time in a single row */
  .schedule-list .event-left { grid-column: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .schedule-list .event-left .event-media { display: block; width: 120px; min-width: 120px; }
  .schedule-list .event-left .event-title { margin: 0; }
  .schedule-list .event-left .time { margin: 0; }
  /* Ensure images center within the left stack */
  .schedule-list .event-left { width: auto; text-align: center; justify-self: center; margin-left: 0; margin-right: 0; }
  .schedule-list .event-left .event-media { margin-left: 0; margin-right: 0; width: 120px; }
  .schedule-list .event-left .event-media img { margin: 0 auto !important; display: block !important; }
  .schedule-list .event-title { grid-column: 1; text-align: center; margin-top: 4px; }
  .schedule-list .event-title h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
  .schedule-list .event .time { grid-column: 1; margin-top: 4px; color: #555; font-weight:700; text-align: center; }
  /* Right column: venue, address, note, links */
  .schedule-list .event-body { grid-column: 2; text-align: center; display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 0 12px; box-sizing: border-box; width: auto; max-width: 100%; justify-self: center; overflow-wrap: anywhere; }
  .schedule-list .event { position: relative; overflow: visible; width: 100%; box-sizing: border-box; }
  .schedule-list .event-body { justify-self: center; }
  /* vertical divider placed between columns, inset from top/bottom so it doesn't touch the event outline */
  .schedule-list .event::before { content: ''; position: absolute; left: 50%; transform: translateX(-0.5px); top: 10px; bottom: 10px; width: 1px; background: rgba(0,0,0,0.06); pointer-events: none; }
  .schedule-list .event .venue { margin-bottom: 8px; }
  .schedule-list .event .links { justify-content: flex-start; }
  /* RIGHT COLUMN: center all text/buttons, make venue match left-side time styling, stack equal-width buttons */
  .schedule-list .event-body .venue {
    font-size: 1.05rem; /* match visible time size */
    font-weight: 700;
    color: #555;
    text-align: center;
    margin-bottom: 10px;
  }
  .schedule-list .event-body .address {
    display: block;
    font-weight: 400;
    color: #666;
    margin-top: 6px;
    font-size: 0.95rem;
  }
  .schedule-list .event-body .links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    width: 100%;
  }
  .schedule-list .event-body .link-btn {
    /* scale down on narrow columns to avoid overflow */
    width: min(180px, 100%);
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 760px) {
  .links { justify-content: flex-start; }
  .events { display: block; }
  .day { border-left: none; padding-left: 0; }
  .day-toggle { text-align: center; padding-left: 0; position: static; display: block; }
  .day-toggle::before { display: none; content: none; }
  .day.open .day-toggle::before { display: none; }
  .day.open .events { display: block; }
  /* Mobile stacking order: Title -> Image -> Body */
  .schedule-list .event { gap: 12px; padding: 10px; flex-direction: column; align-items: stretch; display: flex; }
  .schedule-list .event-left { order: 1; flex-direction: column; gap: 8px; align-items: center; }
  .schedule-list .event-left .event-media { width: 100%; max-width: 240px; height: auto; margin: 0 auto 0; }
  .schedule-list .event-body { order: 2; padding: 0 4vw 8px; }
  .schedule-list .event::before { display: none; }
}

@media (max-width: 640px) {
  .hero-overlay h1 { font-size: clamp(1.8rem, 9vw, 3.2rem); }
  .hero-footer { left: 12px; right: 12px; bottom: 18px; font-size: 0.78rem; }
  .hero { height: 70vh; }
  .hero-overlay { gap: 8px; }
}

/* Reduce hero subtitle and intro heading on small screens to avoid oversized text */
@media (max-width: 640px) {
  /* Names (h1) should be the biggest, subtitle smaller */
  .hero-overlay h1 { font-size: clamp(2.2rem, 10vw, 3.8rem); }
  .hero-subtitle { font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 150px;}
  #intro h1 { font-size: clamp(1.2rem, 6vw, 2.2rem); }
  /* Adjust hero overlay spacing on mobile */
  .hero-overlay { gap: 8px; padding-bottom: 8vh; }
  /* Hide only the hero RSVP button on mobile */
  .hero .rsvp-btn { display: none; }
}

/* smooth scrolling + offset for sticky nav */
html { scroll-behavior: smooth; }
.section, header { scroll-margin-top: 86px; }

/* Strong schedule layout overrides (placed at end to avoid conflicts)
   - Two equal columns, each side centered
   - Left: stacked image, title, time; fixed thumbnail width
   - Right: centered venue/address and stacked equal-width buttons
*/
.schedule-list .event {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px !important;
  align-items: center !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 22px 0 !important;
  box-sizing: border-box !important;
}
.schedule-list .event-left {
  grid-column: 1 / 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 !important;
  width: auto !important;
}
.schedule-list .event-left .event-media {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: transparent !important;
  margin: 0 auto !important;
}
.schedule-list .event-left .event-media img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
}
.schedule-list .event-left .event-title,
.schedule-list .event-left .time {
  text-align: center !important;
  margin: 0 !important;
}
.schedule-list .event-body {
  grid-column: 2 / 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-self: center !important;
}
.schedule-list .event-body .venue {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #555 !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}
.schedule-list .event-body .address {
  font-size: 0.95rem !important;
  color: #666 !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}
.schedule-list .event-body .links {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}
.schedule-list .event-body .link-btn {
  width: min(220px, 80%) !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  .schedule-list .event { display: flex !important; flex-direction: column !important; gap: 12px !important; }
  .schedule-list .event-left { order: 1 !important; width: 100% !important; }
  .schedule-list .event-left .event-media { width: 160px !important; max-width: 48vw !important; }
  .schedule-list .event-body { order: 2 !important; width: 100% !important; padding: 0 4vw !important; }
  .schedule-list .event::before { display: none !important; }
}

/* remove older small-image styles which are no longer used */

/* Simple section styling for single page (handled above) */

/* Schedule filters */
.schedule-filters { display:flex; gap:10px; justify-content:center; margin: 8px 0 12px; flex-wrap:wrap; }
.schedule-filters .filter-btn { appearance:none; border: 1px solid rgba(0,0,0,0.06); background: transparent; padding: 8px 12px; border-radius: 12px; font-weight:700; min-width:56px; height:56px; display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; flex-direction:column; transition: background 220ms ease, transform 260ms cubic-bezier(.2,.9,.2,1); }
.schedule-filters .filter-btn:hover { transform: translateY(-4px); }
.schedule-filters .filter-btn { font-family: "Quattrocento", serif; }

/* Make selectable date buttons visually match the map buttons (white card) */
.schedule-filters .filter-btn:not(.disabled) {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.06);
  color: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}
.schedule-filters .filter-btn.disabled {
  background: transparent;
  border-color: rgba(0,0,0,0.04);
  color: #999;
  opacity: 0.6;
}
.schedule-filters .filter-btn .weekday { font-family: "Quattrocento", serif; font-size: 0.85rem; font-weight:700; color: #666; }
.schedule-filters .filter-btn .daynum { font-family: "Quattrocento", serif; font-size: 1rem; font-weight:800; color: #111; }

/* Keep pressed state (All) as dark variant already defined earlier */
.schedule-filters .filter-btn .weekday { font-size: 0.85rem; font-weight:700; color: #666; }
.schedule-filters .filter-btn .daynum { font-size: 1rem; font-weight:800; color: #111; }
.schedule-filters .filter-btn.disabled { opacity: 0.42; border-color: rgba(0,0,0,0.04); color: #999; cursor: default; transform: none; }
/* removed count badge styles (no longer used) */
.schedule-filters .filter-btn[aria-pressed="true"] { background: #111; color: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 8px 26px rgba(0,0,0,0.06); }
.schedule-filters .filter-btn[aria-pressed="true"] .weekday,
.schedule-filters .filter-btn[aria-pressed="true"] .daynum { color: rgba(255,255,255,0.95); }
.schedule-filters .filter-btn.filter-all { min-width:72px; text-transform:uppercase; font-size:0.9rem; display:inline-flex; align-items:center; justify-content:center; }
.schedule-filters .filter-btn.filter-all { line-height:1; }
@media (max-width: 640px) { .schedule-filters .filter-btn { min-width:48px; height:48px; padding:6px 10px; } .schedule-filters .filter-btn.filter-all { min-width:64px; height:48px; } }

/* Smooth reveal/hide transitions for days */
.day { transition: opacity 280ms ease, transform 280ms ease; will-change: opacity, transform; }
.day.hiding { opacity: 0; transform: translateY(8px); pointer-events: none; height: 0; margin: 0; padding: 0; overflow: hidden; }
.day.showing { opacity: 0; transform: translateY(8px); }
.day.showing.active { opacity: 1; transform: none; }


/* Footer */
.site-footer { padding: 28px 16px; background: transparent; text-align: center; }
.site-footer .footer-logo { max-width: 280px; height: auto; display: inline-block; filter: none; }
@media (max-width: 640px) { .site-footer { padding: 18px 12px; } .site-footer .footer-logo { max-width: 140px; } }
@media (max-width: 640px) {
  .hero-images {
    gap: 10px;
  }
  .hero-img {
    width: 110px;
    height: 110px;
  }
  .hero-text { text-align: center; }
}

/* Wedding Trivia Game Styles */
#trivia-wrap {
  --primary-color: #111;
  --secondary-color: #f6f3ef;
  --success-color: #06d6a0;
  --error-color: #e63946;
  --text-color: #222;
  --bg-light: #fcfcfa;
  --border-color: rgba(0,0,0,0.06);
  --shadow-light: 0 6px 18px rgba(0,0,0,0.03);
  --shadow-medium: 0 8px 22px rgba(0,0,0,0.06);
  padding: 40px 0;
  background: var(--bg-light);
}

.trivia-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.trivia-header {
  text-align: center;
  margin-top: 40px;
}

.trivia-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 12px 0;
  font-family: 'Quattrocento', Georgia, serif;
}

.trivia-subtitle {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 20px 0;
  font-weight: 400;
  font-family: 'Quattrocento', Georgia, serif;
}

.score-display {
  background: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  box-shadow: var(--shadow-light);
  display: inline-block;
  border: 2px solid var(--border-color);
}

.score-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.trivia-screen {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
}

.start-card {
  text-align: center;
}

.start-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 16px 0;
  font-family: 'Quattrocento', Georgia, serif;
}

.start-description {
  font-size: 1rem;
  color: #333;
  margin: 0 0 28px 0;
  line-height: 1.6;
  font-family: 'Quattrocento', Georgia, serif;
}

.question-card {
  text-align: center;
}

.question-progress {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.65);
  margin: 0 0 24px 0;
  font-weight: 400;
  font-family: 'Quattrocento', Georgia, serif;
}

.question-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 32px 0;
  line-height: 1.4;
  font-family: 'Quattrocento', Georgia, serif;
}

.answer-options {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.answer-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
  cursor: pointer;
  transition: all 200ms ease;
  text-align: center;
  font-family: 'Quattrocento', Georgia, serif;
}

.answer-btn:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--border-color);
  box-shadow: var(--shadow-light);
}

.answer-btn.correct {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.answer-btn.incorrect {
  background: var(--error-color);
  border-color: var(--error-color);
  color: white;
}

.answer-btn.selected {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.feedback {
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 500;
}

.feedback.correct {
  background: rgba(6, 214, 160, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.feedback.incorrect {
  background: rgba(230, 57, 70, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.results-card {
  text-align: center;
}

.results-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 24px 0;
  font-family: 'Quattrocento', Georgia, serif;
}

.final-score {
  margin-bottom: 20px;
}

.score-large {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: 'Quattrocento', Georgia, serif;
}

.score-message {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 32px 0;
  font-style: italic;
  font-family: 'Quattrocento', Georgia, serif;
}

.btn-primary {
  background: rgba(255,255,255,0.98);
  color: #111;
  border: 1px solid var(--border-color);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: var(--shadow-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: 'Quattrocento', Georgia, serif;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Mobile responsiveness */
@media (max-width: 760px) {
  #trivia-wrap {
    padding: 20px 0;
  }
  
  .trivia-container {
    padding: 0 16px;
  }
  
  .trivia-title {
    font-size: 2rem;
  }
  
  .trivia-screen {
    padding: 24px 20px;
  }
  
  .start-title {
    font-size: 1.5rem;
  }
  
  .question-text {
    font-size: 1.2rem;
  }
  
  .answer-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  .score-display {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .trivia-title {
    font-size: 1.8rem;
  }
  
  .start-title {
    font-size: 1.3rem;
  }
  
  .question-text {
    font-size: 1.1rem;
  }
  
  .trivia-screen {
    padding: 20px 16px;
  }
}

/* end trivia styles */

/* Continuous carousel (marquee-like) */
.carousel { width: 100%; overflow: hidden; border-radius: 0; box-sizing: border-box; margin: 0; }
.carousel-track { display: flex; align-items: stretch; gap: 0; }
.carousel-track.scrolling { animation: scrolllinear linear infinite; animation-duration: var(--scroll-duration, 20s); }
.carousel-slide { flex: 0 0 auto; box-sizing: border-box; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,0.06); }

/* choose how many slides show by giving each slide a percentage width
   Use 2:3 aspect ratio to match 1024x1536 image dimensions
   — this keeps consistent image sizing without forcing section height. */

/* No spacing between slides — slides fill the section fully */
@media (min-width: 1200px) {
  /* Larger desktop slides: 2:3 aspect ratio (portrait) */
  .carousel-slide { width: 25%; aspect-ratio: 2/3; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .carousel-slide { width: 33.3333%; aspect-ratio: 2/3; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .carousel-slide { width: 50%; aspect-ratio: 2/3; }
}
@media (max-width: 639px) {
  /* Mobile: full width with 2:3 ratio to show complete portrait images */
  .carousel-slide { width: 100%; aspect-ratio: 2/3; }
}

@keyframes scrolllinear {
  from { transform: translateX(0); }
  /* Animate by the measured pixel distance when available; otherwise fallback to 50% */
  to { transform: translateX(calc(var(--scroll-distance, 50%) * -1)); }
}

/* paused state when interacting */
.carousel.paused .carousel-track { animation-play-state: paused !important; }

/* Gallery section: make carousel occupy full section and remove section padding */
/* Make gallery section full-bleed to viewport edges */
#gallery.section {
  padding: 0 !important;
  max-width: none !important;
  /* full-bleed using negative viewport margins */
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  box-sizing: border-box !important;
  z-index: 1;
}

/* ensure carousel fills the full-bleed section with no gaps; use intrinsic sizing */
#gallery .carousel { width: 100%; height: auto; padding: 0 !important; }
#gallery .carousel-track { gap: 0 !important; align-items: stretch; }
#gallery .carousel-slide { padding: 0 !important; box-sizing: border-box; aspect-ratio: 2/3; }
#gallery .carousel-slide img { border-radius: 0 !important; box-shadow: none !important; width:100%; height:100%; object-fit: cover; object-position: center; display:block; }

/* Consistent 2:3 aspect ratio for all screen sizes to match portrait images */
@media (max-width: 760px) {
  #gallery .carousel { height: auto; }
  #gallery .carousel-slide { aspect-ratio: 2/3; }
}


/* Event background override: ensure every schedule event uses the requested color */
.schedule-list .event {
  background: #f6f3ef !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03) !important;
}


/* Schedule spacing fixes */
/* Add bottom padding to the schedule section so following sections don't butt up against it */
#schedule { padding-bottom: 48px; }

/* Mobile: ensure events within the same day have spacing between them */
@media (max-width: 760px) {
  .schedule-list .events {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  /* keep each event visually separated on mobile */
  .schedule-list .event {
    margin-bottom: 6px !important;
    padding-top: 12px !important;
    padding-bottom: 20px !important;
  }
}

/* RSVP section: make external RSVP button look like a visible clickable card with border */
#rsvp .rsvp-btn {
  background: rgba(255,255,255,0.98);
  color: #111;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}

#rsvp .rsvp-btn:hover, #rsvp .rsvp-btn:focus {
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

/* Mobile: center button contents (link-btn) inside stacked buttons */
@media (max-width: 760px) {
  .schedule-list .event-body .link-btn {
    justify-content: center !important;
    text-align: center !important;
    width: min(220px, 80%) !important;
  }
}
