/* Kim & Daniel – "Garden Romance" */
:root {
  --ivory: #F6F3EC;
  --card: #FBFAF6;
  --sage: #4F6447;
  --sage-dark: #3F5139;
  --sage-light: #E6EADF;
  --sage-mist: #E3E8DC;
  --line: #D5DBCC;
  --line-strong: #C9D2BF;
  --leaf: #7F9475;
  --ink: #2E3A2B;
  --muted: #55604F;
  --body: #3F4A3B;
  --error: #8A2E1F;
  --script: 'Pinyon Script', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--sage); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; }

.eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); }
.serif { font-family: var(--serif); }
h1, h2, h3 { font-weight: 500; margin: 0; }
h2.section-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 44px); line-height: 1.1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px;
  border-radius: 999px; border: 1px solid var(--sage);
  background: var(--sage); color: #fff;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--sage-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--sage); min-height: 44px; font-size: 13px; letter-spacing: 0.16em; padding: 0 22px; }
.btn-outline:hover { background: var(--sage-light); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); position: sticky; top: 0; z-index: 20; }
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
}
.monogram { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.04em; color: var(--sage); text-decoration: none; }
.menu-toggle {
  width: 44px; height: 44px; border: none; background: transparent; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.site-nav { display: none; }
.site-nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; gap: 4px;
}
.site-nav a.nav-link {
  display: flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
.site-nav .btn { margin-top: 8px; min-height: 44px; font-size: 13px; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex; flex-direction: row; position: static; align-items: center;
    gap: 28px; padding: 0; border: none; background: none;
  }
  .site-nav .btn { margin-top: 0; padding: 0 24px; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 16px 28px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.hero-arch {
  width: min(270px, 72vw); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--sage-mist); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-arch .placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--sage); }
.hero-arch .placeholder span { font-family: var(--script); font-size: 44px; line-height: 1; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.names { font-family: var(--script); font-weight: 400; font-size: 58px; line-height: 1.05; }
.names .amp { display: block; font-size: 36px; color: var(--sage); }
.hero-when { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.hero-when em { font-style: italic; }
.reply-by { margin: 0; font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .hero { flex-direction: row; justify-content: center; gap: 72px; padding: 64px 32px 80px; }
  .hero-arch { width: 420px; flex-shrink: 0; }
  .hero-text { max-width: 520px; flex: 1 1 420px; }
  .names { font-size: 88px; }
  .names .amp { display: inline; font-size: 54px; }
  .hero-when { font-size: 28px; }
}

/* ---------- countdown ---------- */
.countdown { background: var(--sage-light); padding: 28px 24px; display: flex; justify-content: center; align-items: baseline; gap: 12px; flex-wrap: wrap; text-align: center; }
.countdown .num { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; }
.countdown .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-dark); }

/* ---------- sections ---------- */
.section { padding: 56px 24px; }
.section.tint { background: var(--sage-light); }
.section .inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.two-col { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
@media (min-width: 900px) {
  .section { padding: 88px 32px; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
}
.center { text-align: center; }

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.schedule li:last-child { border-bottom: none; }
.schedule .time { width: 72px; flex-shrink: 0; font-size: 15px; color: var(--sage); font-weight: 500; }
.schedule .what { font-family: var(--serif); font-size: 21px; line-height: 1.3; }

.map { width: 100%; height: 260px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--sage-mist); }
.address { margin: 0; font-style: normal; line-height: 1.6; }
.venue-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; width: 100%; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; font-family: var(--serif); font-size: 21px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-size: 22px; color: var(--sage); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--body); }

.rsvp-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rsvp-cta p { margin: 0; max-width: 520px; color: var(--body); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.site-footer .script { font-family: var(--script); font-size: 32px; color: var(--sage); }
.site-footer .date { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.sprig { color: var(--leaf); }

/* ---------- RSVP page ---------- */
.rsvp-main { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.rsvp-intro { padding: 32px 8px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.rsvp-intro h1 { font-family: var(--serif); font-size: 38px; line-height: 1.1; }
.rsvp-intro p { margin: 0; color: var(--body); }
.rsvp-intro .small { font-size: 14px; color: var(--muted); }

.person { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 18px; }
.person-head { display: flex; flex-direction: column; gap: 2px; }
.person-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.person-head .tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.plus-one-box { border-top: 1px dashed var(--line-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 18px; }

fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 500; font-size: 15px; }
legend.course { font-family: var(--serif); font-size: 21px; font-weight: 600; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice {
  min-height: 48px; padding: 10px 14px; width: 100%;
  font-family: var(--sans); font-size: 15px; line-height: 1.35; text-align: left;
  background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
}
.choice-grid .choice { text-align: center; }
.choice small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.choice[aria-pressed="true"] small { color: #E6EADF; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; background: #fff; color: var(--body); border: 1px solid var(--line-strong);
}
.chip[aria-pressed="true"] { background: var(--sage-light); color: var(--ink); border: 1.5px solid var(--sage); }

.menu-switch { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: var(--sage-light); border-radius: 10px; font-size: 14px; color: var(--sage-dark); }
.menu-switch button { min-height: 44px; padding: 0 14px; border: 1px solid var(--sage); background: var(--card); color: var(--sage); font-family: var(--sans); font-size: 13px; border-radius: 999px; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--body); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; width: 100%;
}
.field input { min-height: 48px; }
.field textarea { resize: vertical; }
.name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.form-error { background: #F6E3DE; color: var(--error); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.submit-area { padding: 8px 8px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.submit-area .btn { width: 100%; }
.privacy { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

.state { padding: 72px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.state h1 { font-family: var(--script); font-weight: 400; font-size: 54px; line-height: 1.1; }
.state .lead { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.state p { margin: 0; color: var(--body); }
.code-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.locked-note { background: var(--sage-light); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; color: var(--sage-dark); }
.summary-list { list-style: none; padding: 0; margin: 0; width: 100%; max-width: 420px; text-align: left; }
.summary-list li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.summary-list strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.summary-list span { display: block; font-size: 14px; color: var(--muted); }
