:root {
  --ink: #1a2f38;
  --ink-soft: #3d5560;
  --paper: #fff8ef;
  --mist: #ffe8c8;
  --sky: #7eb8d4;
  --sky-deep: #3d8fb5;
  --sun: #ffc857;
  --coral: #ff7a59;
  --coral-deep: #e85a3a;
  --leaf: #3fa36c;
  --glow: #fff1c9;
  --white: #ffffff;
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --measure: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: #ffe9c4;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem var(--space);
  color: var(--ink);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.9;
  text-shadow: none;
  transition: opacity 160ms ease;
  padding: 0.5rem 0.25rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav-cta {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.hero {
  position: relative;
  display: grid;
  padding-top: 3.5rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(255, 200, 87, 0.45), transparent 55%),
    linear-gradient(180deg, #fff6e4 0%, #ffe8c8 100%);
}

.hero-photo {
  display: block;
  width: 100%;
  max-height: min(48vh, 420px);
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 30%;
}

@media (min-width: 720px) {
  .hero-photo {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--space) clamp(2.5rem, 6vh, 3.5rem);
  max-width: 40rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.tagline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.25;
  color: var(--ink-soft);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--coral-deep);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--coral);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(26, 47, 56, 0.22);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

.section {
  padding: clamp(4rem, 10vh, 6.5rem) var(--space);
}

.section-inner {
  max-width: 58rem;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: var(--measure);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.details {
  background:
    linear-gradient(180deg, #fff8ef 0%, #ffe9c2 45%, #d9f0e4 100%);
}

.detail-list {
  margin: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .detail-list {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }
}

.detail-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 0.35rem;
}

.detail-list a {
  color: var(--sky-deep);
  text-underline-offset: 0.15em;
  overflow-wrap: break-word;
}

.detail-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
}

.photo-moment {
  position: relative;
  margin: 0;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--space);
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 40% at 8% 20%, rgba(255, 122, 89, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 35% at 92% 75%, rgba(126, 184, 212, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(255, 200, 87, 0.4), transparent 50%),
    linear-gradient(180deg, #ffe2b0 0%, #ffd9a0 40%, #ffe9c4 100%);
  display: flex;
  justify-content: center;
}

.photo-moment img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(100%, 560px);
  height: auto;
  display: block;
}

.florals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floral {
  position: absolute;
  width: clamp(4.5rem, 12vw, 7.5rem);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(26, 47, 56, 0.08));
}

.floral-a {
  top: 6%;
  left: 4%;
  width: clamp(5rem, 14vw, 8.5rem);
  animation: floral-sway 7s ease-in-out infinite alternate;
}

.floral-b {
  top: 18%;
  right: 5%;
  width: clamp(3.5rem, 10vw, 5.5rem);
  animation: floral-sway 8s ease-in-out infinite alternate-reverse;
}

.floral-c {
  bottom: 12%;
  left: 7%;
  width: clamp(4rem, 11vw, 6.5rem);
  animation: floral-sway 6.5s ease-in-out infinite alternate;
}

.floral-d {
  bottom: 8%;
  right: 8%;
  width: clamp(3.25rem, 9vw, 5rem);
  animation: floral-sway 9s ease-in-out infinite alternate-reverse;
}

.florals-rsvp .floral-e {
  top: 8%;
  right: 3%;
  width: clamp(4.5rem, 12vw, 7rem);
  animation: floral-sway 7.5s ease-in-out infinite alternate;
}

.florals-rsvp .floral-f {
  bottom: 10%;
  left: 3%;
  width: clamp(3.5rem, 10vw, 5.5rem);
  animation: floral-sway 8.5s ease-in-out infinite alternate-reverse;
}

.florals-rsvp .floral-g {
  top: 42%;
  left: 6%;
  width: clamp(3rem, 8vw, 4.5rem);
  opacity: 0.75;
  animation: floral-sway 6s ease-in-out infinite alternate;
}

@media (max-width: 700px) {
  .floral-a,
  .floral-b,
  .floral-e {
    opacity: 0.55;
  }

  .floral-c,
  .floral-d,
  .floral-f,
  .floral-g {
    display: none;
  }
}

@keyframes floral-sway {
  from {
    transform: rotate(-6deg) translateY(0);
  }
  to {
    transform: rotate(6deg) translateY(-6px);
  }
}

.rsvp {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 45% at 0% 80%, rgba(63, 163, 108, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 20%, rgba(255, 122, 89, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 90%, rgba(126, 184, 212, 0.3), transparent 50%),
    linear-gradient(180deg, #ffe9c4 0%, #ffd9a0 45%, #ffcfa8 100%);
}

.rsvp .section-inner {
  position: relative;
  z-index: 1;
}

.rsvp-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(28, 42, 36, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(61, 143, 181, 0.22);
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(28, 42, 36, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-weight: 500;
  transition: border-color 160ms ease, background 160ms ease;
}

.choice:has(input:checked) {
  border-color: var(--coral-deep);
  background: var(--glow);
}

.choice input {
  width: auto;
  accent-color: var(--coral-deep);
}

.btn-submit {
  justify-self: start;
  margin-top: 0.5rem;
  min-width: 10rem;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  margin: 0.25rem 0 0;
  min-height: 1.5em;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.form-status.is-success {
  color: var(--leaf);
}

.form-status.is-error {
  color: #8a3a3a;
}

.site-footer {
  padding: 2rem var(--space) 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: #ffcfa8;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .floral {
    animation: none;
  }
}
