:root {
  --ink: #162725;
  --ink-soft: #28413c;
  --wine: #6b2638;
  --wine-dark: #451725;
  --sage: #8fb4aa;
  --sage-soft: #e7f0ec;
  --paper: #fbf7ef;
  --paper-deep: #f1eadf;
  --white: #ffffff;
  --gold: #d5a954;
  --sunset: #df8c57;
  --line: rgba(32, 49, 47, 0.16);
  --shadow: 0 22px 70px rgba(22, 39, 37, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(213, 169, 84, 0.16), transparent 30%),
    linear-gradient(180deg, var(--paper), var(--paper-deep));
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 54px);
  background: rgba(251, 247, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--wine);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 32px);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.nav a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.section-band {
  scroll-margin-top: 88px;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 54px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: calc(78vh - 68px);
  padding-block: clamp(40px, 6vh, 64px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(16, 28, 27, 0.84), rgba(16, 28, 27, 0.42) 45%, rgba(16, 28, 27, 0.18)),
    linear-gradient(0deg, rgba(16, 28, 27, 0.72), transparent 46%);
}

.hero::after {
  background-image:
    linear-gradient(rgba(251, 247, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 247, 239, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-copy,
.section-heading,
.details-grid,
.travel-grid,
.response-intro,
.response-tabs,
.form-stack {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.hero-copy {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-block: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  background: var(--ink);
}

.hero-media img {
  width: 100%;
  height: 100%;
  opacity: 0.9;
  object-fit: cover;
  object-position: 52% 38%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: inherit;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.4rem, 12vw, 9.8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0 0 12px;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-subtitle {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--wine);
  border-radius: 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--wine);
}

.button.primary:hover {
  background: var(--wine-dark);
}

.button.secondary {
  color: var(--wine);
  background: rgba(255, 255, 255, 0.78);
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.event-strip div {
  padding: 26px clamp(20px, 4vw, 54px);
  background:
    linear-gradient(135deg, rgba(213, 169, 84, 0.08), transparent 62%),
    var(--ink);
  color: var(--white);
}

.event-strip span,
.event-list dt {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-strip strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.18;
}

.details {
  background: var(--white);
}

.section-heading {
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.2rem;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.74fr);
  gap: 24px;
}

.detail-panel {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(251, 247, 239, 0.86)),
    var(--paper);
}

.detail-panel.accent {
  background:
    linear-gradient(145deg, rgba(213, 169, 84, 0.12), transparent 56%),
    var(--sage-soft);
}

.detail-panel p {
  margin: 0 0 24px;
  font-size: 1.18rem;
}

.event-list {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.event-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.event-list dd {
  margin: 0;
  font-size: 1.12rem;
}

address {
  font-style: normal;
  font-size: 1.12rem;
}

.text-link {
  color: var(--wine);
  font-weight: 700;
  text-underline-offset: 5px;
}

.travel {
  background:
    linear-gradient(180deg, rgba(231, 240, 236, 0.96), rgba(231, 240, 236, 0.38)),
    var(--sage-soft);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.travel-grid article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 38px rgba(22, 39, 37, 0.06);
}

.travel-grid p {
  margin: 0;
}

.travel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 2px;
}

.responses {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(180deg, rgba(251, 247, 239, 0.82), rgba(241, 234, 223, 0.95)),
    var(--paper-deep);
}

.response-intro {
  max-width: 840px;
}

.response-intro p:not(.eyebrow),
.form-heading p {
  margin: 22px 0 0;
  font-size: 1.2rem;
}

.response-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.response-tabs button {
  position: relative;
  min-height: 136px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(213, 169, 84, 0.1), transparent 60%),
    var(--sage-soft);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.response-tabs button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(22, 39, 37, 0.12);
}

.response-tabs button[aria-selected="true"] {
  border-color: rgba(107, 38, 56, 0.5);
  background:
    linear-gradient(145deg, rgba(213, 169, 84, 0.18), transparent 60%),
    var(--white);
  box-shadow: 0 16px 42px rgba(22, 39, 37, 0.13);
}

.response-tabs button:focus-visible {
  outline: 3px solid rgba(213, 169, 84, 0.42);
  outline-offset: 3px;
}

.response-tabs span {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 1.28rem;
  font-weight: 700;
}

.form-stack {
  display: grid;
  gap: 26px;
  max-width: 900px;
}

.form-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.form-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, var(--wine), var(--gold));
  content: "";
}

.form-heading {
  margin-bottom: 6px;
}

.form-heading p {
  max-width: 680px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(32, 49, 47, 0.32);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(213, 169, 84, 0.34);
  border-color: var(--wine);
}

input[type="file"] {
  min-height: auto;
  background: var(--white);
}

textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

.site-footer {
  padding: 30px clamp(20px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(185, 215, 209, 0.64), rgba(251, 250, 247, 0.84)),
    var(--paper);
}

.thanks {
  width: min(100%, 640px);
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.thanks h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.thanks p:not(.eyebrow) {
  margin: 22px 0 30px;
  font-size: 1.2rem;
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .details-grid,
  .response-tabs {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: end;
    padding-top: clamp(160px, 30vh, 240px);
  }

  .hero-copy {
    padding-block: 36px 52px;
  }

  .event-strip,
  .travel-grid {
    grid-template-columns: 1fr;
  }

  .response-tabs button {
    min-height: 112px;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 9px 12px;
    font-size: 0.94rem;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 5.8rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .event-strip,
  .section-heading,
  .detail-panel,
  .travel-grid article,
  .response-tabs button,
  .form-card {
    animation: rise-in 700ms both;
  }

  .event-strip {
    animation-delay: 110ms;
  }

  .detail-panel,
  .travel-grid article,
  .response-links a,
  .form-card {
    animation-delay: 160ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
