:root {
  /* Rust color palette */
  --rust: #b85450;
  --rust-dark: #8b3e3a;
  --rust-light: #d47a75;
  --rust-accent: #c96a65;
  
  /* Neutral tones for rustic aesthetic */
  --cream: #f5f1e8;
  --cream-dark: #e8e0d3;
  --sage: #9aab8a;
  --sage-dark: #7a8a6a;
  --terracotta: #c17d5f;
  --brown: #6a4520;
  --brown-dark: #4a3f36;
  --venue-bg: #c7826f;
  
  /* Background and foreground - Light theme */
  --bg: #faf8f5;
  --bg-light: #f5f1e8;
  --fg: #2a2520;
  --fg-dark: #1a1612;
  --muted: rgba(42, 37, 32, 0.7);
  --muted-dark: rgba(42, 37, 32, 0.5);

  /* Glass morphism with warm tones - Light theme */
  --glass: rgba(184, 84, 80, 0.08);
  --glass-border: rgba(184, 84, 80, 0.2);
  --glass-light: rgba(255, 255, 255, 0.6);

  /* Shadows and effects - Light theme */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-rust: 0 6px 20px rgba(184, 84, 80, 0.25);
  --radius: 16px;
  --radius-small: 12px;
  
  /* Typography scale */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', ui-sans-serif, system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

/* The slide “deck” */
.slides {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory; /* native snap */
  scroll-behavior: smooth;
}

/* Hide scrollbar in a reasonably safe way */
.slides {
  scrollbar-width: none; /* Firefox */
}
.slides::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.slide {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 0;
  gap: 0;
}

/* Tile layout system */
.tiles-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 0;
}

@media (max-width: 768px) {
  .tiles-container {
    grid-template-columns: 1fr;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

@media (max-width: 768px) {
  .tile {
    min-height: 50vh;
  }
}

.tile--image {
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tile--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile--birch {
  background-image: url('/images/birch-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.tile--content.tile--birch {
  background: url('/images/birch-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: none;
}

.emblem-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 1;
  position: relative;
}

.tile--content {
  background: var(--glass-light);
  backdrop-filter: blur(8px);
}

.tile--cream {
  background: var(--cream);
}

.tile--venue {
  background: var(--venue-bg);
  position: relative;
}

.venue-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 64px);
  position: relative;
}

.venue-section {
  color: var(--cream);
  font-family: var(--font-body);
}

.venue-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--cream);
  margin: 0 0 var(--spacing-sm) 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.venue-icon {
  width: clamp(110px, 14vw, 160px);
  height: auto;
  object-fit: contain;
}

.venue-section p {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--cream);
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

/* Desktop positioning */
.venue-ceremony {
  position: absolute;
  left: clamp(32px, 5vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 80%;
}

.venue-dresscode {
  position: absolute;
  right: clamp(32px, 5vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 80%;
  text-align: right;
}

.venue-parking-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(32px, 5vw, 64px);
  z-index: 6;
  width: 100%;
  text-align: center;
}

.venue-parking-desktop .venue-section {
  display: inline-block;
  max-width: 600px;
}

.venue-parking-mobile {
  display: none;
}

/* Mobile layout - stack vertically */
@media (max-width: 768px) {
  .venue-parking-desktop {
    display: none;
  }
  
  .venue-parking-mobile {
    display: block;
  }
  
  .venue-content-wrapper {
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .venue-ceremony,
  .venue-dresscode,
  .venue-parking-mobile {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    max-width: 100%;
    text-align: center;
  }
}

.tile-placeholder {
  width: 100%;
  height: 100%;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: clamp(14px, 2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Light background gradients for each slide */
.slide:nth-child(1) { 
  background: 
    radial-gradient(1400px 1000px at 30% 20%, rgba(184, 84, 80, 0.08), transparent 60%),
    radial-gradient(1000px 800px at 70% 80%, rgba(193, 125, 95, 0.06), transparent 55%),
    var(--bg);
}
.slide:nth-child(2) { 
  background: 
    radial-gradient(1200px 900px at 75% 25%, rgba(184, 84, 80, 0.06), transparent 60%),
    radial-gradient(800px 600px at 25% 70%, rgba(154, 171, 138, 0.05), transparent 55%),
    var(--bg-light);
}
.slide:nth-child(3) { 
  background: 
    radial-gradient(1100px 850px at 40% 60%, rgba(193, 125, 95, 0.07), transparent 58%),
    radial-gradient(900px 700px at 60% 30%, rgba(184, 84, 80, 0.05), transparent 52%),
    var(--bg);
}
.slide:nth-child(4) { 
  background: 
    radial-gradient(1300px 950px at 65% 70%, rgba(154, 171, 138, 0.06), transparent 60%),
    radial-gradient(1000px 800px at 35% 25%, rgba(184, 84, 80, 0.07), transparent 55%),
    var(--bg-light);
}

.slide__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px);
  animation: fadeInUp 0.6s ease-out;
}

.tile-2-content {
  padding: clamp(24px, 4vw, 48px);
}

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

h1 {
  margin: 0 0 var(--spacing-sm) 0;
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.2;
}

h2 {
  margin: 0 0 var(--spacing-xs) 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--rust);
  line-height: 1.3;
}

h3 {
  margin: 0 0 var(--spacing-xs) 0;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.4;
}

p {
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-md);
  padding: 14px 28px;
  border-radius: var(--radius-small);
  border: 1px solid var(--rust);
  background: var(--rust);
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 200ms ease;
  box-shadow: var(--shadow-rust);
}
.btn:hover { 
  transform: translateY(-2px); 
  background: var(--rust-dark);
  border-color: var(--rust-dark);
  box-shadow: 0 8px 24px rgba(184, 84, 80, 0.35);
}
.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  border-color: var(--rust);
  color: var(--rust);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--rust);
  color: var(--cream);
  box-shadow: var(--shadow-rust);
}

/* Nav arrows */
.nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  z-index: 10;
}

.nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--brown);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--brown);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 200ms ease;
}
.nav__btn:hover { 
  transform: translateY(-2px); 
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
  box-shadow: 0 6px 20px rgba(106, 69, 32, 0.4);
}
.nav__btn:active { transform: translateY(0px) scale(0.96); }
.nav__btn:disabled { 
  opacity: 0.4; 
  cursor: default; 
  transform: none;
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--muted-dark);
  color: var(--muted-dark);
}

.nav__btn svg {
  width: 22px;
  height: 22px;
}

/* Optional dots */
.dots {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--brown);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.dot:hover { 
  transform: scale(1.3); 
  border-color: var(--brown);
  background: var(--brown);
  box-shadow: 0 0 8px rgba(106, 69, 32, 0.5);
}
.dot.is-active { 
  background: var(--brown);
  border-color: var(--brown);
  box-shadow: 0 0 10px rgba(106, 69, 32, 0.6);
}

/* Hero section styles */
.hero {
  text-align: center;
}

.hero__names {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

.hero__date {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--rust-light);
  margin-bottom: var(--spacing-xs);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__location {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
}

/* Details section */
.details-grid {
  display: grid;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.detail-item {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-small);
  backdrop-filter: blur(8px);
}

.detail-item__label {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.detail-item__value {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--fg);
  line-height: 1.5;
}

/* Timeline styles */
.timeline {
  position: relative;
  padding-left: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--rust) 0%, var(--rust-dark) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--rust);
}

.timeline-item__time {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--rust);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.timeline-item__title {
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--fg);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.timeline-item__description {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--muted);
  line-height: 1.6;
}

/* Cards for travel section */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-small);
  backdrop-filter: blur(8px);
  transition: all 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--rust);
  box-shadow: var(--shadow-rust);
}

.card__title {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--rust);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.card__content {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.card__link {
  color: var(--rust);
  text-decoration: none;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  transition: color 200ms ease;
}

.card__link:hover {
  color: var(--rust-light);
  text-decoration: underline;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-large {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.6;
}

/* Image styles */
.slide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius-small);
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* Tile 2 specific styling */
.tile-2-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  width: 100%;
}

.address-text {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 33px);
  color: var(--brown);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.6;
  margin: 0;
}

.date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  font-family: var(--font-heading);
  color: var(--brown);
}

.date-part {
  font-size: clamp(48px, 7.5vw, 84px);
  font-weight: 400;
  line-height: 1;
}

.date-part.date-large {
  font-size: clamp(72px, 10.5vw, 120px);
  font-weight: 500;
}

.date-separator {
  font-size: clamp(48px, 7.5vw, 84px);
  color: var(--brown);
  opacity: 0.6;
  font-weight: 300;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brown);
  color: var(--brown);
  box-shadow: none;
  margin-top: var(--spacing-xl);
  font-size: clamp(24px, 2.7vw, 27px);
  padding: 16px 36px;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
}

.rsvp-deadline {
  font-family: var(--font-body);
  font-size: clamp(21px, 2.4vw, 27px);
  color: var(--brown);
  opacity: 1;
  font-weight: 500;
  margin: 0;
  margin-bottom: var(--spacing-lg);
}

.more-details {
  font-family: var(--font-body);
  font-size: clamp(21px, 2.4vw, 27px);
  color: var(--brown);
  opacity: 1;
  font-weight: 500;
  font-style: italic;
  margin: 0;
}

/* Program list styling */
.program-content {
  text-align: left;
  width: 100%;
}

.program-content h1 {
  text-align: left;
  margin-bottom: var(--spacing-xl);
  color: var(--brown);
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
}

.program-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--brown);
  line-height: 1.6;
}

.program-time {
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
}

.program-separator {
  font-weight: 300;
  opacity: 0.6;
}

.program-event {
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Venue header styling */
.venue-header {
  position: absolute;
  top: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  margin: 0;
  pointer-events: none;
}

.venue-header-mobile {
  display: none;
}

@media (max-width: 768px) {
  .venue-header {
    display: none;
  }
  
  .venue-header-mobile {
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 40px);
    color: var(--cream);
    font-weight: 700;
    letter-spacing: 4px;
    margin: 0;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav {
    right: 12px;
  }
  
  .dots {
    left: 12px;
  }
  
  .nav__btn {
    width: 40px;
    height: 40px;
  }
  
  .nav__btn svg {
    width: 18px;
    height: 18px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: var(--spacing-lg);
  }
  
  .timeline-item::before {
    left: -24px;
  }
}
