/*
Theme Name: Instituto Newman
Theme URI: https://institutonewman.com.br/
Author: Instituto Newman
Description: Tema editorial para o blog do Instituto Newman de Educação Liberal.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: instituto-newman
*/

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --newman-mountain: #3f3250;
  --newman-navy: #222533;
  --newman-ruby: #f03589;
  --newman-cream: #fff6e7;
  --newman-paper: #fffdfa;
  --newman-ink: #1d202c;
  --newman-muted: #757887;
  --newman-line: rgba(34, 37, 51, .14);
  --newman-container: 1180px;
  --newman-serif: 'Abril Fatface', Georgia, serif;
  --newman-sans: 'Montserrat', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--newman-paper); color: var(--newman-ink); font-family: var(--newman-sans); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.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; }
.newman-container { width: min(var(--newman-container), calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,250,.96); border-bottom: 1px solid var(--newman-line); backdrop-filter: blur(14px); }
.header-row { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; min-width: 245px; }
.brand-mark { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.brand-copy { padding-left: 13px; line-height: 1.05; text-transform: uppercase; }
.brand-copy strong { display: block; max-width: 150px; font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .23em; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--newman-ruby); transition: right .22s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-toggle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--newman-line); border-radius: 50%; background: transparent; color: var(--newman-navy); cursor: pointer; }
.menu-toggle { display: none; }
.search-panel { display: none; padding: 18px 0 22px; border-top: 1px solid var(--newman-line); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-field { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--newman-line); background: white; }
.search-submit, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; background: var(--newman-ruby); color: white; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }

.hero { position: relative; min-height: 650px; display: grid; align-items: end; overflow: hidden; background: var(--newman-navy); color: white; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.74) contrast(1.05); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,23,29,.92) 0%, rgba(23,23,29,.68) 45%, rgba(23,23,29,.12) 82%), linear-gradient(0deg, rgba(23,23,29,.72), transparent 48%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 130px 0 90px; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; color: var(--newman-ruby); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 40px; height: 2px; background: currentColor; }
.hero h1, .page-title, .single-title { margin: 0; font-family: var(--newman-serif); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; }
.hero h1 { max-width: 680px; font-size: clamp(48px, 7.4vw, 94px); }
.hero-excerpt { max-width: 620px; margin: 24px 0 34px; color: rgba(255,255,255,.78); font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; color: white; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.section { padding: 96px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section-kicker { margin: 0 0 8px; color: var(--newman-ruby); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-title { margin: 0; font-family: var(--newman-serif); font-size: clamp(38px, 5vw, 62px); font-weight: 400; line-height: 1.05; color: var(--newman-mountain); }
.section-title .soft { color: #a7a8b1; }
.section-rule { width: 46px; height: 3px; margin-bottom: 18px; background: var(--newman-ruby); }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.post-card { display: flex; flex-direction: column; }
.post-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--newman-cream); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-content { padding-top: 22px; }
.post-category { color: var(--newman-ruby); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.post-card h2 { margin: 10px 0 12px; font-family: var(--newman-serif); font-size: 31px; font-weight: 400; line-height: 1.13; color: var(--newman-mountain); }
.post-card p { margin: 0 0 15px; color: var(--newman-muted); font-size: 14px; }
.post-meta { color: #9799a3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.manifesto { background: var(--newman-cream); }
.manifesto-grid { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 590px; }
.manifesto-art { position: relative; overflow: hidden; }
.manifesto-art img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(.75); }
.manifesto-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(40px, 7vw, 110px); }
.manifesto-copy blockquote { margin: 0 0 28px; font-family: var(--newman-serif); font-size: clamp(37px, 5vw, 62px); line-height: 1.08; color: var(--newman-mountain); }
.manifesto-copy p { max-width: 560px; margin: 0 0 30px; color: #62616a; }
.button.secondary { background: var(--newman-mountain); }

.topics { padding: 78px 0; background: var(--newman-mountain); color: white; }
.topics-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.topics-list li { border-right: 1px solid rgba(255,255,255,.16); }
.topics-list li:last-child { border-right: 0; }
.topics-list a { display: block; padding: 18px 26px; text-align: center; }
.topics-list span { display: block; margin-bottom: 9px; color: var(--newman-ruby); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.topics-list strong { font-family: var(--newman-serif); font-size: 26px; font-weight: 400; }

.archive-header { padding: 100px 0 54px; background: var(--newman-cream); }
.page-title { font-size: clamp(48px, 7vw, 82px); color: var(--newman-mountain); }
.archive-description { max-width: 680px; color: var(--newman-muted); }
.pagination { margin-top: 50px; }
.nav-links { display: flex; gap: 9px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--newman-line); font-size: 12px; }
.page-numbers.current { background: var(--newman-mountain); color: white; }

.single-hero { padding: 90px 0 52px; background: var(--newman-cream); }
.single-hero-inner { max-width: 920px; }
.single-title { margin-top: 12px; font-size: clamp(48px, 7vw, 86px); color: var(--newman-mountain); }
.single-meta { display: flex; gap: 18px; margin-top: 25px; color: var(--newman-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.single-image { width: min(1320px, calc(100% - 48px)); margin: 0 auto; aspect-ratio: 16/7; object-fit: cover; }
.single-body { width: min(760px, calc(100% - 48px)); margin: 65px auto 100px; font-size: 18px; }
.single-body > p:first-child::first-letter { float: left; margin: .08em .1em 0 0; font-family: var(--newman-serif); font-size: 4.6em; line-height: .74; color: var(--newman-ruby); }
.single-body h2, .single-body h3 { margin: 2em 0 .6em; font-family: var(--newman-serif); font-weight: 400; line-height: 1.15; color: var(--newman-mountain); }
.single-body h2 { font-size: 42px; }
.single-body blockquote { margin: 2.3em -70px; padding: 32px 45px; border-left: 3px solid var(--newman-ruby); background: var(--newman-cream); font-family: var(--newman-serif); font-size: 29px; line-height: 1.3; color: var(--newman-mountain); }

.site-footer { padding: 68px 0 30px; background: var(--newman-navy); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 60px; }
.footer-brand p { max-width: 430px; color: rgba(255,255,255,.6); font-size: 13px; }
.footer-heading { margin: 0 0 16px; color: var(--newman-ruby); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(255,255,255,.72); font-size: 13px; }
.footer-bottom { margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.empty-state { padding: 80px 0; }

@media (max-width: 920px) {
  .primary-nav { position: absolute; inset: 88px 0 auto; display: none; padding: 28px 24px; background: var(--newman-paper); border-bottom: 1px solid var(--newman-line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: grid; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-art { min-height: 430px; }
  .topics-list { grid-template-columns: repeat(2,1fr); }
  .topics-list li:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .newman-container, .single-image, .single-body { width: min(100% - 32px, var(--newman-container)); }
  .header-row { min-height: 76px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { font-size: 7px; }
  .primary-nav { top: 76px; }
  .hero { min-height: 600px; }
  .hero-content { padding: 120px 0 65px; }
  .hero h1 { font-size: 50px; }
  .section { padding: 70px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card h2 { font-size: 29px; }
  .manifesto-art { min-height: 330px; }
  .manifesto-copy { padding: 55px 28px; }
  .topics-list { grid-template-columns: 1fr; }
  .topics-list li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .single-hero { padding-top: 65px; }
  .single-body { font-size: 16px; }
  .single-body blockquote { margin-inline: 0; padding: 25px; font-size: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-brand { grid-column: auto; }
}
