/* Abertura Brasil — editorial-red-accent, tabloid-quick */
:root {
  --primary: #D62828;
  --accent: #F77F00;
  --bg: #FFF8F0;
  --text: #003049;
  --muted: #FCBF49;
  --white: #ffffff;
  --border: rgba(0, 48, 73, 0.12);
  --shadow: 0 4px 16px rgba(0, 48, 73, 0.08);
  --radius-pill: 24px;
  --container: 720px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --line-tight: 1.25;
  --line-body: 1.55;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--accent);
}

ul, ol {
  padding-left: var(--space-5);
}

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

/* ── Compact topbar header ── */
.site-header {
  background: var(--text);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--space-3);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo span {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--white);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4) var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary);
  color: var(--white);
  transition: background 0.15s ease;
}

.nav-tag:hover {
  background: var(--accent);
  color: var(--white);
}

.nav-tag--accent {
  background: var(--accent);
}

.nav-tag--muted {
  background: rgba(252, 191, 73, 0.25);
  color: var(--muted);
}

/* Mobile nav */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

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

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

/* ── Main content ── */
main {
  flex: 1;
  padding: var(--space-4) 0 var(--space-5);
}

/* ── Hero: stacked headlines, no image ── */
.hero-headlines {
  margin-bottom: var(--space-5);
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: var(--line-tight);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(0, 48, 73, 0.75);
  margin-bottom: var(--space-4);
  line-height: var(--line-tight);
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-left: 3px solid var(--primary);
  padding-left: var(--space-3);
}

.hero-stack a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--text);
}

.hero-stack a:hover {
  color: var(--primary);
}

.hero-date {
  font-size: 0.8rem;
  color: rgba(0, 48, 73, 0.5);
  margin-top: var(--space-3);
}

/* ── Bento grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 540px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid .card--featured {
    grid-column: 1 / -1;
  }
}

/* ── Cards: image-overlay, pill radius ── */
.card {
  position: relative;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card--overlay {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}

.card--overlay .card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--overlay .card-body {
  position: relative;
  z-index: 2;
  padding: var(--space-4);
  background: linear-gradient(transparent, rgba(0, 48, 73, 0.85));
  width: 100%;
  color: var(--white);
}

.card--overlay .card-tag {
  background: var(--primary);
  color: var(--white);
}

.card--overlay .card-title {
  color: var(--white);
}

.card--overlay .card-title a {
  color: var(--white);
}

.card--overlay .card-title a:hover {
  color: var(--muted);
}

.card-body {
  padding: var(--space-3);
}

.card-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--muted);
  color: var(--text);
  margin-bottom: var(--space-2);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: var(--line-tight);
  margin-bottom: var(--space-1);
}

.card-title a {
  color: var(--text);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.85rem;
  color: rgba(0, 48, 73, 0.65);
  line-height: var(--line-tight);
}

.card-meta {
  font-size: 0.75rem;
  color: rgba(0, 48, 73, 0.45);
  margin-top: var(--space-2);
}

/* Square thumb */
.card-thumb-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Compact dense article list ── */
.article-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.article-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list .list-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 28px;
  line-height: 1;
}

.article-list .list-content {
  flex: 1;
  min-width: 0;
}

.article-list .list-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: var(--line-tight);
}

.article-list .list-title a {
  color: var(--text);
}

.article-list .list-title a:hover {
  color: var(--primary);
}

.article-list .list-meta {
  font-size: 0.7rem;
  color: rgba(0, 48, 73, 0.45);
  margin-top: var(--space-1);
}

.article-list .list-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--space-3);
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Section headings ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--primary);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-head a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Prose / article body ── */
.prose {
  font-size: 0.95rem;
  line-height: var(--line-body);
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: var(--line-tight);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: var(--space-5) 0 var(--space-2);
  line-height: var(--line-tight);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-2);
}

.prose p {
  margin-bottom: var(--space-3);
}

.prose ul, .prose ol {
  margin-bottom: var(--space-3);
}

.prose li {
  margin-bottom: var(--space-1);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-2) var(--space-4);
  margin: var(--space-4) 0;
  font-style: italic;
  color: rgba(0, 48, 73, 0.8);
  background: rgba(252, 191, 73, 0.15);
  border-radius: 0 var(--space-3) var(--space-3) 0;
}

.prose .lead {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: var(--line-tight);
  color: rgba(0, 48, 73, 0.85);
  margin-bottom: var(--space-4);
}

/* ── Article page: image-heavy ── */
.article-header {
  margin-bottom: var(--space-4);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: rgba(0, 48, 73, 0.55);
  margin-bottom: var(--space-3);
}

.article-meta .tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary);
  color: var(--white);
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* Inline article images */
.article-inline-img {
  width: 100%;
  border-radius: var(--radius-pill);
  margin: var(--space-4) 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ── Page header (inner pages) ── */
.page-header {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: var(--line-tight);
}

.page-header p {
  font-size: 0.9rem;
  color: rgba(0, 48, 73, 0.6);
  margin-top: var(--space-2);
}

/* ── Contact form ── */
.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

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

/* ── Buttons: filled-accent ── */
.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

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

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

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

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

/* ── Info blocks ── */
.info-box {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  box-shadow: var(--shadow);
}

.info-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--primary);
}

/* ── Footer: minimal-single ── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4);
  text-align: center;
  font-size: 0.75rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--muted);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2);
  list-style: none;
  padding: 0;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
}

/* ── Cookie corner popup ── */
.cookie-popup {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: var(--space-4);
  box-shadow: 0 8px 32px rgba(0, 48, 73, 0.18);
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-popup p {
  font-size: 0.8rem;
  line-height: var(--line-tight);
  margin-bottom: var(--space-3);
  color: rgba(0, 48, 73, 0.75);
}

.cookie-popup .cookie-actions {
  display: flex;
  gap: var(--space-2);
}

.cookie-popup .btn {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  padding: var(--space-2) var(--space-3);
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

/* ── Hero SVG decorative ── */
.hero-deco {
  margin: var(--space-4) 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
