/* Rastreio Claro — editorial-red-accent, compact-news */

:root {
  --red: #c62828;
  --red-dark: #8e0000;
  --red-soft: #fce8e8;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --ink-faint: #8a8a8a;
  --paper: #faf9f7;
  --paper-alt: #f0eeeb;
  --line: #e2ded8;
  --white: #ffffff;
  --container: 720px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-head: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.6rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 var(--space-md); }

ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* —— Topbar —— */
.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  padding: var(--space-xs) 0;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo:hover { color: var(--red); }

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding-bottom: var(--space-sm);
  border-top: 1px solid var(--line);
  padding-top: var(--space-sm);
}

.cat-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red-dark);
  transition: background 0.15s, color 0.15s;
}

.cat-tag:hover,
.cat-tag.is-active {
  background: var(--red);
  color: var(--white);
}

/* —— Hero stacked headlines —— */
.hero-stack {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: var(--space-xs);
}

.hero-stack h1 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.hero-deck {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
  line-height: 1.45;
}

.hero-sub {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: var(--space-sm);
  border-top: 2px solid var(--red);
}

.hero-sub a { color: inherit; }
.hero-sub a:hover { color: var(--red); }

/* —— Feed & cards —— */
.feed-section {
  padding: var(--space-lg) 0;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--line);
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feed-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feed-item:hover {
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.08);
}

.feed-thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-alt);
}

.feed-body { min-width: 0; }

.feed-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.feed-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--space-xs);
}

.feed-title a { color: var(--ink); }
.feed-title a:hover { color: var(--red); }

.feed-excerpt {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin: 0 0 var(--space-xs);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-meta {
  font-size: 0.7rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.feed-meta .author { color: var(--ink-muted); font-weight: 600; }

/* —— Article page —— */
.article-header {
  padding: var(--space-lg) 0 var(--space-md);
}

.article-header .feed-tag { margin-bottom: var(--space-sm); }

.article-header h1 {
  font-size: 1.9rem;
  margin-bottom: var(--space-sm);
}

.article-deck {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-meta-bar .author {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.8125rem;
}

.article-hero-img {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper-alt);
}

.article-hero-img img,
.article-hero-img svg {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  padding-bottom: var(--space-xl);
}

.article-body h2 {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 2px solid var(--red-soft);
}

.article-body p {
  font-size: 0.9375rem;
}

.article-body .pull-quote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.article-body figure {
  margin: var(--space-lg) 0;
}

.article-body figure img,
.article-body figure svg {
  width: 100%;
  border-radius: var(--radius-card);
}

.article-body figcaption {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: var(--space-xs);
  text-align: center;
}

.article-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line);
}

.article-nav a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* —— Static pages —— */
.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--line);
}

.page-header h1 { font-size: 1.65rem; }

.page-content {
  padding: var(--space-lg) 0 var(--space-xl);
}

.page-content h2 {
  font-size: 1.15rem;
  margin-top: var(--space-lg);
}

/* —— Contact form —— */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 480px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  color: var(--ink-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-accent {
  background: var(--red);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  font-size: 0.8125rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Cookie strip —— */
.cookie-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.cookie-strip.is-visible { transform: translateY(0); }

.cookie-strip p { margin: 0; max-width: 520px; line-height: 1.4; }

.cookie-strip a { color: var(--red-soft); text-decoration: underline; }

.cookie-strip .btn {
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  flex-shrink: 0;
}

body.cookie-active .topbar { margin-top: 0; }

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-muted { color: var(--ink-muted); }

@media (max-width: 540px) {
  .nav-toggle { display: block; }

  .category-nav {
    display: none;
    flex-direction: column;
    padding-bottom: var(--space-md);
  }

  .category-nav.is-open { display: flex; }

  .feed-item {
    grid-template-columns: 1fr;
  }

  .feed-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  h1 { font-size: 1.55rem; }
  .hero-stack h1 { font-size: 1.65rem; }
  .article-header h1 { font-size: 1.55rem; }
}
