@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================
   BODY
========================= */

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #f4eee4;
    color: #342d28;

    font-family: "Playfair Display", serif;
}


/* =========================
   BACK LINK
========================= */

.back-link {
    position: fixed;

    top: 30px;
    left: 35px;

    z-index: 100;

    color: #342d28;

    font-family: "Playfair Display", serif;

    font-size: 14px;

    text-decoration: none;

    opacity: 0.6;

    transition: 0.3s ease;
}

.back-link:hover {
    opacity: 1;

    transform: translateX(-4px);
}


/* =========================
   STORY HERO
========================= */

.story-hero {
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 100px 40px;

    text-align: center;
}

.story-header {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;

    animation: fadeIn 1.5s ease;
}


/* =========================
   LABEL
========================= */

.section-label {
    margin-bottom: 25px;

    font-size: 13px;

    letter-spacing: 5px;

    text-transform: uppercase;

    opacity: 0.5;
}


/* =========================
   TITLE
========================= */

.story-header h1 {
    margin-bottom: 30px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(65px, 10vw, 120px);

    font-weight: 500;

    line-height: 0.9;
}


/* =========================
   INTRO
========================= */

.story-intro {
    max-width: 550px;

    margin: 0 auto 55px;

    font-size: 18px;

    line-height: 1.8;

    opacity: 0.7;
}


/* =========================
   MUSIC
========================= */

.story-music {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 12px 20px;

    border-top: 1px solid rgba(141, 118, 101, 0.35);
    border-bottom: 1px solid rgba(141, 118, 101, 0.35);
}

.music-button {
    width: 42px;
    height: 42px;

    padding: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    border: 1px solid #8d7665;

    border-radius: 50%;

    background: transparent;

    color: #342d28;

    font-size: 13px;

    cursor: pointer;

    transition: 0.3s ease;
}

.music-button:hover {
    background-color: #342d28;

    color: #f4eee4;

    transform: none;
}

.music-label {
    display: block;

    margin-bottom: 3px;

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

    opacity: 0.5;
}

.story-music p {
    font-family: "Cormorant Garamond", serif;

    font-size: 18px;
}


/* =========================
   TIMELINE SECTION
========================= */

.story-section {
    width: 100%;

    padding: 100px 40px 150px;
}

.story-timeline {
    position: relative;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


/* =========================
   CENTER LINE
========================= */

.story-timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 1px;

    background-color: rgba(141, 118, 101, 0.4);

    transform: translateX(-50%);
}


/* =========================
   YEAR
========================= */

.story-year {
    position: relative;

    z-index: 2;

    display: flex;

    justify-content: center;

    margin: 80px 0;
}

.story-year span {
    padding: 8px 25px;

    background-color: #f4eee4;

    border: 1px solid rgba(141, 118, 101, 0.45);

    font-family: "Cormorant Garamond", serif;

    font-size: 24px;

    letter-spacing: 4px;
}


/* =========================
   STORY ITEM
========================= */

.story-item {
    position: relative;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    min-height: 320px;

    margin-bottom: 100px;
}


/* =========================
   DOT
========================= */

.story-dot {
    position: absolute;

    top: 20px;
    left: 50%;

    z-index: 3;

    width: 12px;
    height: 12px;

    border: 2px solid #f4eee4;

    background-color: #8d7665;

    border-radius: 50%;

    transform: translateX(-50%);
}


/* =========================
   CONTENT
========================= */

.story-item-content {
    grid-column: 1;

    padding-right: 20px;

    text-align: right;

    align-self: start;
}

.story-item-reverse .story-item-content {
    grid-column: 2;

    grid-row: 1;

    padding-right: 0;
    padding-left: 20px;

    text-align: left;
}


/* =========================
   DATE
========================= */

.story-date {
    margin-bottom: 15px;

    font-size: 12px;

    letter-spacing: 3px;

    text-transform: uppercase;

    opacity: 0.5;
}


/* =========================
   TITLE
========================= */

.story-item-content h2 {
    margin-bottom: 25px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(38px, 4vw, 60px);

    font-weight: 500;

    line-height: 0.95;
}


/* =========================
   TEXT
========================= */

.story-text {
    font-size: 16px;

    line-height: 1.9;

    white-space: pre-line;

    opacity: 0.75;
}


/* =========================
   MEDIA
========================= */

.story-item-media {
    grid-column: 2;

    display: flex;

    justify-content: flex-start;

    align-items: flex-start;
}

.story-item-reverse .story-item-media {
    grid-column: 1;

    grid-row: 1;

    justify-content: flex-end;
}


/* =========================
   STORY IMAGE
========================= */

.story-item-image {
    width: 100%;

    max-width: 400px;

    padding: 10px 10px 30px;

    background-color: #fffdf8;

    box-shadow:
        0 15px 35px rgba(50, 40, 30, 0.15);

    transform: rotate(2deg);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.story-item-reverse .story-item-image {
    transform: rotate(-2deg);
}

.story-item-image:hover {
    transform: rotate(0deg) scale(1.03);

    box-shadow:
        0 20px 45px rgba(50, 40, 30, 0.2);
}

.story-item-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* =========================
   ENDING
========================= */

.story-ending {
    min-height: 70vh;

    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 100px 40px;

    text-align: center;
}

.story-ending h2 {
    margin-bottom: 25px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(50px, 7vw, 85px);

    font-weight: 500;

    line-height: 0.95;
}

.story-ending p:not(.section-label) {
    font-size: 17px;

    opacity: 0.65;
}


.story-music {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 30px;

    font-size: 13px;
    letter-spacing: 1px;

    opacity: 0.7;
}

.story-music-button {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid #8d7665;
    border-radius: 50%;

    background: transparent;
    color: #342d28;

    font-size: 13px;

    cursor: pointer;

    transition: 0.3s ease;
}

.story-music-button:hover {
    background-color: #342d28;
    color: #f4eee4;

    transform: scale(1.05);
}


/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .back-link {
        top: 20px;
        left: 20px;

        font-size: 13px;
    }


    .story-hero {
        padding: 100px 25px 70px;
    }


    .story-header h1 {
        font-size: clamp(60px, 17vw, 90px);
    }


    .story-intro {
        font-size: 16px;
    }


    .story-section {
        padding: 70px 25px 100px;
    }


    .story-timeline::before {
        left: 20px;
    }


    .story-year {
        justify-content: flex-start;

        margin: 60px 0;

        padding-left: 0;
    }


    .story-year span {
        margin-left: 0;

        font-size: 20px;
    }


    .story-item {
        display: flex;

        flex-direction: column;

        gap: 30px;

        min-height: auto;

        margin-bottom: 80px;

        padding-left: 50px;
    }


    .story-dot {
        left: 20px;

        top: 8px;
    }


    .story-item-content,
    .story-item-reverse .story-item-content {
        order: 1;

        padding: 0;

        text-align: left;
    }


    .story-item-media,
    .story-item-reverse .story-item-media {
        order: 2;

        justify-content: flex-start;
    }


    .story-item-image {
        max-width: 100%;
    }


    .story-item-image img {
        height: auto;
    }


    .story-item-content h2 {
        font-size: 45px;
    }


    .story-music {
        width: 100%;

        max-width: 330px;

        justify-content: center;
    }

}