/* =====================================================
   ANNIVERSARY WEBSITE
   DESIGN: EDITORIAL / LUXURY ROMANCE
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #11100f;
    color: #eee7df;

    font-family: "DM Sans", sans-serif;

    overflow-x: hidden;
}

button {
    font-family: inherit;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --black: #11100f;
    --black-soft: #181614;

    --cream: #eee7df;
    --cream-soft: #c9c0b7;

    --brown: #806b5d;
    --brown-light: #a78e7d;

    --line: rgba(238, 231, 223, 0.15);

    --serif: "Cormorant Garamond", serif;
    --sans: "DM Sans", sans-serif;
}


/* =====================================================
   TOPBAR
===================================================== */

.topbar {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    padding: 24px 28px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    z-index: 50;
}

.topbar-logo {
    width: 34px;
    height: 34px;

    border: 1px solid rgba(238, 231, 223, 0.5);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-logo span {
    font-family: var(--serif);

    font-size: 18px;

    color: var(--cream);
}

.topbar-date {
    font-size: 9px;

    letter-spacing: 2px;

    color: rgba(238, 231, 223, 0.55);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 100svh;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #11100f;
}

.hero-background {
    position: absolute;

    inset: 0;

    pointer-events: none;
}

.hero-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        radial-gradient(
            circle at center,
            black,
            transparent 75%
        );
}

.hero-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.22;
}

.orb-one {
    width: 300px;
    height: 300px;

    top: -100px;
    right: -100px;

    background: #745b4c;
}

.orb-two {
    width: 250px;
    height: 250px;

    bottom: -100px;
    left: -80px;

    background: #523f35;
}

.hero-content {
    position: relative;

    z-index: 2;

    width: min(90%, 500px);

    text-align: center;
}

.eyebrow {
    margin-bottom: 18px;

    font-size: 9px;

    letter-spacing: 4px;

    color: #a9998d;
}

.hero-number {
    font-family: var(--serif);

    font-size: clamp(100px, 30vw, 170px);

    line-height: 0.7;

    font-weight: 400;

    color: transparent;

    -webkit-text-stroke:
        1px rgba(238, 231, 223, 0.16);

    margin-bottom: 22px;
}

.hero h1 {
    font-family: var(--serif);

    font-size: clamp(60px, 17vw, 100px);

    line-height: 0.8;

    font-weight: 500;

    letter-spacing: -3px;

    color: var(--cream);
}

.hero h1 em {
    color: #a78e7d;

    font-weight: 400;
}

.hero-description {
    width: min(100%, 310px);

    margin: 30px auto 0;

    color: #a9a099;

    font-size: 12px;

    line-height: 1.9;
}

.hero-date {
    margin-top: 28px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 13px;

    color: #b6aaa1;

    font-size: 9px;

    letter-spacing: 2px;
}

.hero-date i {
    width: 28px;
    height: 1px;

    background: #76665b;
}

.hero-button {
    margin-top: 38px;

    padding: 13px 18px;

    border: 1px solid rgba(238, 231, 223, 0.25);

    background: rgba(255,255,255,0.025);

    color: var(--cream);

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 28px;

    font-size: 9px;

    letter-spacing: 2px;

    transition: 0.3s ease;
}

.hero-button b {
    font-size: 16px;

    font-weight: 300;

    transition: transform 0.3s ease;
}

.hero-button:hover {
    background: #eee7df;

    color: #11100f;
}

.hero-button:hover b {
    transform: translateY(3px);
}

.hero-side-text {
    position: absolute;

    right: 18px;
    top: 50%;

    transform:
        translateY(-50%)
        rotate(90deg);

    font-size: 8px;

    letter-spacing: 4px;

    color: rgba(238, 231, 223, 0.25);
}

.hero-bottom {
    position: absolute;

    bottom: 24px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 14px;

    color: rgba(238, 231, 223, 0.4);

    font-size: 7px;

    letter-spacing: 3px;
}

.scroll-line {
    width: 35px;
    height: 1px;

    background: rgba(238, 231, 223, 0.3);
}


/* =====================================================
   COMMON SECTION
===================================================== */

.section-label {
    display: flex;

    align-items: center;

    gap: 14px;

    color: #8e8178;

    font-size: 8px;

    letter-spacing: 3px;
}

.section-label span {
    color: #b49d8d;
}

.section-number {
    display: inline-block;

    margin-bottom: 15px;

    color: #a78e7d;

    font-size: 10px;

    letter-spacing: 3px;
}

.section-label-text {
    color: #83776e;

    font-size: 8px;

    letter-spacing: 3px;
}


/* =====================================================
   COUNTER
===================================================== */

.counter-section {
    position: relative;

    min-height: 100svh;

    padding: 100px 25px;

    background: #eee7df;

    color: #181614;

    display: flex;

    flex-direction: column;
    justify-content: space-between;
}

.counter-section .section-label {
    color: #756a62;
}

.counter-content {
    width: min(100%, 550px);

    margin: auto;

    text-align: center;
}

.small-heading {
    margin-bottom: 20px;

    color: #87776c;

    font-size: 9px;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.counter-content h2 {
    font-family: var(--serif);

    font-size: clamp(42px, 11vw, 70px);

    line-height: 0.95;

    font-weight: 500;

    letter-spacing: -1px;
}

.counter-content h2 em {
    color: #8b6f5e;

    font-weight: 400;
}

.counter-grid {
    margin: 55px auto 25px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 20px;
}

.counter-item {
    display: flex;

    flex-direction: column;

    align-items: center;
}

.counter-item strong {
    font-family: var(--serif);

    font-size: clamp(40px, 11vw, 65px);

    font-weight: 500;

    line-height: 1;
}

.counter-item span {
    margin-top: 8px;

    font-size: 7px;

    letter-spacing: 2px;

    color: #8a7b71;
}

.counter-divider {
    width: 1px;
    height: 38px;

    background: #c5b9b0;
}

.counter-note {
    font-family: var(--serif);

    font-size: 16px;

    font-style: italic;

    color: #87766b;
}


/* =====================================================
   INTRO
===================================================== */

.intro-section {
    min-height: 90svh;

    padding: 100px 25px;

    background: #181614;

    display: flex;

    align-items: center;
    justify-content: center;
}

.intro-inner {
    width: min(100%, 560px);
}

.intro-label {
    margin-bottom: 20px;

    color: #86776d;

    font-size: 8px;

    letter-spacing: 3px;
}

.intro-number {
    margin-bottom: 12px;

    font-family: var(--serif);

    font-size: 100px;

    line-height: 0.7;

    color: transparent;

    -webkit-text-stroke:
        1px rgba(238,231,223,0.12);
}

.intro-inner h2 {
    font-family: var(--serif);

    font-size: clamp(48px, 12vw, 75px);

    font-weight: 500;

    line-height: 0.9;

    letter-spacing: -1px;
}

.intro-line {
    width: 50px;
    height: 1px;

    margin: 40px 0 25px;

    background: #8e7565;
}

.intro-text {
    max-width: 400px;

    margin-bottom: 15px;

    color: #9c938c;

    font-size: 12px;

    line-height: 2;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-section {
    padding: 110px 20px 120px;

    background: #eee7df;

    color: #171513;
}

.section-heading {
    width: min(100%, 600px);

    margin: 0 auto 55px;
}

.section-heading h2 {
    margin-top: 20px;

    font-family: var(--serif);

    font-size: clamp(45px, 12vw, 72px);

    line-height: 0.88;

    font-weight: 500;
}

.section-heading h2 em {
    color: #947968;

    font-weight: 400;
}

.photo-collage {
    width: min(100%, 600px);

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    grid-auto-rows: 180px;

    gap: 12px;
}

.photo-card {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #c8b8aa,
            #89766a
        );
}

.photo-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-large {
    grid-column: 1 / 3;

    grid-row: span 2;
}

.photo-small {
    grid-row: span 2;
}

.photo-offset {
    margin-top: 40px;
}

.photo-wide {
    grid-column: 1 / 3;

    height: 170px;
}

.photo-tall {
    grid-column: 2;

    grid-row: span 2;

    margin-top: -30px;
}

.photo-number {
    position: absolute;

    left: 12px;
    bottom: 10px;

    font-size: 8px;

    letter-spacing: 2px;

    color: white;

    text-shadow:
        0 2px 10px rgba(0,0,0,0.5);
}

.gallery-caption {
    width: min(100%, 400px);

    margin: 35px auto 0;

    text-align: center;

    font-family: var(--serif);

    font-size: 17px;

    font-style: italic;

    color: #817168;
}


/*TIMELINE*/

.timeline-section {
    padding: 110px 25px 130px;

    background: #11100f;
}

.timeline-heading {
    margin-bottom: 70px;
}

.timeline {
    position: relative;

    width: min(100%, 550px);

    margin: auto;
}

.timeline-line {
    position: absolute;

    top: 0;
    bottom: 0;

    left: 5px;

    width: 1px;

    background: rgba(238,231,223,0.16);
}

.timeline-item {
    position: relative;

    padding-left: 38px;

    padding-bottom: 70px;
}

.timeline-dot {
    position: absolute;

    top: 3px;
    left: 0;

    width: 11px;
    height: 11px;

    border: 1px solid #a78e7d;

    border-radius: 50%;

    background: #11100f;
}

.timeline-date {
    color: #a78e7d;

    font-size: 8px;

    letter-spacing: 2px;
}

.timeline-item h3 {
    margin-top: 10px;

    font-family: var(--serif);

    font-size: 38px;

    font-weight: 500;
}

.timeline-item p {
    max-width: 320px;

    margin-top: 8px;

    color: #8f8882;

    font-size: 11px;

    line-height: 1.9;
}

.timeline-last {
    padding-bottom: 0;
}


/*LETTER*/

.letter-section {
    min-height: 100svh;

    padding: 110px 20px;

    background: #d8c9bd;

    color: #201c19;
}

.letter-intro {
    width: min(100%, 500px);

    margin: 0 auto 60px;
}

.letter-intro h2 {
    margin-top: 20px;

    font-family: var(--serif);

    font-size: clamp(48px, 13vw, 75px);

    line-height: 0.85;

    font-weight: 500;
}

.letter-envelope {
    position: relative;

    width: min(100%, 500px);

    margin: auto;

    padding: 15px;

    background: #bca99b;

    box-shadow:
        0 30px 70px rgba(40,30,25,0.15);
}

.envelope-back {
    position: absolute;

    inset: 0;

    background: #aa9587;

    transform:
        translate(10px, 10px);

    z-index: 0;
}

.envelope-paper {
    position: relative;

    z-index: 2;

    padding: 38px 27px;

    background: #f1e8df;
}

.letter-small {
    margin-bottom: 30px;

    font-size: 8px;

    letter-spacing: 3px;

    color: #927e70;
}

.envelope-paper h3 {
    margin-bottom: 25px;

    font-family: var(--serif);

    font-size: 40px;

    line-height: 0.9;

    font-weight: 500;
}

.envelope-paper > p {
    margin-bottom: 18px;

    color: #635951;

    font-size: 12px;

    line-height: 2;
}

.envelope-paper .letter-final {
    margin-top: 30px;

    font-family: var(--serif);

    font-size: 24px;

    font-style: italic;

    color: #806758;
}

.letter-sign {
    text-align: right;

    font-family: var(--serif);

    font-size: 20px !important;
}


/*QUIZ*/

.quiz-section {
    min-height: 100svh;

    padding: 110px 20px;

    background: #eee7df;

    color: #171513;

    display: flex;

    align-items: center;
    justify-content: center;
}

.quiz-wrapper {
    width: min(100%, 500px);
}

.quiz-wrapper h2 {
    margin: 20px 0 45px;

    font-family: var(--serif);

    font-size: clamp(48px, 13vw, 75px);

    line-height: 0.85;

    font-weight: 500;
}

.quiz-wrapper h2 em {
    color: #8e7160;

    font-weight: 400;
}

.quiz-card {
    padding: 30px 22px;

    border: 1px solid #c8b9ad;

    background: #e7ddd4;
}

.quiz-progress {
    margin-bottom: 25px;

    color: #8a776a;

    font-size: 8px;

    letter-spacing: 2px;
}

.quiz-card h3 {
    max-width: 370px;

    font-family: var(--serif);

    font-size: 30px;

    line-height: 1;

    font-weight: 500;
}

.quiz-options {
    margin-top: 30px;

    display: flex;

    flex-direction: column;

    gap: 9px;
}

.quiz-options button {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid #bbaa9e;

    background: transparent;

    text-align: left;

    color: #3e3631;

    font-size: 10px;

    cursor: pointer;

    transition: 0.25s ease;
}

.quiz-options button:hover {
    background: #332d29;

    color: #eee7df;

    border-color: #332d29;
}

.quiz-result {
    min-height: 20px;

    margin-top: 20px;

    color: #806858;

    font-family: var(--serif);

    font-size: 18px;

    font-style: italic;
}


/*FINAL*/

.final-section {
    position: relative;

    min-height: 100svh;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #11100f;
}

.final-background {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 50% 50%,
            #4a3930 0%,
            #211c19 35%,
            #11100f 75%
        );

    opacity: 0.8;
}

.final-content {
    position: relative;

    z-index: 2;

    width: min(90%, 500px);

    text-align: center;
}

.final-overline {
    margin-bottom: 20px;

    color: #9b897c;

    font-size: 8px;

    letter-spacing: 3px;
}

.final-year {
    font-family: var(--serif);

    font-size: 170px;

    line-height: 0.7;

    color: transparent;

    -webkit-text-stroke:
        1px rgba(238,231,223,0.13);
}

.final-content h2 {
    margin-top: 25px;

    font-family: var(--serif);

    font-size: clamp(60px, 16vw, 95px);

    line-height: 0.78;

    font-weight: 500;

    letter-spacing: -2px;
}

.final-content h2 em {
    color: #b69b89;

    font-weight: 400;
}

.final-message {
    margin-top: 30px;

    color: #938982;

    font-size: 11px;

    line-height: 1.9;
}

.final-button {
    margin-top: 35px;

    padding: 15px 20px;

    border: 1px solid rgba(238,231,223,0.3);

    background: transparent;

    color: #eee7df;

    display: inline-flex;

    align-items: center;

    gap: 30px;

    cursor: pointer;

    font-size: 9px;

    letter-spacing: 2px;

    transition: 0.3s ease;
}

.final-button b {
    font-size: 16px;

    font-weight: 300;

    transition: transform 0.3s ease;
}

.final-button:hover {
    background: #eee7df;

    color: #11100f;
}

.final-button:hover b {
    transform: translateX(4px);
}


/*FINAL REVEAL*/

.final-reveal {
    position: absolute;

    inset: 0;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(17,16,15,0.97);

    opacity: 0;

    visibility: hidden;

    transform: scale(1.04);

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease,
        transform 0.5s ease;
}

.final-reveal.show {
    opacity: 1;

    visibility: visible;

    transform: scale(1);
}

.reveal-inner {
    width: min(100%, 450px);

    text-align: center;
}

.reveal-inner > span {
    color: #927d6e;

    font-size: 8px;

    letter-spacing: 3px;
}

.reveal-inner h3 {
    margin-top: 25px;

    font-family: var(--serif);

    font-size: clamp(50px, 13vw, 75px);

    line-height: 0.85;

    font-weight: 500;
}

.reveal-inner h3 em {
    color: #b69b89;

    font-weight: 400;
}

.reveal-inner p {
    margin-top: 30px;

    color: #99908a;

    font-size: 11px;

    line-height: 2;
}

.reveal-inner button {
    margin-top: 35px;

    border: none;

    border-bottom: 1px solid #806c60;

    padding: 5px 0;

    background: none;

    color: #b39d8e;

    cursor: pointer;

    font-size: 9px;

    letter-spacing: 2px;
}


/*IMAGE FALLBACK*/

.photo-card.image-missing {
    background:
        linear-gradient(
            135deg,
            #bca99a,
            #79665a
        );
}

.photo-card.image-missing::after {
    content: "YOUR PHOTO";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: rgba(255,255,255,0.55);

    font-size: 8px;

    letter-spacing: 3px;
}


/*ANIMATIONS*/

.hero-content {
    animation:
        heroEnter 1.2s ease both;
}

@keyframes heroEnter {

    from {
        opacity: 0;

        transform:
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/*TABLET*/

@media (min-width: 700px) {

    .topbar {
        padding:
            30px 45px;
    }

    .gallery-section,
    .letter-section,
    .quiz-section {
        padding-left: 45px;
        padding-right: 45px;
    }

    .photo-collage {
        grid-auto-rows: 220px;
    }

}


/*SMALL PHONES*/

@media (max-width: 380px) {

    .topbar-date {
        font-size: 7px;

        letter-spacing: 1.5px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-number {
        font-size: 105px;
    }

    .counter-grid {
        gap: 12px;
    }

    .counter-item strong {
        font-size: 42px;
    }

    .counter-divider {
        height: 30px;
    }

    .photo-collage {
        grid-auto-rows: 150px;
    }

    .photo-wide {
        height: 140px;
    }

}


/*REDUCED MOTION*/

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}