/*
Theme Name: Nova Página Blog
Theme URI: https://novapagina.online/
Author: Nova Página
Author URI: https://novapagina.online/
Description: Tema editorial do blog da Nova Página.
Version: 1.0
Text Domain: nova-pagina-blog
*/

:root {
    --np-bg: #f7f6f2;
    --np-bg-soft: #eeece6;
    --np-white: #ffffff;
    --np-text: #171717;
    --np-muted: #6d6b66;
    --np-border: #d9d7d0;
    --np-container: 1240px;
    --np-sans: Arial, Helvetica, sans-serif;
    --np-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--np-bg);
    color: var(--np-text);
    font-family: var(--np-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.np-container {
    width: min(calc(100% - 48px), var(--np-container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 9999;
    background: var(--np-text);
    color: white;
    padding: 10px 16px;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.np-header { border-bottom: 1px solid var(--np-border); }

.np-header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.np-logo {
    display: inline-flex;
    align-items: center;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.np-logo-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-left: 5px;
    background: var(--np-text);
    border-radius: 50%;
}

.np-nav { display: flex; align-items: center; gap: 32px; }
.np-nav a {
    font-size: 14px;
    color: var(--np-muted);
    transition: color .2s ease;
}
.np-nav a:hover { color: var(--np-text); }
.np-nav .np-nav-cta { color: var(--np-text); font-weight: 600; }

.blog-hero {
    padding: 110px 0 95px;
    border-bottom: 1px solid var(--np-border);
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr);
    gap: 80px;
    align-items: end;
}

.blog-eyebrow {
    margin: 0 0 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--np-muted);
}

.blog-title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(64px,8vw,126px);
    line-height: .88;
    letter-spacing: -.075em;
    font-weight: 600;
}

.blog-intro {
    max-width: 420px;
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
    color: var(--np-muted);
}

.featured-section { padding: 90px 0 110px; }

.section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.section-label span:last-child { color: var(--np-muted); }

.featured-post {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr);
    min-height: 580px;
    border-top: 1px solid var(--np-text);
    border-bottom: 1px solid var(--np-border);
}

.featured-image {
    min-height: 580px;
    background: var(--np-bg-soft);
    overflow: hidden;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.featured-post:hover .featured-image img { transform: scale(1.025); }

.featured-placeholder,
.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--np-muted);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--np-muted);
}

.post-meta-separator { opacity: .5; }

.featured-title {
    margin: 35px 0 20px;
    font-size: clamp(38px,4vw,64px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 600;
}

.featured-excerpt {
    max-width: 500px;
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--np-muted);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    font-size: 14px;
    font-weight: 700;
}
.read-more-arrow { transition: transform .2s ease; }
.read-more:hover .read-more-arrow { transform: translateX(5px); }

.posts-section { padding: 0 0 120px; }

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

.post-card { border-top: 1px solid var(--np-text); padding-top: 0; }

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--np-bg-soft);
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.025); }

.post-card-title {
    margin: 18px 0 12px;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 600;
}

.post-card-excerpt {
    margin: 0;
    color: var(--np-muted);
    font-size: 15px;
    line-height: 1.55;
}

.np-pagination {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}
.np-pagination .nav-links { display: flex; gap: 8px; }
.np-pagination a,
.np-pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--np-border);
    font-size: 13px;
}
.np-pagination .current {
    background: var(--np-text);
    color: white;
    border-color: var(--np-text);
}

.blog-cta {
    padding: 110px 0;
    background: var(--np-text);
    color: white;
}

.blog-cta-inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(250px,.5fr);
    gap: 80px;
}

.blog-cta h2 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(48px,6vw,90px);
    line-height: .92;
    letter-spacing: -.065em;
}

.blog-cta-copy {
    align-self: end;
    color: rgba(255,255,255,.65);
    font-size: 16px;
}

.blog-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: white;
    font-weight: 700;
}

.np-footer {
    padding: 55px 0 30px;
    background: var(--np-text);
    color: white;
    border-top: 1px solid rgba(255,255,255,.15);
}

.np-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 55px;
}

.np-footer-logo { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.np-footer-links { display: flex; gap: 30px; }
.np-footer-links a { font-size: 13px; color: rgba(255,255,255,.65); }

.np-footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 12px;
    color: rgba(255,255,255,.45);
}

.single-header {
    padding: 110px 0 80px;
    border-bottom: 1px solid var(--np-border);
}
.single-header-inner { max-width: 1000px; }
.single-title {
    margin: 30px 0;
    font-size: clamp(52px,7vw,100px);
    line-height: .92;
    letter-spacing: -.07em;
}
.single-excerpt {
    max-width: 760px;
    font-size: 21px;
    line-height: 1.5;
    color: var(--np-muted);
}
.single-featured {
    margin-top: 70px;
    max-height: 700px;
    overflow: hidden;
}
.single-featured img {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
}

.single-content-wrap { padding: 90px 0 120px; }
.single-content {
    max-width: 760px;
    margin-inline: auto;
    font-family: var(--np-serif);
    font-size: 19px;
    line-height: 1.75;
}
.single-content h2,
.single-content h3,
.single-content h4 {
    font-family: var(--np-sans);
    line-height: 1.1;
    letter-spacing: -.035em;
}
.single-content h2 { margin-top: 65px; font-size: 42px; }
.single-content h3 { margin-top: 50px; font-size: 30px; }
.single-content p { margin: 0 0 28px; }
.single-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.single-content blockquote {
    margin: 50px 0;
    padding-left: 30px;
    border-left: 2px solid var(--np-text);
    font-size: 25px;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .np-nav { display: none; }
    .blog-hero-grid,
    .featured-post,
    .blog-cta-inner { grid-template-columns: 1fr; }
    .blog-hero { padding: 80px 0; }
    .blog-intro { max-width: 600px; }
    .featured-image { min-height: auto; aspect-ratio: 16 / 10; }
    .featured-content { padding: 35px 0 45px; }
    .posts-grid { grid-template-columns: repeat(2,1fr); }
    .blog-cta-inner { gap: 40px; }
}

@media (max-width: 620px) {
    .np-container { width: min(calc(100% - 32px), var(--np-container)); }
    .np-header-inner { min-height: 76px; }
    .blog-title { font-size: clamp(54px,18vw,90px); }
    .blog-hero { padding: 65px 0; }
    .featured-section { padding: 65px 0 80px; }
    .featured-title { font-size: 40px; }
    .posts-grid { grid-template-columns: 1fr; gap: 55px; }
    .blog-cta { padding: 75px 0; }
    .blog-cta h2 { font-size: 52px; }
    .np-footer-top,
    .np-footer-bottom { flex-direction: column; gap: 25px; }
    .np-footer-links { flex-wrap: wrap; }
    .single-header { padding: 70px 0 60px; }
    .single-title { font-size: 52px; }
    .single-content-wrap { padding: 60px 0 80px; }
    .single-content { font-size: 18px; }
}
