/* Desert Editorial — from the "B · Desert Editorial" direction in Claude Design */
:root {
  --sand: #EAE1CF;
  --sand-deep: #DDD2BB;
  --paper: #F4EEE2;
  --ink: #2E3423;
  --olive: #4A5338;
  --clay: #9A4F2C;
  --rule: #8C8A70;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ethiopic: "Noto Serif Ethiopic", "Kefa", serif;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }  /* photos always keep their own proportions */
a { color: var(--ink); }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ge { font-family: var(--ethiopic); font-size: .55em; font-weight: 400; vertical-align: .25em; margin-left: .2em; }

/* ───────── Hero ─────────
   The whole photo is shown at its natural proportions; the menu, title and
   countdown all sit on top of it. Written for phones first, widened below. */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  text-shadow: 0 1px 18px rgba(20,24,14,.5);
}
.hero__img { width: 100%; height: auto; }
.hero::before,                      /* soft shade under the menu + title */
.hero::after {                      /* and under the countdown */
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
}
.hero::before { top: 0; height: 22%; background: linear-gradient(rgba(24,27,18,.55), rgba(24,27,18,0)); }
.hero::after  { bottom: 0; height: 22%; background: linear-gradient(rgba(24,27,18,0), rgba(24,27,18,.6)); }

/* Menu */
.nav {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
}
.nav a { color: var(--paper); text-decoration: none; }
.nav__mark { font-family: var(--display); font-size: 22px; font-style: italic; margin-right: auto; padding: 8px 0; }
.nav__rsvp, .nav__toggle {
  min-height: 44px; display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  text-shadow: none;
}
.nav__rsvp { background: var(--paper); color: var(--ink) !important; padding: 0 16px; }
.nav__toggle {
  padding: 0 14px; background: transparent; color: var(--paper);
  border: 1px solid rgba(244,238,226,.6); cursor: pointer;
}
.nav__toggle-close { display: none; }
.nav__links {             /* phones: a dropdown panel under the menu bar */
  display: none;
  position: absolute; top: 100%; left: 16px; right: 16px;
  flex-direction: column;
  background: rgba(46,52,35,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 8px 20px;
  text-shadow: none;
}
.nav.is-open .nav__links { display: flex; }
.nav.is-open .nav__toggle-open { display: none; }
.nav.is-open .nav__toggle-close { display: inline; }
.nav__links a {
  padding: 14px 0; font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 1px solid rgba(244,238,226,.15);
}
.nav__links a:last-child { border-bottom: 0; }

/* Title (in the sky) */
.hero__title {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: 84px;
  padding: 0 16px;
}
.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; line-height: 1.7; }
.eyebrow span { display: block; }
.eyebrow .sep { display: none; }
.hero__title h1 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 15vw, 176px);
  line-height: .9;
  letter-spacing: -.02em;
}
.hero__title em { font-style: italic; }

/* Countdown (in the foreground below the two of you) */
.countdown {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 0 16px 18px;
  text-align: center;
}
.countdown__label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.countdown__row { display: flex; justify-content: center; gap: 22px; margin-top: 4px; }
.countdown__n { display: flex; flex-direction: column; align-items: center; min-width: 2.6em; }
.countdown__n b {
  font-family: var(--display); font-weight: 400;
  font-size: 30px; line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown__n small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* Tablets and up */
@media (min-width: 760px) {
  .nav { padding: 28px var(--gutter); gap: 32px; }
  .nav__mark { font-size: 26px; }
  .nav__toggle { display: none; }
  .nav__links {
    display: flex; position: static; flex-direction: row; gap: 32px;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0;
    text-shadow: inherit;
  }
  .nav__links a { padding: 12px 0; border: 0; }
  .nav__links a:hover { opacity: .75; }
  .nav__rsvp { font-size: 14px; letter-spacing: .22em; padding: 0 22px; }

  .hero__title { top: clamp(120px, 12vw, 200px); padding: 0 var(--gutter); }
  .eyebrow { font-size: 14px; letter-spacing: .3em; }
  .eyebrow span, .eyebrow .sep { display: inline; }
  .hero__title h1 { margin-top: 20px; font-size: clamp(64px, 11vw, 176px); }

  .countdown { padding: 0 var(--gutter) clamp(32px, 5vw, 80px); }
  .countdown__label { font-size: 14px; }
  .countdown__row { gap: clamp(32px, 5vw, 64px); margin-top: 12px; }
  .countdown__n b { font-size: clamp(44px, 5vw, 72px); }
  .countdown__n small { font-size: 13px; margin-top: 6px; }
}

/* ───────── Sections ───────── */
.section { max-width: 1280px; margin: 0 auto; padding: 128px var(--gutter); }
.section--last { padding-top: 0; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 20px;
}
.num { font-family: var(--display); font-size: 20px; color: var(--clay); }
.section__head h2, .rsvp h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 6vw, 80px); line-height: 1;
}

/* Events */
.event { display: flex; flex-direction: column; gap: 20px; }
.event--split { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px; align-items: center; }
.event__body { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 760px) {
  .event--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); margin-top: 64px; }
}
.event img { width: 100%; height: auto; }
.event__when { font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--clay); }
.event h3 { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1; }
.event dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 18px; line-height: 1.5; }
.event dt { font-weight: 500; }
.cal-links { display: flex; flex-wrap: wrap; gap: 0 40px; margin-top: 12px; }
.cal-links a, .caps-link {
  display: inline-block; padding: 12px 0;
  font-size: 14px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
}

/* Pull quote — full-width photo (natural proportions) with the verse over it */
.quote { position: relative; background: var(--ink); color: var(--paper); }
.quote img { width: 100%; height: auto; }
.quote::after {               /* shade the right side so the verse reads clearly */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(24,27,18,0) 50%, rgba(24,27,18,.55) 100%);
}
.quote__text {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: 61%; right: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 12px;
  text-shadow: 0 1px 16px rgba(20,24,14,.55);
}
.quote__line { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(16px, 3.5vw, 64px); line-height: 1.2; white-space: nowrap; }
.quote__by { margin-top: clamp(10px, 2vw, 28px); font-size: clamp(10px, 1.1vw, 16px); letter-spacing: clamp(.12em, .6vw, .25em); text-transform: uppercase; white-space: nowrap; }

/* Travel */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 48px; margin-top: 56px; }
.tile { border-top: 3px solid var(--olive); padding-top: 20px; }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.2; }
.tile p { margin-top: 12px; }
.tile .caps-link { margin-top: 10px; }

/* RSVP */
.rsvp { background: var(--sand-deep); }
.rsvp__inner { max-width: 1280px; margin: 0 auto; padding: 128px var(--gutter); display: flex; flex-wrap: wrap; gap: 64px; }
.rsvp__intro { flex: 1 1 320px; }
.rsvp h2 { margin-top: 8px; font-size: clamp(56px, 7vw, 104px); line-height: .95; }
.rsvp h2 em { font-style: italic; }
.rsvp__intro p { margin-top: 24px; font-size: 18px; max-width: 380px; }
.rsvp__body { flex: 999 1 460px; min-width: 0; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.form label, .form legend { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { padding: 0; }
.form input[type=text], .form input[type=email], .form select {
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 12px 14px; width: 100%; min-height: 48px;
}
.form input:focus, .form select:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 8px; }
.checks label {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 400;
}
.checks input { width: 20px; height: 20px; accent-color: var(--olive); }
.form__error { grid-column: 1 / -1; color: var(--clay); font-weight: 500; }
.btn {
  grid-column: 1 / -1; justify-self: start;
  min-height: 56px; padding: 0 48px;
  background: var(--olive); color: var(--paper); border: 0;
  font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.thanks { padding: 56px 40px; background: var(--olive); color: var(--paper); }
.thanks__big { font-family: var(--display); font-size: 56px; font-style: italic; line-height: 1.1; }
.thanks p + p { margin-top: 16px; font-size: 18px; }
.thanks__edit {
  margin-top: 24px; min-height: 44px; padding: 0;
  background: none; border: 0; color: var(--paper);
  font: inherit; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline;
  cursor: pointer;
}

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr; max-width: 820px; margin-top: 40px; }   /* one column */
.faq > div { padding: 28px 0; border-bottom: 1px solid rgba(46,52,35,.2); }
.faq > div:last-child { border-bottom: 0; }
.faq h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; }
.faq p { margin-top: 10px; }
.faq .ge { font-size: .9em; vertical-align: 0; margin: 0; }

/* Registry */
.gift { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; margin-top: 48px; }
.gift__note { font-size: 19px; line-height: 1.7; max-width: 680px; }
.gift__note p + p { margin-top: 18px; }
.gift__sign { font-size: 17px; }
.gift__sign em { font-family: var(--display); font-size: 28px; }
.gift__card {                 /* a compact button under the note */
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 28px;
  background: var(--olive); color: var(--paper); text-decoration: none;
}
.gift__card span { font-family: var(--display); font-size: 20px; line-height: 1; }
.gift__card small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.gift__card:hover { background: var(--ink); color: var(--paper); }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 72px 24px; text-align: center; }
.foot__names { font-family: var(--display); font-size: 48px; font-style: italic; line-height: 1.2; }
.foot__meta { margin-top: 12px; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; }

/* ───────── Small screens ───────── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section, .rsvp__inner { padding-top: 88px; padding-bottom: 88px; }
  .section--last { padding-top: 0; }
  .event dl { grid-template-columns: 92px 1fr; font-size: 16px; }
  .thanks { padding: 40px 28px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ───────── Mels page ───────── */
/* Brighter sky than the main photo, so a deeper shade keeps the cream text readable */
.hero--mels::before { height: 42%; background: linear-gradient(rgba(30,28,18,.62), rgba(30,28,18,.25) 60%, rgba(30,28,18,0)); }
.hero--mels::after  { height: 26%; }
.hero__ge { font-family: var(--ethiopic); font-size: .5em; letter-spacing: 0; }
.ge-inline { font-family: var(--ethiopic); }
.invite { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
.invite__note { font-size: 19px; line-height: 1.7; max-width: 640px; }
.invite__note p + p { margin-top: 18px; }
.invite__title { font-family: var(--display); font-weight: 400; font-size: 48px; line-height: 1; }
.invite__dl { display: grid; grid-template-columns: 92px 1fr; gap: 10px 16px; font-size: 18px; line-height: 1.5; }
.invite__dl dt { font-weight: 500; }
@media (min-width: 760px) {
  .invite { margin-top: 64px; }
  .invite__dl { grid-template-columns: 110px 1fr; }
}

/* Venue address + directions */
address { font-style: normal; }
.map-link {
  display: inline-block; padding: 8px 0 0; min-height: 44px;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
}

/* Hotels maps — side by side on wide screens, stacked on phones */
.stay { margin-top: 64px; border-top: 3px solid var(--olive); padding-top: 20px; scroll-margin-top: 24px; }
.stay__title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.2; }
.stay__intro { margin-top: 12px; max-width: 640px; }
.hotels { display: grid; grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }
.hotels__item { min-width: 0; }
.hotels h3 { font-size: 14px; letter-spacing: .25em; text-transform: uppercase; font-weight: 500; color: var(--clay); margin-bottom: 14px; }
.map { position: relative; width: 100%; aspect-ratio: 4 / 5; background: var(--sand-deep); border: 1px solid var(--rule); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hotels .caps-link { margin-top: 8px; }
@media (min-width: 760px) {
  .map { aspect-ratio: 4 / 3; }
}
@media (min-width: 960px) {
  .hotels { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Explore Phoenix — a short list */
.section--follow { padding-top: 24px; }      /* sits right after Travel & Stay */
.explore__intro { margin-top: 28px; font-size: 19px; line-height: 1.7; max-width: 720px; }
.spots { list-style: none; margin: 24px 0 0; padding: 0; max-width: 820px; }
.spots li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid rgba(46,52,35,.2); }
.spots li:last-child { border-bottom: 0; }
.spots a { font-family: var(--display); font-size: 24px; line-height: 1.2; text-decoration: none; }
.spots a::after { content: "\00a0↗"; font-family: var(--sans); font-size: 14px; color: var(--clay); }
.spots a:hover { color: var(--clay); }
.spots span { line-height: 1.6; }
@media (min-width: 760px) {
  .spots li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: baseline; }
}

/* Anti-spam field: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
