/* Super Brasil — superbr.digital | modern-magazine | editorial-red-accent */

:root {
  --primary: #9D0208;
  --accent: #FFBA08;
  --bg: #FFF6F2;
  --text: #2B0A0A;
  --muted: #D00000;
  --white: #ffffff;
  --overlay: rgba(43, 10, 10, 0.62);
  --border: rgba(157, 2, 8, 0.18);
  --shadow: 0 12px 40px rgba(43, 10, 10, 0.12);
  --container: 1140px;
  --radius: 12px;
  --radius-pill: 999px;
  --font: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --transition: 0.22s ease;
}

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

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

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

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

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

ul, ol { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

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

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

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

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}

.brand:hover { color: var(--primary); }

.brand__name {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand__tagline {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-desktop ul {
  display: flex;
  gap: var(--space-lg);
}

.nav-desktop a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

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

.menu-toggle {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--white);
}

.menu-toggle:hover { background: var(--bg); }

/* Category tags row */
.category-row {
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-row__inner {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  flex-wrap: nowrap;
}

.category-row a {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.category-row a:hover,
.category-row a.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Mobile drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 200;
}

.drawer-overlay.is-open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background: var(--white);
  z-index: 201;
  transition: right 0.28s ease;
  padding: var(--space-lg);
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.drawer.is-open { right: 0; }

.drawer__close {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.drawer-nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.drawer-nav a:hover,
.drawer-nav a.is-active { color: var(--primary); }

/* Pill-colored tags */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text);
}

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

.tag--empresas { background: #ffd6d6; }
.tag--lancamentos { background: #ffe8a3; }
.tag--consumo { background: #c8f0d4; }
.tag--marcas { background: #d4e4ff; }
.tag--opiniao { background: #f0d4ff; }

/* Filled-accent button */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: background var(--transition), color var(--transition);
}

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

/* Full-bleed hero with overlay */
.hero-full {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.hero-full__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-full__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  background: linear-gradient(to top, var(--overlay) 0%, transparent 70%);
}

.hero-full__inner {
  max-width: var(--container);
  margin: 0 auto;
  color: var(--white);
}

.hero-full__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.hero-full h1 {
  color: var(--white);
  max-width: 18ch;
  margin-bottom: var(--space-md);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.hero-full__deck {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 48ch;
  opacity: 0.95;
}

/* Magazine breakout grid */
.magazine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-xl);
}

.magazine-grid__main { display: flex; flex-direction: column; gap: var(--space-xl); }

.magazine-grid__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Image-overlay cards */
.card-overlay {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

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

.card-overlay__body {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  background: linear-gradient(to top, var(--overlay) 0%, transparent 100%);
  width: 100%;
  color: var(--white);
}

.card-overlay__body .tag { margin-bottom: var(--space-sm); }

.card-overlay__body h2 {
  color: var(--white);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin: var(--space-xs) 0;
}

.card-overlay__body h2 a {
  color: var(--white);
  text-decoration: none;
}

.card-overlay__body h2 a:hover { text-decoration: underline; }

.card-overlay__body .byline {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: var(--space-xs);
}

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

/* Compact dense list */
.section-head {
  padding: var(--space-md) 0 var(--space-sm);
  border-bottom: 2px solid var(--primary);
  margin-bottom: var(--space-sm);
}

.section-head h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.dense-list { border-top: 1px solid var(--border); }

.dense-list__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.dense-list__item--offset { padding-left: var(--space-md); }

.dense-list__body h3 { margin: var(--space-xs) 0; line-height: 1.25; }

.dense-list__body h3 a {
  text-decoration: none;
  color: var(--text);
}

.dense-list__body h3 a:hover { color: var(--primary); text-decoration: underline; }

.dense-list__excerpt {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.85;
  margin: var(--space-xs) 0;
}

.dense-list__meta {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dense-list__thumb img {
  border-radius: var(--radius);
  width: 100%;
  max-width: 100px;
  aspect-ratio: 1;
  object-fit: cover;
}

.dense-list__item--teaser .dense-list__excerpt { font-style: italic; opacity: 0.75; }

/* Editorial note */
.editorial-note {
  padding: var(--space-xl) 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.editorial-note h2 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.editorial-note p {
  margin-bottom: var(--space-md);
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.text-muted { color: var(--muted); font-size: 0.85rem; }

.byline {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.byline a { color: var(--primary); text-decoration: none; }
.byline a:hover { text-decoration: underline; }

/* Page header */
.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
}

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

.page-header .lead {
  font-size: 1.08rem;
  max-width: 58ch;
  line-height: 1.6;
}

/* Wide-magazine article */
.article-wide {
  padding-bottom: var(--space-2xl);
}

.article-wide__header {
  padding: var(--space-xl) 0 var(--space-lg);
  max-width: 780px;
}

.article-wide__header h1 {
  margin: var(--space-sm) 0;
  max-width: 22ch;
}

.article-updated {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-xs);
}

.article-wide__content {
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.7;
  font-family: var(--font);
}

.article-wide__content p { margin-bottom: var(--space-md); }

.article-wide__content h2 {
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--primary);
}

.article-wide__content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--accent);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

.article-wide__content ul,
.article-wide__content ol {
  margin: var(--space-md) 0 var(--space-md) var(--space-lg);
  list-style: disc;
}

.article-wide__content li { margin-bottom: var(--space-xs); }

.article-figure {
  margin: var(--space-xl) 0;
  max-width: 100%;
}

.article-figure--breakout {
  width: calc(100% + var(--space-lg));
  margin-left: calc(var(--space-md) * -0.5);
}

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

.article-figure figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-xs);
  font-family: var(--font-sans);
}

/* Author card with avatar */
.author-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: var(--space-xl) 0;
  max-width: 680px;
}

.author-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--primary);
}

.author-card__name {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.author-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.author-card__bio {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Related articles */
.related-block {
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--primary);
  max-width: 680px;
}

.related-block h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

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

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

.related-list a:hover { color: var(--primary); text-decoration: underline; }

/* Archive — image overlay cards grid */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-xl);
}

.archive-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.archive-card__overlay {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.archive-card__overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  background: linear-gradient(to top, var(--overlay), transparent);
  width: 100%;
  color: var(--white);
}

.archive-card__body h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin: var(--space-xs) 0;
}

.archive-card__body h2 a { color: var(--white); text-decoration: none; }
.archive-card__body h2 a:hover { text-decoration: underline; }

.archive-card__text {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.archive-card__text p { margin: var(--space-sm) 0; font-size: 0.95rem; }

/* Brief stubs */
.brief-stub {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 6rem;
}

.brief-stub h2 {
  font-size: 1.1rem;
  margin: var(--space-xs) 0;
}

.brief-stub__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text);
  margin-bottom: var(--space-sm);
}

/* About page authors grid */
.authors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-xl);
}

/* Contact */
.contact-block {
  padding: var(--space-lg) 0 var(--space-xl);
  max-width: 52ch;
}

.contact-block p { margin-bottom: var(--space-md); }

.contact-email {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Policy content */
.policy-content {
  padding: var(--space-lg) 0 var(--space-xl);
  max-width: 68ch;
}

.policy-content h2 {
  font-size: 1.1rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--primary);
}

.policy-content p,
.policy-content li {
  margin-bottom: var(--space-sm);
  font-size: 0.97rem;
  line-height: 1.6;
}

.policy-content ul {
  margin-left: var(--space-lg);
  list-style: disc;
}

/* Stacked footer */
.site-footer {
  margin-top: auto;
  border-top: 2px solid var(--primary);
  padding: var(--space-xl) 0;
  background: var(--white);
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.footer-stack__brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.footer-stack__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-stack__links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

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

.footer-stack__copy {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: var(--space-sm);
}

/* Corner popup cookie */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  max-width: 340px;
  padding: var(--space-md);
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 300;
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-popup.is-visible { display: block; }

.cookie-popup p { margin-bottom: var(--space-sm); }

.cookie-popup a { color: var(--primary); }

.cookie-popup__btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}

.cookie-popup__btn:hover { background: var(--muted); }

/* Utilities */
.mb-lg { margin-bottom: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }

@media (min-width: 640px) {
  .dense-list__item {
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
  }

  .dense-list__item--offset { padding-left: var(--space-xl); }

  .article-figure--breakout {
    width: calc(100% + 4rem);
    margin-left: -2rem;
  }
}

@media (min-width: 768px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }

  .magazine-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .authors-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero-full { min-height: 520px; }

  .card-overlay { min-height: 340px; }
}
