/* Pauta — business-digest | cool-gray palette */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-elevated: #fafbfc;
  --text: #1c1f26;
  --text-muted: #5a6170;
  --text-light: #8b919e;
  --border: #dde1e8;
  --border-strong: #c4cad4;
  --accent: #3b5f8a;
  --accent-hover: #2d4a6e;
  --accent-soft: #e8eef5;
  --tag-negocios: #3b5f8a;
  --tag-mercado: #4a7c59;
  --tag-trabalho: #6b5b7a;
  --shadow-sm: 0 1px 3px rgba(28, 31, 38, 0.06);
  --shadow-md: 0 4px 14px rgba(28, 31, 38, 0.08);
  --shadow-lg: 0 8px 24px rgba(28, 31, 38, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --container: 960px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.9375rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.125rem;
  --line-tight: 1.25;
  --line-normal: 1.55;
  --line-relaxed: 1.7;
  --transition: 0.2s ease;
  --aspect-editorial: 3 / 2;
}

[data-theme="dark"] {
  --bg: #14161a;
  --surface: #1e2128;
  --surface-elevated: #262a33;
  --text: #e8eaed;
  --text-muted: #9aa0ad;
  --text-light: #6b7280;
  --border: #333842;
  --border-strong: #454b58;
  --accent: #6b9fd4;
  --accent-hover: #8bb8e0;
  --accent-soft: #1e2d3d;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

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

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

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

/* Compact topbar header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  min-height: 52px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: var(--font-size-lg);
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.theme-toggle,
.menu-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.menu-toggle { display: none; }

/* Horizontal pill navigation */
.main-nav {
  border-top: 1px solid var(--border);
  padding: var(--space-xs) 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-list a.active {
  background: var(--accent);
  color: #fff;
}

.nav-list a.active:hover { color: #fff; }

/* Main layout */
main { padding: var(--space-md) 0 var(--space-xl); }

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

.col-main { grid-column: span 8; }
.col-sidebar { grid-column: span 4; }

@media (max-width: 768px) {
  .col-main, .col-sidebar { grid-column: span 12; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open .nav-list { flex-direction: column; }
}

/* Tags — pill colored */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.tag:hover { opacity: 0.9; color: #fff; }
.tag-negocios { background: var(--tag-negocios); }
.tag-mercado { background: var(--tag-mercado); }
.tag-trabalho { background: var(--tag-trabalho); }

.meta {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.meta time { font-variant-numeric: tabular-nums; }

/* Cards — shadowed */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

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

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

/* 3:2 editorial images */
.img-editorial {
  aspect-ratio: var(--aspect-editorial);
  object-fit: cover;
  width: 100%;
  background: var(--border);
}

/* Hero — split image text */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-split .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: var(--aspect-editorial);
}

.hero-split .hero-content {
  padding: var(--space-md);
}

.hero-split .hero-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.hero-split .hero-title a {
  color: var(--text);
  text-decoration: none;
}

.hero-split .hero-title a:hover { color: var(--accent); }

.hero-split .hero-excerpt {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: var(--line-relaxed);
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-image { order: -1; }
}

/* Magazine columns — article list */
.magazine-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .magazine-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .magazine-columns { grid-template-columns: 1fr; }
}

/* Mixed magazine homepage sections */
.digest-intro {
  margin: var(--space-lg) 0;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.digest-intro .section-title {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--space-sm);
}

.digest-intro p {
  color: var(--text-muted);
  line-height: var(--line-relaxed);
  margin: 0 0 var(--space-sm);
}

.digest-intro p:last-child { margin-bottom: 0; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-size: var(--font-size-xl);
  margin: 0;
}

.section-header a {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.editorial-picks {
  margin-top: var(--space-lg);
}

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

.pick-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

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

.pick-list a {
  color: var(--text);
  font-weight: 600;
  font-size: var(--font-size-base);
}

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

.pick-list .meta { margin-top: 4px; margin-bottom: 0; }

/* Sidebar */
.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}

.sidebar-widget h3 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* Author bio box */
.author-bio-box {
  text-align: center;
}

.author-bio-box .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto var(--space-xs);
  object-fit: cover;
}

.author-bio-box .author-name {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

.author-bio-box .author-role {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.author-bio-box p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-relaxed);
  margin: 0;
  text-align: left;
}

/* Article — wide magazine */
.article-header {
  margin-bottom: var(--space-md);
}

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

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

.article-featured-image {
  margin-bottom: var(--space-md);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-body {
  font-size: var(--font-size-base);
  line-height: var(--line-relaxed);
}

.article-body h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-lg);
}

.article-body blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.updated-note {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-style: italic;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

/* Related articles — list style */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

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

.related-list a {
  color: var(--text);
  font-weight: 600;
}

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

.related-list .meta {
  margin-top: 4px;
  margin-bottom: 0;
}

/* Buttons — filled accent */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Page content */
.page-header {
  margin-bottom: var(--space-md);
}

.page-header h1 { margin-bottom: var(--space-xs); }

.page-intro {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  max-width: 640px;
}

.prose {
  max-width: 720px;
  line-height: var(--line-relaxed);
}

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

/* Contact form */
.contact-form {
  max-width: 520px;
  margin-top: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-base);
  background: var(--surface);
  color: var(--text);
}

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.footer-links h4 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

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

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: var(--font-size-xs);
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs);
}

/* Cookie notice — bottom bar */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

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

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

.cookie-text a { font-weight: 600; }

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

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

/* Utility */
.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; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
