/* ============================================================
   Andrew & Samantha — October 23–24, 2026 — Nashville, TN
   Palette and typography derived from the printed invitation
   suite (navy ink on ivory; script + Baskerville).
   ============================================================ */

:root {
  /* Color tokens */
  --navy:      #1F4B7E;  /* primary ink — from invitation suite */
  --ivory:     #FDFCF7;  /* page ground */
  --parchment: #EFEBE1;  /* alternate ground / footer */
  --mist:      #C7CFDC;  /* soft blue-gray — rules & borders */
  --taupe:     #CFC8B8;  /* quiet warm accent — hairlines */
  --ink-soft:  #46617F;  /* muted navy for secondary text */

  /* Type roles */
  --font-body:   'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  --font-script: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  --track: 0.22em;       /* letterspacing for labels & nav */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--navy); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.6rem 1.2rem;
  z-index: 20;
}
.skip-link:focus { left: 0; }

/* The envelope-line treatment: all-caps, letterspaced Baskerville */
.label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--track);
  font-size: 0.75rem;
  line-height: 2;
}

/* ---------- Header & nav ---------- */
.site-header {
  text-align: center;
  padding: 1.75rem 1rem 1.4rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--mist);
}

.brand {
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
}

.site-nav { margin-top: 1.1rem; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
}

.site-nav a {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover { border-bottom-color: var(--taupe); }

.site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }

/* Header overlaid on the home hero — phones only; on larger screens the
   home page uses the standard ivory header so nav is always navy-on-ivory */
@media (max-width: 640px) {
  .home .site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 3;
    background: transparent;
    border-bottom: none;
  }

  .home .brand,
  .home .site-nav a { color: var(--ivory); }

  .home .site-nav a:hover { border-bottom-color: var(--mist); }

  .home .site-nav a[aria-current="page"] { border-bottom-color: var(--ivory); }

  .home .site-header a:focus-visible {
    outline-color: var(--ivory);
  }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-slides { position: absolute; inset: 0; z-index: 0; }

/* <picture> wrappers shouldn't affect layout — slides position against .hero-slides */
.hero-slides picture { display: contents; }

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.2s ease-in-out;
}

.hero-slides img.is-active { opacity: 1; }

/* Scrim so nav and text stay legible over any photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(16, 30, 50, 0.62) 0%,
    rgba(16, 30, 50, 0.38) 45%,
    rgba(16, 30, 50, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ivory);
  max-width: 44rem;
  padding: 8rem 1.5rem 5rem;
}

.hero-content h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.1rem, 11vw, 5.75rem);
  line-height: 1.15;
}

.hero-blurb {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.95;
}

.hero-date {
  margin-top: 2.25rem;
  color: var(--mist);
}

/* Desktop hero: photos at their natural proportions on the ivory ground.
   A fixed-height stage sits between the standard header and the names/blurb;
   slides are centered and crossfade through the ivory background, so no
   scrim is needed and all text is navy-on-ivory. */
@media (min-width: 641px) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--ivory);
    padding-top: 2.75rem;
    overflow: visible;
  }

  .hero::after { content: none; }

  .hero-slides {
    position: relative;
    inset: auto;
    height: clamp(380px, 58vh, 680px);
  }

  .hero-slides img {
    left: 50%;
    right: auto;
    width: auto;
    max-width: 94vw;
    height: 100%;
    transform: translateX(-50%);
    object-fit: contain;
    /* focal positions are a mobile (cover-crop) concern; center on desktop */
    object-position: center center !important;
  }

  .hero-content {
    color: var(--navy);
    margin: 0 auto;
    padding: 2.75rem 1.5rem 4.5rem;
  }

  .hero-content h1 { font-size: clamp(3rem, 6vw, 4.75rem); }

  .hero-date { color: var(--ink-soft); }
}

/* ---------- Interior pages ---------- */
.page-main {
  max-width: 50rem;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4.5rem;
  text-align: center;
}

.page-eyebrow { color: var(--ink-soft); }

.page-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  line-height: 1.2;
  margin-top: 0.4rem;
}

.page-intro {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.02rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--taupe);
  width: 5.5rem;
  margin: 2.25rem auto;
}

/* Event details */
.event-details {
  margin: 0 auto;
  max-width: 36rem;
  padding: 2.5rem 1.75rem;
  background: var(--parchment);
  border: 1px solid var(--taupe);
  text-align: center;
}

.event-details dt {
  text-transform: uppercase;
  letter-spacing: var(--track);
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.event-details dd { font-size: 1.05rem; line-height: 1.7; }

.event-details dd + dt { margin-top: 1.75rem; }

.event-details a { text-underline-offset: 3px; }

.map-link {
  display: inline-block;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.75rem 0;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--mist);
  background: var(--parchment);
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2 { grid-column: span 2; }
  .gallery .span-2 img { aspect-ratio: 2 / 1; }
  .gallery figure:not(.span-2) img { aspect-ratio: 4 / 3; }
}

.gallery figure { margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--ivory);
  border: 1px solid var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--track);
  font-size: 0.76rem;
  padding: 1.05rem 2.4rem;
  transition: background-color 0.2s ease;
}

.btn:hover { background: var(--ink-soft); }

.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover { background: var(--parchment); }

.cta { margin-top: 2.75rem; }

/* Coming-soon placeholder blocks */
.placeholder {
  margin: 2.5rem auto 0;
  max-width: 34rem;
  padding: 3.25rem 1.75rem;
  background: var(--parchment);
  border: 1px dashed var(--taupe);
}

.placeholder .label { color: var(--ink-soft); }

.placeholder p:last-child {
  margin-top: 0.65rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* RSVP form */
.form-frame {
  margin: 2.5rem auto 0;
  max-width: 46rem;
  border: 1px solid var(--mist);
  background: var(--ivory);
  padding: 0.75rem;
}

.form-frame iframe {
  display: block;
  width: 100%;
  height: 1650px;
  border: 0;
}

.form-fallback { margin-top: 2rem; }

.form-fallback p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 1.1rem;
}

/* Hotels (Accommodations) */
.hotel-group { margin-top: 3rem; }

.group-label { color: var(--ink-soft); font-weight: 400; }

.hotel-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 40rem;
  margin: 1.25rem auto 0;
}

@media (min-width: 640px) {
  .hotel-list { grid-template-columns: 1fr 1fr; }
}

.hotel-card {
  background: var(--parchment);
  border: 1px solid var(--taupe);
  overflow: hidden;
}

.hotel-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--taupe);
}

.hotel-body { padding: 1.75rem 1.25rem 2rem; }

.hotel-card h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hotel-link {
  display: inline-block;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  text-underline-offset: 3px;
}

/* Contact */
.shared-email {
  margin-top: 2.25rem;
  font-size: 1.05rem;
  line-height: 2;
}

.shared-email .label { color: var(--ink-soft); }

.shared-email a { text-underline-offset: 3px; }

.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 2.75rem auto 0;
}

@media (min-width: 640px) {
  .contact-list { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  padding: 2.5rem 1.5rem;
  background: var(--parchment);
  border: 1px solid var(--taupe);
}

.contact-card h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.2;
}

.contact-card p { margin-top: 1rem; line-height: 2.1; font-size: 0.98rem; }

.contact-card a { text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  background: var(--parchment);
  border-top: 1px solid var(--mist);
  padding: 3rem 1.5rem 3.25rem;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 1.9rem;
  line-height: 1.2;
}

.footer-line {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

.footer-contacts {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  line-height: 2.15;
  color: var(--navy);
}

.footer-contacts a { text-underline-offset: 3px; }

/* ---------- Motion & small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { transition: none; }
  .btn { transition: none; }
}

@media (max-width: 420px) {
  .site-nav ul { gap: 0.4rem 1.1rem; }
  .site-nav a { font-size: 0.66rem; letter-spacing: 0.15em; }
  .event-details { padding: 2rem 1.25rem; }
}
