@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --obsidian: #0E0E10;
  --gold: #D4AF37;
  --specular: #FFF2C6;
  --chalk: #FCFCFC;
  --champagne: #D1C7B7;
  --hairline: rgba(212, 175, 55, 0.3);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--obsidian);
  color: var(--champagne);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.12em;
  background: var(--obsidian);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 42% at 50% 36%, rgba(212, 175, 55, 0.14), transparent 70%);
  pointer-events: none;
}
main { display: block; }
[hidden] { display: none !important; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 40px;
  text-align: center;
}
.logo {
  width: min(280px, 62vw);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 2.6s cubic-bezier(.2, .7, .2, 1) 0.2s forwards,
             glow 7s ease-in-out 2.8s infinite;
}
.kicker {
  margin: 44px 0 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fade 1.6s ease 1.4s forwards;
}
.tagline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(13px, 3.4vw, 17px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk);
  opacity: 0;
  animation: fade 1.6s ease 1.8s forwards;
}

.rule {
  display: block;
  width: min(220px, 56vw);
  height: 1px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

/* ---------- Invitation ---------- */
.invite {
  padding: 48px 16px 72px;
  text-align: center;
}
.trilogy {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}
.field {
  width: min(340px, 86vw);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 14px 4px;
  color: var(--chalk);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
  outline: none;
  transition: border-color 0.4s ease;
}
.field::placeholder { color: rgba(209, 199, 183, 0.5); }
.field:focus { border-bottom-color: var(--gold); }

.btn {
  margin-top: 30px;
  min-width: min(340px, 86vw);
  padding: 15px 28px;
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: linear-gradient(100deg, #A8862A 0%, #D4AF37 35%, var(--specular) 50%, #D4AF37 65%, #A8862A 100%);
  background-size: 250% 100%;
  animation: shimmer 9s linear infinite;
  transition: box-shadow 0.4s ease, opacity 0.3s ease;
}
.btn:hover { box-shadow: 0 10px 30px -12px rgba(212, 175, 55, 0.7); }
.btn:focus-visible, .field:focus-visible { outline: 1px solid var(--chalk); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.status {
  min-height: 22px;
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.status.error { color: #E3A184; }
.reserved {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--chalk);
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 16px 48px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 2;
  color: rgba(209, 199, 183, 0.75);
}
footer p { margin: 0; }
footer .brand {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
footer a { color: var(--champagne); text-decoration: none; border-bottom: 1px solid var(--hairline); }
footer a:hover { color: var(--gold); }

/* ---------- Motion ---------- */
@keyframes reveal {
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  to { opacity: 1; }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.15)); }
  50%      { filter: drop-shadow(0 0 26px rgba(212, 175, 55, 0.45)); }
}
@keyframes shimmer {
  from { background-position: 150% 0; }
  to   { background-position: -150% 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo, .kicker, .tagline { opacity: 1; transform: none; }
}
@media (max-width: 380px) {
  .hero { padding-top: 56px; }
}
