:root {
  --cream: #fff8df;
  --butter: #ffd66b;
  --gold: #f2a900;
  --coral: #ff7b61;
  --berry: #8f3d56;
  --leaf: #537a5a;
  --ink: #312315;
  --paper: rgba(255, 252, 239, 0.86);
  --line: rgba(49, 35, 21, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 214, 107, 0.75), transparent 22rem),
    radial-gradient(circle at 84% 12%, rgba(255, 123, 97, 0.35), transparent 18rem),
    linear-gradient(135deg, rgba(83, 122, 90, 0.13) 25%, transparent 25%) 0 0 / 34px 34px,
    var(--cream);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(var(--ink) 0.8px, transparent 0.8px);
  background-size: 12px 12px;
  mix-blend-mode: multiply;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
}

.hero, .rsvp-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(93, 58, 24, 0.14);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: clamp(30px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sun {
  position: absolute;
  width: min(44vw, 310px);
  aspect-ratio: 1;
  border-radius: 999px;
  top: 44px;
  right: 52px;
  background: radial-gradient(circle, #ffe88f 0 44%, #ffc857 45% 62%, transparent 63%);
  filter: drop-shadow(0 20px 32px rgba(242, 169, 0, 0.24));
}

.sun::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: inherit;
  border: 2px dashed rgba(242, 169, 0, 0.48);
  animation: spin 28s linear infinite;
}

.kite {
  position: absolute;
  top: 170px;
  left: clamp(28px, 7vw, 92px);
  width: 118px;
  height: 118px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--coral) 0 50%, var(--berry) 50%);
  border-radius: 18px 18px 28px 18px;
  box-shadow: 20px 24px 0 rgba(83, 122, 90, 0.18);
}

.kite::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 92px;
  border-left: 2px solid rgba(49, 35, 21, 0.42);
  border-bottom: 2px solid rgba(49, 35, 21, 0.22);
  left: 92px;
  top: 92px;
  border-radius: 0 0 0 100%;
  transform: rotate(-45deg);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 850;
}

.eyebrow.dark { color: var(--leaf); }

h1, h2 { margin: 0; letter-spacing: -0.055em; }

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 10vw, 132px);
  line-height: 0.82;
}

.lede {
  max-width: 620px;
  margin: 28px 0 36px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  color: rgba(49, 35, 21, 0.78);
}

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

.details div {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.44);
  padding: 18px;
}

.details span, label, legend {
  display: block;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(49, 35, 21, 0.58);
}

.details strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.rsvp-card {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  gap: 24px;
  align-content: center;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.9;
}

.small {
  margin: 16px 0 0;
  color: rgba(49, 35, 21, 0.72);
  font-size: 17px;
  line-height: 1.45;
}

form { display: grid; gap: 16px; }

input, textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(49, 35, 21, 0.18);
  border-radius: 18px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font: 600 16px/1.2 ui-rounded, "Avenir Next", "Segoe UI", sans-serif;
}

input:focus, textarea:focus {
  outline: 3px solid rgba(255, 214, 107, 0.65);
  border-color: var(--gold);
}

fieldset {
  border: 1px solid rgba(49, 35, 21, 0.16);
  border-radius: 20px;
  margin: 0;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  padding: 9px 12px;
}

.choice input { width: auto; margin: 0; }

button {
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  cursor: pointer;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--berry), var(--coral));
  box-shadow: 0 15px 38px rgba(143, 61, 86, 0.25);
  font-size: 17px;
  font-weight: 900;
}

button:disabled { opacity: 0.62; cursor: wait; }

#status { min-height: 24px; margin: 0; font-weight: 800; color: var(--leaf); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  main { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
}

@media (max-width: 520px) {
  main { width: min(100% - 20px, 1120px); padding: 10px 0 28px; }
  .hero, .rsvp-card { border-radius: 26px; }
  .hero { min-height: 590px; padding: 26px; }
  .sun { right: -20px; top: 20px; width: 210px; }
  .kite { top: 132px; left: 28px; width: 84px; height: 84px; }
  .details { grid-template-columns: 1fr; }
}
