.logo {
    font:400 30px "Playfair Display",serif;
    font-weight: bold;
    white-space:nowrap;
    line-height:1.05;
}
.logo span {
    display:block;
    font:600 9px "DM Sans",sans-serif;
    letter-spacing:4px;
    margin-top:6px;
}

/* hero */
.intro{
    min-height:92vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
    padding:150px 30px 100px;
}

.intro-content{
    animation:heroReveal 1.2s cubic-bezier(.2,.7,.2,1) both;
}

.intro-text{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-bottom:28px;
    color:#9d8176;
    font-size:10px;
    font-weight:600;
    letter-spacing:4px;
    text-transform:uppercase;
}

.intro-text::before,
.intro-text::after{
    content:"";
    width:28px;
    height:1px;
    background:#c9aaa0;
}

.intro h1{
    font-family:"Playfair Display",serif;
    font-size:clamp(65px,10vw,145px);
    font-weight:400;
    line-height:.88;
    letter-spacing:-7px;
    transition:color .7s ease;
}

.intro h1 em{
    color:#a66f79;
    font-weight:400;
    transition:color .7s ease;
}

.intro p{
    max-width:510px;
    margin:38px auto 0;
    color:#88776e;
    font-size:15px;
    line-height:1.8;
    transition:color .7s ease;
}

.scroll-note{
    position:absolute;
    bottom:35px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    font-size:9px;
    font-weight:600;
    letter-spacing:3px;
    color:#a18b81;
    text-transform:uppercase;
}

.scroll-line{
    width:1px;
    height:42px;
    background:#c9b5ac;
    position:relative;
    overflow:hidden;
}

.scroll-line::after{
    content:"";
    position:absolute;
    top:-100%;
    left:0;
    width:100%;
    height:100%;
    background:#29231f;
    animation:scrollLine 1.8s ease-in-out infinite;
}


/* animations */

@keyframes heroReveal{
    from{ opacity:0; transform:translateY(35px); }
    to{ opacity:1; transform:translateY(0); }
}

@keyframes scrollLine{
    0%{ top:-100%; }
    50%{ top:0; }
    100%{ top:100%; }
}


/* hero dark mode */

body.dark .intro h1{
    color:#f7f0eb;
}

body.dark .intro h1 em{
    color:#c98f9b;
}

body.dark .intro p{
    color:#9f9390;
}

body.dark .intro-text{
    color:#b8948d;
}

body.dark .intro-text::before,
body.dark .intro-text::after{
    background:#705b5c;
}

body.dark .scroll-note{
    color:#8d8080;
}

body.dark .scroll-line{
    background:#4b4142;
}

body.dark .scroll-line::after{
    background:#eee3dd;
}


/* gallery stack */

.gallery-stack{
    position:relative;
}

.gallery-card{
    position:sticky;
    top:0;
    height:100vh;
    min-height:700px;
    display:flex;
    flex-direction:column;
    padding:20px 20px 0;
    background:#F5F3EF;
    border-radius:48px 48px 0 0;
    overflow:hidden;
    box-shadow:0 -25px 70px rgba(45,35,30,.10);
    transition:
            background .8s ease,
            box-shadow .8s ease;
}

.gallery-card:nth-child(2){top:8px;}
.gallery-card:nth-child(3){top:16px;}
.gallery-card:nth-child(4){top:24px;}
.gallery-card:nth-child(5){top:32px;}
.gallery-card:nth-child(6){top:40px;}
.gallery-card:nth-child(7){top:48px;}
.gallery-card:nth-child(8){top:56px;}
.gallery-card:nth-child(9){top:64px;}
.gallery-card:nth-child(10){top:72px;}

body.dark .gallery-card{
    background:#121012;
    box-shadow:0 -25px 70px rgba(0,0,0,.35);
}

.gallery-images{
    height:72%;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.image-wrap{
    position:relative;
    overflow:hidden;
    border-radius:30px;
    background:#ddd;
}

.image-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:
            transform 1s cubic-bezier(.2,.7,.2,1),
            filter .8s ease;
}

.image-wrap:hover img{
    transform:scale(1.055);
}

body.dark .image-wrap img{
    filter:brightness(.78) saturate(.85);
}

.gallery-info{
    flex:1;
    display:grid;
    grid-template-columns:120px 1fr auto;
    align-items:center;
    gap:30px;
    padding:22px 30px 28px;
}

.number{
    font-family:"Playfair Display", serif;
    font-size:18px;
    font-style:italic;
    color:#b98d97;
    transition:color .7s ease;
}

.text h2{
    font-family:"Playfair Display", serif;
    font-size:clamp(34px,4vw,58px);
    font-weight:400;
    line-height:.98;
    letter-spacing:-2px;
    transition:color .7s ease;
}

.text p{
    max-width:620px;
    margin-top:12px;
    font-size:14px;
    line-height:1.65;
    color:#827168;
    transition:color .7s ease;
}

.tags{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
}

.tags span{
    padding:9px 15px;
    border:1px solid rgba(41,35,31,.13);
    border-radius:100px;
    font-size:10px;
    font-weight:600;
    color:#6f6058;
    transition:
            color .7s ease,
            border .7s ease;
}

/* dark mode */
body.dark .text h2{
    color:#f4ece7;
}

body.dark .text p{
    color:#968a87;
}

body.dark .tags span{
    color:#aa9d99;
    border-color:rgba(255,255,255,.13);
}


/* journal */

.journal{
    position:relative;
    padding:150px 7vw 160px;
    background:#ebe5de;
    transition:background .8s ease;
}

body.dark .journal{
    background:#1d171b;
}

.journal-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:40px;
    margin-bottom:70px;
}

.journal-kicker{
    margin-bottom:18px;
    font-size:10px;
    font-weight:600;
    letter-spacing:4px;
    color:#a27e73;
    text-transform:uppercase;
}

.journal-title{
    font-family:"Playfair Display", serif;
    font-size:clamp(55px,7vw,100px);
    font-weight:400;
    line-height:.88;
    letter-spacing:-5px;
    transition:color .7s ease;
}

.journal-intro{
    max-width:330px;
    font-size:14px;
    line-height:1.7;
    color:#85746c;
    transition:color .7s ease;
}

body.dark .journal-title{
    color:#f5ede8;
}

body.dark .journal-intro{
    color:#978a87;
}

.article-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.article-card{
    display:flex;
    flex-direction:column;
    min-height:540px;
    background:#F5F3EF;
    border-radius:28px;
    overflow:hidden;
    transition:
            transform .5s cubic-bezier(.2,.7,.2,1),
            box-shadow .5s ease,
            background .7s ease;
}

.article-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 60px rgba(43,35,30,.12);
}

/* dark mode */
body.dark .article-card{
    background:#292126;
}

body.dark .article-card:hover{
    box-shadow:0 25px 60px rgba(0,0,0,.35);
}

/* article image */
.article-image{
    height:310px;
    overflow:hidden;
}

.article-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:
            transform .8s cubic-bezier(.2,.7,.2,1),
            filter .8s ease;
}

.article-card:hover .article-image img{
    transform:scale(1.06);
}

body.dark .article-image img{
    filter:brightness(.75) saturate(.82);
}

.article-content{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:30px;
}

.article-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    font-size:9px;
    font-weight:600;
    letter-spacing:2px;
    color:#a08479;
    text-transform:uppercase;
}

.article-content h3{
    font-family:"Playfair Display", serif;
    font-size:32px;
    font-weight:400;
    line-height:1.05;
    letter-spacing:-1px;
    transition:color .7s ease;
}

.article-content p{
    margin-top:15px;
    color:#85766e;
    font-size:13px;
    line-height:1.7;
    transition:color .7s ease;
}

body.dark .article-content h3{
    color:#f5ede8;
}

body.dark .article-content p{
    color:#9b8e8a;
}

.article-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:auto;
    padding-top:30px;
    font-size:11px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    transition:color .5s ease;
}

.article-link span{
    transition:transform .3s ease;
}

.article-card:hover .article-link span{
    transform:translateX(5px);
}

body.dark .article-link{
    color:#e0b6be;
}

.photo-credit{
    text-align:center;
    padding:30px 20px;
    font-size:13px;
    color:#88776e;
    transition:color .7s ease;
}

.photo-credit a{
    position:relative;
    font-weight:600;
    color:#a66f79;
    transition:color .5s ease;
}

.photo-credit a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-3px;
    width:0;
    height:1px;
    background:currentColor;
    transition:width .3s ease;
}

.photo-credit a:hover::after{
    width:100%;
}

body.dark .photo-credit{
    color:#9f9390;
}

body.dark .photo-credit a{
    color:#e0b6be;
}


/* mobile */

@media(max-width:900px){

    .article-grid{
        grid-template-columns:1fr;
    }

    .article-card{
        min-height:500px;
    }

    .journal-header{
        flex-direction:column;
        align-items:flex-start;
    }

}


@media(max-width:650px){

    .intro{
        min-height:80vh;
        padding:120px 20px 70px;
    }

    .intro h1{
        font-size:clamp(58px,18vw,100px);
        letter-spacing:-4px;
    }

    .intro p{
        font-size:13px;
    }

    .gallery-card{
        height:auto;
        min-height:100vh;
        padding:12px 12px 0;
    }

    .gallery-images{
        height:55vh;
        grid-template-columns:1fr;
        grid-template-rows:repeat(3,1fr);
        gap:7px;
    }

    .image-wrap{
        border-radius:18px;
    }

    .gallery-info{
        grid-template-columns:55px 1fr;
        gap:10px;
        padding:20px 8px 25px;
    }

    .text h2{
        font-size:34px;
    }

    .text p{
        font-size:12px;
    }

    .tags{
        grid-column:2;
        justify-content:flex-start;
    }

    .gallery-card:nth-child(n){
        top:0;
    }

    .journal{
        padding:100px 20px 110px;
    }

    .journal-title{
        font-size:65px;
        letter-spacing:-4px;
    }

    .article-image{
        height:260px;
    }

    .article-content h3{
        font-size:28px;
    }

}



/* background colors */

/* light mode: alternating backgrounds */
.intro {
    background-color: #FAF7F2;
}

.gallery-card {
    background-color: #EBE5DE;
}

.journal {
    background-color: #FAF7F2;
}

.article-card {
    background-color: #EBE5DE;
}

/* news section: inverted colors so it separates from the journal */
.news {
    background-color: #EBE5DE;
}

.news .article-card {
    background-color: #FAF7F2;
}

/* dark mode: unified background */
body.dark .intro,
body.dark .gallery-card,
body.dark .journal,
body.dark .article-card {
    background-color: #151014;
}