:root {
  --paper: #f3eee6;
  --ink: #3a3129;
  --ink-soft: #6d5f52;
  --rust: #c45c45;
  --rust-deep: #9a4636;
  --line: rgba(58, 49, 41, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "Newsreader", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: #e8e0d2;
  color: var(--ink);
  font-family: var(--body);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 230, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  min-height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 18px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav a {
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a.active,
.nav a:hover {
  color: var(--rust);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.invite {
  width: min(860px, 100%);
  margin: 0 auto;
  position: relative;
  background: var(--paper);
}

.invite-art {
  width: 100%;
  height: auto;
  display: block;
}

.anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
}

#venue.anchor {
  top: 32%;
}

#timeline.anchor {
  top: 46%;
}

.attire-anchor {
  top: 62%;
}

.rsvp-anchor {
  top: 74%;
}

.countdown-live {
  position: absolute;
  left: 25.3%;
  top: 24.88%;
  width: 49.7%;
  height: 3.35%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
}

.count {
  text-align: center;
  min-width: 18%;
}

.count + .count {
  border-left: 1px solid rgba(58, 49, 41, 0.14);
  padding-left: 4%;
}

.count b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4.2vw, 2.6rem);
  color: var(--rust);
  font-weight: 500;
  line-height: 1;
}

.count span {
  font-family: var(--serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.45rem, 1.1vw, 0.7rem);
  color: var(--ink-soft);
}

.hotspot {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  padding: 0;
}

.hotspot-maps {
  left: 58.5%;
  top: 38.9%;
  width: 19%;
  height: 2.1%;
}

.hotspot-gift {
  left: 18.5%;
  top: 77.25%;
  width: 16%;
  height: 2%;
}

.hotspot-rsvp {
  left: 62.4%;
  top: 77.2%;
  width: 17%;
  height: 2.2%;
}

.photo {
  top: 82.35%;
  height: 9.1%;
}

.p1 { left: 9.4%; width: 15.7%; }
.p2 { left: 24.1%; width: 16.6%; }
.p3 { left: 40%; width: 16.9%; }
.p4 { left: 56.5%; width: 16.9%; }
.p5 { left: 72.4%; width: 16.6%; }

.faq {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding: 28px 8px 8px;
  color: var(--ink);
}

.faq h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 12px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 40;
  padding: 20px;
}

.modal {
  background: rgba(40, 32, 26, 0.45);
}

.lightbox {
  background: rgba(30, 24, 20, 0.82);
  z-index: 50;
}

.modal.open,
.lightbox.open {
  display: grid;
}

.modal-card {
  width: min(520px, 100%);
  background: var(--paper);
  padding: 28px;
}

.modal-card h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-top: 0;
}

.btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid var(--rust);
  background: transparent;
  color: var(--rust-deep);
  font-family: var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn.solid {
  background: var(--rust-deep);
  color: #f7f1e8;
}

.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}

@media (max-width: 720px) {
  .nav {
    display: none;
    top: 58px;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    background: var(--paper);
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .count span {
    letter-spacing: 0.08em;
  }
}
