/* ============================================================
   FONTS
   ============================================================ */

@font-face {
  font-family: 'Parfumerie Script';
  src: url('../fonts/parfumerie-script-old-style/parfumerie-script-old-style.woff2') format('woff2'),
       url('../fonts/parfumerie-script-old-style/parfumerie-script-old-style.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Boho Script';
  src: url('../fonts/boho-script-font/Boho-BF651ebd2b85127.woff2') format('woff2'),
       url('../fonts/boho-script-font/Boho-BF651ebd2b85127.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif Pro';
  src: url('../fonts/source-serif-pro/SourceSerifPro-Regular.woff2') format('woff2'),
       url('../fonts/source-serif-pro/SourceSerifPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif Pro';
  src: url('../fonts/source-serif-pro/SourceSerifPro-It.woff2') format('woff2'),
       url('../fonts/source-serif-pro/SourceSerifPro-It.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif Pro';
  src: url('../fonts/source-serif-pro/SourceSerifPro-Semibold.woff2') format('woff2'),
       url('../fonts/source-serif-pro/SourceSerifPro-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif Pro';
  src: url('../fonts/source-serif-pro/SourceSerifPro-Bold.woff2') format('woff2'),
       url('../fonts/source-serif-pro/SourceSerifPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif Pro';
  src: url('../fonts/source-serif-pro/SourceSerifPro-Light.woff2') format('woff2'),
       url('../fonts/source-serif-pro/SourceSerifPro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */

:root {
  --beige-bg:   #d7cfcb;
  --red-bg:     #3a0611;
  --beige-text: #cdc1ab;
  --red-text:   #4d0011;

  --font-serif:  'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-cursive:'Parfumerie Script', 'Snell Roundhand', 'Apple Chancery', cursive;
  --font-boho:   'Boho Script', 'Brush Script MT', cursive;

  --max-width: 960px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  --shadow-card: 0 20px 60px -10px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   BASE
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--red-text);
  background: var(--beige-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration: none; }

p { margin: 0 0 1em; }

.cursive {
  font-family: var(--font-cursive);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.section--red {
  background: var(--red-bg);
  color: var(--beige-text);
}
.section--beige {
  background: var(--beige-bg);
  color: var(--red-text);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.section__heading {
  font-size: clamp(5.5rem, 15vw, 11rem);
  text-align: center;
  margin: 0 0 0.6em;
  font-weight: 400;
  line-height: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 2.4em;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--beige-text);
  color: var(--beige-text);
}
.btn--ghost:hover { background: rgba(0, 0, 0, 0.45); }

.hero__cta.btn--ghost {
  font-size: 1.75rem;
  letter-spacing: 0.25em;
  padding: 0.7em 1.8em;
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.btn--solid {
  background: var(--red-bg);
  color: var(--beige-text);
  border-color: var(--red-bg);
}
.btn--solid:hover { opacity: 0.88; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--beige-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(20, 6, 12, 0.55), rgba(20, 6, 12, 0.55)),
    url('../img/hero-photo.jpg') center/cover no-repeat;
}

.hero__inner {
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 900px;
}

.hero__title {
  font-family: var(--font-cursive);
  font-weight: 400;
  font-size: clamp(6rem, 18vw, 10rem);
  line-height: 1;
  margin: 0 0 0.3em;
  white-space: normal;
}
.hero__title .amp { font-style: italic; }

@media (min-width: 640px) {
  /* keep names on a single line on tablet+ */
  .hero__title { white-space: nowrap; }
}

.hero__subtitle {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 2.2em;
}

.hero__meta {
  /* mobile: stacked, follows the CTA, centered in the column */
  width: 100%;
  padding: 1.5em clamp(1.5rem, 4vw, 3rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige-text);
  text-align: center;
}

@media (min-width: 720px) {
  .hero__meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 1em;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    text-align: left;
  }
  .hero__meta-item--left   { text-align: left; }
  .hero__meta-item--center { text-align: center; }
  .hero__meta-item--right  { text-align: right; }
}

.hero__cta { margin-top: 0; margin-bottom: 2.2em; }

/* ============================================================
   2. WELCOME
   ============================================================ */

.welcome .section__inner,
.faq .section__inner { max-width: 1400px; }

.welcome__body {
  text-align: center;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  letter-spacing: 0.16em;
  line-height: 1.9;
  max-width: 100%;
  margin: 0 auto 4em;
}

.welcome__signoff {
  font-family: var(--font-boho);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  text-align: center;
  line-height: 1.9;
  margin: 0;
}

.welcome__signoff-names {
  display: inline-block;
  padding-left: 2.5em;
}

/* ============================================================
   3. ITINERARY
   ============================================================ */

.itinerary__photo {
  height: clamp(528px, 84vw, 1008px);
  overflow: hidden;
  filter: grayscale(100%);
}

.itinerary__photo img {
  width: 100%;
  height: 125%;          /* render image 25% taller than the box */
  margin-top: -12.5%;    /* pull up so we crop equally top and bottom */
  object-fit: cover;
  object-position: center;
  display: block;
}

.itinerary__grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.itinerary__block-title {
  font-size: clamp(4rem, 8vw, 7rem);
  margin: 0 0 0.5em;
  font-weight: 400;
  line-height: 1;
}

.itinerary__block p {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}

.itinerary__venue { font-weight: 600; }

.itinerary__block p.itinerary__dress,
.itinerary__block p.itinerary__note {
  font-family: var(--font-cursive);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.9;
  margin: 0;
}
.itinerary__block p.itinerary__dress { margin-top: 0.1em; }
.itinerary__block p.itinerary__note { margin-top: -0.25em; }

/* ============================================================
   4. WEDDING DAY
   ============================================================ */

.timeline {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  position: relative;
}

/* center divider line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1.5px);
  width: 3px;
  background: var(--beige-text);
}

.timeline__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 2.5em;
}

.timeline dt {
  font-family: var(--font-cursive);
  font-weight: 400;
  font-size: clamp(3.5rem, 6.5vw, 5.5rem);
  line-height: 1;
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
  padding-right: 0.5em;
}

.timeline dd {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  padding-left: 0.5em;
}

/* ============================================================
   5. PHOTO STRIP
   ============================================================ */

.photo-strip {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.photo-strip__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(40, 40, 40, 0.45), rgba(40, 40, 40, 0.55)),
    url('../img/photo-strip-bg.jpg') center/cover no-repeat;
  filter: grayscale(100%);
}

.photo-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1600px;
  margin: 0 auto;
}

/* mobile: single column at 50% width so each photo is large but not full-bleed */
.photo-strip__photo {
  width: 50%;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .photo-strip__inner { grid-template-columns: repeat(3, 1fr); }
  .photo-strip__photo { width: 85%; margin-inline: auto; }
}

.photo-strip__photo {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.55);
}

.photo-strip__photo--1 {
  background-image: url('../img/photo-strip-1.jpg');
}
.photo-strip__photo--2 {
  background-image: url('../img/photo-strip-2.jpg');
}
.photo-strip__photo--3 {
  background-image: url('../img/photo-strip-3.jpg');
}

/* ============================================================
   6. ACCOMMODATIONS
   ============================================================ */

.accommodations__intro {
  max-width: 1000px;
  margin: -1em auto 3.5rem;
  text-align: center;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  line-height: 1.7;
}

.hotels {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 480px;
}

.hotel__name--serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

.hotel p { margin: 0 0 0.3em; }

.hotel__phone,
.hotel__note { font-size: clamp(1.15rem, 1.4vw, 1.3rem); }

.hotel__note { font-style: italic; }

.additional__heading {
  font-size: clamp(3rem, 6vw, 4.75rem);
  text-align: center;
  margin: 0 0 1em;
  font-weight: 400;
  line-height: 1;
}

.additional {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  letter-spacing: 0.04em;
}
.additional li { margin: 0.5em 0; }

/* ============================================================
   7. FAQ
   ============================================================ */

.faq__list {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4em;
  text-align: center;
}

.faq__item dt {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 0.4em;
}

.faq__item dd {
  margin: 0;
  font-size: clamp(1.2rem, 1.45vw, 1.35rem);
  line-height: 1.7;
  font-weight: 300;
}

.faq__item dd p { margin: 0 0 0.4em; }
.faq__item dd p strong {
  font-style: italic;
  font-weight: 600;
}

/* ============================================================
   8. CONTACT
   ============================================================ */

.contact .section__inner { text-align: center; }

.contact__photo {
  width: min(820px, 95%);
  aspect-ratio: 4 / 3;
  margin: 0 auto 2.5em;
  background: url('../img/couple-contact.jpg') center/cover no-repeat;
}

.contact__email {
  font-size: clamp(0.85rem, 3vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  word-break: break-all;
  overflow-wrap: anywhere;
}

@media (min-width: 520px) {
  .contact__email {
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    letter-spacing: 0.22em;
  }
}

/* ============================================================
   FLOATING RSVP FAB
   ============================================================ */

.rsvp-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 50;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1em 1.6em;
  background: var(--red-bg);
  color: var(--beige-text);
  border: 1px solid var(--beige-text);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.rsvp-fab:hover { transform: translateY(-2px); }

/* ============================================================
   9. RSVP MODAL
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(205, 193, 171, 0.25), transparent 35%),
    radial-gradient(circle at 75% 65%, rgba(77, 0, 17, 0.45), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(58, 6, 17, 0.7), rgba(58, 6, 17, 0.9));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.modal__card {
  position: relative;
  background: var(--beige-bg);
  color: var(--red-text);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  border-radius: 0;
}

@media (min-width: 720px) {
  .modal__card {
    width: min(520px, 92vw);
    height: auto;
    max-height: 90vh;
    border-radius: 14px;
  }
}

.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: transparent;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--red-text);
  cursor: pointer;
  padding: 0.25em 0.5em;
}
.modal__close:hover { opacity: 0.7; }

.modal__title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
  margin: 0.2em 0 1em;
}

.modal__state { animation: fadein 0.25s ease; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal__error {
  background: var(--red-bg);
  color: var(--beige-text);
  padding: 0.9em 1.1em;
  border-radius: 6px;
  margin-bottom: 1.25em;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* form fields */

.field { margin-bottom: 1.4em; border: 0; padding: 0; }

.field__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.field__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--red-text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(77, 0, 17, 0.2);
  border-radius: 8px;
  padding: 0.7em 0.9em;
}
.field__input:focus {
  outline: 2px solid var(--red-text);
  outline-offset: 1px;
}
textarea.field__input { resize: vertical; min-height: 5em; }

/* radio + chip rows */

.field--radio,
.field--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}
.field--radio .field__label,
.field--chips .field__label {
  flex-basis: 100%;
}

.radio,
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(77, 0, 17, 0.25);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.radio input,
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio:has(input:checked),
.chip:has(input:checked) {
  background: var(--red-bg);
  color: var(--beige-text);
  border-color: var(--red-bg);
}

/* progressive enhancement fallback for browsers without :has() */
.radio input:focus-visible + span,
.chip input:focus-visible + span {
  outline: 2px solid var(--red-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* honeypot */

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* submit */

.rsvp-form__submit {
  width: 100%;
  margin-top: 0.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
}

.rsvp-form__spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.rsvp-form.is-submitting .rsvp-form__spinner { display: inline-block; }
.rsvp-form.is-submitting .rsvp-form__submit-label::after { content: '…'; }
.rsvp-form.is-submitting .rsvp-form__submit-label { content: 'Sending'; }

@keyframes spin { to { transform: rotate(360deg); } }

/* success state */

.modal__state--success { text-align: center; }
.success__icon {
  color: var(--red-text);
  display: inline-flex;
  margin-bottom: 0.3em;
}
.success__message {
  font-size: 1.05rem;
  max-width: 32ch;
  margin: 0 auto 1.5em;
  line-height: 1.5;
}

/* lock body scroll when modal open */

body.modal-open {
  overflow: hidden;
}
