:root {
  --ink: #000000;
  --muted-ink: #1f1f1f;
  --border-ink: rgba(0, 0, 0, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  background: #ffffff;
}

.password-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 9999;
  padding: 2rem;
}

.password-gate.is-hidden {
  display: none;
}

.password-card {
  border: 1px solid var(--border-ink);
  padding: 2.5rem 2.75rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.password-brand {
  position: absolute;
  top: 2.6rem;
  left: 3.5rem;
}

.password-brand .logo-names {
  font-size: 5.2rem;
}

.password-brand .logo-amp {
  font-size: 9.4rem;
}

.password-title {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.password-label {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.password-row {
  display: flex;
  gap: 0.75rem;
}

.password-row input {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}

.password-row button {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  cursor: pointer;
}

.password-row button:hover {
  opacity: 0.9;
}

.password-error {
  margin: 0;
  min-height: 1.2rem;
  color: #111111;
  font-size: 0.95rem;
}

.page-frame {
  position: relative;
  min-height: 100vh;
  padding: 2.5rem 2.5rem 5.5rem;
}

.page-border {
  border: 2px solid #000000;
  min-height: calc(100vh - 8rem);
}


/* Header */

.top-nav {
  padding: 2.6rem 3.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.75rem;
  background: transparent;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: "Mrs Saint Delafield", "Allura", cursive;
  font-size: 4.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-names {
  font-family: "Nanum Myeongjo", "Playfair Display", serif;
  font-size: 5.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  line-height: 0.88;
}

.logo-name-top,
.logo-name-bottom {
  display: block;
}

.logo-name-top {
  padding-left: 0.08em;
}

.logo-name-bottom {
  padding-left: 0.9em;
}

.logo-amp {
  font-family: "Alex Brush", "Mrs Saint Delafield", "Allura", cursive;
  font-size: 9.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  position: absolute;
  left: -0.05em;
  bottom: 0;
  transform: translateY(0.18em);
  pointer-events: none;
}

.logo-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  color: var(--muted-ink);
  align-self: flex-end;
  margin-bottom: 0.15rem;
}

/* Nav */

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2.1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  padding: 0.65rem 0.25rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width .25s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Layout */

.main {
  padding: 3.75rem 2rem 6rem;
}

.page {
  display: none;
  text-align: center;
  padding-top: 0.5rem;
}

.page--active {
  display: block;
}

/* Home Gallery: horizontal scroll */

.home-gallery-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem;
}

.home-gallery-grid::-webkit-scrollbar {
  height: 10px;
}

.home-gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.18);
  border-radius: 999px;
}

.home-gallery-grid::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.06);
  border-radius: 999px;
}

.home-gallery-item {
  flex: 0 0 auto;
  width: 460px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.25rem;
  scroll-snap-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Travel */

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.inline-link:hover {
  opacity: 0.85;
}

.travel-heading {
  margin: 0.25rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 2.4rem;
}


.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.schedule-card {
  padding: 2.1rem 1.9rem 2.2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border-ink);
  background: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.schedule-date {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.schedule-title {
  margin: 0 0 0.65rem;
  font-family: "Nanum Myeongjo", "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.schedule-line {
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem;
  align-items: center;
  justify-items: start;
  width: 100%;
  max-width: 520px;
  text-align: left;
}

.schedule-line--stacked {
  grid-template-columns: 1fr;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
}

.schedule-line--spaced {
  margin-top: 1.35rem;
}

.schedule-time {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.schedule-detail {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted-ink);
}

.schedule-location {
  margin: 0.7rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .schedule-line {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    text-align: center;
    justify-items: center;
  }
}

.schedule-location a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.schedule-location a:hover {
  border-bottom-color: var(--ink);
}

.schedule-pin {
  font-size: 1.2rem;
  line-height: 1;
}

.schedule-note {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: var(--muted-ink);
}

.schedule-note + .schedule-note {
  margin-top: 0.35rem;
}

.calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  margin-top: 1.35rem;
  padding: 0.72rem 1.65rem;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}

.calendar-button:hover {
  opacity: 0.9;
}

.travel-text {
  margin: 0 auto 2.25rem;
  max-width: 820px;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.travel-card {
  padding: 2.2rem 1.9rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-ink);
  background: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.travel-image {
  width: 100%;
  height: 185px;
  object-fit: contain;
  border-radius: 0.6rem;
  margin-bottom: 1.1rem;
  display: block;
}

.travel-card-title {
  margin: 0.25rem 0 0.75rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--ink);
  text-align: center;
}

.travel-card-text {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.travel-bullets {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted-ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

.travel-bullets li { margin: 0.35rem 0; }

.travel-note {
  margin: 2.5rem auto 0;
  max-width: 820px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

@media (max-width: 980px) {
  .travel-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }

  .travel-card {
    text-align: left;
  }

  .travel-image {
    height: 220px;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
}

/* Cards */

.registry-button-wrap {
  margin: 2.5rem auto 0;
  display: flex;
  justify-content: center;
}

.registry-button {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: #000000;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.registry-button:hover {
  opacity: 0.9;
}

.faqs-heading {
  margin: 0.25rem 0 2rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 2.4rem;
}

.faqs-list {
  display: grid;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--border-ink);
  border-radius: 1rem;
  background: #ffffff;
}

.faq-item h2 {
  margin: 0 0 0.65rem;
  font-family: "Nanum Myeongjo", "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.faq-item p + p {
  margin-top: 0.85rem;
}

.rsvp-heading {
  margin: 0.25rem 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 2.4rem;
}

.rsvp-text {
  margin: 0 auto 2.1rem;
  max-width: 760px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.rsvp-card {
  margin: 0 auto;
  max-width: 760px;
  padding: 2.4rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-ink);
  background: #ffffff;
}

.rsvp-form {
  display: grid;
  gap: 1.35rem;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  background: #ffffff;
  color: var(--ink);
}

.form-row textarea {
  resize: vertical;
}

.guest-count-row {
  display: none;
}

.plus-one-name-row {
  display: none;
}

.rsvp-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rsvp-button {
  padding: 0.85rem 2.3rem;
  border-radius: 999px;
  border: none;
  background: #000000;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  cursor: pointer;
}

.rsvp-button:hover {
  opacity: 0.9;
}

.form-status {
  margin: 0;
  font-size: 1rem;
  color: var(--muted-ink);
}

.map-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 1.75rem auto 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

.map-wrapper iframe {
  width: 100%;
  height: 520px;
  border: 0;
}

.things-text--intro {
  font-size: 1.35rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1100px) {
  .home-gallery-item { width: 400px; }
}

@media (max-width: 900px) {
  .map-wrapper iframe { height: 420px; }
}

@media (max-width: 800px) {
  .page-frame {
    padding: 2rem 1.5rem 5rem;
  }

  .page-border {
    min-height: calc(100vh - 7rem);
  }

  .top-nav {
    flex-direction: column;
    align-items: center;
    padding: 2.1rem 1.75rem 1.35rem;
  }

  .nav-links { justify-content: center; }
  .logo { font-size: 4.9rem; }
}

@media (max-width: 700px) {
  .home-gallery-grid {
    gap: 1.25rem;
    padding: 0.25rem 0.15rem;
  }

  .home-gallery-item {
    width: 78vw;
    border-radius: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .map-wrapper { border-radius: 0.75rem; }
  .map-wrapper iframe { height: 340px; }

  .logo {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 0.6rem 1rem;
  }

  .logo-names {
    font-size: clamp(3.2rem, 13vw, 4.4rem);
    letter-spacing: 0.1em;
  }

  .logo-name-top { padding-left: 0.05em; }
  .logo-name-bottom { padding-left: 0.72em; }

  .logo-amp {
    font-size: clamp(5.6rem, 20vw, 7.4rem);
    left: 0;
    transform: translateY(0.14em);
  }

  .logo-date {
    flex-basis: 100%;
    text-align: center;
    align-self: center;
    margin-bottom: 0;
    margin-top: 0.2rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 500px) {
  .logo { font-size: 4.2rem; }
  .logo-names { font-size: clamp(3rem, 14vw, 4rem); }
  .logo-amp { font-size: clamp(5.2rem, 22vw, 6.8rem); }
  .logo-date { font-size: 1.05rem; }
  .nav-links a { font-size: 1.15rem; padding: 0.55rem 0.2rem; }
}
