:root {
  --ivory: #faf7f1;
  --ink: #2c2820;
  --ink-soft: #6b6455;
  --sage: #75825f;
  --sage-deep: #4e5a42;
  --gold: #b08d42;
  --line: #e4ddcb;
  --card: #f3efe4;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Karla', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  overflow-x: clip;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

/* --- topbar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.monogram {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}

.amp { font-family: var(--serif); font-style: italic; color: var(--gold); }

.langs { display: flex; gap: 0.25rem; }
.langs button {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.55rem;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 2px;
}
.langs button[aria-pressed="true"] {
  color: var(--sage-deep);
  box-shadow: inset 0 -2px 0 var(--sage);
}

/* --- hero --- */
.hero {
  min-height: calc(100svh - 3.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 9.5vw, 5.5rem);
  line-height: 1.1;
  margin: 1.2rem 0 0.6rem;
}
.names .amp { font-size: 0.75em; }

.hero-date {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.couple {
  width: min(72vw, 20rem);
  height: auto;
  margin-top: 2.2rem;
  border-radius: 999px 999px 4px 4px; /* arch, echoing the arch in the photo */
  border: 1px solid var(--line);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}

.countdown {
  display: flex;
  gap: 0;
  margin: 2.5rem 0;
}
.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.6rem;
  border-left: 1px solid var(--line);
  min-width: 3.2rem;
}
.countdown div:first-child { border-left: none; }
.countdown b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 560px) {
  .countdown div { padding: 0 1.1rem; min-width: 4.2rem; }
  .countdown b { font-size: 2.2rem; }
}
.countdown span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* --- buttons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  border: 1px solid var(--sage-deep);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--sage-deep); color: var(--ivory); }
.btn-primary:hover { background: var(--sage); border-color: var(--sage); }
.btn-ghost { background: none; color: var(--sage-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- section nav --- */
.section-nav {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-soft);
}
.section-nav a:hover { color: var(--sage-deep); }

/* --- sections --- */
.section {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
}
.section:last-of-type { padding-bottom: 4rem; }

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.section h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin-top: 0.7rem;
}
.section h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
}

.section-card {
  background: var(--card);
  border-radius: 4px;
  padding: 2.5rem 1.5rem 3rem;
  margin-top: 4rem;
}
.section-card + .section { padding-top: 4rem; }

/* --- party --- */
.party-list { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.party-list b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; display: block; }
.party-list span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* --- schedule --- */
.schedule { list-style: none; padding: 0; margin-top: 1.5rem; }
.schedule li {
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.schedule .time {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--sage-deep);
  min-width: 4rem;
}

/* --- venue --- */
.venue-name { font-family: var(--serif); font-size: 1.4rem; margin-top: 1rem; }
.venue-address { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }
.map { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* --- forms --- */
form label { display: block; margin: 1.2rem 0; }
form label > span { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--sage); outline: none; }

.attending { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.2rem 0; }
.radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  background: #fff;
}
.radio:has(input:checked) { border-color: var(--sage-deep); background: var(--ivory); }
.radio input { width: auto; accent-color: var(--sage-deep); }

fieldset { border: none; padding: 0; margin: 1.2rem 0; }
legend { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; padding: 0; }

.guest-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 0.8rem;
}
@media (min-width: 560px) {
  .guest-row { grid-template-columns: 1.2fr 0.8fr 1fr auto; align-items: center; }
}
.guest-row .remove {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem;
}
.guest-row .remove:hover { color: #a04040; }

.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.form-status { margin-top: 1rem; font-weight: 500; }
.form-status.ok { color: var(--sage-deep); }
.form-status.err { color: #a04040; }

/* --- songs --- */
.song-search { display: grid; gap: 0.6rem; margin: 1.5rem 0 1rem; }
@media (min-width: 560px) { .song-search { grid-template-columns: 1.5fr 1fr; } }

.song-results, .song-requested { list-style: none; padding: 0; }
.song-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.song-card img { width: 48px; height: 48px; border-radius: 2px; flex-shrink: 0; }
.song-card .meta { flex: 1; min-width: 0; }
.song-card .meta b { display: block; font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-card .meta span { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.song-card .count {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--sage-deep);
  padding-right: 0.5rem;
}
.song-card button {
  width: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  background: none;
  color: var(--sage-deep);
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.song-card button:hover { border-color: var(--sage); }
.song-card button.done { border-color: var(--sage-deep); background: var(--sage-deep); color: var(--ivory); cursor: default; }
.song-card button.playing { border-color: var(--gold); color: var(--gold); }

.song-empty { color: var(--ink-soft); font-style: italic; }

/* --- hotels / faq / contact --- */
.hotels { list-style: none; padding: 0; margin-top: 1rem; }
.hotels li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.hotels b { font-weight: 600; }
.hotels span { color: var(--ink-soft); font-size: 0.92rem; display: block; }

.faq { margin-top: 1.5rem; }
.faq dt { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-top: 1.4rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--ink-soft); }

.contact-person { font-family: var(--serif); font-size: 1.3rem; margin-top: 0.8rem; }

/* --- footer --- */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.big-amp { font-size: 1.6rem; margin-bottom: 0.5rem; }
