@font-face {
    font-family: 'Proxima Nova';
    src: url('Proxima Nova Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #FFF7E2;
    --banner-color: #2E2F31;
    --text-color: #111;
    --font-heading: 'Nunito Sans', sans-serif;
    --font-body: 'Proxima Nova', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    margin-top: 1px;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}


.top-banner {
    position: sticky;
    top: 0;
    background-color: var(--banner-color);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.top-banner .logo {
    height: 40px;
    display: block;
}


.hero {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    display: block;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-fade {
    position: absolute;
    bottom: -2px;
    
    left: 0;
    width: 100%;
    height: 30%;
    
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    pointer-events: none;
}

.hero-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 10;
}

.hero-text-container h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #111;
    padding-left: 200px;
    padding-right: 200px;
}

.hero-text-container h2 {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: normal;
    color: #222;
}


.intro-section {
    padding: 0 20px 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.credits {
    margin-top: -30px;
    
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.credits .date {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 5px;
    color: #444;
}

.credits .byline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #444;
}

.credits .byline a {
    color: #444;
    text-decoration: underline;
}

.credits .byline a:hover {
    color: #000;
}

.intro-text {
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
}


@media (max-width: 767px) {
    .hero-text-container {
        top: 2%;
        
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-text-container h1 {
        font-size: 2.2rem;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .hero-text-container h2 {
        font-size: 1.3rem;
        margin-top: 0px;
    }

    .hero-fade {
        height: 40%;
    }

    .credits {
        margin-top: 0px;
    }
}


#scrolly {
    position: relative;
}

.sticky-backgrounds {
    position: sticky;
    top: 50px;
    
    height: calc(100vh - 50px);
    width: 100%;
    z-index: 0;
    overflow: hidden;
}

.sticky-backgrounds .bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.sticky-backgrounds .bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sticky-backgrounds .bg-layer.active {
    opacity: 1;
}


article {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 50vh;
}

.step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 150vh;
}

.step:last-of-type {
    margin-bottom: 5vh;
}

.step:last-of-type {
    margin-bottom: 0vh;
    
}

.step .content {
    background-color: rgba(255, 247, 226, 0.95);
    
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.step .content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-color);
}

.step .content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.step .content p:last-child {
    margin-bottom: 0;
}

.inline-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    display: block;
}

/* Swiper Styling */
.swiper {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--banner-color) !important;
}

.swiper-pagination-bullet-active {
    background: var(--banner-color) !important;
}

/* Twitter Embed */
.twitter-embed {
    display: block;
    text-align: center;
    width: 100%;
    margin: 20px 0;
    min-height: 500px;
    /* Give it enough space to load and become visible */
}

.twitter-embed iframe {
    max-width: 100% !important;
}

@media (max-width: 767px) {
    article {
        margin-top: -30vh;
        /* Adjust start point for steps */
    }

    .step {
        margin-bottom: 120vh;
    }

    .step:last-of-type {
        margin-bottom: 5vh;
    }

    .step .content {
        padding: 20px;
    }

    .step .content p {
        font-size: 1rem;
    }
}