/* ============================================================
   Charlotte & Sebastian — Wedding Site
   Palette:  cream #fffcf1 · blush #ebd9d1 · deep #383838 · ink #111
   Type:     Cormorant Garamond (display serif) + script accents
   ============================================================ */

:root {
  --cream: #fffcf1;
  --blush: #ebd9d1;
  --blush-soft: #f5ebe6;
  --ink: #1a1a1a;
  --deep: #383838;
  --muted: #7a726a;
  --line: #d8c9bf;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", "Great Vibes", cursive;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Offset anchor jumps so the fixed nav doesn't cover section headings
   (e.g. the RSVP QR code links to #rsvp). */
:target { scroll-margin-top: 90px; }
section[id], header[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1.1em; }

sup { font-size: 0.55em; vertical-align: super; }

.script { font-family: var(--script); font-weight: 400; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(255, 252, 241, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-size: 24px;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--ink);
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  background:
    linear-gradient(rgba(255,252,241,0.55), rgba(255,252,241,0.78)),
    url("images/photo-1.png") center 20% / cover no-repeat;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 15px;
  color: var(--deep);
  margin-bottom: 18px;
}
.hero__names {
  margin: 0;
  font-weight: 400;
  line-height: 0.98;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero__names span { font-size: clamp(56px, 12vw, 150px); }
.hero__names .script {
  font-size: clamp(34px, 6vw, 66px);
  color: var(--deep);
  margin: -6px 0;
}
.hero__meta { margin-top: 36px; }
.hero__date {
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__at {
  font-size: 22px;
  color: var(--muted);
  margin: 2px 0;
  font-style: italic;
}
.hero__venue {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(16px, 2.4vw, 24px);
  margin: 0;
}
.hero__scroll {
  position: absolute;
  bottom: 26px;
  font-size: 30px;
  color: var(--deep);
  text-decoration: none;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ---------- GENERIC SECTION ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 92px 28px;
}
.label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 15px;
  color: var(--deep);
  margin-bottom: 26px;
}
.label--center { text-align: center; }
.lead { font-size: 21px; }
.subhead {
  font-size: 34px;
  font-weight: 500;
  margin: 1.6em 0 0.4em;
}
.subhead.script { font-size: 46px; font-weight: 400; }
.subhead--lg { font-size: 58px; margin-top: 0; }
.venue { font-style: normal; line-height: 1.8; margin-bottom: 0.6em; }
.closing { margin-top: 1.6em; }
.signoff { font-size: 40px; margin-top: 0.3em; }

/* two-column photo sections */
.section--day,
.section--gifts {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.section--gifts { grid-template-columns: 1.1fr 0.9fr; }
.section--gifts .section__photo { order: 2; }
.section__photo img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.14);
}

.poem { font-style: italic; font-size: 20px; line-height: 1.9; color: var(--deep); }

/* ---------- ORDER OF THE DAY ---------- */
.section--order {
  text-align: center;
  background: var(--blush-soft);
  max-width: none;
  padding: 92px 28px;
}
.order__kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--muted);
}
.order__title {
  font-weight: 400;
  font-size: clamp(42px, 7vw, 78px);
  margin: 4px 0 50px;
}
.order__title .script { font-size: 1.25em; }
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
}
.timeline li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 14px 0;
  position: relative;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 9px; height: 9px;
  background: var(--blush);
  border: 1px solid var(--deep);
  border-radius: 50%;
  transform: translateX(-50%);
}
.timeline__time {
  text-align: right;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.timeline__event {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: var(--deep);
}

/* ---------- FAQs ---------- */
.faqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}
.faq .subhead {
  margin-top: 0;
  font-size: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.faq p { font-size: 18px; color: var(--deep); }

/* ---------- RSVP / PAY / HONEYMOON ---------- */
.section--rsvp,
.section--pay,
.section--honeymoon {
  text-align: center;
  max-width: 760px;
}
.section--pay { background: var(--blush-soft); max-width: none; }
.section--pay > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.rsvp__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: clamp(22px, 4vw, 34px);
  margin-bottom: 6px;
}
.rsvp__by { font-size: 40px; color: var(--deep); margin-bottom: 24px; }
.rsvp__text { font-size: 19px; color: var(--deep); }
.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 15px 42px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  border: 1px solid var(--ink);
  transition: all 0.25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- RSVP FORM ---------- */
.rsvp-form {
  max-width: 520px;
  margin: 30px auto 0;
  text-align: left;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field > span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--deep);
}
.field .req { color: #9a3434; margin-left: 2px; }
.field input,
.field textarea {
  font-family: var(--serif);
  font-size: 18px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--deep); }
.field textarea { resize: vertical; }
.field--radio { border: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.field--radio > span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--deep);
}
.radio-row { display: flex; gap: 26px; flex-wrap: wrap; font-size: 18px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.rsvp-form .btn { justify-self: center; margin-top: 6px; border: none; cursor: pointer; }
.form-status { text-align: center; min-height: 1.4em; margin: 4px 0 0; font-size: 16px; }
.form-status.ok { color: #2f6b3a; }
.form-status.bad { color: #9a3434; }

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 70px 24px 90px;
  background: var(--deep);
  color: var(--cream);
}
.footer__love { font-size: 44px; margin: 0; }
.footer__names {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 18px;
  margin: 6px 0 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  body { font-size: 18px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border: 1px solid var(--line);
    border-top: none;
    min-width: 220px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: 14px 22px; }

  .section--day,
  .section--gifts { grid-template-columns: 1fr; gap: 36px; }
  .section--gifts .section__photo { order: 0; }
  .section__photo img { max-height: 460px; }

  .faqs { grid-template-columns: 1fr; gap: 32px; }

  .timeline li { gap: 16px; }
  .timeline__time { font-size: 19px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 20px; }
  .timeline::before,
  .timeline li::after { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; text-align: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .timeline__time, .timeline__event { text-align: center; }
}
