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

:root {
    --background: #faf9f6;
    --surface: #ffffff;
    --dark: #252522;
    --gray: #85847f;
    --accent: #a47755;
    --border: #eae7e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */

.header {
    height: 85px;
    padding: 0 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

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

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: var(--gray);
    font-size: 13px;
    transition: .2s;
}

nav a:hover {
    color: var(--accent);
}

.contact-btn {
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
}

/* HERO */

.hero {
    max-width: 1150px;
    margin: auto;
    padding: 100px 30px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 100px;
}

.overline {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    line-height: 1.12;
    margin: 25px 0;
    font-weight: 500;
}

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

.hero-text p {
    max-width: 430px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.primary-btn {
    display: inline-block;
    padding: 15px 22px;
    background: var(--dark);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    transition: .2s;
}

.primary-btn:hover {
    background: var(--accent);
}

.profile {
    position: relative;
}

.profile img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 3px;
}

.profile-caption {
    position: absolute;
    bottom: -20px;
    right: -25px;
    background: white;
    padding: 18px 25px;
    box-shadow: 0 5px 25px #0000000c;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-caption strong {
    font-size: 14px;
}

.profile-caption span {
    font-size: 11px;
    color: var(--gray);
}

/* ABOUT */

.about {
    background: #f0eee9;
    padding: 85px max(calc((100% - 1050px) / 2), 30px);
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
}

.section-title h2,
.publications-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 37px;
    font-weight: 500;
    margin-top: 15px;
}

.about-content p {
    font-size: 14px;
    line-height: 2;
    color: #77746e;
    margin-bottom: 18px;
}

/* PUBLICATIONS */

.publications {
    max-width: 1150px;
    padding: 100px 30px;
    margin: auto;
}

.publications-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 45px;
}

.publication-count {
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 1px;
}

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

.post-image {
    height: 230px;
    background-position: center;
    background-size: cover;
    transition: .4s;
}

.post:hover .post-image {
    filter: brightness(.85);
}

.image-one {
    background-image: url('imagens/1795012633400.jpg');
}

.image-two {
    background-image: url('imagens/cliente.png');
    background-position: top;
}

.image-three {
    background-image: url('imagens/foto1.jpg');
}

.post-info {
    display: flex;
    justify-content: space-between;
    margin: 22px 0 13px;
}

.post-category {
    color: var(--accent);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 1px;
}

.post-date {
    color: #aaa;
    font-size: 10px;
}

.post h3 {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 22px;
}

.read-more {
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}

/* CONTACT */

.contact {
    background: #262622;
    color: white;
    text-align: center;
    padding: 85px 20px;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    margin: 18px 0;
}

.contact p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 25px;
}

.contact a {
    display: inline-block;
    padding: 14px 23px;
    background: var(--accent);
    border-radius: 3px;
    font-size: 12px;
}

/* FOOTER */

footer {
    padding: 30px 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

footer p,
footer > a {
    font-size: 11px;
    color: var(--gray);
}

/* RESPONSIVIDADE */

@media(max-width: 800px) {

    .header {
        padding: 0 5%;
    }

    nav {
        gap: 15px;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

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

    .profile img {
        height: 320px;
    }

    .about {
        gap: 30px;
    }

    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 550px) {

    .header {
        height: 70px;
    }

    nav {
        display: none;
    }

    .hero {
        padding: 65px 25px;
        grid-template-columns: 1fr;
        gap: 55px;
    }

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

    .profile img {
        height: 350px;
    }

    .about {
        grid-template-columns: 1fr;
        padding: 65px 25px;
    }

    .publications {
        padding: 70px 25px;
    }

    .publications-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .posts {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .post-image {
        height: 250px;
    }

    footer {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
}
