:root {
  --ink: #202521;
  --forest: #233a2d;
  --moss: #6f7d5d;
  --lake: #5f7c87;
  --copper: #9a6747;
  --paper: #f7f2e8;
  --mist: #eef2ed;
  --white: #fffdf8;
  --shadow: 0 20px 60px rgba(14, 24, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  color: var(--white);
  background: linear-gradient(180deg, rgba(18, 28, 22, 0.82), rgba(18, 28, 22, 0));
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 50%;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  background: rgba(20, 29, 23, 0.42);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  background: rgba(20, 29, 23, 0.34);
  backdrop-filter: blur(12px);
}

.nav-rsvp {
  border: 1px solid rgba(255, 253, 248, 0.65);
}

.hero {
  position: relative;
  min-height: 90svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 7rem clamp(1.25rem, 5vw, 5rem) 5rem;
  color: var(--white);
  background: var(--forest);
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  opacity: 0.88;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 28, 22, 0.82), rgba(18, 28, 22, 0.36) 52%, rgba(18, 28, 22, 0.68)),
    linear-gradient(180deg, rgba(18, 28, 22, 0.22), rgba(18, 28, 22, 0.36));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(4rem, 12vw, 9.4rem);
}

.hero-copy {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.72);
  background: rgba(255, 253, 248, 0.12);
}

.button.light {
  color: var(--forest);
  background: var(--paper);
}

.button.full {
  width: 100%;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
}

.section-light {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(247, 242, 232, 0.95)),
    var(--paper);
}

.section-green {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(35, 58, 45, 0.98), rgba(36, 68, 58, 0.96)),
    var(--forest);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section h2,
.rsvp-note h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
}

.section h2 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.detail-card,
.action-panel,
.rsvp-form,
.rsvp-note {
  border: 1px solid rgba(35, 58, 45, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.detail-card,
.action-panel,
.rsvp-note {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-card h3,
.action-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.detail-card p,
.action-panel p,
.registry-layout p,
.split-layout p {
  margin: 0;
}

.split-section {
  background:
    linear-gradient(90deg, rgba(238, 242, 237, 0.96), rgba(255, 253, 248, 0.98)),
    var(--mist);
}

.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  max-width: 760px;
  border-left: 4px solid var(--copper);
  padding: 0 0 0 1.25rem;
}

.faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.faq-item p {
  margin: 0;
  font-size: 1.08rem;
}

.split-layout,
.registry-layout,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: start;
}

.split-layout > div:first-child p,
.registry-layout > div:first-child p {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1.08rem;
}

.page-hero {
  position: relative;
  min-height: 48svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 8rem clamp(1.25rem, 5vw, 5rem) 4rem;
  color: var(--white);
  background: var(--forest);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 28, 22, 0.82), rgba(18, 28, 22, 0.34));
}

.page-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

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

.page-hero h1 {
  font-size: clamp(4rem, 12vw, 8rem);
}

.page-hero p:last-child {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.rsvp-form {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-row,
fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
}

.form-help {
  margin: -0.25rem 0 1.15rem;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
}

fieldset {
  border: 0;
  padding: 0;
}

legend,
label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(35, 58, 45, 0.24);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(35, 58, 45, 0.16);
  border-radius: 8px;
  background: rgba(238, 242, 237, 0.65);
}

.choice input {
  width: auto;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsvp-note {
  position: sticky;
  top: 6rem;
  white-space: pre-wrap;
}

.rsvp-note h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.rsvp-note p {
  margin: 1rem 0 0;
}

.small-note {
  padding-top: 1rem;
  border-top: 1px solid rgba(35, 58, 45, 0.14);
  color: var(--forest);
  font-weight: 700;
}

.site-footer {
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  color: var(--white);
  text-align: center;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  .brand {
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
  }

  .nav {
    gap: 0.35rem;
  }

  .nav a {
    min-height: 2.2rem;
    padding: 0.38rem 0.65rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 86svh;
    padding-top: 7.5rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 19vw, 5.8rem);
  }

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

  .rsvp-note {
    position: static;
  }
}

@media (max-width: 430px) {
  .site-header {
    position: absolute;
  }

  .hero-actions,
  .form-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
