:root {
  --bg: #f7f1e8;
  --bg-deep: #f1e3d2;
  --ink: #111111;
  --accent: #5d1d24;
  --accent-soft: #7d2a33;
  --salmon: #e8b699;
  --salmon-deep: #d9a07e;
  --line: rgba(93, 29, 36, 0.24);
  --shadow: 0 24px 60px rgba(93, 29, 36, 0.12);
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(232, 182, 153, 0.45), transparent 36%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 40%, #f4ede1 100%);
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  overflow: clip;
}

.hero {
  position: relative;
  width: min(calc(100% - 3rem), var(--content-width));
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem) 0 1.25rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-poster {
  display: block;
  width: 100%;
  height: auto;
}

.hero-panel {
  position: relative;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(93, 29, 36, 0.14);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.eyebrow,
.section-kicker,
.detail-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
.footer-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  color: var(--accent);
}

h1 {
  max-width: 9ch;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.92;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  line-height: 0.95;
}

.hero-text,
.section-body,
.hero-note,
.detail-value,
label,
.footer p,
.map-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 34rem;
  margin-top: 0.9rem;
  font-size: 1rem;
}

.hero-practical {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-practical p {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 2px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-practical span {
  display: block;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-note {
  max-width: 28rem;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.74);
}

.hero-form a,
.footer a,
.legal-page a {
  color: var(--accent);
}

.primary-button,
.primary-button:visited,
.primary-button:hover,
.primary-button:focus-visible {
  color: var(--bg);
}

.hero-form .primary-button,
.hero-form .primary-button:visited,
.hero-form .primary-button:hover,
.hero-form .primary-button:focus-visible {
  color: #f7f1e8 !important;
}

.secondary-button,
.secondary-button:visited,
.secondary-button:hover,
.secondary-button:focus-visible {
  color: var(--accent);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  box-shadow: 0 16px 28px rgba(93, 29, 36, 0.18);
  cursor: pointer;
  color: var(--bg);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 20px 32px rgba(93, 29, 36, 0.22);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid rgba(93, 29, 36, 0.22);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  color: var(--accent);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(232, 182, 153, 0.28);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.section-block {
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 0.4rem;
}

.section-body {
  max-width: 42rem;
  margin-top: 1.2rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.detail-item {
  padding: 1.5rem 0 1.2rem;
  border-top: 2px solid var(--accent);
}

.detail-value {
  margin-top: 0.55rem;
  font-size: 1.1rem;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(93, 29, 36, 0.16);
  box-shadow: var(--shadow);
}

.hero-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem;
  background: rgba(247, 241, 232, 0.82);
  box-shadow: none;
}

.hero-form-wide {
  grid-column: 1 / -1;
}

.hero-submit {
  width: 100%;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.72rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: rgba(247, 241, 232, 0.92);
  border: 1px solid rgba(93, 29, 36, 0.22);
  border-radius: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 182, 153, 0.32);
  background: #fffaf5;
}

.optional {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.65);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.85rem;
  font-weight: 500;
}

.checkbox span {
  line-height: 1.5;
}

.form-feedback {
  min-height: 0;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-feedback:empty {
  display: none;
}

.checkbox input {
  width: 1.05rem;
  min-height: 1.05rem;
  margin-top: 0.3rem;
  padding: 0;
}

.map-shell {
  position: relative;
  min-height: 30rem;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(93, 29, 36, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, #f6ede0, #f1dcc5);
}

.map-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.88) contrast(1.02);
}

.map-copy {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  max-width: 18rem;
  padding: 1rem 1.1rem;
  background: rgba(247, 241, 232, 0.88);
  border-left: 3px solid var(--accent);
}

.footer {
  width: min(calc(100% - 3rem), var(--content-width));
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.footer-logo {
  width: 100%;
}

.footer-title {
  font-size: 2.2rem;
}

.footer p + p {
  margin-top: 0.25rem;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
  text-decoration: none;
}

.footer-credit img {
  width: 2.25rem;
  height: auto;
}

.footer-credit span {
  line-height: 1.2;
}

.legal-page {
  min-height: 100svh;
  padding: 2rem 1rem 4rem;
}

.legal-shell {
  width: min(100%, 52rem);
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(93, 29, 36, 0.14);
  box-shadow: var(--shadow);
}

.legal-page h1 {
  max-width: 10ch;
}

.legal-intro,
.legal-section p,
.legal-back {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.thanks-shell {
  text-align: left;
}

.thanks-logo {
  width: min(100%, 24rem);
  margin-bottom: 1rem;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.thanks-actions .primary-button,
.thanks-actions .primary-button:visited,
.thanks-actions .primary-button:hover,
.thanks-actions .primary-button:focus-visible {
  color: #f7f1e8 !important;
}

.legal-intro {
  margin-top: 1rem;
}

.legal-section {
  margin-top: 1.75rem;
}

.legal-section h2 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.legal-section p,
.legal-back {
  margin-top: 0.45rem;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(1px) scale(1);
  }
}

@media (max-width: 960px) {
  .hero,
  .details-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    width: min(calc(100% - 2rem), var(--content-width));
    gap: 1rem;
    padding-top: 1rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-media {
    max-height: 24rem;
  }

  .hero-poster {
    width: auto;
    max-height: 24rem;
  }

  .hero-practical {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.25rem, 16vw, 5.2rem);
  }

  h2 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero,
  .section-block,
  .footer {
    width: min(calc(100% - 2rem), 100%);
  }

  .hero-panel {
    padding: 1rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-media {
    max-height: 17rem;
  }

  .hero-poster {
    width: 100%;
    max-height: 17rem;
    object-fit: contain;
  }

  .hero-form {
    grid-template-columns: 1fr;
    padding: 0.95rem;
  }

  .legal-shell {
    padding: 1.25rem;
  }

  .thanks-actions {
    flex-direction: column;
  }

  input,
  select,
  .primary-button {
    min-height: 3rem;
  }

  .map-copy {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}
