/* ==========================================================================
   Wedding Website Styles
   Fonts: Lovers Quarrel (script), Santana (headlines), System Sans (body)
   ========================================================================== */

@font-face {
  font-family: 'Lovers Quarrel';
  src: url('fonts/Lovers_Quarrel/LoversQuarrel-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Santana';
  src: url('fonts/santana.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors - soft, elegant palette */
  --bg: #faf9f7;
  --surface: #ffffff;
  --text: #2c2c2c;
  --text-light: #666666;
  --muted: #999999;
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(0, 0, 0, 0.12);

  /* Accent - warm sage/olive tones like Zola */
  --accent: #7d8471;
  --accent-dark: #5a6150;

  /* Typography */
  --font-script: 'Lovers Quarrel', cursive;
  --font-headline: 'Santana', serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --container: 1100px;
  --container-narrow: 800px;
  --gutter: 24px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Header / Navigation (Zola-style: centered, minimal)
   ========================================================================== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.brand {
  display: none; /* Hidden on desktop, show on mobile */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
}

.nav__links a[aria-current="page"] {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Hero Section (Zola-style: full-width image, centered text overlay)
   ========================================================================== */

.hero {
  position: relative;
}

.hero__image {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  margin: 0;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.hero__image .hero__kicker {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 2;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: 100%;
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.3px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--gutter);
  background: var(--surface);
}

.hero__kicker {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 24px;
  letter-spacing: 0.3px;
  color: var(--text-light);
}

.hero__names {
  font-family: var(--font-headline);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: 2px;
  color: var(--text);
}

.hero__and {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  display: block;
  margin: 12px 0;
  color: var(--text-light);
}

.hero__date {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 28px 0 6px;
  color: var(--text);
}

.hero__location {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Countdown */
.countdown {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown__part {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown__part strong {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.countdown__part span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--text-light);
}

/* ==========================================================================
   Story Section
   ========================================================================== */

.story {
  padding: 80px 0;
  background: var(--surface);
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.story__header {
  text-align: center;
  margin-bottom: 40px;
}

.story__title {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0;
  color: var(--text);
}

.story__content {
  max-width: 700px;
  margin: 0 auto;
}

.story__content p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
  margin: 0 0 20px;
  text-align: center;
}

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

/* ==========================================================================
   Page Header (Schedule, Gallery, etc.)
   ========================================================================== */

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--text);
}

.lead {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   Schedule Page
   ========================================================================== */

.schedule {
  padding: 60px 0;
  background: var(--bg);
}

.day {
  margin-bottom: 50px;
}

.day:last-child {
  margin-bottom: 0;
}

.day__title {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dark);
}

.event {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 16px;
}

.event:last-child {
  margin-bottom: 0;
}

.event__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.event__name {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.event__time {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(125, 132, 113, 0.1);
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

.event__venue {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.event__address {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.event__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event__link:hover {
  color: var(--text);
}

.event__note {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(125, 132, 113, 0.06);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.event__note strong {
  color: var(--text);
}

/* ==========================================================================
   Gallery Page
   ========================================================================== */

.gallery-section {
  padding: 40px 0 60px;
  background: var(--bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__dialog {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox__figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
}

.lightbox__caption {
  display: none;
}

.icon-button {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.2s ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Footer (Zola-style: centered, minimal)
   ========================================================================== */

.site-footer {
  padding: 50px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__tagline {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  color: var(--text);
  margin: 0 0 8px;
}

.footer__names {
  font-family: var(--font-headline);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--text-light);
  margin: 0 0 24px;
}

.footer__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links a:hover {
  color: var(--text);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--text);
  color: var(--surface);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.button--light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================================
   Prose (general text blocks)
   ========================================================================== */

.prose {
  padding: 40px;
  background: var(--surface);
}

.prose h2 {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0 0 20px;
  color: var(--text);
}

.prose p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
  margin: 0 0 16px;
}

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

/* ==========================================================================
   Section wrapper
   ========================================================================== */

.section {
  padding: 60px 0;
}

.page {
  min-height: 60vh;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: 75vh;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .nav {
    padding: 14px 0;
    gap: 8px;
  }

  .nav__links {
    gap: 4px;
  }

  .nav__links a {
    font-size: 12px;
    padding: 6px 10px;
    letter-spacing: 0.3px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__content {
    padding: 40px var(--gutter);
  }

  .countdown {
    gap: 12px;
  }

  .countdown__part {
    min-width: 60px;
  }

  .countdown__part span {
    font-size: 10px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .event {
    padding: 20px;
  }

  .event__header {
    flex-direction: column;
    gap: 12px;
  }

  .lightbox__prev,
  .lightbox__next {
    display: none;
  }

  .page-header {
    padding: 40px 0 30px;
  }

  .story {
    padding: 50px 0;
  }

  .schedule {
    padding: 40px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
