@font-face {
  font-family: "Southampton";
  src: url("assets/Southampton.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: hsl(35 35% 92%);
  --ink: rgb(105, 22, 36);
  --muted: rgba(105, 22, 36, 0.7);
  --hero-text: hsl(35 40% 95%);
  --hero-date: hsl(35 35% 90%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Parisienne", cursive;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  display: none;
  min-height: 100svh;
}

.page.active {
  display: block;
}

.hero-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-bg,
.hero-shade,
.paper-bg {
  position: fixed;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero-bg.webp");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 221px);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 96px 32px 0;
  text-align: center;
}

.hero-content h1 {
  max-width: 860px;
  margin: 0;
  color: var(--hero-text);
  font-family: "Southampton", cursive;
  font-size: clamp(52px, 5.65vw, 72px);
  font-weight: 700;
  line-height: 1;
}

.hero-date {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 32px 224px;
  color: var(--hero-date);
  font-family: "Southampton", cursive;
  text-align: center;
  letter-spacing: 0.4px;
}

.hero-date span {
  font-size: 36px;
  line-height: 40px;
}

.hero-date .date-middle {
  margin-left: 8px;
  font-size: 24px;
  line-height: 32px;
  text-shadow: 0 0 0.5px currentColor, 0.3px 0 currentColor, -0.3px 0 currentColor;
}

.menu-toggle,
.menu-close,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgb(242 236 227 / 0.9);
}

.menu-toggle svg,
.menu-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-panel {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 64px 24px max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  box-shadow: -20px 0 40px rgb(0 0 0 / 0.16);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.menu-panel.open {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: transparent;
}

.menu-panel nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-panel nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 28px;
}

.menu-panel nav a:hover {
  background: rgb(255 255 255 / 0.45);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 22px;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-footer {
  margin-top: auto;
  text-align: center;
  font-family: "Southampton", cursive;
}

.menu-footer p {
  margin: 0;
  font-size: 32px;
}

.menu-footer span {
  font-size: 22px;
}

@media (max-height: 620px) {
  .menu-panel {
    padding-top: 52px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .menu-panel nav {
    gap: 2px;
  }

  .menu-panel nav a {
    min-height: 50px;
    font-size: 25px;
  }

  .menu-footer p {
    font-size: 28px;
  }

  .menu-footer span {
    font-size: 19px;
  }
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgb(0 0 0 / 0.18);
}

.content-page {
  position: relative;
  background: var(--paper);
}

.paper-bg {
  background-image: url("assets/paper-bg.webp");
  background-position: center;
  background-size: cover;
  opacity: 0.15;
}

.content-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 768px);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.content-wrap.wide {
  width: min(100%, 896px);
}

.back-link {
  width: 56px;
  height: 56px;
  margin-bottom: 48px;
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}

.page-title {
  margin: 0 0 48px;
  text-align: center;
  font-size: 42px;
  font-weight: 400;
}

.location-block {
  margin-bottom: 64px;
}

.location-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: white;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.location-text {
  margin-top: 24px;
  text-align: center;
}

.location-text h2 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 400;
}

.location-text p,
.location-text a {
  display: block;
  margin: 0 0 8px;
  font-size: 24px;
}

.location-text .small {
  color: var(--muted);
  font-size: 21px;
}

.muted {
  color: var(--muted);
}

.lead {
  margin: 0 auto 32px;
  max-width: 680px;
  text-align: center;
  font-size: 28px;
  line-height: 1.45;
}

.bank-account {
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.8px;
  overflow-wrap: anywhere;
}

.italic {
  font-style: italic;
}

.info-block {
  margin-bottom: 48px;
  text-align: center;
}

.info-block h3 {
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 400;
}

.info-block h4,
.info-block p {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 400;
}

.info-block span,
.info-block .indented p {
  color: var(--muted);
  font-size: 22px;
}

.indented {
  margin: 32px 0;
  padding-left: 24px;
  text-align: left;
}

.rsvp-form {
  display: grid;
  gap: 24px;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rsvp-form fieldset,
.thanks-card {
  border: 0;
  border-radius: 8px;
  margin: 0;
  padding: 24px;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.rsvp-form legend {
  padding: 0 0 18px;
  font-size: 26px;
}

.rsvp-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 20px;
}

.radio-line {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}

.rsvp-form input:not([type="radio"]),
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgb(105 22 36 / 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.82);
  font-family: Georgia, serif;
  font-size: 18px;
}

.companion-fields {
  margin-top: 18px;
}

.submit-button {
  justify-self: center;
  border: 0;
  border-radius: 6px;
  padding: 14px 26px;
  cursor: pointer;
  color: var(--paper);
  background: var(--ink);
  font-size: 22px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-error {
  margin: 0;
  border: 1px solid rgb(145 32 48 / 0.28);
  border-radius: 6px;
  padding: 12px 14px;
  color: rgb(145, 32, 48);
  background: rgb(255 255 255 / 0.72);
  font-size: 20px;
  text-align: center;
}

.thanks-card {
  text-align: center;
}

.thanks-card h2 {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 400;
}

.thanks-card p,
.thanks-card a {
  font-size: 22px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .hero-content {
    min-height: calc(100vh - 180px);
    padding: 80px 24px 0;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .hero-date {
    padding-bottom: 160px;
  }

  .hero-date span {
    font-size: 30px;
  }

  .hero-date .date-middle {
    font-size: 20px;
  }

  .content-wrap {
    padding-top: 48px;
  }

  .page-title {
    font-size: 36px;
  }
}
