/* ==============================================================
   RESET
================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==============================================================
   DOCUMENT
================================================================ */

html {
    scroll-behavior: auto;
}

body {
    min-height: 100vh;

    background: #160d09;
    color: #f8ead8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    overflow-x: hidden;
}


/* ==============================================================
   GLOBAL
================================================================ */

section {
    position: relative;
    overflow: hidden;
}

.container {
    width: min(1150px, 90%);
    margin: 0 auto;
}


/* ==============================================================
   TYPOGRAPHY
================================================================ */

h1,
h2 {
    font-weight: 400;
    line-height: .95;
}

h2 {
    font-size: clamp(45px, 7vw, 90px);
}

p {
    color: #d6c2ae;

    font-family:
        "Cormorant Garamond", serif;

    line-height: 1.8;

    font-size: 20px;
    line-height: 1.9;
    color: #5a4638;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.eyebrow {
    margin-bottom: 20px;

    color: #c99a63;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: 5px;
    text-transform: uppercase;
}


/* ==============================================================
   GENERAL REVEAL
================================================================ */

/*
 * Used by Menu, CTA and other normal sections.
 *
 * Story has its own continuous scroll animation,
 * so only .story .reveal gets the transition disabled below.
 */

.reveal {
    opacity: 0;

    transform:
        translate3d(0, 70px, 0);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.2, .8, .2, 1);

    will-change:
        transform,
        opacity;
}


.reveal.visible {
    opacity: 1;

    transform:
        translate3d(0, 0, 0);
}

.reveal-description {
    margin-top: 35px;
    max-width: 620px;
    font-family: "Dancing Script", cursive;
    font-size: 30px;
    line-height: 1.9;
    color: #5a4638;
    letter-spacing: 0.3px;
    font-weight: 700;
}





/* ==============================================================
   COFFEE EXPERIENCE
================================================================ */

.experience {
    min-height: 130vh;

    background: #0d0705;
}


.experience-content {
    position: sticky;

    top: 0;

    height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;
}


.experience-title {
    position: relative;

    z-index: 5;

    will-change:
        transform,
        opacity;
}


.experience-title h2 {
    font-size:
        clamp(
            52px,
            10vw,
            150px
        );
}


.experience-title span {
    color: #a9693b;

    font-style: italic;
}


/* ==============================================================
   GIANT COFFEE
================================================================ */

.giant-coffee {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #8a4e29 0%,
            #3a1a0d 55%,
            #130804 70%
        );

    opacity: .4;

    transform:
        scale(.4);

    pointer-events: none;

    will-change:
        transform,
        opacity;
}


/* ==============================================================
   STORY
================================================================ */

.story {
    min-height: 100vh;

    display: flex;

    align-items: center;

    background: #efe0cc;

    color: #28140c;

    /*
     * Initial closed state.
     *
     * JavaScript continuously controls these values.
     */

    opacity: 0;

    transform:
        translate3d(0, 70px, 0)
        scale(.97);

    transform-origin: center center;

    will-change:
        transform,
        opacity;
}


/* ==============================================================
   STORY GRID
================================================================ */

.story-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;

    align-items: center;

    will-change:
        transform;
}


/* ==============================================================
   STORY TEXT
================================================================ */

.story p {
    color: #684b39;
}


/* ==============================================================
   STORY REVEALS
================================================================ */

/*
 * IMPORTANT:
 *
 * Story .reveal elements are controlled by
 * the Story morph JavaScript.
 *
 * This prevents the normal .visible animation
 * from fighting the scroll animation.
 */

.story .reveal {
    opacity: 0;

    transform:
        translate3d(0, 70px, 0)
        scale(.94);

    transition: none;

    will-change:
        transform,
        opacity;
}


/* ==============================================================
   STORY IMAGE
================================================================ */

.story-image {
    height: 550px;

    border-radius:
        200px
        200px
        20px
        20px;

    background:
        linear-gradient(
            rgba(40, 15, 5, .15),
            rgba(40, 15, 5, .4)
        ),
        url("https://karibubensmaker.com/public/assets/images/home/delicious-coffee.webp")
        center / cover
        no-repeat;

    opacity: 0;

    transform:
        translate3d(0, 100px, 0)
        scale(.82)
        rotate(-4deg);

    transform-origin: center center;

    /*
     * JavaScript controls this continuously.
     */

    transition: none;

    will-change:
        transform,
        opacity;
}


/*
 * DO NOT use .story.visible anymore.
 *
 * The Story is driven continuously by scroll.
 */


/* ==============================================================
   FINAL CTA
================================================================ */

.contact {
    min-height: 80vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 100px 0;

    background:
        linear-gradient(
            rgba(20, 8, 4, .65),
            rgba(20, 8, 4, .9)
        ),
        url("https://karibubensmaker.com/public/assets/images/home/call-to-action.webp")
        center / cover
        no-repeat;

    text-align: center;
}


.contact h2 {
    max-width: 900px;
}


.button {
    display: inline-block;

    margin-top: 40px;

    padding: 18px 35px;

    border: 1px solid #c99762;

    color: #f4dfc6;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    letter-spacing: 3px;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        background .4s ease,
        color .4s ease,
        border-color .4s ease;
}


.button:hover {
    background: #c99762;

    color: #1a0c07;

    border-color: #c99762;
}


.button:focus-visible {
    outline:
        2px solid #f4dfc6;

    outline-offset: 4px;
}


/* ==============================================================
   FOOTER
================================================================ */

footer {
    padding: 30px 5%;

    background: #100805;

    color: #8e6d57;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    letter-spacing: 2px;

    text-align: center;
}


/* ==============================================================
   TABLET
================================================================ */

@media (max-width: 800px) {

    .container {
        width: min(92%, 700px);
    }


    h2 {
        font-size:
            clamp(
                42px,
                12vw,
                70px
            );
    }


    .eyebrow {
        font-size: 10px;

        letter-spacing: 4px;
    }


    /* --------------------------------
       HERO
    -------------------------------- */

    .experience {
        min-height: 130vh;
    }


    .experience-content {
        height: 100vh;
    }


    .experience-title h2 {
        font-size:
            clamp(
                52px,
                15vw,
                100px
            );
    }


    .giant-coffee {
        width: 500px;
        height: 500px;
    }


    /* --------------------------------
       STORY
    -------------------------------- */

    .story {
        min-height: auto;

        padding: 100px 0;
    }


    .story-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .story-image {
        height: 400px;

        border-radius:
            150px
            150px
            20px
            20px;
    }


    /* --------------------------------
       CTA
    -------------------------------- */

    .contact {
        min-height: 70vh;

        padding: 90px 0;
    }


    .contact h2 {
        max-width: 100%;
    }

}


/* ==============================================================
   SMALL PHONES
================================================================ */

@media (max-width: 480px) {

    .container {
        width: 90%;
    }


    .experience {
        min-height: 130vh;
    }


    .experience-content {
        height: 90vh;
    }


    .experience-title h2 {
        font-size:
            clamp(
                48px,
                17vw,
                80px
            );
    }


    .giant-coffee {
        width: 700px;
        height: 1000px;
    }


    .story {
        min-height: auto;

        padding: 80px 0;
    }


    .story-image {
        height: 330px;
    }


    .contact {
        min-height: 65vh;
    }


    .button {
        padding: 16px 28px;
    }

}


/* ==============================================================
   VERY SMALL PHONES
================================================================ */

@media (max-width: 360px) {

    .experience-title h2 {
        font-size: 46px;
    }


    .giant-coffee {
        width: 500px;
        height: 500px;
    }


    .story-image {
        height: 300px;
    }

}


/* ==============================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        transition-duration:
            .01ms !important;

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;
    }


    .reveal {
        opacity: 1;

        transform: none;
    }


    .story {
        opacity: 1;

        transform: none;
    }


    .story .reveal {
        opacity: 1;

        transform: none;
    }


    .story-image {
        opacity: 1;

        transform: none;
    }


    .giant-coffee {
        transform: scale(.8);

        opacity: .4;
    }

}
