:root {
  --sage: #8faf9a;
  --sage-light: #a8bfa6;
  --sage-dark: #6e8063;
  --cream: #f6f2e9;
  --sand: #eee7d6;
  --ink: #6e8063;
  --muted: #8faf9a;
  --accent: #a8bfa6;
  --line: #a8bfa6;
  --paper: #f6f2e9;
  --error: #9b3d3d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, var(--cream) 0%, var(--sand) 58%, #e4ddc8 100%);
  color: var(--ink);
}

.page {
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  margin: 0.3rem 0 0.8rem;
  line-height: 1.05;
}

.details,
.deadline {
  color: var(--muted);
  margin: 0.2rem 0;
}

.dot {
  margin: 0 0.45rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--sage-light);
  border-radius: 18px;
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: 0 18px 50px rgba(110, 128, 99, 0.14);
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 0.35rem;
  text-align: center;
}

.lede {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

label,
legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 1rem 0 0.4rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--sage-light);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--sage-dark);
  background: var(--cream);
}

input::placeholder,
textarea::placeholder {
  color: var(--sage);
  opacity: 0.85;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--sage);
  border-color: transparent;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0.4rem 0 0;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.choice {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--sage-light);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--sand);
}

.choice:has(input:checked) {
  border-color: var(--sage-dark);
  background: var(--sage-light);
  color: var(--sage-dark);
}

.choice input {
  width: auto;
}

.guest-fields[hidden],
.success[hidden],
.error[hidden],
.hp {
  display: none;
}

button {
  width: 100%;
  margin-top: 1.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  background: var(--sage-dark);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

button:hover,
button:focus {
  background: var(--sage);
}

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

.error {
  color: var(--error);
  margin: 1rem 0 0;
}

.success {
  text-align: center;
  padding: 1rem 0 0.4rem;
}

.success p {
  color: var(--muted);
}

@media (max-width: 520px) {
  .choices {
    grid-template-columns: 1fr;
  }

  .details .dot {
    display: none;
  }

  .details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
}
