@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f0e6d2;
  --ink: #2e1f12;
  --ink-soft: #4a3826;
  --muted: #8a5fb0;
  --line: rgba(46, 31, 18, 0.22);
  --paper: #fbf8ee;
  --accent: #8a5fb0;
  --accent2: #6a8a5a;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
body { overflow-x: hidden; }
body.intro-locked, body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 400; line-height: 0.98; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.intro { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: var(--paper); transition: opacity 0.9s ease, visibility 0.9s ease; }
.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-inner { width: min(560px, calc(100% - 48px)); padding: 48px 24px; text-align: center; }
.intro-eyebrow { margin-bottom: 20px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase; }
.intro-guest { margin: 0 0 28px; color: var(--ink); font-family: var(--display); font-size: clamp(40px, 8vw, 72px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.intro-guest em { color: var(--accent); font-style: normal; }
.intro-guestbox { display: block; margin: 0 auto 40px; color: var(--ink); font-family: var(--display); font-size: clamp(30px, 5.4vw, 52px); font-style: italic; line-height: 1.1; }
.intro-guestbox small { display: block; margin-bottom: 12px; color: var(--muted); font-family: var(--body); font-size: 11px; font-style: normal; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.intro-btn, .cta-btn, .map-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 17px 34px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-decoration: none; text-transform: uppercase; transition: 0.3s ease; }
.intro-btn:hover, .cta-btn:hover, .map-btn:hover, .intro-btn:focus-visible, .cta-btn:focus-visible, .map-btn:focus-visible { background: var(--ink); color: var(--paper); outline: none; }

.music { position: fixed; top: 22px; right: 22px; z-index: 1500; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250, 246, 239, 0.92); box-shadow: 0 4px 18px rgba(42, 37, 32, 0.08); cursor: pointer; font-size: 10px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; backdrop-filter: blur(14px); }
.bars { position: relative; display: flex; align-items: end; gap: 2.5px; width: 16px; height: 14px; }
.bars span { display: block; width: 2.5px; height: 55%; border-radius: 1px; background: currentColor; }
.music.on .bars span { animation: eq 0.9s ease-in-out infinite; }
.music.on .bars span:nth-child(2) { animation-delay: 0.15s; }
.music.on .bars span:nth-child(3) { animation-delay: 0.3s; }
.music.on .bars span:nth-child(4) { animation-delay: 0.45s; }
.music:not(.on) .bars::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: currentColor; transform: rotate(-35deg); }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

.hero-photo { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; background: #e5dccb; }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 120px 32px 22px; background: linear-gradient(to top, rgba(30, 24, 18, 0.78), rgba(30, 24, 18, 0)); text-align: center; }
.hero-overlay-date { color: #fff; font-family: var(--display); font-size: clamp(30px, 5vw, 58px); text-shadow: 0 2px 18px rgba(20, 14, 8, 0.65); }

.countdown { padding: 110px 24px; background: #f4eff9; text-align: center; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; margin: 44px auto 0; }
.cd-cell { padding: 24px 8px; border-left: 1px solid var(--line); }
.cd-cell:first-child { border-left: 0; }
.cd-num { font-family: var(--display); font-size: clamp(48px, 9vw, 88px); font-variant-numeric: tabular-nums; line-height: 1; }
.cd-lbl { margin-top: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }

.prologue { padding: 130px 32px; }
.prologue-inner { max-width: 1180px; margin: 0 auto; }
.prologue-text { max-width: 860px; margin: auto; text-align: center; }
.prologue-text h2 { margin: 0; font-family: var(--display); font-size: clamp(40px, 5.4vw, 80px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
.prologue-text h2 em { color: var(--accent); }

.photoband { width: 100%; padding: 0; background: var(--bg); }
.photoband.paper { background: var(--paper); }
.photoband-inner { width: 100%; height: min(78vh, 820px); min-height: 480px; overflow: hidden; }
.photoband.tall .photoband-inner { height: min(92vh, 980px); }
.photoband img { width: 100%; height: 100%; object-fit: cover; }

.celebra { padding: 120px 32px; }
.celebra-save { max-width: 820px; margin: 0 auto; text-align: center; }
.lead-line { font-family: var(--display); font-size: clamp(46px, 8vw, 104px); letter-spacing: -0.01em; line-height: 1; }
.date-line { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; color: var(--ink-soft); font-family: var(--display); font-size: clamp(24px, 3.4vw, 42px); font-style: italic; }
.line-icon { color: var(--accent); font-style: normal; }
.celebra-itin { max-width: 430px; margin: 52px auto 0; }
.itin-list { position: relative; }
.itin-list::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 80px; width: 1px; background: var(--line); }
.itin-row { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 36px; padding: 22px 0; }
.itin-row::before { content: ""; position: absolute; top: 30px; left: 74px; width: 12px; height: 12px; border: 1.5px solid var(--accent2); border-radius: 50%; background: var(--paper); }
.itin-time { color: var(--accent); font-family: var(--display); font-size: 26px; font-style: italic; font-weight: 500; }
.itin-body h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.itin-body p { margin: 0; font-size: 16px; line-height: 1.65; }
.celebra-loc { max-width: 760px; margin: 60px auto 0; text-align: center; }
.celebra-loc h2 { display: flex; align-items: center; justify-content: center; gap: 0.14em; margin: 0 0 12px; font-family: var(--display); font-size: clamp(38px, 5vw, 68px); font-weight: 400; line-height: 1.04; }
.celebra-loc h2 em { color: var(--accent); }
.celebra-loc .sub { color: var(--ink-soft); font-size: 14px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.map-btn { margin-top: 34px; }

.info { padding: 120px 32px; background: var(--paper); }
.info-head { margin-bottom: 56px; text-align: center; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 960px; margin: 0 auto; background: var(--line); }
.info-card { padding: 58px 52px; background: var(--paper); text-align: center; }
.info-icon { color: var(--accent); font-family: var(--display); font-size: 44px; }
.info-card h3 { margin: 18px 0; font-family: var(--display); font-size: 34px; font-weight: 400; }
.info-card p { margin: 8px auto; max-width: 360px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }

.single-cta { padding: 130px 32px; background: var(--paper); text-align: center; }
.single-cta.bg { background: var(--bg); }
.single-cta-inner { max-width: 760px; margin: auto; }
.single-cta h2 { margin: 20px 0 28px; font-family: var(--display); font-size: clamp(44px, 6vw, 78px); font-weight: 400; line-height: 1; }
.single-cta h2 em { color: var(--accent); }
.single-cta p { max-width: 600px; margin: 0 auto 38px; color: var(--ink-soft); line-height: 1.75; }

footer { padding: 100px 32px; background: var(--ink); color: var(--paper); text-align: center; }
footer .display { font-size: clamp(48px, 8vw, 100px); }
footer .display span { font-style: italic; }
footer .when { margin-top: 24px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; }

.modal-bg { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(32, 23, 17, 0.65); opacity: 0; visibility: hidden; transition: 0.3s ease; backdrop-filter: blur(8px); }
.modal-bg.open { opacity: 1; visibility: visible; }
.modal { position: relative; width: min(600px, 100%); max-height: calc(100vh - 44px); padding: 52px; overflow: auto; background: var(--paper); box-shadow: 0 28px 80px rgba(20, 14, 8, 0.28); transform: translateY(18px); transition: transform 0.3s ease; }
.modal-bg.open .modal { transform: translateY(0); }
.modal-x { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 28px; font-weight: 300; }
.modal h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(38px, 6vw, 58px); font-weight: 400; line-height: 1; }
.modal h3 em { color: var(--accent); }
.modal .lead { margin: 0 0 32px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.field { margin-top: 22px; }
.field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); outline: none; padding: 15px 16px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(138, 95, 176, 0.12); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #9c2f2f; }
.field textarea { min-height: 110px; resize: vertical; }
.field .optional { color: var(--ink-soft); font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.check-row { display: flex !important; align-items: center; gap: 10px; margin-top: 12px; cursor: pointer; letter-spacing: 0 !important; text-transform: none !important; }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.field-error { margin: 8px 0 0; color: #9c2f2f; font-size: 13px; line-height: 1.4; }
.seg { display: grid; grid-template-columns: 1fr 1fr; }
.seg button { min-height: 50px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.seg button + button { border-left: 0; }
.seg button.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.submit-btn { width: 100%; min-height: 56px; margin-top: 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.submit-btn:disabled { cursor: wait; opacity: 0.65; }
.cta-btn:disabled { cursor: not-allowed; opacity: 0.5; }
.confirmed { text-align: center; }
.confirmed .display { color: var(--accent); font-size: 72px; }
.confirmed p { margin: 24px auto; }
.form-error { margin: 16px 0 0; color: #9c2f2f; font-size: 14px; }
.bank-row { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bank-row .k { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.bank-row .v { overflow-wrap: anywhere; }

@media (max-width: 680px) {
  .music { top: 14px; right: 14px; padding: 10px 12px; }
  .music .lbl { display: none; }
  .hero-overlay { padding: 100px 22px 18px; }
  .countdown { padding: 72px 18px; }
  .countdown-grid { margin-top: 30px; }
  .cd-cell { padding: 14px 3px; }
  .cd-num { font-size: 36px; }
  .cd-lbl { font-size: 9px; letter-spacing: 0.12em; }
  .prologue { padding: 72px 22px; }
  .prologue-text h2 { font-size: 36px; }
  .photoband-inner { height: 62vh; min-height: 420px; }
  .celebra { padding: 78px 22px; }
  .date-line { font-size: 22px; }
  .itin-list::before { left: 46px; }
  .itin-row { grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; }
  .itin-row::before { top: 26px; left: 40px; }
  .itin-time { font-size: 20px; }
  .celebra-loc .sub { letter-spacing: 0.12em; }
  .info { padding: 72px 22px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { padding: 44px 24px; }
  .single-cta { padding: 82px 22px; }
  footer { padding: 72px 22px; }
  .modal { padding: 48px 24px 30px; }
  .bank-row { grid-template-columns: 80px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
