/* Self-hosted fonts (GDPR: no third-party requests to Google) */

/* Syne — latin-ext */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/syne-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Syne — latin */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/syne-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Cormorant Garamond normal — latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cormorant Garamond normal — latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Cormorant Garamond italic — latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Cormorant Garamond italic — latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── BASE ──────────────────────────────────────────── */

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

:root {
  --cream: #EDEAE3;
  --orange: #F04E26;
  --blue: #8CB3C8;
  --green: #2C5840;
  --text: #1C1C1A;
  --text-muted: #5a5a54;
}

html, body {
  width: 100%; height: 100%;
  background: var(--cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
  overflow: hidden;
  cursor: default;
}

/* ── ORBS ───────────────────────────────────────────── */
.orb-wrap {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.orb-orange {
  width: 68vw; height: 68vw;
  background: var(--orange);
  top: 4%; left: -12%;
  animation: driftA 18s ease-in-out infinite;
  opacity: 0.92;
}
.orb-blue {
  width: 52vw; height: 52vw;
  background: var(--blue);
  top: -10%; right: -8%;
  animation: driftB 22s ease-in-out infinite;
  opacity: 0.75;
}
.orb-warm {
  width: 30vw; height: 30vw;
  background: #E8C5A0;
  bottom: -5%; right: 20%;
  animation: driftC 26s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes driftA {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(4%,3%) scale(1.04); }
  66%      { transform: translate(-3%,5%) scale(0.97); }
}
@keyframes driftB {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-5%,4%) scale(1.06); }
  70%      { transform: translate(3%,-3%) scale(0.95); }
}
@keyframes driftC {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-6%,-4%) scale(1.08); }
}

/* ── LAYOUT ─────────────────────────────────────────── */
.stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100vw; height: 100vh;
  padding: 2rem;
}

/* ── LOGO ───────────────────────────────────────────── */
.logo {
  position: fixed;
  top: 2rem; left: 2.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--green);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
  z-index: 10;
}

/* ── MAIN TITLE ─────────────────────────────────────── */
.title-wrap {
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}
.title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 20vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
  -webkit-text-stroke: 0px;
  text-shadow:
    0 2px 40px rgba(0,0,0,0.08),
    0 0 120px rgba(240,78,38,0.25);
  user-select: none;
  mix-blend-mode: normal;
}

/* ── DATE LINE ──────────────────────────────────────── */
.date-line {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(0.65rem, 1.5vw, 0.9rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.7rem;
  opacity: 0.9;
}

/* ── DETAILS ────────────────────────────────────────── */
.details {
  margin-top: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}
.details p {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.18em;
  color: var(--text-muted);
  line-height: 2;
  font-weight: 400;
}

/* ── RSVP TRIGGER ───────────────────────────────────── */
.rsvp-trigger {
  position: fixed;
  bottom: 2.8rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
  z-index: 10;
}
.rsvp-btn {
  background: none;
  border: 1px solid rgba(28,28,26,0.25);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(0.65rem, 1.1vw, 0.78rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2.4rem;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
  max-width: calc(100vw - 3rem);
  box-sizing: border-box;
  text-align: center;
}
.rsvp-btn:hover {
  background: var(--text);
  color: var(--cream);
  border-color: var(--text);
}

/* ── CORNER INFO ────────────────────────────────────── */
.corner-info {
  position: fixed;
  bottom: 2.2rem; right: 2.4rem;
  text-align: right;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
  z-index: 10;
}
.corner-info p {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(0.55rem, 0.9vw, 0.68rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.9;
}
.corner-arrow {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  transform: rotate(0deg);
}

/* ── RSVP OVERLAY ───────────────────────────────────── */
.rsvp-overlay {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(237,234,227,0.0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  opacity: 0;
  transition: all 0.6s ease;
}
.rsvp-overlay.open {
  opacity: 1;
  pointer-events: all;
  background: rgba(237,234,227,0.72);
  backdrop-filter: blur(24px);
}
.rsvp-box {
  text-align: center;
  transform: translateY(24px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}
.rsvp-overlay.open .rsvp-box {
  transform: translateY(0);
  opacity: 1;
}
.rsvp-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.rsvp-input {
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--text);
  outline: none;
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  text-align: center;
  padding: 0.4rem 0 0.6rem;
  letter-spacing: 0.02em;
  caret-color: var(--orange);
}
.rsvp-input::placeholder {
  color: rgba(28,28,26,0.25);
}
.rsvp-submit {
  margin-top: 2.4rem;
  background: none;
  border: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
}
.rsvp-submit:hover { color: var(--text); }
.rsvp-close {
  position: fixed;
  top: 2rem; right: 2.4rem;
  background: none; border: none;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  z-index: 21;
}
.rsvp-close:hover { color: var(--text); }

/* ── CONFIRMATION ───────────────────────────────────── */
.confirm-box {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(237,234,227,0.0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  opacity: 0;
  transition: all 0.7s ease;
}
.confirm-box.show {
  opacity: 1;
  pointer-events: all;
  background: rgba(237,234,227,0.85);
  backdrop-filter: blur(32px);
}
.confirm-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--text);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.3s;
  line-height: 1;
}
.confirm-box.show .confirm-title {
  opacity: 1;
  transform: translateY(0);
}
.confirm-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-top: 1.2rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 0.55s;
}
.confirm-box.show .confirm-sub {
  opacity: 1;
  transform: translateY(0);
}
.confirm-name {
  color: var(--text);
  font-style: normal;
  font-weight: 400;
}

/* ── LOADING SPINNER ────────────────────────────────── */
.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(28,28,26,0.15);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 1.5rem auto 0;
}
.spinner.active { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ERROR ──────────────────────────────────────────── */
.rsvp-error {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--orange);
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.rsvp-error.show { opacity: 1; }

/* ── UTILS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .orb-orange { width: 120vw; height: 120vw; left: -30%; top: 0%; }
  .orb-blue   { width: 90vw;  height: 90vw;  right: -20%; top: -5%; }
  .corner-info { display: none; }
  .logo { font-size: 0.8rem; }
  .rsvp-btn {
    font-size: 0.55rem;
    padding: 0.7rem 1.2rem;
    letter-spacing: 0.1em;
  }
}
