@font-face { font-family: 'Cinzel Decorative'; src: url('fonts/cinzel-decorative-latin.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: block; }
@font-face { font-family: 'Great Vibes'; src: url('fonts/great-vibes-latin.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: block; }
@font-face { font-family: 'Montserrat'; src: url('fonts/montserrat-latin.woff2') format('woff2'); font-style: normal; font-weight: 300 600; font-display: block; }

:root {
  --ink: #3e3448;
  --muted: #766b7d;
  --rose: #c78394;
  --rose-deep: #a95f77;
  --lavender: #d9d2e8;
  --sky: #d7e8ed;
  --cream: #fffaf0;
  --gold: #c5a26c;
  --line: rgba(164, 127, 147, .28);
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f6eff1;
  background-image: radial-gradient(circle at 12% 20%, rgba(255,255,255,.8) 0 2px, transparent 3px), radial-gradient(circle at 78% 70%, rgba(255,255,255,.65) 0 1px, transparent 2px), linear-gradient(135deg, #f4e6ea 0%, #f1edf5 48%, #e5f1f2 100%);
}

body::before, body::after { content: ''; position: fixed; z-index: -1; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(1px); opacity: .3; }
body::before { top: -11rem; right: -8rem; background: var(--lavender); }
body::after { bottom: -14rem; left: -9rem; background: var(--sky); }

.page-shell { width: min(1160px, calc(100% - 48px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(500px, 1.28fr); gap: clamp(40px, 8vw, 120px); align-items: center; padding: 64px 0; }
.intro { padding-top: 4px; }
.eyebrow { color: var(--rose-deep); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-family: 'Cinzel Decorative', serif; font-size: clamp(2.55rem, 4.7vw, 4.35rem); font-weight: 700; line-height: .98; letter-spacing: 0; margin: 0; }
h1 em { color: var(--rose-deep); font-style: italic; }
.intro-copy { max-width: 280px; color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 28px 0 38px; }
.guest-form { width: 100%; max-width: 340px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.guest-form label { display: block; color: var(--ink); font-size: .78rem; font-weight: 700; }
.field-reset { padding: 0; border: 0; color: var(--rose-deep); background: transparent; cursor: pointer; font: inherit; font-size: .62rem; font-weight: 600; }
.field-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.field-reset:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.field-reset:disabled { cursor: wait; opacity: .5; }
.input-wrap { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--rose); }
.input-wrap span { color: var(--gold); font-size: .8rem; }
input { width: 100%; padding: 12px 2px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; }
input:focus-visible { box-shadow: 0 3px 0 var(--rose-deep); }
textarea { width: 100%; min-height: 92px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 3px; outline: 0; background: rgba(255,255,255,.48); color: var(--ink); font: inherit; font-size: .74rem; line-height: 1.5; }
textarea:focus-visible { border-color: var(--rose-deep); box-shadow: 0 0 0 3px rgba(169, 95, 119, .12); }
.error-message { min-height: 21px; color: #9d3f5b; font-size: .72rem; margin: 7px 0 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 42px; padding: 10px 15px; border: 0; border-radius: 3px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:disabled { cursor: wait; opacity: .55; transform: none; box-shadow: none; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(76, 52, 72, .13); }
.button:focus-visible { outline: 3px solid rgba(197, 162, 108, .55); outline-offset: 3px; }
.button-primary { color: white; background: var(--rose-deep); }
.button-primary span { margin-left: 8px; font-size: 1rem; }
.button-secondary { color: var(--ink); background: rgba(255,255,255,.65); border: 1px solid var(--line); }
.button-download { flex-basis: 100%; color: var(--rose-deep); background: transparent; border: 1px solid var(--line); }
.button-download span { margin-right: 8px; font-size: 1rem; }
.button-whatsapp { flex-basis: 100%; color: var(--rose-deep); background: transparent; border: 1px solid var(--line); }
.whatsapp-icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; fill: currentColor; }

.invitation-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.card-glow { position: absolute; width: 74%; height: 76%; top: 13%; background: rgba(255,255,255,.7); filter: blur(40px); }
.invitation-card { position: relative; width: min(100%, 550px); min-height: 660px; overflow: hidden; color: var(--ink); background: var(--cream); box-shadow: 0 25px 60px rgba(92, 63, 88, .19); }
.invitation-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 12%, rgba(215,232,237,.8), transparent 35%), radial-gradient(circle at 90% 85%, rgba(217,210,232,.72), transparent 39%); }
.card-border { position: absolute; inset: 18px; border: 1px solid rgba(197,162,108,.65); pointer-events: none; }
.card-border::after { content: ''; position: absolute; inset: 7px; border: 1px solid var(--line); }
.card-content { position: relative; z-index: 1; display: flex; min-height: 660px; flex-direction: column; align-items: center; text-align: center; padding: 7.5% 10%; }
.crown { color: var(--gold); font-family: Georgia, serif; font-size: 1.65rem; letter-spacing: 7px; margin: 1% 0 6%; }
.crown span:nth-child(2) { font-size: 2.6rem; vertical-align: -7px; }
.card-kicker { color: var(--rose-deep); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin: 0; }
.divider { display: flex; align-items: center; gap: 10px; width: 45%; margin: 12px 0 14px; color: var(--gold); }
.divider span { height: 1px; flex: 1; background: var(--line); }
.divider b { font-size: .65rem; font-weight: 400; }
.greeting { color: var(--muted); font-family: 'Great Vibes', cursive; font-size: 1.6rem; margin: 0 0 2px; }
.greeting strong { color: var(--rose-deep); font-weight: 600; }
h2 { color: var(--rose-deep); font-family: 'Cinzel Decorative', serif; font-size: clamp(3.2rem, 6.8vw, 5.2rem); font-weight: 700; line-height: .9; margin: 8px 0 10px; }
.birthday-line { font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 300; letter-spacing: .04em; margin: 0; }
.birthday-line strong { color: var(--rose-deep); font-weight: 700; }
.details { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; margin: auto 0 7%; padding: 17px 4%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail { display: flex; justify-content: center; gap: 7px; text-align: left; }
.detail-icon { color: var(--gold); font-family: Georgia, serif; font-size: 1.15rem; }
.detail small { display: block; color: var(--rose-deep); font-family: 'Cinzel Decorative', serif; font-size: .54rem; font-weight: 700; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; margin-bottom: 5px; }
.detail p { color: var(--ink); font-size: .66rem; line-height: 1.45; margin: 0; }
.detail a { color: inherit; text-decoration: none; }
.detail a:hover, .detail a:focus-visible { color: var(--rose-deep); }
.detail i { color: var(--gold); font-style: normal; }
.closing { color: var(--muted); font-family: 'Great Vibes', cursive; font-size: 1.45rem; margin: 0; }
.signature { color: var(--rose-deep); font-family: 'Great Vibes', cursive; font-size: 2rem; margin: 1px 0 0; }
.signature span { color: var(--gold); font-size: 1rem; }
.star { position: absolute; z-index: 1; color: var(--gold); opacity: .7; }
.star-one { top: 13%; left: 13%; font-size: 1.2rem; }.star-two { top: 23%; right: 12%; font-size: 1.7rem; }.star-three { bottom: 20%; left: 10%; font-size: .9rem; }
.petal { position: absolute; z-index: 1; width: 28px; height: 45px; border: 1px solid rgba(199,131,148,.3); border-radius: 100% 0 100% 0; transform: rotate(35deg); }
.petal-one { right: 9%; bottom: 10%; }.petal-two { right: 14%; bottom: 8%; transform: rotate(105deg) scale(.65); }
.castle-image { position: absolute; z-index: 0; right: 6%; bottom: -2%; width: 88%; max-width: 480px; height: auto; opacity: .13; mix-blend-mode: multiply; pointer-events: none; }
.castle-sparkles { position: absolute; z-index: 0; inset: 0; color: var(--gold); pointer-events: none; }
.sparkle { position: absolute; display: block; font-family: Georgia, serif; opacity: .78; text-shadow: 0 0 8px rgba(255, 244, 193, .8); }
.sparkle-left { left: 16%; bottom: 41%; font-size: 1rem; }.sparkle-left-low { left: 25%; bottom: 31%; font-size: .72rem; opacity: .58; }
.sparkle-right { right: 15%; bottom: 44%; font-size: 1.25rem; }.sparkle-right-low { right: 25%; bottom: 32%; font-size: .72rem; opacity: .58; }.sparkle-center { left: 49%; bottom: 37%; font-size: .62rem; opacity: .62; }
.stage-note { color: var(--muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 0; }.stage-note span { color: var(--gold); margin: 0 9px; }

@media (max-width: 800px) { .page-shell { grid-template-columns: 1fr; gap: 48px; padding: 44px 0 55px; }.intro { text-align: center; }.intro-copy, .guest-form { margin-left: auto; margin-right: auto; }.actions { justify-content: center; }.invitation-card { width: min(100%, 510px); } }
@media (max-width: 520px) { .page-shell { width: min(100% - 28px, 420px); }.invitation-card, .card-content { min-height: 610px; }.card-content { padding: 9% 11%; }.card-border { inset: 12px; }.details { grid-template-columns: 1fr; gap: 9px; margin-bottom: 8%; padding: 13px 12%; }.detail { justify-content: flex-start; }.detail p { font-size: .69rem; }.crown { margin-bottom: 5%; } h2 { font-size: 3.7rem; } textarea { min-height: 132px; padding: 14px; font-size: .78rem; line-height: 1.6; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
