/* =====================================================================
   Emerald & sage garden palette: layered greens from deep emerald to
   pale pistachio, with gold. Sections alternate light sage and rich
   emerald so the page has depth. Loaded last, so these rules win.
   ===================================================================== */
:root {
  --forest: #0b3d2e; /* deep emerald: headings, dark bands */
  --emerald: #1f6b50; /* emerald: accents, gradients */
  --sage-deep: #3f7a5f;
  --sage: #9db59a;
  --mist: #c9d8c3;
  --mist-soft: #e3ecd9; /* pistachio */
  --ivory: #f7f5ec;
  --paper: #fbf9f2;
  --gold: #c9a45c;
  --gold-deep: #9a7a35;
  --muted: #55665c;
  --line: rgb(11 61 46 / 0.14);
}

body {
  background: var(--paper);
}

/* Dark emerald band with a soft glow, used behind The Day, RSVP and the footer. */
.day,
.rsvp,
.footer {
  background:
    radial-gradient(90% 70% at 50% 0%, rgb(31 107 80 / 0.55), transparent 70%),
    linear-gradient(180deg, #0e4635 0%, var(--forest) 100%);
}
.events,
.event {
  background-color: transparent;
}
.event {
  background: rgb(11 61 46 / 0.35);
}
.events {
  background: rgb(201 164 92 / 0.28);
  border-color: rgb(201 164 92 / 0.35);
}
.event-kicker,
.day .eyebrow,
.rsvp .eyebrow {
  color: var(--gold);
}
.event-time {
  color: #e6d3a6;
}
.schedule li::before {
  background: var(--forest);
  border-color: var(--gold);
}
.schedule ol::before {
  background: rgb(201 164 92 / 0.4);
}
.schedule span {
  color: #e6d3a6;
}
.dress {
  border-top-color: rgb(201 164 92 / 0.3);
}
.swatches li::before {
  border-color: rgb(201 164 92 / 0.6);
}

/* Light sage sections. */
.welcome {
  background: linear-gradient(180deg, var(--paper) 0%, #f1f5ea 100%);
}
.story {
  background:
    radial-gradient(70% 40% at 85% 10%, rgb(157 181 154 / 0.28), transparent 70%),
    radial-gradient(60% 40% at 10% 90%, rgb(157 181 154 / 0.22), transparent 70%),
    var(--mist-soft);
}
.timeline::before {
  background: linear-gradient(var(--mist), var(--emerald), var(--mist));
}
.timeline li::before {
  background: var(--mist-soft);
  border-color: var(--emerald);
}
.timeline li.highlight::before {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 0 0 5px rgb(201 164 92 / 0.35);
}
.timeline .when,
.word-label,
.yes-copy .eyebrow {
  color: var(--gold-deep);
}
.word {
  background: #fff;
  border-color: rgb(201 164 92 / 0.3);
  box-shadow: 0 18px 40px rgb(11 61 46 / 0.06);
}
.word::before {
  color: rgb(201 164 92 / 0.45);
}
.gifts {
  background: var(--paper);
}
.zelle {
  background: var(--mist-soft);
  border-color: rgb(201 164 92 / 0.35);
}
.faq {
  background: linear-gradient(180deg, #f1f5ea 0%, var(--paper) 100%);
}
.contacts {
  background: var(--mist-soft);
}
.contact-card {
  border-color: rgb(201 164 92 / 0.4);
}

/* RSVP on emerald: heading in ivory, the form on a light card. */
.rsvp h2 {
  color: var(--ivory);
}
.rsvp .section-head .muted {
  color: rgb(247 245 236 / 0.78);
}
.rsvp .section-head strong {
  color: #e6d3a6;
}
.rsvp-form {
  background: var(--paper);
  border-color: rgb(201 164 92 / 0.45);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.25);
}
.rsvp-closed .lead {
  color: var(--ivory);
}

/* Buttons and small accents. */
.btn-solid {
  background: var(--emerald);
  border-color: var(--emerald);
}
.btn-solid:hover {
  background: var(--forest);
}
.choice input:checked + span {
  background: var(--emerald);
  border-color: var(--emerald);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--emerald);
}
.eyebrow {
  color: var(--sage-deep);
}
.footer-date {
  color: var(--gold);
}
.cover .names .amp,
.cover-date > span[aria-hidden] {
  color: var(--gold);
}
.countdown-band .countdown b {
  color: var(--forest);
}

/* ---------- type: EB Garamond (classic invitation serif) with even, lining numbers ---------- */
:root {
  --serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
}
body {
  font-variant-numeric: lining-nums;
}
h1,
h2,
h3,
.lead,
blockquote,
.countdown b,
.schedule time {
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
}
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: 0;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
}
h3 {
  font-size: 1.45rem;
}
.cover .names {
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 6rem);
  letter-spacing: 0.1em;
}
.lead {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}
.word blockquote {
  font-size: 1.2rem;
  line-height: 1.6;
}
.timeline h3 {
  font-size: 1.45rem;
}
.faq-list summary {
  font-size: 1.15rem;
}
.footer-names {
  font-size: 2.2rem;
}

/* ---------- The Day: two calm venue cards, times live in the order of the day ---------- */
.day .section-head .muted {
  font-size: 0.98rem;
}
.venues {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 50px;
}
@media (min-width: 760px) {
  .venues {
    grid-template-columns: 1fr 1fr;
  }
}
.venue {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding: 30px 26px 26px;
  border: 1px solid rgb(201 164 92 / 0.35);
  background: rgb(255 255 255 / 0.04);
}
.venue h3 {
  font-size: 1.55rem;
  color: var(--ivory);
}
.venue-time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #e6d3a6;
}
.venue .event-address {
  font-size: 0.9rem;
}
.venue .link {
  margin-top: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
}
.schedule {
  max-width: 980px;
  margin: 0 auto 40px;
}
.schedule time {
  font-size: 1.3rem;
}
.schedule span {
  font-size: 0.7rem;
}
.schedule small {
  font-size: 0.8rem;
}
.dress {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 28px;
  gap: 20px;
}
.dress h3 {
  font-size: 1.4rem;
}
.dress .muted {
  font-size: 0.95rem;
}
.swatches {
  gap: 10px;
}
.swatches li {
  font-size: 0.58rem;
}
.swatches li::before {
  width: 34px;
  height: 34px;
}

/* ---------- contact cards: name on the left, number on the right ---------- */
.contact-card {
  text-align: left;
  padding: 28px 28px 24px;
  gap: 6px;
}
.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-list span {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest);
}
.contact-list a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--emerald);
  text-decoration: none;
  white-space: nowrap;
}
.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-note {
  font-size: 0.84rem;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ---------- tighter spacing everywhere ---------- */
section {
  padding: clamp(56px, 7vw, 92px) 0;
}
.section-head {
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 42px);
}
.timeline {
  margin-bottom: 60px;
}
.timeline li {
  padding-bottom: 34px;
}
@media (min-width: 900px) {
  .timeline li,
  .timeline li:nth-child(even) {
    padding-bottom: 38px;
  }
}
.yes {
  margin-bottom: 60px;
}
.events {
  margin-bottom: 44px;
}
.schedule {
  margin-bottom: 44px;
}
.dress {
  padding-top: 34px;
}
.zelle {
  padding: 28px 24px;
}

/* Contacts: a compact closing section. */
.contacts {
  padding: clamp(44px, 5vw, 64px) 0;
}
.contacts .section-head {
  margin-bottom: 24px;
}
.contacts h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.contact-cards {
  gap: 14px;
}
.contact-card {
  padding: 22px 24px 18px;
  box-shadow: 0 10px 26px rgb(11 61 46 / 0.06);
}
.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.contact-list li {
  padding: 9px 0;
}
.footer {
  padding: 54px 20px 40px;
}
.footer-date {
  margin-bottom: 22px;
}
.cover .names .amp {
  margin: 0 0.12em;
}

/* ---------- cover scaled like an invitation: centred, framed, clear of the flowers ---------- */
.cover {
  padding: 0 clamp(72px, 9vw, 150px);
}
.cover-title {
  padding: clamp(18px, 3vw, 34px) 20px clamp(20px, 2.6vw, 30px);
}
.cover .names {
  font-size: clamp(2.5rem, 4.9vw, 4.6rem);
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}
.cover-date {
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  letter-spacing: 0.32em;
}
.cover-photo {
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 2.2 / 1;
  max-height: clamp(300px, 54vh, 520px);
  padding: 10px;
  background: #fff;
  border: 1px solid rgb(201 164 92 / 0.35);
  box-shadow: 0 26px 60px rgb(11 61 46 / 0.16);
}
.cover-photo picture,
.cover-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.cover-welcome {
  left: calc(3% + 10px);
  bottom: calc(8% + 10px);
}
.cover-welcome strong {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}
.countdown-band {
  padding-top: 34px;
}
@media (max-width: 700px) {
  .cover {
    padding: 0 26px;
  }
  .cover .names {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }
  .cover-photo {
    aspect-ratio: 4 / 5;
    max-height: none;
    padding: 7px;
  }
}

/* Countdown corner flowers fade out softly, no straight edges. */
.countdown-band::before,
.countdown-band::after {
  -webkit-mask-image: linear-gradient(var(--fade-x), #000 45%, transparent 98%), linear-gradient(to top, #000 50%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(var(--fade-x), #000 45%, transparent 98%), linear-gradient(to top, #000 50%, transparent 98%);
  mask-composite: intersect;
}
.countdown-band::before {
  --fade-x: to right;
}
.countdown-band::after {
  --fade-x: to left;
}

/* Q&A is the last section before the footer: compact. */
.faq {
  padding: clamp(40px, 5vw, 60px) 0;
  background: var(--paper);
}
.faq h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* Pinned menu: fully solid so nothing shows through. */
.nav.pinned {
  background: var(--paper);
}

/* ---------- RSVP: a compact, standard-size form ---------- */
.rsvp {
  padding: clamp(48px, 6vw, 72px) 0;
}
.rsvp .narrow {
  width: min(560px, 100% - 40px);
}
.rsvp .section-head {
  margin-bottom: 24px;
  gap: 8px;
}
.rsvp h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}
.rsvp .section-head .muted {
  font-size: 0.92rem;
}
.rsvp-form {
  gap: 14px;
  padding: clamp(20px, 3.5vw, 30px);
  border-radius: 6px;
}
/* Attending: one compact two-way switch. */
.rsvp-form .choice {
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.rsvp-form .choice span {
  padding: 9px 8px;
  border: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.rsvp-form .row {
  gap: 12px;
}
.rsvp-form .field {
  gap: 5px;
}
.rsvp-form .field > span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--forest);
}
.rsvp-form .field em {
  margin-left: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}
.rsvp-form .field input,
.rsvp-form .field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid #d5ddcf;
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rsvp-form .field textarea {
  min-height: 0;
  resize: vertical;
}
.rsvp-form .field input::placeholder,
.rsvp-form .field textarea::placeholder {
  color: #9aa79d;
}
.rsvp-form .field input:focus,
.rsvp-form .field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgb(31 107 80 / 0.15);
}
.rsvp-form .btn-wide {
  min-height: 46px;
  margin-top: 4px;
  border-radius: 6px;
}
.rsvp-form .fine {
  font-size: 0.78rem;
  line-height: 1.5;
}
@media (max-width: 520px) {
  .rsvp-form .row {
    grid-template-columns: 1fr;
  }
  .rsvp-form .row[data-when] {
    grid-template-columns: 1fr 1fr;
  }
}
.rsvp-form .field input,
.rsvp-form .field textarea {
  color: var(--ink);
}
