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

body {
  font-family: 'Inter', sans-serif;
  color: #2a2a2a;
  background: #f9f7f4;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

#cal-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #4a4a4a;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}

#cal-dropdown a:hover {
  background-color: rgba(82, 113, 255, 0.05);
  color: #5271ff;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(249, 247, 244, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  padding: 1rem 2rem;
}

.nav-monogram {
  font-family: 'Cormorant', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5271ff;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
  transition: color 0.2s ease;
  line-height: 1;
}

.nav-monogram:hover {
  color: #3a57e0;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5271ff;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #3a57e0;
}

.nav-link.active {
  color: #3a57e0;
  font-weight: 500;
}

/* Typography */
h1, h2, .hero-title, .large-type {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, 
    #e8e6e0 0%,
    #f0ede7 20%,
    #dfe3d8 40%,
    #e6ddd5 60%,
    #dfc8bd 80%,
    #d4c4d8 100%);
  padding: 3rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-text-area {
  text-align: left;
  padding: 10rem 2rem 4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  color: #5271ff;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 0.95;
}

.hero-subtitle {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  color: #5271ff;
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.hero-date {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #5271ff;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-top: 3rem;
}

.hero-image-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-image-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Neutral Sections */
.neutral-section {
  background: #f9f7f4;
  padding: 8rem 2rem;
}

.white-bg {
  background: #ffffff;
}

/* Color Sections */
.color-section {
  padding: 8rem 2rem;
}

.color-section.rose-bg {
  padding: 5rem 2rem;
}

.rose-bg {
  background: #deb6ab;
  position: relative;
}

.rose-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: white;
  z-index: 1;
}

.rose-bg .content-block-image {
  position: relative;
  z-index: 2;
}

.ochre-bg {
  background: #c9a26b;
}

.peach-bg {
  background: #8b6a50;
}

.sage-bg {
  background: #b8b49a;
}

/* Content Blocks - floating inside color fields */
.content-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-block-narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-block-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-block-image {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.rose-bg .content-block-image {
  margin-top: 0;
}

/* Intro Text */
.intro-text {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.5;
  color: #4a4a4a;
  font-family: 'Cormorant', serif;
  text-align: center;
}

.story-text {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  line-height: 1.8;
  color: #4a4a4a;
  font-family: 'Cormorant', serif;
  text-align: center;
}

/* Section Headings */
.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 3rem;
  color: #2a2a2a;
  font-weight: 400;
}

.section-heading-light {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: #fdfbf8;
  font-weight: 300;
  text-align: center;
}

.section-heading-centered {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  color: #2a2a2a;
  font-weight: 400;
  text-align: center;
}

/* Large Type Moment */
.large-type {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fdfbf8;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  font-family: 'Libre Baskerville', serif;
}

.large-type em {
  font-style: italic;
  font-weight: 300;
}

/* Details Split Layout */
.content-block-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.detail-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a4a4a;
}

.detail-text strong {
  font-weight: 500;
  color: #2a2a2a;
}

/* Schedule */
.schedule {
  margin-top: 3rem;
}

.schedule-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.1);
}

.schedule-item:first-child {
  border-top: 1px solid rgba(42, 42, 42, 0.1);
}

.schedule-time {
  font-weight: 500;
  min-width: 100px;
  color: #2a2a2a;
}

.schedule-event {
  color: #4a4a4a;
  font-size: 1.125rem;
}

/* Images */
.editorial-image {
  width: 65%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: translateY(50px);
}

.content-block-image {
  padding: 3rem 2rem 5rem;
  border-radius: 2px;
}

.editorial-image-wide {
  width: 100%;
  height: auto;
  display: block;
}

/* Audio Player as Editorial Component */
.music-description {
  font-size: 1.125rem;
  color: #fdfbf8;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0.9;
}

.audio-player {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  padding: 2rem;
  margin: 0;
}

.player-track {
  margin-bottom: 1.5rem;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #fdfbf8;
}

.track-artist {
  font-size: 0.95rem;
  color: rgba(253, 251, 248, 0.7);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.play-btn {
  background: transparent;
  border: 1.5px solid rgba(253, 251, 248, 0.4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fdfbf8;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(253, 251, 248, 0.6);
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(253, 251, 248, 0.2);
  border-radius: 1px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: #fdfbf8;
  width: 0%;
  transition: width 0.1s linear;
}

.time-display {
  font-size: 0.875rem;
  color: rgba(253, 251, 248, 0.7);
  min-width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Playlist Layout */
.playlist-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.playlist-left,
.playlist-right {
  min-width: 0;
}

/* Playlist */
.playlist {
  margin-top: 0;
}

.playlist-item {
  padding: 0 0 0.75rem;
  color: rgba(253, 251, 248, 0.85);
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(253, 251, 248, 0.15);
}


/* RSVP */
.rsvp-text {
  font-size: 1.25rem;
  color: #fdfbf8;
  margin-bottom: 2rem;
  font-weight: 300;
  text-align: center;
}

.rsvp-link {
  display: inline-block;
  padding: 1.25rem 3rem;
  background: transparent;
  border: 1.5px solid rgba(253, 251, 248, 0.5);
  color: #fdfbf8;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-weight: 400;
}

.rsvp-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fdfbf8;
}

/* Dress Code Split Section */
.dress-code-section {
  background: #f9f7f4;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.dress-code-container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

.dress-code-text-block {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.dress-code-text-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  transition: background 0s;
}

.dress-code-content {
  position: relative;
  z-index: 2;
  background: #c9a26b;
  padding: 2.5rem 2.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.dress-code-text-block.revealed .dress-code-content {
  opacity: 1;
  transform: translateY(0);
}

.dress-code-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fdfbf8;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.dress-code-description {
  font-family: 'Cormorant', serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: rgba(253, 251, 248, 0.9);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.dress-code-note {
  font-size: clamp(0.875rem, 1.25vw, 1.05rem);
  color: rgba(253, 251, 248, 0.65);
  font-weight: 300;
  line-height: 1.6;
  font-style: italic;
}

.dress-code-image-block {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
  background: #ffffff;
  overflow: hidden;
}

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

/* Footer */
.footer-section {
  padding-bottom: 4rem;
}

.closing-text {
  font-size: 1.5rem;
  font-family: 'Cormorant', serif;
  font-weight: 300;
  color: #4a4a4a;
  text-align: center;
  line-height: 1.6;
}

#auto-id-story {
  padding-top: 2rem;
}

/* Responsive - Mobile only (640px and below) */
@media (max-width: 640px) {
  .nav-inner {
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-monogram {
    font-size: 1.1rem;
    margin-right: 0.75rem;
  }

  .nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .hero-text-area {
    padding: 4.5rem 1rem 2rem;
  }

  .hero-image-container {
    padding: 0 1rem 2rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .neutral-section,
  .color-section {
    padding: 4rem 1rem;
  }

  .content-block,
  .content-block-narrow,
  .content-block-wide,
  .content-block-image {
    padding: 0 1rem;
  }

  .content-block-split {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .schedule-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .audio-player {
    padding: 1.5rem;
  }

  .player-controls {
    flex-wrap: wrap;
  }

  .time-display {
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
  }

  .playlist-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .playlist {
    margin-top: 0;
  }

  .dress-code-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dress-code-text-block {
    padding: 2.5rem 1.5rem;
    min-height: auto;
  }

  .dress-code-image-block {
    padding: 0;
    min-height: 60vh;
  }

  .dress-code-image {
    width: 100%;
  }
}
