/* ═══════════════════════════════════════════
   PLANISFÉRIO — GHOST THEME
   screen.css
   ═══════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --ink: #0D0D0D;
  --paper: #F5F0E8;
  --cream: #EDE6D6;
  --red: #C8372D;
  --red-dark: #8B1E17;
  --gold: #B8922A;
  --muted: #6B6257;
  --border: rgba(13,13,13,0.12);
  --border-strong: rgba(13,13,13,0.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --nav-h: 64px;
  --max-w: 1200px;
  --content-w: 740px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── TIPOGRAFIA GLOBAL ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
p { max-width: 68ch; }

/* ── UTILITÁRIOS ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 1rem;
}
.eyebrow--light { color: rgba(245,240,232,0.7); }

.label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; display: inline-block;
  text-decoration: none;
}
.label--red { background: var(--red); color: white; }
.label--outline { border: 1px solid var(--border-strong); color: var(--muted); }
.label--muted { color: var(--muted); }

.btn {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 0.75rem 1.75rem; display: inline-block;
  transition: all 0.2s ease; border: none;
}
.btn--primary { background: var(--red); color: white; }
.btn--primary:hover { background: var(--red-dark); }
.btn--white { background: white; color: var(--red); }
.btn--white:hover { opacity: 0.9; }
.btn--nav { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; padding: 0.4rem 1.1rem; }
.btn--nav:hover { background: var(--ink); color: var(--paper); }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.section-header__title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; }
.section-header__num { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }

/* ── NAVEGAÇÃO ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.site-nav__inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 2rem; height: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.site-nav__logo {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 900;
  text-decoration: none; color: var(--ink); letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-dot { color: var(--red); }
.logo-dot--gold { color: var(--gold); }
.site-nav__links { display: flex; gap: 0; margin-left: 1rem; flex: 1; }
.nav-link {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.05em;
  text-decoration: none; color: var(--muted);
  padding: 0 1rem; height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link--active { color: var(--ink); border-bottom-color: var(--red); }
.site-nav__actions { margin-left: auto; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: all 0.3s; }

.mobile-menu {
  background: var(--paper); border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0;
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu a {
  text-decoration: none; font-size: 1.1rem; font-weight: 400;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 1rem; text-align: center; }
.mobile-menu[hidden] { display: none; }

/* ── HERO BAR ── */
.hero-bar {
  background: var(--ink); padding: 5rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(245,240,232,0.04) 79px, rgba(245,240,232,0.04) 80px);
  pointer-events: none;
}
.hero-bar__inner {
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-bar .eyebrow { color: var(--red); margin-bottom: 1.25rem; }
.hero-bar__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em; color: var(--paper);
  margin-bottom: 1.5rem; max-width: 16ch;
}
.hero-bar__title em { font-style: italic; color: var(--red); }
.hero-bar__sub {
  font-size: 1rem; color: rgba(245,240,232,0.6);
  max-width: 50ch; line-height: 1.7;
}

/* ── TICKER ── */
.ticker {
  background: var(--red); padding: 0.55rem 0;
  overflow: hidden; white-space: nowrap;
}
.ticker__inner {
  display: inline-flex; gap: 2rem;
  animation: ticker-scroll 25s linear infinite;
  will-change: transform;
}
.ticker__item {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: white;
}
.ticker__dot {
  display: inline-block; width: 4px; height: 4px;
  border-radius: 50%; background: rgba(255,255,255,0.5);
  align-self: center;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── FEATURED POST ── */
.featured-post {
  max-width: var(--max-w); margin: 3rem auto;
  padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  border-bottom: 1px solid var(--border); padding-bottom: 3rem;
}
.featured-post__meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.featured-post__link { text-decoration: none; }
.featured-post__title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--ink); margin-bottom: 1rem;
  transition: color 0.2s;
}
.featured-post__link:hover .featured-post__title { color: var(--red); }
.featured-post__excerpt { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.featured-post__image img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
}

/* ── SECÇÕES DE RUBRICA ── */
.rubrics-feed { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.rubric-section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.rubric-section--alt { background: var(--cream); margin: 0 -2rem; padding: 3rem 2rem; }
.rubric-section__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2rem;
}
.rubric-label {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  letter-spacing: -0.02em; display: block; margin-bottom: 0.25rem;
}
.rubric-desc { font-size: 0.85rem; color: var(--muted); }
.rubric-all {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  white-space: nowrap; margin-top: 0.4rem;
  transition: color 0.2s;
}
.rubric-all:hover { color: var(--red); }

/* ── POST GRIDS ── */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.post-grid--4col { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.post-grid--list { display: flex; flex-direction: column; gap: 0; }

/* ── POST CARD ── */
.post-card { display: flex; flex-direction: column; }
.post-card__image-link { display: block; overflow: hidden; aspect-ratio: 16/10; }
.post-card__image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__image { transform: scale(1.03); }
.post-card__content { flex: 1; padding-top: 1rem; }
.post-card__meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.post-card__title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.5rem;
}
.post-card__title a { text-decoration: none; transition: color 0.2s; }
.post-card__title a:hover { color: var(--red); }
.post-card__excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
.post-card__byline { font-size: 0.75rem; color: var(--muted); display: flex; gap: 0.4rem; align-items: center; }

/* ── POST CARD LIST ── */
.post-card-list {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.post-card-list:first-child { border-top: 1px solid var(--border); }
.post-card-list__content { flex: 1; }
.post-card-list__meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.4rem; font-size: 0.72rem; color: var(--muted); }
.post-card-list__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.4rem;
}
.post-card-list__title a { text-decoration: none; transition: color 0.2s; }
.post-card-list__title a:hover { color: var(--red); }
.post-card-list__excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.5rem; }
.post-card-list__byline { font-size: 0.72rem; color: var(--muted); display: flex; gap: 0.4rem; }
.post-card-list__image-link { display: block; flex-shrink: 0; width: 120px; }
.post-card-list__image { width: 120px; height: 80px; object-fit: cover; }

.byline__sep { opacity: 0.4; }
.byline__name { font-weight: 500; }

/* ── ALL POSTS ── */
.all-posts {
  max-width: var(--max-w); margin: 3rem auto;
  padding: 0 2rem;
}

/* ── PAGINAÇÃO ── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.pagination a { text-decoration: none; padding: 0.4rem 1rem; border: 1px solid var(--border-strong); transition: all 0.2s; }
.pagination a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── NEWSLETTER BLOCK ── */
.newsletter-block {
  background: var(--red); padding: 5rem 2rem;
  margin-top: 4rem;
}
.newsletter-block__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.newsletter-block__title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900; letter-spacing: -0.03em; color: white;
  margin-bottom: 1rem; line-height: 1.1;
}
.newsletter-block__sub { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: none; }

.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-form input {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: white; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.8rem 1.1rem; outline: none; width: 100%;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: white; }
.newsletter-form button { width: 100%; border: none; }
.newsletter-form__note { font-size: 0.7rem; color: rgba(255,255,255,0.45); }
.newsletter-already p { color: rgba(255,255,255,0.85); margin-bottom: 1rem; max-width: none; }

/* ── TAG HEADER ── */
.tag-header {
  background: var(--ink); padding: 4rem 2rem 3rem;
}
.tag-header__inner { max-width: var(--max-w); margin: 0 auto; }
.tag-header__title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; letter-spacing: -0.03em; color: var(--paper);
  margin-bottom: 0.75rem;
}
.tag-header__desc { font-size: 1rem; color: rgba(245,240,232,0.6); margin-bottom: 1rem; max-width: none; }
.tag-header__count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; color: rgba(245,240,232,0.35); text-transform: uppercase; }

.tag-posts { max-width: var(--max-w); margin: 3rem auto; padding: 0 2rem; }

/* ── AUTHOR HEADER ── */
.author-header { background: var(--cream); padding: 4rem 2rem; }
.author-header__inner { max-width: var(--max-w); margin: 0 auto; display: flex; gap: 2rem; align-items: center; }
.author-header__avatar, .author-card__avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.author-header__avatar--initials, .author-card__avatar--initials, .byline__avatar--initials {
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: white;
}
.author-header__name {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 900;
  letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.author-header__bio { font-size: 0.95rem; color: var(--muted); max-width: 55ch; }
.author-header__location { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; display: block; }

/* ── POST FULL ── */
.post-full { max-width: 100%; }

.post-header {
  background: var(--ink); padding: 4rem 2rem 3rem;
}
.post-header--page { background: var(--cream); }
.post-header--page .post-header__title { color: var(--ink); }
.post-header__inner { max-width: var(--content-w); margin: 0 auto; }
.post-header__meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; }
.post-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--paper); margin-bottom: 1rem;
}
.post-header__excerpt {
  font-size: 1.1rem; color: rgba(245,240,232,0.65);
  line-height: 1.65; margin-bottom: 1.5rem; max-width: none;
}
.post-header__byline {
  display: flex; gap: 1rem; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid rgba(245,240,232,0.15);
}
.byline__avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.byline__info { display: flex; flex-direction: column; gap: 0.1rem; }
.byline__info .byline__name { font-size: 0.85rem; font-weight: 500; color: var(--paper); text-decoration: none; }
.byline__info .byline__date { font-size: 0.75rem; color: rgba(245,240,232,0.45); }

.post-full__image {
  max-height: 520px; overflow: hidden;
}
.post-full__image img {
  width: 100%; max-height: 520px; object-fit: cover;
}
.post-full__image figcaption {
  text-align: center; font-size: 0.78rem; color: var(--muted);
  padding: 0.5rem 2rem; background: var(--cream);
}

/* ── CONTEÚDO DO ARTIGO ── */
.post-full__content {
  max-width: var(--content-w); margin: 3.5rem auto;
  padding: 0 2rem;
  font-size: 1.05rem; line-height: 1.8;
}
.post-full__content p { margin-bottom: 1.5rem; max-width: none; }
.post-full__content h2 {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  margin: 2.5rem 0 1rem; letter-spacing: -0.02em;
}
.post-full__content h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  margin: 2rem 0 0.75rem; letter-spacing: -0.01em;
}
.post-full__content blockquote {
  border-left: 3px solid var(--red); margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.post-full__content blockquote p {
  font-family: var(--font-display); font-size: 1.25rem;
  font-style: italic; color: var(--ink); margin-bottom: 0;
}
.post-full__content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-full__content ul, .post-full__content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-full__content li { margin-bottom: 0.4rem; }
.post-full__content figure { margin: 2rem 0; }
.post-full__content figure img { width: 100%; }
.post-full__content figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }
.post-full__content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.post-full__content code {
  background: var(--cream); padding: 0.1em 0.4em;
  font-family: var(--font-mono); font-size: 0.85em;
}
.post-full__content pre { background: var(--ink); padding: 1.5rem; overflow-x: auto; margin-bottom: 1.5rem; }
.post-full__content pre code { background: none; color: var(--paper); }

/* ── FOOTER DO ARTIGO ── */
.post-full__footer {
  max-width: var(--content-w); margin: 2rem auto 3rem;
  padding: 1.5rem 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.post-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--border-strong); padding: 0.2rem 0.6rem;
  transition: all 0.2s;
}
.post-tag:hover { border-color: var(--red); color: var(--red); }
.post-share { display: flex; gap: 0.75rem; align-items: center; }
.post-share__label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.share-btn { font-size: 0.78rem; text-decoration: none; color: var(--muted); border: 1px solid var(--border-strong); padding: 0.3rem 0.75rem; transition: all 0.2s; }
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── AUTHOR CARD ── */
.author-card {
  max-width: var(--content-w); margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  background: var(--cream);
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.author-card__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card__label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.author-card__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; text-decoration: none; display: block; margin-bottom: 0.4rem; }
.author-card__bio { font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: none; }

/* ── RELATED POSTS ── */
.related-posts {
  max-width: var(--max-w); margin: 0 auto 3rem; padding: 0 2rem;
  border-top: 1px solid var(--border); padding-top: 2.5rem;
}
.related-posts__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ── TAG/AUTHOR PAGES ── */
.tag-header__inner .eyebrow { margin-bottom: 0.5rem; }

/* ── ERROR PAGE ── */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 4rem 2rem; }
.error-page__inner { text-align: center; max-width: 480px; }
.error-page__inner .eyebrow { display: block; text-align: center; }
.error-page__title { font-family: var(--font-display); font-size: 3rem; font-weight: 900; margin: 0.5rem 0 1rem; }
.error-page__message { color: var(--muted); margin-bottom: 2rem; max-width: none; }

/* ── PAGE FULL ── */
.page-full { max-width: 100%; }
.post-header--page { background: var(--cream); }
.post-header--page .post-header__title { color: var(--ink); }
.post-header--page .post-header__excerpt { color: var(--muted); }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: rgba(245,240,232,0.5); padding: 4rem 2rem 2rem; }
.site-footer__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(245,240,232,0.1);
}
.site-footer__logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  color: var(--paper); text-decoration: none; display: block; margin-bottom: 0.75rem;
}
.site-footer__tagline { font-size: 0.85rem; line-height: 1.6; max-width: none; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,240,232,0.35); margin-bottom: 0.25rem; }
.footer-nav-col a { font-size: 0.85rem; text-decoration: none; color: rgba(245,240,232,0.55); transition: color 0.2s; }
.footer-nav-col a:hover { color: var(--paper); }
.site-footer__bottom {
  max-width: var(--max-w); margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem;
}
.site-footer__bottom a { color: rgba(245,240,232,0.35); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--paper); }

/* ── ANIMAÇÕES ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-bar__inner > * { animation: fade-up 0.6s ease both; }
.hero-bar__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-bar__inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-bar__inner > *:nth-child(3) { animation-delay: 0.25s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .site-nav__links, .site-nav__actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-nav__inner { gap: 0; }
  .site-nav__logo { font-size: 1.05rem; }

  .featured-post { grid-template-columns: 1fr; }
  .featured-post__image { order: -1; }
  .post-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .post-grid--4col { grid-template-columns: 1fr 1fr; }
  .rubric-section__header { flex-direction: column; gap: 0.5rem; }

  .newsletter-block__inner { grid-template-columns: 1fr; gap: 2rem; }

  .author-header__inner { flex-direction: column; }
  .site-footer__nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .post-grid, .post-grid--4col { grid-template-columns: 1fr; }
  .post-card-list { flex-direction: column; }
  .post-card-list__image-link { width: 100%; }
  .post-card-list__image { width: 100%; height: 160px; }
  .post-full__footer { flex-direction: column; }
  .site-footer__nav { grid-template-columns: 1fr; }
}

/* =============================================
   Ghost Koenig Editor — required width classes
   ============================================= */

.kg-width-wide {
  grid-column: wide-start / wide-end;
  width: 85vw;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  grid-column: full-start / full-end;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  height: auto;
}

/* =============================================
   RUBRICAS — páginas de tag personalizadas
   ============================================= */

/* Grid de 3 colunas */
.post-grid--3col { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Hero de rubrica */
.rubrica-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.rubrica-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,55,45,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.rubrica-hero--jovens-ideias::after {
  content: 'JI';
  position: absolute; right: 3rem; bottom: -1rem;
  font-family: var(--font-display); font-size: 12rem; font-weight: 900;
  color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none;
}
.rubrica-hero--latitudes::after {
  content: 'LAT';
  position: absolute; right: 2rem; bottom: -1rem;
  font-family: var(--font-display); font-size: 10rem; font-weight: 900;
  color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none;
}
.rubrica-hero--plano-e-esferico::after {
  content: 'P&E';
  position: absolute; right: 2rem; bottom: -1rem;
  font-family: var(--font-display); font-size: 9rem; font-weight: 900;
  color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none;
}
.rubrica-hero__inner {
  max-width: var(--max-w); margin: 0 auto; position: relative;
}
.rubrica-hero__title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: var(--paper); line-height: 1; margin-bottom: 1rem;
}
.rubrica-hero__desc {
  font-size: 1.1rem; color: rgba(245,240,232,0.65);
  max-width: 55ch; line-height: 1.7; margin-bottom: 1.25rem;
}
.rubrica-hero__count {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,232,0.3);
}

/* Tabs de navegação entre rubricas */
.rubrica-tabs {
  background: var(--ink);
  border-top: 1px solid rgba(245,240,232,0.1);
  position: sticky; top: var(--nav-h); z-index: 90;
}
.rubrica-tabs__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; overflow-x: auto;
  scrollbar-width: none;
}
.rubrica-tabs__inner::-webkit-scrollbar { display: none; }
.rubrica-tab {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 1rem 2rem; text-decoration: none;
  border-bottom: 3px solid transparent;
  color: rgba(245,240,232,0.45);
  transition: all 0.2s ease;
  white-space: nowrap; flex-shrink: 0;
}
.rubrica-tab:hover { color: var(--paper); background: rgba(255,255,255,0.04); }
.rubrica-tab--active {
  color: var(--paper);
  border-bottom-color: var(--red);
}
.rubrica-tab__label {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
}
.rubrica-tab__desc {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,240,232,0.3);
}
.rubrica-tab--active .rubrica-tab__desc { color: rgba(245,240,232,0.5); }

/* Artigo em destaque dentro de rubrica */
.rubrica-featured {
  background: var(--cream);
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
}
.rubrica-featured__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.rubrica-featured__image-link {
  display: block; overflow: hidden; aspect-ratio: 16/10;
}
.rubrica-featured__image-link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.rubrica-featured__image-link:hover img { transform: scale(1.03); }
.rubrica-featured__meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.rubrica-featured__title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 1rem;
}
.rubrica-featured__title a { text-decoration: none; transition: color 0.2s; }
.rubrica-featured__title a:hover { color: var(--red); }
.rubrica-featured__excerpt { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.rubrica-featured__byline { font-size: 0.78rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: center; }

/* Grid de artigos da rubrica */
.rubrica-posts { padding: 3.5rem 2rem 5rem; }
.rubrica-posts__inner { max-width: var(--max-w); margin: 0 auto; }
.rubrica-posts__header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.rubrica-posts__title {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; letter-spacing: -0.02em;
}

/* Responsivo */
@media (max-width: 900px) {
  .post-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .rubrica-featured__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .rubrica-tab { padding: 0.75rem 1.25rem; }
}
@media (max-width: 600px) {
  .post-grid--3col { grid-template-columns: 1fr; }
  .rubrica-hero { padding: 3.5rem 1.25rem 2.5rem; }
  .rubrica-hero__title { font-size: 2.8rem; }
  .rubrica-featured { padding: 2rem 1.25rem; }
  .rubrica-posts { padding: 2rem 1.25rem 3rem; }
}

/* Nav divider between rubricas and other links */
.nav-divider {
  display: block; width: 1px; height: 16px;
  background: var(--border-strong); align-self: center; margin: 0 0.25rem;
}
.mobile-menu__section-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: block;
  padding: 1rem 1.5rem 0.25rem; pointer-events: none;
}

/* Bloco de introdução da rubrica */
.rubrica-intro {
  margin: 1.75rem 0 1.5rem;
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--red);
  max-width: 68ch;
  position: relative;
}
.rubrica-intro::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(245,240,232,0.08);
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  pointer-events: none;
}
.rubrica-intro__text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(245,240,232,0.9);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: none;
  position: relative;
}
.rubrica-intro__extended {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  color: rgba(245,240,232,0.55);
  line-height: 1.7;
  margin-top: 0.85rem;
  margin-bottom: 0;
  max-width: none;
  position: relative;
}

@media (max-width: 600px) {
  .rubrica-intro { padding: 1.25rem 1.25rem 1.25rem 1.5rem; margin: 1.25rem 0 1rem; }
  .rubrica-intro__text { font-size: 1rem; }
}
