/* Candlelit Ballroom — whimsical macabre. Near-black plum, bone, oxblood, candle gold. */
:root {
  --void: #0e0a10;
  --void-soft: #171019;
  --bone: #e9e2d6;
  --bone-soft: #9a8f96;
  --blood: #8e2035;
  --blood-bright: #c43a55;
  --candle: #c9a24b;
  --hairline: rgba(233, 226, 214, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.65;
  min-height: 100svh;
  position: relative;
}

/* candlelight haze */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 50% -5rem, rgba(142, 32, 53, 0.22), transparent 65%),
    radial-gradient(40rem 30rem at 85% 110%, rgba(201, 162, 75, 0.08), transparent 70%),
    radial-gradient(35rem 28rem at 8% 90%, rgba(90, 40, 90, 0.14), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* film grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.8 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blood); color: var(--bone); }

.caps, nav a, .label {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
}

/* --- nav --- */
header.site {
  text-align: center;
  padding: 2.2rem 1rem 0;
}
header.site .monogram {
  font-family: 'Pinyon Script', cursive;
  font-size: 2rem;
  color: var(--blood-bright);
}
header.site .monogram a { color: inherit; text-decoration: none; }
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  padding: 1.3rem 1rem 1.6rem;
  border-bottom: 1px solid var(--hairline);
  max-width: 62rem;
  margin: 0 auto;
}
nav a {
  color: var(--bone-soft);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.25s, text-shadow 0.25s;
}
nav a:hover {
  color: var(--bone);
  text-shadow: 0 0 14px rgba(196, 58, 85, 0.9);
}
nav a[aria-current] {
  color: var(--bone);
  border-bottom: 1px solid var(--blood-bright);
}

/* --- layout --- */
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1.4rem 6rem;
  animation: rise 0.9s ease both;
}
main.wide { max-width: 58rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

h1 {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(3rem, 9vw, 4.6rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
  color: var(--bone);
  text-shadow: 0 0 30px rgba(142, 32, 53, 0.55);
}
h2 {
  font-size: 1.9rem;
  font-weight: 500;
  font-style: italic;
  margin: 3rem 0 0.8rem;
  color: var(--bone);
}
h2::after { content: ' †'; color: var(--blood-bright); font-style: normal; font-size: 1.2rem; }
.label {
  display: block;
  text-align: center;
  color: var(--candle);
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

.rule {
  width: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood-bright), transparent);
  margin: 2.2rem auto;
  position: relative;
}
.rule::after {
  content: '☾';
  position: absolute;
  top: -0.95rem;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  padding: 0 0.6rem;
  color: var(--candle);
  font-size: 1.05rem;
}

p + p { margin-top: 1.1rem; }
a { color: var(--blood-bright); }
a:hover { text-shadow: 0 0 12px rgba(196, 58, 85, 0.7); }
em { color: var(--bone-soft); }
strong { color: var(--candle); font-weight: 600; }

/* --- buttons & forms --- */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--bone);
  background: var(--blood);
  border: 1px solid var(--blood-bright);
  padding: 0.85rem 2.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn:hover {
  background: transparent;
  box-shadow: 0 0 22px rgba(196, 58, 85, 0.45), inset 0 0 12px rgba(196, 58, 85, 0.2);
  text-shadow: none;
}
.btn.ghost { background: transparent; border-color: var(--hairline); }
.btn.ghost:hover { border-color: var(--blood-bright); }

input[type='text'], input[type='password'], select {
  font: inherit;
  color: var(--bone);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.4rem 0.1rem;
  width: 100%;
  border-radius: 0;
}
select { color-scheme: dark; }
input:focus, select:focus { outline: none; border-bottom-color: var(--blood-bright); }
label { display: block; }
.field { margin: 1.4rem 0; }
.field .label { text-align: left; font-size: 0.62rem; margin-bottom: 0.2rem; }

.error { color: var(--blood-bright); font-style: italic; margin-top: 1rem; }
.success { color: var(--candle); font-style: italic; margin-top: 1rem; }

/* --- hero (index) --- */
.hero {
  text-align: center;
  padding: 5rem 1.4rem 0;
}
.hero .names {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(3.4rem, 12vw, 6.4rem);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 0 0 40px rgba(142, 32, 53, 0.6);
}
.hero .amp { color: var(--blood-bright); }
.hero .meta {
  margin-top: 2rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-soft);
  font-size: clamp(0.68rem, 2.2vw, 0.85rem);
}
.hero > * { animation: rise 0.9s ease both; }
.hero > *:nth-child(2) { animation-delay: 0.15s; }
.hero > *:nth-child(3) { animation-delay: 0.3s; }
.hero > *:nth-child(4) { animation-delay: 0.45s; }
.hero > *:nth-child(5) { animation-delay: 0.6s; }

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 2.8rem);
  margin-top: 3rem;
}
.countdown div { text-align: center; }
.countdown .num {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-style: italic;
  color: var(--blood-bright);
  text-shadow: 0 0 18px rgba(196, 58, 85, 0.5);
}
.countdown .unit {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--bone-soft);
}

/* --- schedule --- */
.event {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
}
.event time {
  font-style: italic;
  color: var(--candle);
  font-size: 1.15rem;
}
.event h3 { font-weight: 600; font-size: 1.25rem; }
.event p { color: var(--bone-soft); font-size: 1.05rem; margin-top: 0.2rem; }
@media (max-width: 480px) { .event { grid-template-columns: 1fr; gap: 0.2rem; } }

/* --- faq --- */
details.faq {
  border-bottom: 1px solid var(--hairline);
  padding: 1.1rem 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.25rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '†'; color: var(--blood-bright); font-size: 1.2rem; transition: transform 0.25s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 0.6rem; color: var(--bone-soft); }

/* --- gallery --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}
.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  border: 1px solid var(--hairline);
  transition: filter 0.3s, border-color 0.3s;
}
.grid img:hover { filter: none; border-color: var(--blood-bright); }
.grid .ph {
  aspect-ratio: 1;
  background: var(--void-soft);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--bone-soft);
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
}

/* --- rsvp party card --- */
.guest-card {
  border: 1px solid var(--hairline);
  padding: 1.6rem;
  margin: 1.6rem 0;
  background: var(--void-soft);
  box-shadow: 0 0 30px rgba(142, 32, 53, 0.12);
}
.guest-card h3 {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--bone);
}
.choice { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.choice label {
  flex: 1;
  text-align: center;
  border: 1px solid var(--hairline);
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--bone-soft);
  transition: all 0.2s;
}
.choice input { display: none; }
.choice input:checked + span { color: var(--bone); }
.choice label:has(input:checked) {
  border-color: var(--blood-bright);
  background: rgba(142, 32, 53, 0.18);
  box-shadow: 0 0 16px rgba(196, 58, 85, 0.25);
}

footer.site {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--bone-soft);
  font-style: italic;
  font-size: 1rem;
}
