/* ============================================================
   Thomas & Amanda — wedding site styles
   Palette: ivory, warm charcoal, sage, muted gold
   ============================================================ */
:root {
  --ivory: #faf7f2;
  --ivory-deep: #f1ece3;
  --charcoal: #3a3733;
  --charcoal-soft: #6b665e;
  --sage: #8a9a87;
  --sage-deep: #64755f;
  --gold: #b99a66;
  --gold-soft: #d6c19a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Jost", "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
}

h1, h2, h3, .hero-date, .nav-monogram, .footer-monogram {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

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

a { color: var(--sage-deep); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 55, 51, 0.08);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-monogram {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--charcoal);
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--charcoal-soft);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sage-deep); }
.nav-rsvp {
  border: 1px solid var(--gold);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  color: var(--charcoal) !important;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(138, 154, 135, 0.16), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(185, 154, 102, 0.14), transparent 55%),
    var(--ivory);
}
/* Soft-focus photographic backdrop, washed into the ivory palette */
.hero-backdrop {
  position: absolute;
  inset: -24px; /* hide blur edges */
  background-size: cover;
  background-position: center 30%;
  filter: blur(9px) sepia(0.45) saturate(0.65) brightness(1.08);
  opacity: 0.5;
  will-change: transform; /* promote to its own layer; blur renders once */
  transform: translateZ(0);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250,247,242,0.75), rgba(250,247,242,0.35) 45%, rgba(250,247,242,0.85)),
    radial-gradient(ellipse at center, rgba(250,247,242,0) 30%, rgba(250,247,242,0.65));
}
.hero-frame, .hero .btn { position: relative; z-index: 1; }
.hero-frame {
  max-width: 720px;
  padding: 3.5rem 2.5rem;
  border: 1px solid var(--gold-soft);
  outline: 4px solid transparent;
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--gold-soft);
  background: rgba(250, 247, 242, 0.82);
}
.hero-eyebrow, .hero-invite {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.hero-names {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.15;
  margin: 1.2rem 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.hero-amp {
  font-style: italic;
  font-size: 0.55em;
  color: var(--gold);
}
.hero-rule {
  width: 70px; height: 1px;
  background: var(--gold);
  margin: 1.6rem auto;
}
.hero-date { font-size: 1.5rem; letter-spacing: 0.06em; }
.hero-place {
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-top: 0.4rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin: 2rem 0 2.2rem;
}
.count-unit {
  display: flex;
  flex-direction: column;
  min-width: 58px;
}
.count-unit span {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--sage-deep);
}
.count-unit small {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2.6rem;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--charcoal); color: var(--ivory); }
.btn-gold { border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: #fff; }

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  text-align: center;
}
.section-alt {
  max-width: none;
  background: var(--ivory-deep);
}
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.05em;
}
.section-rule {
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 1.1rem auto 2.2rem;
}
.section-rule-light { background: var(--ivory); opacity: 0.6; }
.section-lede {
  max-width: 560px;
  margin: -0.8rem auto 2.4rem;
  color: var(--charcoal-soft);
}

/* ---------- Story ---------- */
.story-body {
  max-width: 640px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.story-body p { margin-bottom: 1.1rem; font-size: 1.05rem; }
.story-photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.story-photos .keepsake { width: 260px; }
.story-photos .keepsake:nth-child(odd)  { transform: rotate(-1.6deg); }
.story-photos .keepsake:nth-child(even) { transform: rotate(1.4deg); margin-top: 1.2rem; }

/* Keepsake: an heirloom-style print — warm sepia, ivory mat, soft shadow */
.keepsake {
  background: #fffdf9;
  border: 1px solid rgba(185, 154, 102, 0.35);
  padding: 0.7rem 0.7rem 1rem;
  box-shadow: 0 6px 18px rgba(58, 55, 51, 0.14);
}
.keepsake-window {
  aspect-ratio: 4 / 5;
  overflow: hidden; /* contains per-photo zoom crops */
}
.keepsake img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.55) saturate(0.75) contrast(0.92) brightness(1.04);
}
.keepsake figcaption {
  margin-top: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--charcoal-soft);
}
.keepsake .keepsake-label {
  display: block;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}

/* ---------- Details ---------- */
.details-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-bottom: 3.4rem;
}
.detail-card {
  background: var(--ivory);
  border: 1px solid rgba(185, 154, 102, 0.35);
  padding: 2.2rem 1.8rem;
}
/* Oval cameo portrait, ringed in gold, blended toward the palette */
.cameo {
  width: 108px;
  height: 132px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center 22%;
  filter: sepia(0.6) saturate(0.7) contrast(0.9) brightness(1.05);
  box-shadow:
    0 0 0 3px var(--ivory),
    0 0 0 4px var(--gold),
    0 0 0 9px var(--ivory),
    0 0 0 10px var(--gold-soft),
    inset 0 0 24px rgba(58, 55, 51, 0.35);
}
/* Per-portrait framing (crop past captioning on the source prints) */
#receptionCameo { background-position: center 42%; background-size: 170%; }
.detail-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.detail-time {
  color: var(--sage-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.detail-venue { font-size: 1.08rem; font-weight: 400; }
.detail-address, .detail-notes {
  color: var(--charcoal-soft);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}
.tba {
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.schedule-title { font-size: 1.45rem; margin-bottom: 1.4rem; }
.schedule {
  list-style: none;
  max-width: 520px;
}
.schedule li {
  display: flex;
  gap: 1.4rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(58, 55, 51, 0.1);
  text-align: left;
  align-items: baseline;
}
.schedule li:last-child { border-bottom: none; }
.schedule-time {
  flex: 0 0 92px;
  color: var(--sage-deep);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.schedule-what strong { font-weight: 400; font-size: 1.02rem; }
.schedule-what div { color: var(--charcoal-soft); font-size: 0.9rem; }

/* ---------- Interlude (full-width photographic quote band) ---------- */
.interlude {
  position: relative;
  background-size: cover;
  /* keep the crop mid-frame, clear of the print's lettering top and bottom */
  background-position: center 42%;
}
.interlude-scrim {
  /* Sage duotone wash over the photograph */
  background:
    linear-gradient(rgba(100, 117, 95, 0.78), rgba(58, 55, 51, 0.72));
  padding: 7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.interlude-quote {
  max-width: 640px;
  text-align: center;
  color: var(--ivory);
}
.interlude-quote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-style: italic;
  line-height: 1.5;
}
.interlude-quote p::before { content: "\201C"; }
.interlude-quote p::after { content: "\201D"; }
.interlude-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Travel ---------- */
.travel-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem;
  text-align: left;
  align-items: start;
}
.travel-photo {
  max-width: 300px;
  justify-self: center;
  transform: rotate(1.2deg);
}
.travel-photo .keepsake-window { aspect-ratio: 3 / 4; }
.travel-cols h3 { font-size: 1.4rem; margin-bottom: 0.9rem; text-align: center; }
.travel-cols p { color: var(--charcoal-soft); }
.hotel-list { list-style: none; }
.hotel-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(58, 55, 51, 0.1);
}
.hotel-list li:last-child { border-bottom: none; }
.hotel-name { font-weight: 400; }
.hotel-detail { color: var(--charcoal-soft); font-size: 0.9rem; }

/* ---------- Registry ---------- */
.registry-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ---------- RSVP ---------- */
.section-rsvp {
  position: relative;
  overflow: hidden;
  max-width: none;
  background: var(--sage-deep);
  color: var(--ivory);
}
/* Atmospheric photographic texture, sunk deep into the sage */
.rsvp-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  filter: grayscale(1) contrast(0.8) brightness(0.9) blur(2px);
  opacity: 0.12;
  mix-blend-mode: luminosity;
}
.section-rsvp > *:not(.rsvp-backdrop) { position: relative; }
.section-rsvp .section-title { color: var(--ivory); }
.rsvp-lede {
  max-width: 520px;
  margin: 0 auto 1.8rem;
  color: rgba(250, 247, 242, 0.85);
}
.section-rsvp .btn {
  border-color: var(--ivory);
  color: var(--ivory);
}
.section-rsvp .btn:hover { background: var(--ivory); color: var(--sage-deep); }
.rsvp-contact {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.8);
}
.rsvp-contact a { color: var(--ivory); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--charcoal);
  color: rgba(250, 247, 242, 0.75);
}
.footer-monogram {
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: var(--ivory);
}
.footer-line {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.footer-hashtag { margin-top: 0.4rem; color: var(--gold-soft); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0 1.6rem;
    background: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid rgba(58, 55, 51, 0.08);
  }
  .nav-links.open { display: flex; }
  .hero-frame { padding: 2.4rem 1.4rem; }
  .countdown { gap: 1rem; }
}
