:root {
  --ink: #17213f;
  --muted: #64708a;
  --line: #c9ced9;
  --paper: #f2f2f2;
  --panel: #ffffff;
  --accent: #385198;
  --accent-dark: #243a75;
  --accent-soft: #dbe2f1;
  --gold: #b99a52;
  --shadow: 0 28px 80px rgba(56, 81, 152, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 20%, rgba(56, 81, 152, 0.13), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

body.splash-active {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease, visibility 900ms ease;
}

.splash.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash picture,
.splash__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash__image {
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  transform: scale(1.06);
  animation: splashZoom 2600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.splash__overlay {
  position: absolute;
  inset: 0;
  /* background:
    linear-gradient(90deg, rgba(24, 35, 72, 0.82) 0%, rgba(56, 81, 152, 0.42) 58%, rgba(56, 81, 152, 0.1) 100%),
    linear-gradient(0deg, rgba(24, 35, 72, 0.78) 0%, rgba(24, 35, 72, 0) 48%); */
}

.splash__content {
  visibility: hidden;
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(56px, 10vw, 112px);
  color: var(--accent);
  opacity: 0;
  transform: translateY(18px);
  animation: splashText 900ms ease 250ms forwards;
}

.splash__content h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.94;
  letter-spacing: 0;
}

.splash__content p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.site-header {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 24px min(6vw, 64px) 72px;
  color: #fff;
}

.site-header::after {
  content: none;
}

.topbar,
.hero {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
}

.hero {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 230px;
  text-align: center;
}

.hero__copy {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  margin: 14px 0 0;
  color: var(--accent);
  font-family: 'Century Gothic', Arial, Helvetica, sans-serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
}

.hero__subtitle {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.hero p:not(.eyebrow) {
  /*max-width: 610px;*/
  margin: 20px 0 30px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--light {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.button--primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 34px rgba(56, 81, 152, 0.26);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(52px, 8vw, 88px);
}

.intro {
  max-width: 700px;
  margin-bottom: 34px;
}

.intro h2 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.rsvp-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(222, 217, 210, 0.88);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.form-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
.choice-group legend {
  color: #2d2d2d;
  font-size: 14px;
  font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 81, 152, 0.13);
}

.required-marker {
  color: var(--danger);
}

#modalMessage {
  white-space: pre-line;
}

input[readonly] {
  color: #546079;
  background: #eef2fb;
  cursor: default;
}

input[readonly]:focus {
  border-color: var(--line);
  box-shadow: none;
}

.choice-group {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 0;
}

.choice-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
}

.choice-card:has(input:checked) {
  border-color: rgba(56, 81, 152, 0.72);
  background: #f3f6ff;
}

.choice-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.choice-card span {
  display: grid;
  gap: 4px;
}

.choice-card small {
  color: var(--muted);
  font-weight: 500;
}

.privacy-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.privacy-check span {
  color: var(--muted);
  font-weight: 600;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #9a2f2f;
  font-weight: 700;
}

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

.modal[aria-hidden="false"] {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.58);
}

.modal__dialog {
  position: relative;
  width: min(480px, 100%);
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal__dialog h2 {
  margin: 10px 0;
  font-size: 34px;
}

.modal__dialog p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--accent-soft);
  font-size: 24px;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 20px;
  background: var(--accent);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-logo {
  display: inline-flex;
  width: fit-content;
  min-height: 64px;
  align-items: center;
  border-radius: 4px;
  padding: 8px 14px;
  background: #fff;
}

.footer-logo img {
  display: block;
  width: 130px;
  height: auto;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 340px;
    padding-inline: 20px;
    background-image: none;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-logo {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .splash__content,
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .splash__overlay {
    /* background:
      linear-gradient(0deg, rgba(24, 35, 72, 0.84) 0%, rgba(56, 81, 152, 0.2) 74%),
      linear-gradient(90deg, rgba(24, 35, 72, 0.42), rgba(56, 81, 152, 0.12)); */
  }

  .button {
    width: 100%;
  }

  .site-header {
    min-height: 320px;
    padding: 18px 14px 58px;
    background-image: none;
  }

  .hero {
    min-height: 230px;
  }
}

@keyframes splashZoom {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

@keyframes splashText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
