/* Sinal Compra — city-desk / compact-topbar / bento / line-art */
:root {
  --primary: #0F4C3A;
  --accent: #2DD4BF;
  --bg: #F0FDF9;
  --text: #042F2E;
  --muted: #3D6B5E;
  --container: 960px;
  --radius: 12px;
  --radius-lg: 20px;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-mono: "Consolas", "Monaco", monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); margin-bottom: var(--s4); }
h2 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); margin-bottom: var(--s3); }
p { margin-bottom: var(--s4); }
ul, ol { margin-bottom: var(--s4); padding-left: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { padding: var(--s2) 0 0; background: #fff; box-shadow: 0 1px 0 rgba(15,76,58,0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s3); }
.logo { display: flex; align-items: center; gap: var(--s3); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--primary); text-transform: uppercase; font-size: 0.8rem; }
.logo-mark { width: 32px; height: 32px; border-radius: 6px; }
.site-nav ul { display: flex; list-style: none; gap: var(--s5); }
.site-nav a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); padding-bottom: 2px; }
.category-nav { background: var(--primary); padding: var(--s2) 0; }
.category-nav .container { display: flex; flex-wrap: wrap; gap: var(--s2); }
.category-nav .tag { color: rgba(255,255,255,0.75); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: var(--s1) var(--s3); border-radius: 999px; border: 1px solid transparent; }
.category-nav .tag.is-active, .category-nav .tag:hover { color: #fff; background: rgba(45,212,191,0.25); border-color: var(--accent); }

.hero-section { margin: var(--s5) 0; }
.hero-overlay-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 40px rgba(15,76,58,0.18); }
.hero-overlay-body { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--s6); background: linear-gradient(0deg, rgba(4,47,46,0.95) 0%, transparent 100%); color: #fff; }
.hero-overlay-body a { color: var(--accent); }
.hero-overlay-body h1 { color: #fff; font-size: 1.75rem; }

.bento-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(140px, auto); }
  .bento-grid .card:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento-grid .card:first-child h2 { font-size: 1.4rem; }
}
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(15,76,58,0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,76,58,0.15); }
.card-body { padding: var(--s4); }
.card-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--s2); }
.tag-pill { display: inline-block; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; margin-right: var(--s2); }

.article-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.article-content { max-width: 38rem; margin: 0 auto; padding: var(--s6) var(--s4); }
.article-content .lead { font-size: 1.1rem; border-left: 4px solid var(--accent); padding-left: var(--s4); color: var(--muted); }
.byline { display: flex; gap: var(--s4); align-items: center; padding: var(--s4); background: #fff; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin: var(--s5) 0; }
.byline img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); }
.updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

.site-footer { background: var(--primary); color: rgba(255,255,255,0.9); margin-top: var(--s6); padding: var(--s6) 0 var(--s4); }
.site-footer a { color: var(--accent); }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-bottom { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; }

.btn { display: inline-block; padding: var(--s2) var(--s4); border-radius: var(--radius); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; border: none; transition: all 0.18s; }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: inherit; }

.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--text); color: #fff; padding: var(--s4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.cookie-bar.is-hidden, .cookie-popup.is-hidden, .cookie-strip.is-hidden { display: none; }

main { padding: var(--s4) 0 var(--s6); min-height: 55vh; }
.page-header { border-bottom: 3px solid var(--accent); padding-bottom: var(--s4); margin-bottom: var(--s5); }
.related { margin-top: var(--s6); padding-top: var(--s5); border-top: 2px dashed rgba(15,76,58,0.2); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); margin: 4px 0; }
.grid-feed { margin-top: var(--s5); }
.prose-narrow { max-width: 42rem; margin: var(--s5) auto; }
.section-picks { margin-top: var(--s5); }
.section-editorial { margin-top: var(--s5); max-width: 42rem; }
.footer-nav { list-style: none; padding: 0; }
.footer-email { margin-top: var(--s4); }
.article-hero-img { margin-bottom: var(--s5); border-radius: var(--radius); }
.about-main { max-width: 42rem; padding: var(--s5) var(--s4); margin: 0 auto; }
.contact-main { max-width: 36rem; padding: var(--s5) var(--s4); margin: 0 auto; }
.cookie-bar a { color: #fff; text-decoration: underline; }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: var(--s3); padding: var(--s3) 0; }
}
