/* ==========================================================
   James & Lola — Wedding Site
   Fonts:
     - Parfumerie Script   (script headings — Adobe Fonts kit uui6etx)
     - Josefin Sans bold   (names, nav, titles)
     - Josefin Sans normal (body / buttons)
   ========================================================== */

:root {
  --wine: #5a0034;
  --black: #000000;
  --white: #ffffff;
  --cream: #fffff9;
  --blue: #0d557e;
  --periwinkle: #90abca;
  --icy: #cfe4fc;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--wine);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
}

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--wine);
  overflow-x: hidden;
}

.script {
  font-family: 'parfumerie-script', cursive;
  font-weight: 400;
}

.rule {
  border: none;
  border-top: 1px solid var(--black);
  width: 100%;
}

sup { font-size: .6em; }

/* ============ BUTTONS (animated) ============ */
.btn {
  display: inline-block;
  background: var(--wine);
  color: var(--white);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2.5px;
  text-decoration: none;
  padding: 18px 0;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover {
  background: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(90, 0, 52, .35);
}
.btn:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 2px 6px rgba(90, 0, 52, .3);
}

/* ============ HERO ============ */
/* photo pair / names / photo pair / nav / rsvp — at every width */
.hero {
  display: flex;
  flex-direction: column;
}
.photo-strip, .hero-right { display: contents; }
.strip-pair { display: flex; width: 100%; }
.strip-pair img {
  width: 50%;
  aspect-ratio: 3 / 2; /* wide screens show the full landscape photo */
  object-fit: cover;
  display: block;
}
.strip-3 { object-position: 44% 50%; }
.pair-1 { order: 1; }
.name-card { order: 2; margin: 12px 0; } /* small wine gaps around the names */
.pair-2 { order: 3; }
.nav { order: 4; }
.invite-panel { order: 5; }
/* no nav between (temple page): same wine gap as between the photos and the names */
.name-card + .invite-panel { margin-top: 12px; }

.name-card {
  background: var(--cream);
  text-align: center;
  padding: 120px 60px 104px;
}
.name {
  color: var(--black);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 6px;
}
.amp {
  color: var(--black);
  font-size: 40px;
  margin: 22px 0;
}
.date-block {
  width: 366px;
  margin: 56px auto 0;
}
.date-title {
  color: var(--black);
  font-weight: 700;
  font-style: italic;
  font-size: 56px;
  letter-spacing: 2px;
  padding: 12px 0;
}
.place {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  color: var(--black);
  font-size: 16px;
  letter-spacing: 3px;
  margin-top: 26px;
}

.nav {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
}
.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 2px;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--periwinkle);
  transition: width .3s ease, left .3s ease;
}
.nav-link:hover::after { width: 100%; left: 0; }
.nav-mono {
  color: var(--white);
  font-size: 80px;
  line-height: 1;
  white-space: nowrap;
}

.invite-panel {
  background: var(--cream);
  position: relative;
  text-align: center;
  padding: 140px 40px 88px;
}
.invite-script {
  color: var(--black);
  font-size: 83px;
  margin-bottom: 32px;
}
.invite-photo {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto 48px;
}
.invite-line {
  font-style: italic;
  color: var(--black);
  font-size: 29px;
  line-height: 1.5;
  margin-bottom: 42px;
}
.invite-panel .btn { width: 240px; }
/* same gap above and below the date as the invite line's bottom margin */
.invite-date { margin-bottom: 42px; }
.event.invite-event { margin: 0 0 42px; }
.hero:last-child { padding-bottom: 100px; } /* temple page: space above the footer */
.invite-note {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  color: var(--black);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin-top: 30px;
}

/* ============ DETAILS ============ */
.details {
  padding-top: 100px;
}
.section-title {
  color: var(--cream);
  text-align: center;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: 2px;
  margin-bottom: 100px; /* equal to the gap above the title */
}
.details-body {
  background: var(--cream);
  text-align: center;
  padding: 0 40px;
}
.details-card {
  background: var(--cream);
  width: 432px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 30px; /* same space above, below and between events */
}
.event { margin-bottom: 80px; }
.event:last-child,
.event > :last-child { margin-bottom: 0; }
.event .script {
  color: var(--black);
  font-size: 64px;
  margin-bottom: 22px;
}
.event p {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  color: var(--black);
  font-size: 19px;
  margin-bottom: 14px;
}
.event .date-title {
  font-weight: 700;
  font-style: italic;
  font-size: 56px;
  letter-spacing: 2px;
  padding: 0;
}
.event .event-note {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-style: italic;
  color: var(--black);
  font-size: 16px;
}

/* ============ REGISTRY ============ */
.registry-section {
  padding: 100px 0 0; /* full-bleed cream panel */
}
.registry-panel {
  background: var(--cream);
  padding: 110px 40px 120px;
  text-align: center;
}
.registry-heading {
  width: 366px;
  margin: 0 auto;
}
.registry-title {
  color: var(--black);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 2px;
  padding: 12px 0;
}
.registry-subtitle {
  font-style: italic;
  color: var(--black);
  font-size: 24px;
  margin: 34px 0 70px;
}
.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px); /* wraps on mid-size screens */
  justify-content: center;
  gap: 48px;
}
.reg-card {
  background: var(--cream);
  border: 3px solid var(--black);
  padding: 30px 25px 34px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.reg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(90, 0, 52, .18);
}
.reg-card .script {
  color: var(--black);
  font-size: 56px;
  margin-bottom: 22px;
  white-space: nowrap;
}
.reg-card .btn { width: 100%; padding: 16px 0; }

/* ============ OUR STORY ============ */
.our-story {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 120px 90px 130px;
}
.story-frame {
  width: 360px;
  height: 480px;
  flex-shrink: 0;
  background: var(--cream);
  position: relative;
}
.story-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--periwinkle);
}
.story-photo {
  position: absolute;
  left: 10%;
  top: 7%;
  width: 80%;
  height: 86%;
  object-fit: cover;
  object-position: 55% 50%;
}
.story-text {
  flex: 1;
  text-align: center;
}
.story-title {
  color: var(--white);
  font-size: 96px;
  margin-bottom: 30px;
}
.story-para {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  color: var(--white);
  font-size: 19px;
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 22px;
}
.story-para:last-child { margin-bottom: 0; }

/* ============ FOOTER (full-screen runner) ============ */
.footer {
  background: var(--cream);
  width: 100%;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-mono { color: var(--black); font-size: 80px; line-height: 1; }
.footer-band { height: 61px; background: var(--wine); }

/* ============ MOBILE ============ */
@media (max-width: 820px) {
  /* ---- hero: taller photo crops on narrow screens ---- */
  .strip-pair img { aspect-ratio: auto; height: 62vw; }

  .name-card { padding: 64px 24px 56px; }
  .name { font-size: 40px; letter-spacing: 4px; }
  .amp { font-size: 26px; margin: 14px 0; }
  .date-block { width: 72%; margin-top: 40px; }
  .date-title { font-size: 34px; padding: 10px 0; }
  .place { font-size: 13px; margin-top: 18px; }

  /* ---- nav: monogram centered on top, links in one row ---- */
  .nav { height: auto; padding: 24px 8px 26px; gap: 16px; flex-wrap: wrap; }
  .nav-mono { order: -1; width: 100%; text-align: center; font-size: 60px; }
  .nav-link { font-size: 12.5px; letter-spacing: 1.5px; }

  /* ---- buttons ---- */
  .btn { font-size: 13px; letter-spacing: 2px; padding: 14px 0; }

  /* ---- rsvp ---- */
  .invite-panel { padding: 112px 22px 70px; }
  .invite-script { font-size: 83px; margin-bottom: 20px; }
  .invite-photo { margin-bottom: 32px; }
  .invite-date { margin-bottom: 30px; }
  .event.invite-event { margin-bottom: 30px; }
  .hero:last-child { padding-bottom: 64px; }
  .invite-line { font-size: 21px; margin-bottom: 30px; }
  .invite-panel .btn { width: 210px; }
  .invite-note { font-size: 13px; margin-top: 22px; }

  /* ---- details ---- */
  .details { padding-top: 72px; }
  .section-title { font-size: 32px; margin-bottom: 72px; }
  .details-body { padding: 0 18px; }
  .details-card { width: 100%; max-width: 460px; padding: 56px 22px; }
  .event { margin-bottom: 56px; }
  .event .date-title { font-size: 34px; }
  .event .script { font-size: 48px; margin-bottom: 14px; }
  .event p { font-size: 15px; margin-bottom: 10px; }
  .event .event-note { font-size: 14px; }

  /* ---- registry ---- */
  .registry-section { padding-top: 72px; }
  .registry-panel { padding: 72px 18px; }
  .registry-heading { width: 72%; }
  .registry-title { font-size: 34px; padding: 10px 0; }
  .registry-subtitle { font-size: 18px; margin: 24px 0 44px; }
  .reg-grid { grid-template-columns: min(84vw, 320px); gap: 32px; }
  .reg-card { padding: 24px 20px 28px; }
  .reg-card .script { font-size: 46px; margin-bottom: 14px; }

  /* ---- our story ---- */
  .our-story { flex-direction: column; gap: 44px; padding: 72px 20px 84px; }
  .story-frame { width: min(80vw, 320px); height: auto; aspect-ratio: 360 / 480; }
  .story-title { font-size: 64px; margin-bottom: 20px; }
  .story-para { font-size: 15px; margin-bottom: 16px; }

  /* ---- footer ---- */
  .footer { height: 96px; }
  .footer-mono { font-size: 60px; }
  .footer-band { height: 44px; }
}
