/* ==========================================================================
   Wedding Website Stylesheet
   CSS Custom Properties theming, fluid typography, mobile-first responsive
   ========================================================================== */

/* 1. CSS Custom Properties
   ========================================================================== */

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  --color-primary: #2c3e50;
  --color-accent: #8e7c68;
  --color-bg: #fdfbf7;
  --color-text: #333;
  --color-text-light: #666;
  --section-padding: clamp(2rem, 5vw, 6rem);
  --content-max-width: 800px;
}

/* 2. CSS Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

/* 3. Base Styles
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1vw + 0.75rem, 1.125rem);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* 4. Hero Section
   ========================================================================== */

.hero {
  text-align: center;
  padding: clamp(3rem, 10vw, 8rem) 1.5rem;
  background: var(--color-bg);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.hero .date {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.hero .venue {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1.1rem);
  color: var(--color-text-light);
  font-style: italic;
}

/* 5. Section Layout
   ========================================================================== */

.section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding) 1.5rem;
}

.section + .section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section p {
  margin-bottom: 1rem;
}

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

/* 6. Image-with-Text Sections (Mobile-first)
   ========================================================================== */

.section--with-image {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.section--with-image picture {
  width: 100%;
  max-width: 400px;
}

.section--with-image img {
  border-radius: 4px;
}

.section__text {
  flex: 1;
}

/* 7. Desktop Enhancement
   ========================================================================== */

@media (min-width: 768px) {
  .section--with-image {
    flex-direction: row;
    max-width: 1000px;
  }

  .section--with-image picture {
    flex: 0 0 45%;
    max-width: none;
  }

  .section--image-left {
    flex-direction: row-reverse;
  }

  .section--with-image .section__text h2 {
    text-align: left;
  }
}

/* 8. Accommodation List
   ========================================================================== */

.accommodation-list {
  list-style: none;
  margin-top: 1.5rem;
}

.accommodation-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accommodation-list li:last-child {
  border-bottom: none;
}

.accommodation-list a {
  text-decoration: none;
  color: var(--color-primary);
  display: block;
}

.accommodation-list a:hover {
  color: var(--color-accent);
}

.accommodation-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* 9. Footer
   ========================================================================== */

.footer {
  text-align: center;
  padding: var(--section-padding) 1.5rem;
  color: var(--color-text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__names {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: 0.5rem;
}
