
:root {
    --bg: #f4f0e8;
    --text: #292821;
    --muted: #898477;
    --gold: #b6a17d;
    --white: #fffdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: .13;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

button {
    font: inherit;
}

.container {
    width: min(1100px, 88%);
    margin: auto;
}

/* HEADER */

header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 28px 0;
    z-index: 5;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    letter-spacing: 3px;
}

.nav-right {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}

/* HERO */

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(75px, 15vw, 155px);
    line-height: .9;
    letter-spacing: -4px;
    animation: fadeUp 1.5s ease both;
}

.hero h1 span {
    display: block;
    font-style: italic;
    color: var(--gold);
}

.hero-description {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--muted);
    margin-top: 38px;
}

.hero-line {
    width: 1px;
    height: 75px;
    background: var(--gold);
    margin: 45px auto 20px;
    animation: lineGrow 2s ease;
}

.scroll-text {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
}

.decor {
    position: absolute;
    border: 1px solid rgba(182,161,125,.3);
    border-radius: 50%;
    pointer-events: none;
}

.decor.one {
    width: 270px;
    height: 270px;
    top: 18%;
    left: -180px;
}

.decor.two {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
}

/* INTRO */

.intro {
    padding: 130px 0;
    text-align: center;
    background: var(--white);
}

.section-label {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 30px;
}

.intro h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 7vw, 66px);
    font-weight: 400;
    line-height: 1.15;
    max-width: 760px;
    margin: auto;
}

.intro h2 span {
    font-style: italic;
    color: var(--gold);
}

.intro-text {
    max-width: 510px;
    margin: 35px auto 0;
    font-size: 13px;
    line-height: 2.1;
    color: var(--muted);
    padding: 0 15px;
}

/* WISHES */

.wishes {
    padding: 120px 0;
    text-align: center;
}

.wishes h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 7vw, 65px);
    font-weight: 400;
    margin-bottom: 15px;
}

.wishes-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 55px;
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.wish-card {
    background: var(--white);
    padding: 48px 20px;
    min-height: 230px;
    border: 1px solid rgba(182,161,125,.2);
    cursor: pointer;
    transition: .4s ease;
}

.wish-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(40,35,25,.06);
}

.wish-number {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
}

.wish-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 29px;
    font-weight: 500;
    margin: 20px 0 12px;
}

.wish-card p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
}

/* QUOTE */

.quote {
    padding: 120px 20px;
    background: #eae3d7;
    text-align: center;
}

.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 75px;
    color: var(--gold);
}

.quote h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(34px, 6vw, 60px);
    max-width: 750px;
    margin: auto;
    line-height: 1.2;
}

.quote p {
    margin-top: 35px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 3px;
}

/* FINAL */

.final {
    min-height: 85svh;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.final-content {
    max-width: 650px;
}

.final h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(48px, 9vw, 85px);
    line-height: 1;
    margin: 25px 0;
}

.final h2 span {
    color: var(--gold);
    font-style: italic;
}

.final-description {
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
    margin-bottom: 35px;
}

.gold-button {
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--text);
    padding: 17px 35px;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: .4s;
}

.gold-button:hover {
    background: var(--gold);
    color: white;
}

.surprise {
    display: none;
    margin-top: 45px;
    animation: fadeUp 1.3s ease both;
}

.surprise.show {
    display: block;
}

.surprise h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 7vw, 55px);
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 20px;
}

.surprise p {
    font-size: 13px;
    line-height: 2;
    color: var(--muted);
}

/* FOOTER */

footer {
    text-align: center;
    padding: 35px 15px;
    border-top: 1px solid rgba(182,161,125,.25);
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
}

/* MUSIC */

.music-button {
    position: fixed;
    z-index: 20;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    border: 1px solid rgba(182,161,125,.5);
    background: var(--white);
    color: var(--text);
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

.music-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.music-button.playing .music-dot {
    animation: pulse 1s infinite;
}

/* PARTICLES */

.particle {
    position: fixed;
    z-index: 30;
    pointer-events: none;
    font-size: 20px;
    animation: floatUp 3s ease-out forwards;
}

/* REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: 75px;
    }
}

@keyframes pulse {
    50% {
        opacity: .3;
        transform: scale(.7);
    }
}

@keyframes floatUp {
    from {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    to {
        opacity: 0;
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* MOBILE */

@media (max-width: 700px) {

    .wish-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wish-card {
        min-height: 190px;
        padding: 35px 20px;
    }

    .intro,
    .wishes {
        padding: 90px 0;
    }

    .quote {
        padding: 90px 20px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .nav-right {
        font-size: 8px;
    }

    .music-button {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

}
