/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    color:#111;
    background:#fff;
    line-height:1.7;
}

/* =========================================
   VARIÁVEIS
========================================= */

:root{
    --red:#666666;
    --text:#111111;
    --gray:#666666;
    --light-gray:#f7f7f7;
    --border:#e8e8e8;
    --max-width:1400px;
}

/* =========================================
   LINKS
========================================= */

a{
    text-decoration:none;
    color:inherit;
}

/* =========================================
   IMAGENS
========================================= */

img{
    display:block;
    width:100%;
}

/* =========================================
   HEADER
========================================= */

.header{

    position:sticky;
    top:0;
    z-index:1000;

    background:#fff;

    border-bottom:1px solid var(--border);

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px 5%;
}

.logo{

    font-weight:800;

    letter-spacing:3px;

    font-size:1.1rem;
}

.nav{

    display:flex;
    gap:32px;
}

.nav a{

    font-size:.95rem;

    font-weight:600;

    transition:.3s;
}

.nav a:hover{

    color:black;
}

.search-box input{

    width:220px;

    height:42px;

    border:1px solid var(--border);

    padding:0 15px;

    outline:none;

    font-size:.9rem;
}

/* =========================================
   HERO
========================================= */

.hero{

    max-width:var(--max-width);

    margin:60px auto;

    padding:0 5%;
}

.hero img{

    width:100%;

    height:720px;

    object-fit:cover;
}

.hero-content{

    margin-top:40px;

    max-width:900px;
}

.category{

    display:inline-block;

    color:var(--red);

    font-size:.8rem;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:20px;
}

.hero h1{

    font-family:'Playfair Display',serif;

    font-size:4.8rem;

    line-height:1.05;

    font-weight:700;

    margin-bottom:25px;
}

.hero p{

    font-size:1.2rem;

    color:var(--gray);

    max-width:700px;
}

/* =========================================
   SECTIONS
========================================= */

.section{

    max-width:var(--max-width);

    margin:100px auto;

    padding:0 5%;
}

.section-title{

    font-family:'Playfair Display',serif;

    font-size:3rem;

    margin-bottom:50px;

    font-weight:700;
}

/* =========================================
   EDITORIAL GRID
========================================= */

.editorial-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:50px;
}

.story-card{

    cursor:pointer;
}

.story-card img{

    width:100%;

    aspect-ratio:4/3;

    object-fit:cover;

    margin-bottom:25px;
}

.story-card h3{

    font-family:'Playfair Display',serif;

    font-size:2rem;

    line-height:1.2;

    margin-bottom:15px;

    transition:.3s;
}

.story-card:hover h3{

    color:var(--red);
}

.story-card p{

    color:var(--gray);

    font-size:1rem;
}

/* =========================================
   LATEST STORIES
========================================= */

.latest-section{

    background:var(--light-gray);

    padding-top:90px;

    padding-bottom:90px;
}

.latest-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:35px;
}

.latest-card{

    cursor:pointer;
}

.latest-card img{

    aspect-ratio:4/3;

    object-fit:cover;

    margin-bottom:18px;
}

.latest-card h4{

    font-family:'Playfair Display',serif;

    font-size:1.4rem;

    line-height:1.3;

    transition:.3s;
}

.latest-card:hover h4{

    color:var(--red);
}

/* =========================================
   FEATURE STORY
========================================= */

.feature-story{

    max-width:var(--max-width);

    margin:120px auto;

    padding:0 5%;

    display:grid;

    grid-template-columns:1.5fr 1fr;

    gap:60px;

    align-items:center;
}

.feature-image img{

    width:100%;

    height:650px;

    object-fit:cover;
}

.feature-content span{

    color:var(--red);

    font-weight:700;

    letter-spacing:2px;

    font-size:.8rem;
}

.feature-content h2{

    font-family:'Playfair Display',serif;

    font-size:3.5rem;

    line-height:1.1;

    margin:20px 0;
}

.feature-content p{

    color:var(--gray);

    font-size:1.1rem;
}

/* =========================================
   SCIENCE
========================================= */

.science{

    border-top:1px solid var(--border);
}

.science-item{

    padding:35px 0;

    border-bottom:1px solid var(--border);

    cursor:pointer;
}

.science-item h3{

    font-family:'Playfair Display',serif;

    font-size:2rem;

    transition:.3s;
}

.science-item:hover h3{

    color:var(--red);
}

.science-item p{

    margin-top:10px;

    color:var(--gray);
}

/* =========================================
   NEWSLETTER
========================================= */

.newsletter{

    padding:120px 5%;

    text-align:center;

    background:#fafafa;
}

.newsletter h2{

    font-family:'Playfair Display',serif;

    font-size:3rem;

    margin-bottom:20px;
}

.newsletter p{

    color:var(--gray);

    margin-bottom:35px;
}

.newsletter form{

    display:flex;

    justify-content:center;

    gap:10px;
}

.newsletter input{

    width:420px;

    height:55px;

    padding:0 20px;

    border:1px solid var(--border);

    outline:none;
}

.newsletter button{

    height:55px;

    padding:0 30px;

    border:none;

    background:#111;

    color:#fff;

    cursor:pointer;

    font-weight:600;

    transition:.3s;
}

.newsletter button:hover{

    background:var(--red);
}

/* =========================================
   FOOTER
========================================= */

footer{

    background:#111;

    color:#fff;

    text-align:center;

    padding:70px 5%;
}

.footer-logo{

    font-size:1.3rem;

    font-weight:800;

    letter-spacing:3px;

    margin-bottom:15px;
}

footer p{

    color:#bdbdbd;

    margin-bottom:30px;
}

.footer-links{

    display:flex;

    justify-content:center;

    gap:25px;
}

.footer-links a{

    color:#fff;

    transition:.3s;
}

.footer-links a:hover{

    color:#d1d1d1;
}

/* =========================================
   RESPONSIVO
========================================= */

@media(max-width:1200px){

    .hero h1{
        font-size:4rem;
    }

    .feature-content h2{
        font-size:3rem;
    }

    .latest-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){

    .header{
        flex-direction:column;
        gap:20px;
    }

    .nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero img{
        height:500px;
    }

    .hero h1{
        font-size:3rem;
    }

    .editorial-grid{
        grid-template-columns:1fr;
    }

    .latest-grid{
        grid-template-columns:1fr;
    }

    .feature-story{
        grid-template-columns:1fr;
    }

    .feature-image img{
        height:450px;
    }

    .feature-content h2{
        font-size:2.5rem;
    }

    .newsletter form{
        flex-direction:column;
        align-items:center;
    }

    .newsletter input{
        width:100%;
        max-width:500px;
    }

    .footer-links{
        flex-direction:column;
        gap:15px;
    }
}

@media(max-width:600px){

    .hero{
        margin:30px auto;
    }

    .hero img{
        height:320px;
    }

    .hero h1{
        font-size:2.3rem;
    }

    .hero p{
        font-size:1rem;
    }

    .section-title{
        font-size:2.2rem;
    }

    .story-card h3{
        font-size:1.6rem;
    }

    .science-item h3{
        font-size:1.5rem;
    }

    .newsletter h2{
        font-size:2rem;
    }
}

/* =========================================
ANIMAÇÕES
========================================= */

.hidden{

    opacity:0;

    transform:translateY(40px);

    transition:
    opacity .8s ease,
    transform .8s ease;
}

.show{

    opacity:1;

    transform:translateY(0);
}

/* =========================================
BOTÃO TOPO
========================================= */

.back-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#111;

    color:#fff;

    cursor:pointer;

    font-size:20px;

    opacity:0;

    pointer-events:none;

    transition:.3s;

    z-index:999;
}

.back-top.active{

    opacity:1;

    pointer-events:auto;
}

.back-top:hover{

    background:#a51c30;
}

/* =========================================
LINK ATIVO
========================================= */

.active-link{

    color:#666666 !important;
}