/* Sumário BR — data-light-newsroom | cool-gray palette */
:root {
  --bg: #f8f9fa;
  --text: #212529;
  --text-muted: #495057;
  --text-light: #868e96;
  --accent: #339af0;
  --border: #dee2e6;
  --white: #ffffff;
  --container: 1140px;
  --radius: 14px;
  --radius-sm: 12px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --font-sans: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --header-height: 64px;
  --header-height-shrink: 52px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Typography — mono-accent-labels */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: var(--space-sm); }
h3 { font-size: 1.15rem; }

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

/* Header — compact-topbar, sticky-shrink-on-scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), padding var(--transition);
}

.site-header.is-shrunk {
  box-shadow: 0 2px 12px rgba(33, 37, 41, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height var(--transition);
}

.site-header.is-shrunk .header-inner {
  height: var(--header-height-shrink);
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: font-size var(--transition);
}

.site-header.is-shrunk .logo { font-size: 1.1rem; }

.main-nav { display: flex; align-items: center; gap: var(--space-md); }

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active { color: var(--accent); text-decoration: underline; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Buttons — outlined */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}

/* Tags — underline-text */
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Hero grid — bento-grid, carousel-single */
.hero-section { padding: var(--space-lg) 0; }

.hero-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.bento-carousel {
  grid-column: span 8;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bento-side {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  flex: 1;
}

.bento-bottom {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.carousel-slide { display: none; }
.carousel-slide.is-active { display: block; }

.carousel-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--bg);
}

.carousel-body { padding: var(--space-md) var(--space-lg); }

.carousel-controls {
  display: flex;
  gap: var(--space-xs);
  padding: 0 var(--space-lg) var(--space-md);
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active { background: var(--accent); border-color: var(--accent); }

/* Cards — editorial-lines */
.card-editorial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  border-left: 3px solid var(--accent);
}

.card-editorial h3 { margin-bottom: var(--space-xs); }
.card-editorial p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--space-sm); }

/* Article list — compact-dense-list */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

.article-list { list-style: none; padding: 0; margin: 0; }

.article-list-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

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

.article-list-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.article-list-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: 0.25rem;
}

.article-list-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.article-list-item h3 a {
  color: var(--text);
  text-decoration: none;
}

.article-list-item h3 a:hover { color: var(--accent); }

.article-list-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.article-list-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Image — 4:3-soft */
.img-4-3 {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  width: 100%;
}

/* Article page — pull-quote-led */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-xl);
}

.article-main { min-width: 0; }

.article-header { margin-bottom: var(--space-lg); }

.article-header .mono-label { margin-bottom: var(--space-xs); display: block; }

.article-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.pull-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: var(--space-sm);
  font-style: normal;
}

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

.article-body ul, .article-body ol {
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-md);
  color: var(--text-muted);
}

/* Sidebar — sticky-toc */
.article-sidebar { position: relative; }

.toc {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.toc h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
}

.toc a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Author — footer-author-note */
.author-note {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
}

.author-note-text { font-size: 0.9rem; color: var(--text-muted); }
.author-note-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* Page content */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.page-hero h1 { margin-bottom: var(--space-sm); }

.page-content {
  max-width: 720px;
  padding-bottom: var(--space-xl);
}

.page-content.wide { max-width: 100%; }

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

.prose h2 {
  margin-top: var(--space-lg);
  font-size: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  background: var(--white);
}

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

/* Footer — three-column */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0;
}

/* Cookie — bottom-bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--bg);
  padding: var(--space-md);
  z-index: 200;
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-bar a { color: var(--accent); }

.cookie-bar .btn {
  border-color: var(--bg);
  color: var(--bg);
  flex-shrink: 0;
}

.cookie-bar .btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--space-lg); }
.section { padding: var(--space-lg) 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-bento { grid-template-columns: 1fr; }
  .bento-carousel, .bento-side, .bento-bottom { grid-column: span 1; }
  .bento-bottom { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-list-item { grid-template-columns: 80px 1fr; }
  .article-list-date { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    gap: var(--space-sm);
  }
  .main-nav.is-open { display: flex; }
  .site-header { position: relative; }
  .site-header.is-sticky-mobile {
    position: sticky;
    top: 0;
    z-index: 100;
  }
}
