/*
Theme Name: Jornaleiro 2.0
Theme URI: https://edsonquinezi.com.br/
Author: Edson Quinezi
Description: Tema editorial clássico contemporâneo para O Jornaleiro.
Version: 2.0.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: jornaleiro-2
*/

:root {
  --paper: #f7f5f0;
  --white: #fffefa;
  --ink: #20272d;
  --muted: #687078;
  --navy: #0b2b45;
  --burgundy: #7a3036;
  --line: #d7d5cf;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--burgundy); text-decoration-thickness: .07em; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--navy); }
.j2-shell { width: min(calc(100% - 2rem), var(--max)); 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; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; margin: 0; color: #fff; background: var(--navy); clip: auto; white-space: normal; }

/* Masthead */
.site-header { background: var(--white); }
.masthead-utility { padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.masthead-utility__inner { display: flex; justify-content: space-between; gap: 1rem; }
.masthead { padding: 1.3rem 0 1.15rem; text-align: center; }
.masthead__eyebrow { margin: 0 0 .25rem; color: var(--burgundy); font: 700 .72rem/1.2 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.masthead__title { display: inline-block; color: var(--navy); font: 700 clamp(2.5rem, 7vw, 5.4rem)/.88 Georgia, "Times New Roman", serif; letter-spacing: -.07em; text-decoration: none; }
.masthead__title::first-letter { color: var(--burgundy); }
.masthead__subtitle { margin: .65rem 0 0; color: var(--muted); font: .8rem/1.3 Georgia, serif; letter-spacing: .04em; }
.site-nav { border-top: 3px solid var(--navy); border-bottom: 1px solid var(--line); background: var(--white); }
.site-nav__inner { display: flex; align-items: center; justify-content: center; }
.site-nav__toggle { display: none; padding: .65rem 0; border: 0; color: var(--navy); background: transparent; font: 700 .82rem/1 system-ui, sans-serif; cursor: pointer; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .8rem 0 .72rem; color: var(--ink); font: 700 .76rem/1.2 system-ui, sans-serif; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus { color: var(--burgundy); }

/* Editorial layout */
.site-main { padding: 2.7rem 0 4rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.editorial-feed { min-width: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: .65rem; border-bottom: 3px solid var(--navy); }
.section-heading h1, .section-heading h2 { margin: 0; color: var(--navy); font: 700 1.2rem/1.2 Georgia, "Times New Roman", serif; }
.section-heading span { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.entry { padding: 0 0 2rem; margin: 0 0 2rem; border-bottom: 1px solid var(--line); }
.entry:last-of-type { margin-bottom: 0; }
.entry__meta { margin-bottom: .45rem; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.entry__title { margin: 0 0 .65rem; color: var(--navy); font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.entry__title a { color: inherit; text-decoration: none; }
.entry__title a:hover { color: var(--burgundy); }
.entry__dek, .entry__content { max-width: 720px; color: #3d454b; font: 1rem/1.75 Georgia, "Times New Roman", serif; }
.entry__dek p { margin: 0; }
.entry__content > :first-child { margin-top: 0; }
.entry__content h2, .entry__content h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.entry__content blockquote { margin: 1.5rem 0; padding: .6rem 1.2rem; border-left: 3px solid var(--burgundy); color: var(--navy); font-size: 1.1em; }
.entry__content img { display: block; margin: 1.2rem auto; }
.entry__footer { margin-top: .8rem; font-size: .78rem; font-weight: 700; }
.entry__footer a { text-decoration: none; }
.entry__thumbnail { display: block; margin: 1rem 0 1.2rem; }
.entry__thumbnail img { display: block; width: 100%; }
.entry__badge { display: none; }
.page-header { margin-bottom: 2rem; padding-bottom: .8rem; border-bottom: 3px solid var(--navy); }
.page-header h1 { margin: 0; color: var(--navy); font: 700 clamp(1.8rem, 4vw, 2.8rem)/1.05 Georgia, "Times New Roman", serif; }
.page-header p { margin: .5rem 0 0; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 700; }
.pagination a { text-decoration: none; }

/* Author and latest articles */
.sidebar { min-width: 0; }
.sidebar__block { padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.sidebar__heading { margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--navy); color: var(--navy); font: 700 1rem/1.2 Georgia, "Times New Roman", serif; }
.author-card__image { display: block; width: 100%; margin-bottom: .9rem; }
.author-card__name { margin: 0 0 .35rem; color: var(--navy); font: 700 1.35rem/1.1 Georgia, "Times New Roman", serif; }
.author-card__text { color: #4c555b; font: .9rem/1.6 Georgia, "Times New Roman", serif; }
.latest-list { margin: 0; padding: 0; list-style: none; }
.latest-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 0; }
.latest-list a { color: var(--ink); font: 700 .92rem/1.35 Georgia, "Times New Roman", serif; text-decoration: none; }
.latest-list a:hover { color: var(--burgundy); }
.latest-list__date { display: block; margin-top: .2rem; color: var(--muted); font-size: .68rem; }

/* Footer and comments */
.site-footer { padding: 2.4rem 0; border-top: 5px solid var(--burgundy); color: #e7edf1; background: var(--navy); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 220px; gap: 2rem; align-items: center; }
.site-footer__grid a { color: #f0c5b4; }
.site-footer__logo { text-align: right; }
.site-footer__logo img { max-height: 70px; width: auto; }
.comments-area { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.comments-area h2 { color: var(--navy); font: 700 1.3rem/1.2 Georgia, serif; }
.comment-list { padding-left: 1.2rem; }
.comment-form label { display: block; margin-bottom: .25rem; font-size: .8rem; font-weight: 700; }
.comment-form input, .comment-form textarea, .search-form input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #fff; font: inherit; }
.comment-form .form-submit input, .search-form .search-submit { width: auto; padding: .6rem 1rem; border: 0; color: #fff; background: var(--navy); font-size: .8rem; font-weight: 700; cursor: pointer; }
.comment-form .form-submit input:hover, .search-form .search-submit:hover { background: var(--burgundy); }
.error-404 { max-width: 700px; margin: auto; text-align: center; }

@media (max-width: 760px) {
  .masthead-utility__inner { display: block; text-align: center; }
  .masthead-utility__inner span + span { display: none; }
  .masthead { padding: 1rem 0 .9rem; }
  .masthead__title { font-size: 3rem; }
  .site-nav__inner { display: block; }
  .site-nav__toggle { display: block; }
  .site-nav ul { display: none; padding-bottom: .4rem; }
  .site-nav.is-open ul { display: block; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { padding: .7rem 0; }
  .site-main { padding-top: 1.8rem; }
  .content-grid, .site-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__logo { text-align: left; }
}
