/* =========================
   1. TOKENS & BASE
========================= */
:root {
    --cream: #fffaf5;
    --peach: #f6dfd2;
    --pink: #d99b98;
    --brown: #795750;
    --dark: #382d2b;
    --muted: #7d6a64;
    --border: #edddd4;
    --night: #1e1722;
    --night-2: #2f2236;
    --gold: #ffd9a0;
    --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    background: var(--cream);
    color: var(--dark);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1150px, 90%); margin: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* =========================
   2. NAVIGATION
========================= */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 250, 245, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

nav {
    min-height: 76px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 24px; font-weight: 600; letter-spacing: -1px;
}
.logo span { color: var(--pink); }

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-links a {
    font-size: 13px; color: var(--muted); font-weight: 500;
    position: relative; transition: color 0.3s;
}
.nav-links a:not(.nav-button)::after {
    content: ""; position: absolute; left: 0; bottom: -5px;
    width: 0; height: 1.5px; background: var(--pink); transition: width 0.3s;
}
.nav-links a:not(.nav-button):hover { color: var(--brown); }
.nav-links a:not(.nav-button):hover::after { width: 100%; }

.nav-links .nav-button {
    padding: 12px 20px; border-radius: 30px;
    background: var(--night); color: var(--gold);
    transition: transform 0.3s, box-shadow 0.3s;
}
.nav-links .nav-button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #1e172240; }

.menu-button {
    display: none; background: none; border: none;
    font-size: 26px; cursor: pointer; color: var(--dark);
}

/* =========================
   3. HERO
========================= */
.hero {
    min-height: 700px;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    gap: 45px; padding-top: 55px; padding-bottom: 70px; position: relative;
}

.hero::before {
    content: ""; position: absolute; z-index: -1;
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, #f8dccf, transparent 70%);
    top: 40px; left: -170px;
}

.eyebrow {
    display: inline-block; padding: 10px 17px;
    background: #f8e8e0; color: var(--brown);
    border-radius: 30px; font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(52px, 6vw, 84px);
    line-height: 1.03; letter-spacing: -3px; font-weight: 500;
    margin: 27px 0 22px;
}
.hero h1 span { color: var(--brown); font-style: italic; }

.hero-description {
    color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 460px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.button {
    display: inline-block; padding: 15px 24px; border-radius: 35px;
    font-size: 13px; font-weight: 700; border: none; cursor: pointer;
    font-family: inherit; transition: transform 0.3s, box-shadow 0.3s;
}
.button-primary { background: var(--dark); color: #fff; }
.button-glow {
    background: linear-gradient(135deg, #3a2a42, var(--night));
    color: var(--gold);
    box-shadow: 0 0 0 1px #ffd9a055, 0 8px 28px #ffd9a026;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #79575030; }

.hero-note { margin-top: 28px; color: #9a8780; font-size: 12px; }
.hero-note span { color: var(--pink); }

/* Hero collage */
.hero-visual { height: 520px; position: relative; }

.hero-image {
    position: absolute; top: 10px; right: 45px; bottom: 20px; left: 55px;
    border-radius: 200px 200px 25px 25px; overflow: hidden;
    background: linear-gradient(145deg, #f5d7c9, #e7d5c8);
    box-shadow: 0 30px 70px #79575028;
    transform: rotate(2deg);
}
.hero-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    position: relative; z-index: 2;
}

.hero-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; text-align: center; padding: 20px; color: var(--brown);
    background: linear-gradient(145deg, #f5d7c9, #e7e8d9);
}
.hero-placeholder .heart { font-size: 55px; }
.hero-placeholder h3 { font-family: "Playfair Display", serif; font-size: 29px; font-weight: 500; }
.hero-placeholder p { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

.small-photo {
    position: absolute; width: 140px; height: 165px;
    border: 7px solid var(--cream); border-radius: 13px;
    background: var(--peach); overflow: hidden;
    box-shadow: 0 15px 35px #79575026; z-index: 3;
}
.small-photo img { width: 100%; height: 100%; object-fit: cover; }
.small-photo-one { left: 0; bottom: 40px; transform: rotate(-8deg); }
.small-photo-two { right: 0; top: 25px; transform: rotate(7deg); }

.floating-heart {
    position: absolute; right: 15px; bottom: 50px;
    width: 75px; height: 75px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--pink); color: #fff;
    font-family: "Playfair Display", serif; font-size: 24px; z-index: 4;
    animation: float 3s ease-in-out infinite;
}
.floating-star {
    position: absolute; top: 5px; left: 15px; font-size: 35px; color: var(--brown);
    animation: float 4s ease-in-out infinite;
}
.round-note {
    position: absolute; left: 10px; top: 20px;
    width: 90px; height: 90px; border-radius: 50%;
    display: grid; place-items: center; text-align: center;
    background: #fffaf0; border: 1px solid #dfc4b8; color: var(--brown);
    font-family: "Playfair Display", serif; font-size: 14px; line-height: 1.3;
    transform: rotate(-10deg); z-index: 4;
}

@keyframes float { 50% { transform: translateY(-10px) rotate(5deg); } }

/* =========================
   4. MARQUEE STRIP
========================= */
.love-strip {
    padding: 18px 0; overflow: hidden; white-space: nowrap;
    background: #f7e9e1;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    color: var(--brown); font-size: 12px; font-weight: 700; letter-spacing: 3px;
}
.marquee { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee span { padding-right: 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================
   5. SECTION HEADINGS
========================= */
.section { padding: 100px 0; }
.section-heading { max-width: 650px; margin: 0 auto 50px; text-align: center; }

.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--brown);
}
.section-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(36px, 4.5vw, 54px); font-weight: 500;
    margin: 15px 0; letter-spacing: -1px;
}
.section-heading p { color: var(--muted); font-size: 14px; line-height: 1.9; }

/* =========================
   6. ABOUT
========================= */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }

.about-image {
    min-height: 440px; position: relative; overflow: hidden;
    background: linear-gradient(145deg, #f5d7c9, #e5e7d9);
    border-radius: 180px 180px 20px 20px;
    box-shadow: 0 25px 60px #79575020;
}
.about-image img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center top; z-index: 2;
}
.about-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    color: var(--brown); font-family: "Playfair Display", serif; font-size: 27px;
}

.about-copy h3 {
    font-family: "Playfair Display", serif; font-size: 42px; font-weight: 500; margin: 15px 0;
}
.about-copy p { color: var(--muted); font-size: 14px; line-height: 1.95; margin-bottom: 15px; max-width: 520px; }

.about-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.about-tags span {
    padding: 10px 15px; border-radius: 25px;
    background: #f6e8e1; color: var(--brown); font-size: 12px;
}

/* =========================
   7. QUOTE
========================= */
.quote-section {
    background: #f5e5dc; position: relative; overflow: hidden;
    padding: 90px 20px; text-align: center;
}
.quote-section::before {
    content: "♡"; position: absolute; top: -65px; left: 3%; font-size: 180px; color: #e9cdc1;
}
.quote-section::after {
    content: "✧"; position: absolute; right: 6%; bottom: -50px; font-size: 150px; color: #e9cdc1;
}
.quote-content { max-width: 800px; margin: auto; position: relative; z-index: 1; }
.quote-mark { color: var(--brown); font-family: "Playfair Display", serif; font-size: 60px; }
.quote-content h2 {
    font-family: "Playfair Display", serif; font-style: italic;
    font-size: clamp(30px, 4.5vw, 48px); font-weight: 400; line-height: 1.3; margin: 15px 0;
}
.quote-content p { color: var(--brown); font-size: 11px; letter-spacing: 3px; margin-top: 20px; }

/* =========================
   8. GALLERY
========================= */
.gallery {
    display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: 230px 230px; gap: 15px;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: linear-gradient(145deg, #f5d7c9, #e5e7d9);
}
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s; position: relative; z-index: 2;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    font-family: "Playfair Display", serif; color: var(--brown); font-size: 23px; padding: 15px;
}
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    padding: 34px 16px 16px; color: #fff; font-size: 12px;
    background: linear-gradient(transparent, #382d2bcc);
    transform: translateY(8px); opacity: 0; transition: 0.4s;
}
.gallery-item:hover .gallery-caption { transform: none; opacity: 1; }

/* =========================
   9. WISHING SKY (new)
========================= */
.wish-section {
    position: relative; overflow: hidden; color: #fff;
    padding: 110px 0 90px;
    background:
        radial-gradient(ellipse at 50% 120%, #5b3a5e 0%, transparent 60%),
        linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
#skyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.wish-inner { position: relative; z-index: 2; text-align: center; }

.wish-heading { max-width: 600px; margin: 0 auto 36px; }
.wish-heading .section-label { color: var(--gold); }
.wish-heading h2 {
    font-family: "Playfair Display", serif; font-weight: 500;
    font-size: clamp(38px, 5vw, 60px); letter-spacing: -1.5px; margin: 14px 0;
}
.wish-heading p { color: #cdbfd0; font-size: 14px; line-height: 1.9; }

.wish-form {
    display: flex; gap: 10px; max-width: 560px; margin: 0 auto;
    padding: 7px; border-radius: 50px;
    background: #ffffff14; border: 1px solid #ffffff2e; backdrop-filter: blur(8px);
}
.wish-form input {
    flex: 1; min-width: 0; padding: 0 20px; border: none; background: none;
    color: #fff; font: 500 14px "DM Sans", sans-serif;
}
.wish-form input::placeholder { color: #b9a9bd; }
.wish-form input:focus-visible { outline: none; }
.wish-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px #ffd9a01f; }

.wish-button {
    padding: 15px 24px; border: none; border-radius: 40px; cursor: pointer;
    background: linear-gradient(135deg, #ffe3b8, #f4b9a8); color: #3a2630;
    font: 700 13px "DM Sans", sans-serif; white-space: nowrap;
    box-shadow: 0 0 24px #ffd9a055;
    transition: transform 0.3s, box-shadow 0.3s;
}
.wish-button:hover { transform: scale(1.05); box-shadow: 0 0 36px #ffd9a099; }
.wish-button:active { transform: scale(0.97); }

.wish-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.wish-chips button {
    padding: 9px 15px; border-radius: 25px; cursor: pointer;
    background: transparent; border: 1px solid #ffffff33; color: #e6d9e8;
    font: 500 12px "DM Sans", sans-serif; transition: 0.3s;
}
.wish-chips button:hover { background: #ffffff1c; border-color: var(--gold); color: var(--gold); }

.wish-field { position: relative; height: 340px; margin-top: 20px; }

.wish-empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #a595a9; font-size: 13px; font-style: italic;
}

.wish-star {
    position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px;
    border: none; background: none; cursor: pointer;
    color: var(--gold); font-size: 20px; line-height: 1;
    text-shadow: 0 0 10px var(--gold), 0 0 22px #ffd9a099;
    animation: twinkle 3.2s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
.wish-star:hover, .wish-star:focus-visible { transform: scale(1.5); animation-play-state: paused; }
@keyframes twinkle { 50% { opacity: 0.45; transform: scale(0.8); } }

.wish-count { margin-top: 8px; color: #b5a5b9; font-size: 12px; }
.wish-count span { color: var(--gold); font-weight: 700; }

.wish-reader {
    min-height: 30px; margin-top: 12px; color: var(--gold);
    font-family: "Playfair Display", serif; font-style: italic; font-size: 20px;
}

/* particles, rising spark, shooting star (created in JS) */
.spark {
    position: fixed; z-index: 300; pointer-events: none;
    color: var(--gold); text-shadow: 0 0 10px var(--gold);
}
.rising {
    position: absolute; z-index: 5; pointer-events: none; font-size: 24px;
    color: #fff; text-shadow: 0 0 14px var(--gold), 0 0 30px var(--gold);
}

/* floating action button */
.wish-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    padding: 14px 20px; border-radius: 40px;
    background: var(--night); color: var(--gold);
    font-size: 13px; font-weight: 700;
    box-shadow: 0 10px 30px #1e172255, 0 0 0 1px #ffd9a044;
    transition: transform 0.3s, opacity 0.3s;
}
.wish-fab:hover { transform: translateY(-3px); }
.wish-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

.toast {
    position: fixed; left: 50%; bottom: 80px; z-index: 400;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    padding: 13px 22px; border-radius: 30px;
    background: var(--night); color: var(--gold); font-size: 13px; font-weight: 500;
    box-shadow: 0 10px 30px #00000040; transition: 0.4s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================
   10. FAN LETTER
========================= */
.letter-card {
    max-width: 780px; margin: auto; padding: 50px;
    background: #fff; border: 1px solid var(--border);
    border-radius: 28px; text-align: center; box-shadow: 0 20px 55px #79575014;
}
.letter-icon {
    width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center;
    background: var(--peach); color: var(--brown); border-radius: 50%; font-size: 24px;
}
.letter-card h2 { font-family: "Playfair Display", serif; font-weight: 500; font-size: 42px; margin: 15px 0; }
.letter-card p { color: var(--muted); font-size: 14px; line-height: 2; }
.letter-signature {
    font-family: "Playfair Display", serif; font-style: italic;
    color: var(--brown); font-size: 22px; margin-top: 25px;
}

/* =========================
   11. FOOTER
========================= */
footer { border-top: 1px solid var(--border); padding: 38px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-title { font-family: "Playfair Display", serif; font-size: 25px; }
.footer-title span { color: var(--pink); }
.footer-small { color: var(--muted); font-size: 11px; margin-top: 7px; }
.footer-right { text-align: right; color: var(--muted); font-size: 11px; line-height: 1.8; }
.disclaimer {
    text-align: center; color: #9a8780; font-size: 10px; line-height: 1.9;
    max-width: 750px; margin: 28px auto 0;
}

/* =========================
   12. SCROLL REVEAL
========================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================
   13. RESPONSIVE
========================= */
@media (max-width: 850px) {
    .hero { grid-template-columns: 1fr; gap: 25px; }
    .hero-visual { max-width: 570px; width: 100%; margin: auto; }
    .about-grid { grid-template-columns: 1fr; gap: 35px; }
    .about-image { max-width: 500px; width: 100%; margin: auto; min-height: 450px; }
    .gallery { grid-template-rows: 190px 190px; }
}

@media (max-width: 600px) {
    nav { min-height: 68px; }
    .logo { font-size: 20px; }
    .menu-button { display: block; }

    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        padding: 25px; background: var(--cream); border-bottom: 1px solid var(--border);
        flex-direction: column; gap: 22px;
    }
    .nav-links.open { display: flex; }

    .hero { padding-top: 45px; padding-bottom: 45px; min-height: auto; }
    .hero h1 { font-size: 56px; letter-spacing: -2px; }
    .hero-description { font-size: 14px; }
    .hero-visual { height: 380px; margin-top: 10px; }
    .hero-image { left: 45px; right: 35px; top: 10px; bottom: 15px; }
    .small-photo { width: 105px; height: 130px; border-width: 5px; }
    .small-photo-one { bottom: 30px; }
    .small-photo-two { top: 25px; }
    .round-note { width: 72px; height: 72px; font-size: 11px; left: 0; }
    .floating-heart { width: 58px; height: 58px; font-size: 18px; right: 0; bottom: 30px; }
    .floating-star { font-size: 25px; }

    .love-strip { font-size: 10px; letter-spacing: 2px; }
    .section { padding: 70px 0; }
    .section-heading { margin-bottom: 30px; }
    .about-image { min-height: 380px; }
    .about-copy h3 { font-size: 34px; }

    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 150px 150px; gap: 10px; }
    .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
    .gallery-placeholder { font-size: 18px; }
    .gallery-caption { opacity: 1; transform: none; }

    .wish-section { padding: 80px 0 70px; }
    .wish-form { flex-direction: column; border-radius: 24px; padding: 10px; }
    .wish-form input { padding: 14px 14px; }
    .wish-field { height: 300px; }
    .wish-fab span { display: none; }
    .wish-fab { padding: 15px 17px; font-size: 16px; }

    .letter-card { padding: 32px 20px; }
    .letter-card h2 { font-size: 32px; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-right { text-align: left; }
}

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