/* ============================================================
   Cari & Navid — Editorial / California Coastal / Quiet Luxury
   ============================================================ */

:root {
  --forest: #1F3A2E;  /* primary text, buttons, nav */
  --olive:  #6E7452;  /* accent, links, dividers */
  --ivory:  #F4EEE2;  /* primary background */
  --linen:  #E9E2D6;  /* secondary background */
  --stone:  #B7AEA2;  /* secondary text, borders, captions */

  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  /* Citadel Script / Snell Roundhand aren't webfonts; Pinyon Script is a
     cross-platform stand-in with a comparable formal script feel. */
  --script: "Citadel Script", "Snell Roundhand", "Pinyon Script", cursive;

  --maxw: 1120px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(5rem, 11vw, 9rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--forest);
  background: var(--ivory);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0 0 1.15rem; }
strong { font-weight: 500; }

a { color: var(--olive); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--forest); }

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

/* ===== Shared type helpers ===== */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.4rem;
}
.eyebrow--center { text-align: center; }

.script-line {
  font-family: var(--script);
  font-weight: 400;
  color: var(--olive);
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 1;
  margin: 0 0 1.5rem;
}

.rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--stone);
  margin: 1.6rem auto 0;
}

/* ===== Layout ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 640px; }

.section { padding: var(--section-y) 0; }
.section--linen { background: var(--linen); }

.section__head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: var(--forest);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 1.05rem 2.9rem;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--ivory);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn:hover { background: var(--olive); border-color: var(--olive); color: var(--ivory); }

.btn--ghost {
  background: transparent;
  border-color: var(--ivory);
  color: var(--ivory);
}
.btn--ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }

.btn--submit { width: 100%; padding: 1.15rem; }

.btn--outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn--outline:hover { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

.btn--sm { padding: 0.8rem 2rem; font-size: 0.66rem; }

.btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(183, 174, 162, 0.4);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--forest);
  line-height: 1;
}
.nav__brand:hover { color: var(--olive); }
.nav__links {
  display: flex;
  gap: 2.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.nav__links a:hover { color: var(--olive); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  width: 26px;
  height: 1px;
  background: var(--forest);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  padding: var(--gutter);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(31, 58, 46, 0.34), rgba(31, 58, 46, 0.44));
}
.hero__content { position: relative; z-index: 2; max-width: 820px; }
.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.8rem, 13vw, 8rem);
  line-height: 0.95;
  margin: 0 0 1.6rem;
}
.hero__names .amp { font-size: 0.8em; }
.hero__meta {
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 2.6rem;
}
.hero .btn { margin-top: 0.5rem; }

/* ===== Lead copy ===== */
.lead {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--forest);
}
.signature {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--olive);
  margin-top: 1.2rem;
}

/* ===== Thank you ===== */
.thankyou { text-align: center; }
.thankyou .lead { max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ===== Full-width editorial image band ===== */
.band { margin: 0; }
.band img {
  width: 100%;
  height: clamp(360px, 72vh, 780px);
  object-fit: cover;
}

/* ===== The Celebration — event groups ===== */
.events {
  max-width: 560px;
  margin: 0 auto;
}
.event {
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.event + .event { border-top: 1px solid rgba(183, 174, 162, 0.45); }
.event__label {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.4rem;
}
.event__venue {
  font-family: var(--script);
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.event__line {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--forest);
  margin: 0 0 0.5rem;
}
.event__note {
  font-size: 0.86rem;
  color: var(--stone);
  margin: 1.3rem auto 0;
  max-width: 30rem;
}

/* ===== Timeline ===== */
.timeline {
  max-width: 420px;
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.timeline__list { list-style: none; margin: 0; padding: 0; }
.timeline__list li {
  padding: 1.05rem 0;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid rgba(183, 174, 162, 0.35);
}
.timeline__list li:last-child { border-bottom: none; }

/* ===== Lead — centered intro ===== */
.lead--center {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--forest);
}

/* ===== Explore — favorites index ===== */
.favorites {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 460px;
  text-align: center;
}
.favorites li {
  padding: 1.15rem 0;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid rgba(183, 174, 162, 0.35);
}
.favorites li:last-child { border-bottom: none; }

/* ===== RSVP form ===== */
.rsvp__deadline {
  margin: 1.6rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.rsvp-form { margin-top: 1rem; }
.field { margin-bottom: 1.9rem; border: none; padding: 0; }
.field label,
.field legend {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.7rem;
  padding: 0;
}
.req { color: var(--stone); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--forest);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone);
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field textarea {
  border: 1px solid var(--stone);
  padding: 0.85rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
}
.field select { -webkit-appearance: none; appearance: none; }

.radio-group { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  color: var(--forest);
  cursor: pointer;
}
.radio input { width: auto; accent-color: var(--forest); }
.attending-only { display: none; }
.attending-only.is-visible { display: block; }

.form-status {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--olive); }
.form-status.is-error { color: #9a4a3a; }

/* ===== Footer ===== */
.footer {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}
.footer__closing {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ivory);
  opacity: 0.7;
}
.footer__names {
  font-family: var(--script);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  margin: 0 0 0.6rem;
  color: var(--ivory);
}
.footer__date {
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  opacity: 0.85;
}
.footer__note {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.65;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(183, 174, 162, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav__links.is-open { max-height: 360px; }
  .nav__links li { border-top: 1px solid rgba(183, 174, 162, 0.35); }
  .nav__links a { display: block; padding: 1.1rem var(--gutter); }
}
