@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

:root {
    --background: #f3f1eb;
    --text: #171714;
    --muted: #77766f;
    --line: rgba(20, 20, 18, .14);
    --white: #f7f6f1;
    --accent: #c95832;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


/* HEADER */

.header {
    position: absolute;
    z-index: 20;

    width: 100%;
    padding: 30px 5vw;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: white;
}

.logo {
    color: inherit;
    text-decoration: none;

    font-size: 17px;
    font-weight: 600;
    letter-spacing: .14em;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a,
.login-link {
    color: inherit;
    background: none;
    border: 0;
    text-decoration: none;
    font-size: 13px;
}

.nav a {
    opacity: .8;
    transition: opacity .25s;
}

.nav a:hover {
    opacity: 1;
}

.login-link {
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 100px;
    padding: 9px 18px;
}


/* HERO */

.hero {
    height: 94vh;
    min-height: 650px;

    position: relative;
    overflow: hidden;

    color: white;
}

.hero-image {
    position: absolute;

    width: 100%;
    height: 110%;

    object-fit: cover;

    top: -5%;

    transform: scale(1.04);
    animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.55),
            rgba(0,0,0,.1) 65%
        ),
        linear-gradient(
            0deg,
            rgba(0,0,0,.35),
            transparent 45%
        );
}

.hero-content {
    position: absolute;

    left: 8vw;
    bottom: 15vh;

    max-width: 760px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 600;

    margin-bottom: 22px;
}

.eyebrow.dark {
    color: var(--muted);
}

.hero h1 {
    font-family: "Playfair Display", serif;

    font-weight: 500;
    font-size: clamp(64px, 8vw, 130px);

    letter-spacing: -.045em;
    line-height: .85;

    margin: 0;
}

.hero-description {
    max-width: 440px;

    margin: 32px 0;

    font-size: 17px;
    line-height: 1.65;

    color: rgba(255,255,255,.8);
}

.hero-button {
    border: 0;
    border-radius: 100px;

    background: white;
    color: #171714;

    padding: 15px 22px;

    display: flex;
    gap: 30px;

    transition:
        transform .25s,
        background .25s;
}

.hero-button:hover {
    transform: translateY(-2px);
    background: #eee;
}

.hero-meta {
    position: absolute;

    right: 5vw;
    bottom: 35px;

    display: flex;
    gap: 30px;

    font-size: 10px;
    letter-spacing: .12em;

    color: rgba(255,255,255,.65);
}


/* STORIES */

.stories {
    padding: 130px 6vw;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 70px;
}

.section-heading h2,
.feature h2,
.about h2 {
    font-family: "Playfair Display", serif;
    font-weight: 500;

    font-size: clamp(45px, 5vw, 78px);

    letter-spacing: -.035em;

    margin: 0;
}

.section-heading > p {
    width: 330px;

    color: var(--muted);
    line-height: 1.7;

    font-size: 14px;
}

.story-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.story-card {
    cursor: pointer;
}

.story-image {
    position: relative;

    height: 520px;

    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.story-card:hover img {
    transform: scale(1.045);
}

.story-number {
    position: absolute;

    top: 18px;
    left: 18px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(0,0,0,.35);
    backdrop-filter: blur(8px);

    color: white;
    font-size: 11px;
}

.story-info {
    padding-top: 22px;
}

.story-info > div {
    display: flex;
    justify-content: space-between;

    color: var(--muted);

    text-transform: uppercase;
    letter-spacing: .1em;

    font-size: 10px;
}

.story-info h3 {
    font-family: "Playfair Display", serif;

    font-size: 27px;
    font-weight: 500;

    margin: 16px 0 12px;
}

.story-info p {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.7;
}

.read-story {
    display: inline-block;

    margin-top: 10px;

    font-size: 12px;
    font-weight: 600;

    border-bottom: 1px solid var(--text);

    padding-bottom: 4px;
}


/* FEATURE */

.feature {
    margin: 20px 6vw 130px;

    min-height: 700px;

    display: grid;

    grid-template-columns: 1.55fr 1fr;

    background: #dedbd1;
}

.feature-image {
    min-height: 700px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.feature-content {
    padding: 80px 65px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content p:not(.eyebrow) {
    color: var(--muted);

    line-height: 1.8;

    margin: 30px 0;
}

.text-button {
    width: max-content;

    padding: 0 0 8px;

    background: transparent;
    border: 0;
    border-bottom: 1px solid;

    display: flex;
    gap: 35px;
}


/* ABOUT */

.about {
    border-top: 1px solid var(--line);

    margin: 0 6vw;
    padding: 100px 0 140px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.about-text {
    max-width: 520px;

    font-family: "Playfair Display", serif;

    font-size: 25px;
    line-height: 1.55;
}

.about-text p:last-child {
    color: var(--muted);
}


/* FOOTER */

footer {
    padding: 40px 6vw;

    background: #191918;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 11px;
}

footer p {
    color: #8b8b86;
}


/* MODAL */

.modal {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: grid;
    place-items: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s,
        visibility .3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(15,15,14,.72);
    backdrop-filter: blur(8px);
}

.login-modal {
    position: relative;

    width: min(92vw, 470px);

    background: var(--background);

    padding: 55px;

    transform: translateY(20px) scale(.98);

    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.modal.active .login-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;

    top: 20px;
    right: 22px;

    background: none;
    border: 0;

    font-size: 26px;

    color: #777;
}

.login-modal h2 {
    font-family: "Playfair Display", serif;

    font-size: 46px;
    font-weight: 500;

    margin: 0 0 15px;
}

.login-description {
    color: var(--muted);

    line-height: 1.6;

    margin-bottom: 35px;
}

.login-modal form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.login-modal label {
    font-size: 11px;
    font-weight: 600;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.login-modal input {
    width: 100%;

    margin-top: 9px;
    padding: 15px 0;

    background: transparent;

    border: 0;
    border-bottom: 1px solid #aaa;

    outline: none;

    font-size: 15px;
}

.login-modal input:focus {
    border-color: #222;
}

.submit-button {
    margin-top: 15px;

    border: 0;

    background: #1b1b19;
    color: white;

    padding: 16px 20px;

    display: flex;
    justify-content: space-between;

    transition: transform .2s;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.forgot-password {
    margin-top: 20px;

    padding: 0;

    border: 0;
    background: none;

    color: var(--muted);

    font-size: 12px;
}

.login-message {
    display: none;

    margin-top: 20px;
    padding: 12px;

    background: #e6ded7;

    color: #8a3823;

    font-size: 12px;
}


/* REVEAL */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* MOBILE */

@media (max-width: 900px) {

    .nav a {
        display: none;
    }

    .hero-content {
        left: 6vw;
        right: 6vw;
    }

    .hero h1 {
        font-size: 65px;
    }

    .hero-meta {
        display: none;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        width: auto;
        margin-top: 25px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .story-image {
        height: 65vh;
    }

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

    .feature-image {
        min-height: 500px;
    }

    .feature-content {
        padding: 60px 35px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    footer {
        gap: 25px;
        align-items: flex-start;
        flex-direction: column;
    }

    .login-modal {
        padding: 45px 28px;
    }

}
