:root {
  --black: #080808;
  --coal: #11110f;
  --panel: #171714;
  --cream: #e7dcc8;
  --muted: #a79d8d;
  --red: #8f181d;
  --red-bright: #bc272e;
  --gold: #b69a62;
  --line: rgba(231, 220, 200, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
a { color: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.film-grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 26%, rgba(143, 24, 29, .36), transparent 24%),
    linear-gradient(100deg, rgba(0,0,0,.98) 0%, rgba(4,4,4,.92) 48%, rgba(10,8,8,.75) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: -20%; z-index: -2;
  background:
    repeating-linear-gradient(118deg, transparent 0 38px, rgba(255,255,255,.018) 39px 40px),
    radial-gradient(ellipse at 85% 65%, rgba(255,255,255,.09), transparent 7%),
    radial-gradient(ellipse at 77% 55%, rgba(255,255,255,.07), transparent 11%);
  filter: blur(6px);
  transform: rotate(-3deg);
}
.hero::after {
  content: "";
  position: absolute;
  width: 46vw; height: 74vw; max-height: 900px;
  right: -8vw; bottom: -37vw; z-index: -1;
  border: 1px solid rgba(182,154,98,.2);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 0 80px rgba(143,24,29,.04), 0 0 0 160px rgba(182,154,98,.025);
}

.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 12px; letter-spacing: .23em; font-weight: 700; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: Georgia, serif; font-size: 24px; }
.nav-link { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 5px; }

.hero-content { margin-block: auto; padding: 90px 0 70px; }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { margin: 0; max-width: 870px; font-size: clamp(72px, 12.5vw, 178px); line-height: .77; letter-spacing: -.065em; text-transform: uppercase; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(231,220,200,.58); }
.lead { max-width: 680px; margin: 48px 0 0; color: #d0c6b6; font-family: Georgia, serif; font-size: clamp(18px, 2vw, 25px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.button {
  min-height: 52px; padding: 0 25px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s ease;
}
.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.button-ghost { border-color: rgba(231,220,200,.4); background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,.06); }
.hero-caption { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 30px; color: var(--muted); font-size: 11px; letter-spacing: .25em; }

.details { background: var(--cream); color: var(--black); }
.details::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(0,0,0,.018) 20px); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; position: relative; z-index: 1; }
.section-heading h2, .rsvp-copy h2, .responses h2 { margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: .98; letter-spacing: -.045em; }
.details .eyebrow { color: var(--red); }
.invitation-card { position: relative; padding: 52px; border: 1px solid rgba(8,8,8,.35); box-shadow: 15px 15px 0 rgba(143,24,29,.12); background: rgba(255,255,255,.18); }
.card-rule { width: 68px; height: 4px; background: var(--red); margin-bottom: 28px; }
.card-kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.invitation-card dl { margin: 28px 0 0; }
.invitation-card dl div { display: grid; grid-template-columns: 120px 1fr; gap: 25px; padding: 15px 0; border-top: 1px solid rgba(8,8,8,.16); }
dt { color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.invitation-card dt { color: #665e51; }
dd { margin: 0; }
.invitation-card dd { font-family: Georgia, serif; font-size: 19px; }
.card-note { margin: 28px 0 0; font-style: italic; color: #665e51; }

.rules { background: var(--coal); }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rules-grid article { min-height: 260px; padding: 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-grid span { color: var(--red-bright); font-size: 12px; letter-spacing: .2em; }
.rules-grid h3 { margin: 55px 0 14px; font-size: 28px; }
.rules-grid p { margin: 0; color: var(--muted); }

.rsvp { background: linear-gradient(135deg, #0c0b0b 0%, #15110f 100%); }
.rsvp-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.rsvp-copy { position: sticky; top: 40px; }
.rsvp-copy > p:not(.eyebrow) { max-width: 470px; color: var(--muted); margin-top: 24px; }
.status-card { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; padding: 12px 15px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px rgba(182,154,98,.1); }
.status-card.online .status-dot { background: #6aa36b; box-shadow: 0 0 0 5px rgba(106,163,107,.12); }
.status-card.offline .status-dot { background: var(--red-bright); box-shadow: 0 0 0 5px rgba(188,39,46,.12); }

.rsvp-form { padding: 42px; background: rgba(255,255,255,.035); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { border: 0; padding: 0; margin: 0 0 28px; }
.field label, .field legend { display: block; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
input[type="text"], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 15px 16px; color: var(--cream); background: #0e0e0d; outline: none; resize: vertical;
}
input[type="text"]:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,154,98,.1); }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice input, .radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice span, .radio-row span { min-height: 45px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: .16s ease; }
.choice input:checked + span, .radio-row input:checked + span { color: white; border-color: var(--red-bright); background: rgba(143,24,29,.25); }
.radio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.consent { display: flex; align-items: center; gap: 12px; margin: 4px 0 25px; color: var(--muted); font-size: 14px; }
.consent input { accent-color: var(--red-bright); }
.submit-button { width: 100%; position: relative; }
.submit-button[disabled] { opacity: .65; cursor: wait; transform: none; }
.button-loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.submit-button.loading .button-text { display: none; }
.submit-button.loading .button-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { display: block; min-height: 18px; margin-top: 5px; color: #e57479; }
.form-message { min-height: 24px; margin: 15px 0 0; color: var(--gold); text-align: center; }
.form-message.error-message { color: #e57479; }

.responses { background: #0a0a09; }
.responses-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.text-button { padding: 0 0 5px; color: var(--gold); background: transparent; border: 0; border-bottom: 1px solid var(--gold); cursor: pointer; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; }
.responses-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.response-card { padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.response-card-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.response-card h3 { margin: 0; font-size: 26px; }
.attendance-badge { flex: none; padding: 5px 8px; border: 1px solid var(--line); color: var(--gold); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.response-card dl { margin: 20px 0 0; display: grid; gap: 16px; }
.response-card dt { margin-bottom: 3px; }
.response-card dd { color: #d6cbbb; }
.empty-state { grid-column: 1 / -1; padding: 45px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); background: #050505; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .details-grid, .rsvp-grid { grid-template-columns: 1fr; gap: 50px; }
  .rsvp-copy { position: static; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article { min-height: auto; }
  .rules-grid h3 { margin-top: 28px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .responses-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1160px); }
  .nav-link { display: none; }
  .hero-content { padding-top: 110px; }
  h1 { font-size: clamp(58px, 21vw, 92px); line-height: .82; }
  .lead { margin-top: 34px; }
  .hero-actions .button { width: 100%; }
  .hero-caption { font-size: 9px; letter-spacing: .12em; }
  .invitation-card, .rsvp-form { padding: 26px; }
  .invitation-card dl div { grid-template-columns: 90px 1fr; gap: 12px; }
  .responses-head { align-items: start; flex-direction: column; }
  .responses-list { grid-template-columns: 1fr; }
  .radio-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
