:root {
  color-scheme: light;
  --ink: #1f2520;
  --muted: #687065;
  --paper: #f8f4ea;
  --paper-deep: #ece2d1;
  --sage: #65735f;
  --moss: #364a3a;
  --maroon: #7f3f46;
  --gold: #b4864d;
  --line: rgba(54, 74, 58, 0.18);
  --shadow: 0 22px 60px rgba(31, 37, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 244, 234, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.narrow {
  width: min(780px, calc(100% - 32px));
  text-align: center;
}

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(180, 134, 77, 0.16), transparent 36%),
    linear-gradient(150deg, #fbf7ee 0%, #e9dfce 58%, #d9e0d3 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background:
    linear-gradient(145deg, transparent 20%, rgba(54, 74, 58, 0.1) 20.2%, transparent 20.8%),
    linear-gradient(35deg, transparent 36%, rgba(127, 63, 70, 0.13) 36.2%, transparent 36.8%);
  opacity: 0.76;
  z-index: -1;
}

.hero::after {
  inset: 0 0 auto;
  height: 28%;
  transform: rotate(180deg);
  opacity: 0.42;
}

.mountain-lines {
  position: absolute;
  inset: 9% 0 auto;
  height: 44%;
  pointer-events: none;
  z-index: -1;
}

.mountain-lines span {
  position: absolute;
  left: 50%;
  width: min(880px, 86vw);
  height: min(360px, 42vw);
  border: 1px solid rgba(54, 74, 58, 0.18);
  border-top: 0;
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
}

.mountain-lines span:nth-child(2) {
  width: min(620px, 70vw);
  opacity: 0.7;
  transform: translateX(-68%) rotate(45deg);
}

.mountain-lines span:nth-child(3) {
  width: min(540px, 64vw);
  opacity: 0.6;
  transform: translateX(-26%) rotate(45deg);
}

.hero-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(74px, 12vw, 126px) 0 clamp(54px, 8vw, 88px);
  text-align: center;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.couple-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 9.4rem);
}

h1 small {
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.88rem, 1.7vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  line-height: 1.2;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.hero-date {
  margin: 26px 0 0;
  color: var(--moss);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(54, 74, 58, 0.14);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button.primary {
  background: var(--moss);
  color: #fffaf2;
}

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

.button.full {
  width: 100%;
}

.invitation {
  background: var(--moss);
  color: #fffaf2;
}

.ornament {
  margin: 0 0 28px;
  color: var(--gold);
  font-size: 1.4rem;
}

.intro-copy {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 1.08;
}

.couple-line {
  margin: 32px 0 8px;
  color: #f2d5ab;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.soft-copy {
  color: rgba(31, 37, 32, 0.68);
}

.invitation .soft-copy {
  color: rgba(255, 250, 242, 0.78);
}

.details {
  background:
    linear-gradient(90deg, rgba(127, 63, 70, 0.08), transparent 34%),
    var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-card,
.venue-panel,
.rsvp-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow);
}

.detail-card {
  min-height: 230px;
  padding: clamp(24px, 4vw, 36px);
}

.detail-card p {
  margin: 0;
  color: var(--muted);
}

.venue {
  background: var(--paper-deep);
}

.two-column,
.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.venue-copy {
  margin: 20px 0 10px;
  color: var(--maroon);
  font-size: 1.25rem;
  font-weight: 800;
}

.venue-panel {
  padding: clamp(26px, 4vw, 42px);
}

.venue-panel h3 {
  margin-bottom: 26px;
}

.rsvp {
  background:
    radial-gradient(circle at bottom right, rgba(101, 115, 95, 0.16), transparent 35%),
    #fbf7ee;
}

.rsvp-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--moss);
  font-size: 0.86rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible {
  outline: 3px solid rgba(180, 134, 77, 0.38);
  outline-offset: 2px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .nav {
    letter-spacing: 0.06em;
  }

  .nav-links {
    gap: 12px;
  }

  .detail-grid,
  .two-column,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .detail-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 78px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: calc(100svh - 78px);
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

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

  .button {
    width: 100%;
  }

  .footer {
    display: grid;
    letter-spacing: 0.08em;
  }
}
