/* ============ Tokens — Blush Pink × Powder Blue ============ */
:root {
  --navy: #14213d;
  --navy-2: #1d2f5c;
  --ink: #1e2540;
  --cream: #fdf6f9;          /* pearl blush */
  --paper: #ffffff;
  --rose: #e07a9f;           /* loving pink */
  --rose-deep: #c2517c;
  --rose-soft: #f9d3e0;
  --blue: #7fa8e8;           /* powder blue */
  --blue-soft: #dbe8fb;
  --blue-deep: #3f6bc4;
  --gold: #e07a9f;           /* kept as alias so older rules still work */
  --gold-2: #f7c3d6;
  --grad: linear-gradient(120deg, #f7a8c4 0%, #e07a9f 38%, #8fb3ee 100%);
  --grad-soft: linear-gradient(135deg, #fde3ec, #e3eefc);
  --muted: #6d7394;
  --radius: 22px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 30px 70px -28px rgba(63,107,196,.35);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--sans); font-weight: 300; color: var(--ink); line-height: 1.75; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 8% 0%, #fde6ee 0%, transparent 60%), radial-gradient(900px 600px at 100% 30%, #e4eefc 0%, transparent 60%), var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 1.2rem; }
h2.center::after { content: "♡"; display: block; margin: .9rem auto 0; font-size: 1.1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .6em; text-indent: .6em; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
.narrow { width: min(680px, 92vw); margin-inline: auto; }
.center { text-align: center; }
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .34em; font-size: .72rem; font-weight: 500; margin-bottom: .8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-family: var(--serif); font-size: 1.6rem; color: var(--rose-deep); margin-bottom: 1rem; }
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ============ Nav ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: .9rem 4vw; color: #fff; transition: background .4s, backdrop-filter .4s, padding .4s, box-shadow .4s; }
.nav.solid { background: rgba(20,33,61,.62); backdrop-filter: blur(18px) saturate(1.4); padding-block: .55rem; box-shadow: 0 10px 40px -20px rgba(0,0,0,.5); }
.brand { font-family: var(--script); font-size: 2rem; text-decoration: none; }
.brand span { color: var(--gold-2); }
.nav nav { display: flex; gap: 1.4rem; align-items: center; font-size: .8rem; letter-spacing: .1em; }
.nav nav a { text-decoration: none; opacity: .88; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.pill { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.1); padding: .38rem 1.1rem; border-radius: 99px; backdrop-filter: blur(6px); }
@media (max-width: 760px) { .nav nav a:not(.pill) { display: none; } }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -5%; z-index: -2; animation: kenburns 26s ease-in-out infinite alternate;
  background: linear-gradient(160deg, rgba(20,33,61,.82) 0%, rgba(63,107,196,.45) 45%, rgba(194,81,124,.6) 100%), var(--hero) center/cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 400px at 20% 20%, rgba(247,168,196,.28), transparent 70%), radial-gradient(700px 500px at 85% 80%, rgba(127,168,232,.3), transparent 70%); }
@keyframes kenburns { to { transform: scale(1.1) translateY(-2%); } }
#petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { padding: 7rem 1rem 5rem; }
.hero h1 { font-family: var(--script); font-weight: 400; font-size: clamp(3.8rem, 12.5vw, 9.5rem); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1em .3em; text-shadow: 0 8px 50px rgba(20,33,61,.55); }
.hero h1 i { font-family: var(--serif); font-size: .42em; color: var(--gold-2); }
.hero .eyebrow { background: none; color: var(--gold-2); -webkit-text-fill-color: var(--gold-2); }
.hero .date { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.8rem); margin: .8rem 0 2.2rem; letter-spacing: .02em; }
.countdown { display: inline-grid; grid-template-columns: repeat(4, minmax(66px, 98px)); gap: .8rem; margin-bottom: 2.4rem; }
.countdown div { background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(14px); border-radius: 18px; padding: .9rem .2rem; box-shadow: 0 18px 40px -18px rgba(20,33,61,.6), inset 0 1px 0 rgba(255,255,255,.4); }
.countdown b { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.countdown small { text-transform: uppercase; letter-spacing: .22em; font-size: .6rem; opacity: .85; }
.cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.scroll { position: absolute; bottom: 1.6rem; left: 50%; width: 24px; height: 40px; border: 1px solid rgba(255,255,255,.6); border-radius: 14px; translate: -50% 0; }
.scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; background: #fff; border-radius: 3px; translate: -50% 0; animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Buttons ============ */
.btn { display: inline-block; background: var(--grad); background-size: 160% 100%; color: #fff; border: 0; padding: .95rem 2.2rem; border-radius: 99px; font: 500 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background-position .6s; box-shadow: 0 14px 34px -10px rgba(224,122,159,.7); }
.btn:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 20px 40px -10px rgba(127,168,232,.75); }
.btn.ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.6); box-shadow: none; backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255,255,255,.22); }
.btn.small { padding: .65rem 1.5rem; font-size: .72rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ============ Story ============ */
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: var(--radius); z-index: 0; background: var(--grad); opacity: .55; filter: blur(.3px); }
.frame::after { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--blue); border-radius: var(--radius); z-index: 0; }
.frame img { position: relative; z-index: 1; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); border: 6px solid #fff; }
.timeline { list-style: none; padding: 0; margin-left: .4rem; border-left: 2px solid transparent; border-image: linear-gradient(var(--rose), var(--blue)) 1; }
.timeline li { padding: 0 0 1.7rem 1.9rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .65rem; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(224,122,159,.18); }
.timeline time { font-family: var(--serif); font-size: 1.7rem; color: var(--rose-deep); }

/* ============ Dark (midnight blue) sections ============ */
.dark { color: #eef2ff; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 500px at 12% 0%, rgba(224,122,159,.35), transparent 60%), radial-gradient(900px 600px at 95% 100%, rgba(127,168,232,.32), transparent 60%), linear-gradient(180deg, #14213d, #1b2c57); }
.dark h2 { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; margin-top: 3.2rem; }
.card { position: relative; padding: 2.2rem 1.7rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); backdrop-filter: blur(10px); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.card:hover { transform: translateY(-8px); border-color: rgba(247,195,214,.7); box-shadow: 0 30px 60px -25px rgba(224,122,159,.55); }
.card .num { position: absolute; top: .8rem; right: 1.2rem; font-family: var(--serif); font-size: 3.4rem; color: rgba(255,255,255,.1); }
.card h3 { font-size: 2.1rem; color: var(--gold-2); }
.card time { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: .4rem 0 .8rem; color: #bcd3f7; }

/* ============ Gallery ============ */
.masonry { columns: 3 260px; column-gap: 1.1rem; margin-top: 3rem; }
.shot { display: block; width: 100%; padding: 0; margin-bottom: 1.1rem; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid; box-shadow: var(--shadow); position: relative; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(194,81,124,.35)); opacity: 0; transition: opacity .4s; }
.shot:hover::after { opacity: 1; }
.shot img { width: 100%; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.07); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,22,46,.94); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 14px; animation: pop .35s var(--ease); box-shadow: 0 0 80px rgba(224,122,159,.35); }
.lightbox button { position: absolute; top: 1rem; right: 1.4rem; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* ============ Venue ============ */
.venue { background: var(--grad-soft); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; border: 6px solid #fff; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) hue-rotate(-8deg); }

/* ============ Forms ============ */
.form { display: grid; gap: 1.1rem; margin-top: 2rem; }
.form label, .form legend { display: grid; gap: .35rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.form input, .form textarea, .form select { font: 400 1rem var(--sans); padding: .9rem 1.05rem; border-radius: 14px; border: 1px solid rgba(127,168,232,.5); background: rgba(255,255,255,.85); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.dark .form input, .dark .form textarea, .dark .form select { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.dark .form ::placeholder { color: rgba(255,255,255,.55); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(224,122,159,.22); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.choice { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice legend { grid-column: 1/-1; margin-bottom: .2rem; }
.choice label { display: block; position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: .9rem; border: 1px solid rgba(127,168,232,.55); border-radius: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .95rem; background: rgba(255,255,255,.7); transition: .3s; }
.choice input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 28px -10px rgba(224,122,159,.7); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.status { min-height: 1.4em; text-align: center; font-size: .95rem; }
.status.ok { color: #1f7a56; } .status.err { color: #c0392b; }
.dark .status.ok { color: #9ff0c4; } .dark .status.err { color: #ffb0a3; }
.rsvp { background: linear-gradient(180deg, #fff, #fdeef4 60%, #eaf2fe); }
.rsvp .narrow { background: rgba(255,255,255,.7); backdrop-filter: blur(14px); border: 1px solid #fff; border-radius: 28px; padding: clamp(1.6rem, 5vw, 3rem); box-shadow: var(--shadow); }

.wish-list { display: grid; gap: 1rem; margin-top: 2.5rem; max-height: 520px; overflow: auto; padding-right: .4rem; scrollbar-width: thin; }
.wish { padding: 1.3rem 1.5rem; border: 1px solid rgba(255,255,255,.16); border-left: 3px solid var(--rose); background: rgba(255,255,255,.07); border-radius: 0 16px 16px 0; animation: pop .4s var(--ease); }
.wish p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.wish small { color: var(--gold-2); letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }

/* ============ Footer / music ============ */
.footer { text-align: center; padding: 4.5rem 1rem; background: linear-gradient(160deg, #14213d, #3a2a5c 60%, #7b3b66); color: #dfe6fa; font-size: .85rem; letter-spacing: .15em; }
.script { font-family: var(--script); font-size: 3.4rem; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.music { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: var(--grad); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(224,122,159,.7); }
.music.on { animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .music.on, .scroll span { animation: none; }
}
.story-text { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.6; color: var(--ink); margin-bottom: 1rem; }
.story-text em { font-style: italic; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.journey { list-style: none; padding: 0; margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.journey li { flex: 1 1 140px; padding: .9rem 1rem; border-radius: 16px; background: rgba(255,255,255,.75); border: 1px solid rgba(127,168,232,.4); box-shadow: 0 14px 30px -20px rgba(63,107,196,.5); }
.journey b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--rose-deep); }
.journey span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }