:root {
  --bg: #14201b;
  --bg-2: #1c2f27;
  --ink: #f4efe6;
  --muted: #b7c4bb;
  --gold: #c9a46a;
  --gold-soft: #e4c896;
  --line: rgba(244, 239, 230, 0.14);
  --ok: #8fbf9f;
  --btn-ink: #1a140c;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --hero-image: url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1400&q=80");
  --hero-overlay: linear-gradient(180deg, rgba(20, 32, 27, 0.15), rgba(20, 32, 27, 0.72));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 55%),
    radial-gradient(900px 600px at -10% 30%, color-mix(in srgb, var(--bg-2) 55%, transparent), transparent 50%),
    linear-gradient(165deg, var(--bg), var(--bg-2) 55%, color-mix(in srgb, var(--bg) 70%, #000));
  line-height: 1.5;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  gap: 0.65rem;
}

.brand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  animation: rise 0.9s ease both;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  animation: rise 0.9s ease 0.08s both;
}

.names {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 12vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  animation: rise 1s ease 0.15s both;
}

.names span {
  display: block;
}

.amp {
  font-style: italic;
  color: var(--gold-soft);
  font-size: 0.55em;
  margin: 0.15em 0;
}

.lede {
  max-width: 22rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 1s ease 0.25s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.4rem;
  animation: rise 1s ease 0.35s both;
}

.hero-visual {
  width: min(100%, 28rem);
  height: clamp(10rem, 28vw, 14rem);
  margin-top: 2rem;
  border-radius: 1.5rem 1.5rem 0.4rem 0.4rem;
  background: var(--hero-overlay), var(--hero-image) center 35% / cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: fade-in 1.2s ease 0.45s both;
}

.section {
  width: min(36rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.big {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.muted {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.short {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.tiny {
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.btn-map {
  margin-top: 1.1rem;
  background: rgba(244, 239, 230, 0.06);
  border-color: var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
  margin-top: 0.4rem;
}

.rsvp-form {
  margin-top: 1.4rem;
  text-align: left;
  display: grid;
  gap: 0.9rem;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  border-color: var(--gold);
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  font: inherit;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.form-msg {
  margin: 0.2rem 0 0;
  text-align: center;
  color: var(--ok);
}

.form-msg.error {
  color: #e8a0a0;
}

.footer {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0.2rem 0;
}

.footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 4.5rem;
  }

  .choice {
    gap: 0.85rem;
  }
}
