@font-face {
  font-family: 'ghosthey';
  src: url('../fonts/ghosthey-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  margin: 0;
  padding: 0;
  background: #160705;
  color: #ede4d3;
  overflow-x: hidden;
}

.noise {
  position: absolute;
  inset: -64px -64px 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  background-size: 150px 150px;
  background-repeat: repeat;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  margin: 64px 64px 0 64px;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #160705;
  color: #ede4d3;
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 72px;
  animation: page-fade-in 3s ease both;
  position: relative;
}

/* ── Shared label style ──────────────────────────── */

.eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}

/* ── SVG star ornament ───────────────────────────── */

.star {
  color: #5C1A1B;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  overflow: visible;
}

/* ── Ornamental dividers ─────────────────────────── */

.divider {
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: -3px;
}

.rule {
  flex: 1;
  height: 1px;
  background: #5c1a1b;
}

/* Bottom banner: lines fade toward the center text */
.banner .rule:first-of-type {
  background: linear-gradient(to right, #5c1a1b, transparent);
}

.banner .rule:last-of-type {
  background: linear-gradient(to left, #5c1a1b, transparent);
}

/* ── Hero ────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.arch {
  width: 56px;
  margin-bottom: 28px;
}

.grooms {
  font-family: 'ghosthey', 'UnifrakturMaguntia', serif;
  font-size: 64px;
  font-weight: 400;
  color: #ede4d3;
  line-height: 1.1;
}

.cesar {
  font-feature-settings: 'ss01' 1;
}

.diamond {
  color: #802425;
  font-size: 14px;
  display: block;
  margin: 2px 0 14px;
  line-height: 1;
}

.tagline {
  color: #802425;
}

/* ── All Hallows' Eve artwork ────────────────────── */

.hallows {
  --bleed: 72px;
  width: calc(100% + 2 * var(--bleed));
  opacity: 0.25;
  transition: opacity 1.4s ease;
  mix-blend-mode: lighten;
}

.hallows.in-view {
  opacity: 1;
}

.hallows img {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hallows { opacity: 1; transition: none; }
}

/* ── Info card ───────────────────────────────────── */

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 24px;
  width: 100%;
  max-width: 412px;
  box-sizing: border-box;
}

.lanaux {
  width: 120px;
  height: auto;
  margin-bottom: 24px;
}

.venue {
  color: #ede4d3;
  line-height: 2;
  margin: 0 0 24px;
}

.button {
  display: inline-block;
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ede4d3;
  background: #802425;
  border: 1px solid #802425;
  border-radius: 2px;
  padding: 10px 28px;
  text-decoration: none;
  margin-bottom: 32px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.button:hover {
  background: transparent;
  color: #802425;
}

.footnote {
  color: #8a8175;
  line-height: 2;
  margin: 0;
}

/* ── RSVP form state hooks ───────────────────────── */
/* Style these selectors for loading/success/error states:
   #rsvp-form[data-state="loading"] { … }
   #rsvp-form[data-state="success"] { … }
   #rsvp-form[data-state="error"]   { … }
   #form-error, #form-success       { … } */

/* ── Bottom banner ───────────────────────────────── */

.banner {
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.banner-label {
  color: #5C1A1B;
  white-space: nowrap;
  flex-shrink: 0;
}

br.secondary-br { display: none; }
br.display-br   { display: none; }

@media (max-width: 768px) {
  .grooms {
    font-size: calc((100vw - 128px) / 7);
  }
  br.display-br { display: initial; }
}

@media (max-width: 767px) {
  body {
    margin: 64px 16px;
    row-gap: 48px;
  }
  .noise {
    inset: -64px -16px 0;
    display: none;
  }
  .eyebrow {
    font-size: 12px;
  }
  .grooms {
    font-size: calc((100vw) / 7);
    margin-top: 32px;
  }
  .hallows {
    --bleed: 16px;
  }
  .button {
    padding: 20px 56px;
    border-radius: 4px;
    font-size: 13px;
  }
  .banner-label {
    line-height: 1.15;
    padding: 0 8px;
  }
  br.secondary-br { display: initial; }
}
