/* ===== Design tokens ===== */
:root {
  --rose:        #c4877c;
  --rose-dark:   #a8685d;
  --rose-light:  #d4a49d;
  --rose-pale:   #f5eeec;

  --sage:        #e0e5de;
  --sage-mid:    #c8cec5;
  --sage-deep:   #4a5e4c;
  --off-white:   #f3f5f1;

  --charcoal:    #2c2c2a;
  --muted:       #7a7a74;
  --border:      #d0d5cd;

  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w:       1100px;
  --section-pad: 5rem 1.5rem;
}

/* ===== Google Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--sage);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 2.5rem;
  background: transparent;
  transition: background 0.35s ease;
}
.nav.is-scrolled {
  background: rgba(224, 229, 222, 0.96);
  backdrop-filter: blur(6px);
}
.nav__left {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__left a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__left a:hover { color: var(--rose); }
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--rose);
  text-decoration: none;
  text-align: center;
}
.nav__right {
  display: flex;
  justify-content: flex-end;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--charcoal);
  padding: 0.25rem;
}
.nav__mobile-links {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--sage);
}
/* Photo anchored to the bottom — flowers erupt below the text */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 62%;
  background-image: url('img/hero-flowers.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
/* Fade the photo's top edge into the sage background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--sage) 0%,
    var(--sage) 32%,
    rgba(224, 229, 222, 0.85) 44%,
    transparent 58%
  );
  z-index: 1;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 5rem;
}
.hero__dateline {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--rose);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__dateline::before,
.hero__dateline::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--rose);
  opacity: 0.6;
}
.hero__names {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 13vw, 8.5rem);
  font-weight: 300;
  color: var(--rose);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.hero__eyebrow {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  color: var(--rose);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.hero__venue-line {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-sans);
  font-weight: 500;
}
.btn--primary {
  background: var(--rose);
  color: #fff;
}
.btn--primary:hover {
  background: var(--rose-dark);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
}
.btn--outline:hover {
  background: var(--rose-pale);
}
.btn--full { width: 100%; text-align: center; }

/* ===== Sections ===== */
.section { padding: var(--section-pad); }
.section--alt { background: var(--off-white); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  color: var(--rose);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.section__sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.75rem;
  font-size: 1rem;
}

/* Placeholder shown in sections whose content isn't finalised yet. */
.coming-soon {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--rose);
  letter-spacing: 0.04em;
  padding: 2rem 0 1rem;
}

.container      { max-width: var(--max-w); margin: 0 auto; }
.container--narrow { max-width: 600px; }

/* ===== Story ===== */
.story__body { max-width: 680px; margin: 0 auto; text-align: center; }
.story__placeholder {
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.85;
  border: 1.5px dashed var(--rose-light);
  border-radius: 4px;
  padding: 2.25rem;
}

/* ===== Divider ===== */
.divider {
  text-align: center;
  color: var(--rose-light);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  margin-bottom: 2.75rem;
}

/* ===== Schedule grid ===== */
.schedule__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 2px;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 6px rgba(74, 94, 76, 0.08);
  text-align: center;
}
.card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--rose);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.card__time {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.card__venue {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.card__address,
.card__detail {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.25rem;
}
.card__placeholder { font-style: italic; }

/* ===== RSVP Form ===== */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row { display: flex; flex-direction: column; gap: 0.4rem; }
.form__label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.form__label span { color: var(--rose); }
.form__input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form__input:focus {
  outline: none;
  border-color: var(--rose-light);
  box-shadow: 0 0 0 3px rgba(196, 135, 124, 0.15);
}
.form__textarea { resize: vertical; min-height: 6rem; }
.form__fieldset { border: none; }
.form__fieldset legend { margin-bottom: 0.625rem; }
.form__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0.375rem;
}
.form__radio input { accent-color: var(--rose); width: 1rem; height: 1rem; cursor: pointer; }
.form__error {
  color: #b0363c;
  font-size: 0.875rem;
  background: #fdf2f2;
  border-radius: 2px;
  padding: 0.625rem 0.875rem;
}
.form__success {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--sage-deep);
  padding: 2.5rem;
  background: var(--off-white);
  border-radius: 2px;
}

/* ===== Honeymoon fund ===== */
.fund__card {
  background: #fff;
  border-radius: 2px;
  padding: 2.25rem 2rem;
  box-shadow: 0 1px 6px rgba(74, 94, 76, 0.08);
  text-align: center;
}
.fund__desc {
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
  font-style: italic;
}
.fund__note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  letter-spacing: 0.04em;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.timeline__track {
  display: flex;
  position: relative;
  min-width: 640px;
}
/* Horizontal rule through the dot centres */
.timeline__track::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: calc(160px + 22px); /* above-zone height + half dot height */
  height: 1px;
  background: var(--rose-light);
  z-index: 0;
}
.timeline__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0 0.75rem;
}
.timeline__above {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
.timeline__below {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.timeline__connector {
  width: 1px;
  height: 0.9rem;
  background: var(--rose-light);
  flex-shrink: 0;
}
.timeline__dot {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rose-light);
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}
.timeline__card {
  background: #fff;
  padding: 1rem 0.875rem;
  text-align: center;
  width: 100%;
  box-shadow: 0 1px 8px rgba(44, 43, 41, 0.06);
}
.timeline__time {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.3rem;
}
.timeline__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.timeline__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Mobile: stack vertically */
@media (max-width: 760px) {
  .timeline__track {
    flex-direction: column;
    min-width: unset;
  }
  .timeline__track::before {
    top: 0; bottom: 0; left: calc(22px + 0.75rem);
    right: auto;
    width: 1px;
    height: auto;
  }
  .timeline__item {
    flex-direction: row;
    align-items: flex-start;
    padding: 0 0 1.5rem 0;
    gap: 1rem;
  }
  .timeline__above,
  .timeline__below { display: none; }
  .timeline__dot { flex-shrink: 0; margin-top: 0; }
  .timeline__mobile-card {
    display: block;
    flex: 1;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 8px rgba(44,43,41,.06);
  }
  .timeline__mobile-card .timeline__time {
    font-size: 0.72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--rose); margin-bottom: .3rem;
  }
  .timeline__mobile-card .timeline__name {
    font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: .3rem;
  }
  .timeline__mobile-card .timeline__desc {
    font-size: .8rem; color: var(--muted); line-height: 1.55;
  }
}
@media (min-width: 761px) {
  .timeline__mobile-card { display: none; }
}

/* ===== Location ===== */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.location__map {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 10px rgba(44, 43, 41, 0.1);
}
.location__map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}
.location__details { display: flex; flex-direction: column; gap: 2rem; }
.location__block h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--rose);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.location__block p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.location__block a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location__block strong {
  color: var(--charcoal);
  font-weight: 600;
}

@media (max-width: 760px) {
  .location__grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.footer {
  background: var(--sage);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--sage-mid);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  .nav {
    grid-template-columns: 1fr auto;
    padding: 0.875rem 1.25rem;
  }
  .nav__left { display: none; }
  .nav__right { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--sage);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .nav__mobile-links.is-open { display: flex; }
  .nav__mobile-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--charcoal);
  }

  .hero__names { line-height: 1; }
  .schedule__grid { grid-template-columns: 1fr; }
}
