/* ---------------------------------------------------------
   Design tokens
--------------------------------------------------------- */
:root {
  --paper: #fbf8f2;
  --paper-dim: #f2ede2;
  --ink: #2b3a2e;
  --ink-soft: #4a5a4d;
  --bronze: #8a6d4b;
  --brick: #a5453c;
  --line: #d8cfbe;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  --measure: 640px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brick); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose { max-width: var(--measure); }

section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 40px;
}

/* ---------------------------------------------------------
   Sprig divider (SVG line motif, reused as a section marker)
--------------------------------------------------------- */
.sprig {
  display: block;
  width: 88px;
  height: 24px;
  margin: 0 auto 28px;
  color: var(--bronze);
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding: 60px 24px;
}

.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero-names {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.hero-names .amp {
  display: block;
  font-style: italic;
  color: var(--bronze);
  font-size: 0.5em;
  margin: 6px 0;
}

.hero-meta {
  margin-top: 26px;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-meta .dot { margin: 0 10px; color: var(--line); }

.countdown {
  margin-top: 44px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown div { text-align: center; }

.countdown .num {
  font-family: var(--serif);
  font-size: 34px;
  display: block;
}

.countdown .label {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------
   Story
--------------------------------------------------------- */
.story {
  text-align: center;
}

.story p {
  margin: 0 auto 20px;
  max-width: var(--measure);
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   Schedule (this one legitimately is a sequence, so it's
   the only place we use ordered numbering)
--------------------------------------------------------- */
.schedule-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--measure);
  border-top: 1px solid var(--line);
}

.schedule-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-item time {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bronze);
  font-size: 17px;
}

.schedule-item h3 { font-size: 19px; margin-bottom: 4px; }
.schedule-item p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------------------------------------------------------
   Venue cards
--------------------------------------------------------- */
.venue-grid {
  display: flex;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}

.venue-grid .venue-card {
  width: 100%;
  max-width: var(--measure);
}

@media (max-width: 640px) {
  .schedule-item { grid-template-columns: 76px 1fr; }
}

.venue-card {
  padding: 28px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  text-align: center;
}

.venue-card h3 { font-size: 20px; margin-bottom: 10px; }
.venue-card address { font-style: normal; color: var(--ink-soft); margin-bottom: 10px; display: block; }
.venue-card p { color: var(--ink-soft); font-size: 15px; margin: 0 auto 14px; max-width: 480px; }

.dress-code {
  text-align: center;
  margin: 40px auto 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  font-size: 19px;
}

/* ---------------------------------------------------------
   Travel
--------------------------------------------------------- */
.travel-item {
  max-width: var(--measure);
  margin: 0 auto 32px;
}
.travel-item h3 { font-size: 19px; margin-bottom: 8px; }
.travel-item p { margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------
   RSVP form
--------------------------------------------------------- */
.rsvp-form {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: 14px; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 90px; }

.attending-toggle {
  display: flex;
  gap: 12px;
}

.attending-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.attending-toggle label {
  flex: 1;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
}

.attending-toggle input:checked + label {
  border-color: var(--brick);
  color: var(--brick);
  background: #fbeeec;
}

/* honeypot - hidden from real users */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.rsvp-submit {
  font-family: var(--serif);
  font-size: 17px;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.rsvp-submit:hover { background: var(--brick); }
.rsvp-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.rsvp-status {
  text-align: center;
  padding: 16px;
  margin-top: 8px;
  display: none;
}

.rsvp-status.show { display: block; }
.rsvp-status.success { background: #eaf2ea; color: var(--ink); }
.rsvp-status.error { background: #fbeeec; color: var(--brick); }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
footer {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

footer a { color: var(--ink-soft); }
