/* Pulso Brasil — weekend-edition editorial system */

:root {
  --slate-900: #1e2a33;
  --slate-700: #3d4f5c;
  --slate-500: #6b7c8a;
  --slate-300: #a8b4be;
  --slate-100: #e8ecef;
  --slate-50: #f4f6f8;
  --accent: #5c6bc0;
  --accent-soft: #8e99d6;
  --white: #ffffff;
  --text: #1e2a33;
  --muted: #5a6570;
  --border: #c5cdd4;
  --quote-bg: #e4e8ec;
  --container: 960px;
  --radius-soft: 8px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --line-tight: 1.3;
  --line-body: 1.7;
  --line-loose: 1.85;
  --transition: 0.2s ease;
  --cookie-h: 0px;
}

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

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

body {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: var(--line-body);
  color: var(--text);
  background: var(--slate-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--cookie-h);
}

body.cookie-visible {
  --cookie-h: 48px;
}

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

a {
  color: var(--slate-700);
  text-decoration: underline;
  text-decoration-color: var(--slate-300);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

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

ul,
ol {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--slate-900);
  line-height: var(--line-tight);
  font-weight: 700;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.625rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.3125rem); }

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

.lead {
  font-size: 1.1875rem;
  line-height: var(--line-loose);
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.byline {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
}

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

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

/* Cookie top-strip */
.cookie-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--slate-900);
  color: var(--slate-100);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

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

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

.cookie-strip p {
  flex: 1;
  min-width: 200px;
}

.cookie-strip a {
  color: var(--accent-soft);
  text-decoration: underline;
}

/* Stacked header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-stack {
  text-align: center;
  padding: var(--space-md) 0 var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0.25rem;
}

.brand:hover {
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.brand__tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.header-nav {
  padding: var(--space-sm) 0;
}

.header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  position: relative;
}

.nav-underline {
  display: flex;
  gap: var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-underline a {
  text-decoration: none;
  color: var(--slate-700);
  padding-bottom: 0.375rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.nav-underline a:hover,
.nav-underline a.is-active {
  color: var(--slate-900);
  border-bottom-color: var(--slate-900);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  position: absolute;
  right: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-900);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
}

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

.mobile-nav a {
  padding: 0.625rem 0;
  text-decoration: none;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
}

.mobile-nav a.is-active {
  font-weight: 600;
  color: var(--slate-900);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--slate-700);
  border-radius: var(--radius-soft);
  color: var(--slate-700);
  text-decoration: none;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--slate-900);
  color: var(--white);
  text-decoration: none;
}

/* Tags */
.tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: underline;
  text-decoration-color: var(--slate-500);
  text-underline-offset: 3px;
}

/* Hero split */
.hero-split {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.hero-split__media {
  overflow: hidden;
}

.hero-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.hero-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  gap: var(--space-sm);
}

.hero-split__title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
}

.hero-split__excerpt {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: var(--line-loose);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section--surface {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.section__header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-size: 1.25rem;
}

/* 8-col asymmetric grid */
.grid-8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-lg);
}

.col-main {
  grid-column: span 5;
}

.col-rail {
  grid-column: span 3;
}

/* Horizontal row cards */
.row-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.row-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.row-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.row-card__media {
  overflow: hidden;
  border-radius: var(--radius-soft);
  border: 1px solid var(--border);
}

.row-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.row-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.row-card__title {
  font-size: 1.1875rem;
  line-height: var(--line-tight);
}

.row-card__title a {
  text-decoration: none;
  color: var(--slate-900);
}

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

.row-card__excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: var(--line-body);
}

.row-card__meta {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Left rail sidebar */
.rail-block {
  margin-bottom: var(--space-lg);
}

.rail-block__title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.rail-pick {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--slate-100);
}

.rail-pick__title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.rail-pick__title a {
  text-decoration: none;
  color: var(--slate-900);
}

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

.rail-pick__desc {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.recent-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--slate-100);
}

.recent-item__link a {
  text-decoration: none;
  color: var(--slate-900);
  font-size: 0.9375rem;
}

.recent-item__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2 {
  margin: var(--space-lg) 0 var(--space-sm);
}

.prose ul {
  list-style: disc;
  margin: 0 0 1.25rem 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Article pull-quote-led */
.article-hero {
  background: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.article-hero__quote {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  line-height: var(--line-loose);
  color: var(--slate-700);
  border-left: 4px solid var(--slate-500);
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--quote-bg);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
}

.article-main__title {
  margin-top: var(--space-md);
}

.article-updated {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.article-layout__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 var(--space-xl);
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--cookie-h) + 1rem);
}

.toc {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  padding: var(--space-sm);
  background: var(--white);
}

.toc__title {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.toc ol {
  list-style: decimal;
  margin-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.375rem;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
}

.toc a:hover,
.toc a.is-active {
  color: var(--slate-900);
  text-decoration: underline;
}

.article-body {
  max-width: 38rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1.375rem;
}

.article-body blockquote {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--slate-700);
  border-left: 3px solid var(--slate-500);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
}

.article-body figure {
  margin: var(--space-md) 0;
}

.article-body figure img {
  border-radius: var(--radius-soft);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.article-body figcaption {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Footer author note */
.author-note {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.author-note__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}

.author-note__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-note__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-note__bio {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Page header */
.page-header {
  background: var(--white);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header p {
  max-width: 36rem;
  margin: var(--space-sm) auto 0;
  color: var(--muted);
}

/* Contact form */
.contact-form {
  max-width: 32rem;
  margin: var(--space-lg) auto 0;
}

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

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

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

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

/* Two-column footer */
.site-footer {
  margin-top: auto;
  background: var(--slate-900);
  color: var(--slate-100);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-brand {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand__tagline {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--slate-300);
  margin-top: 0.375rem;
}

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

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: var(--space-sm);
}

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

.footer-col a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--slate-100);
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-500);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Articles archive */
.archive-list .row-card {
  grid-template-columns: 240px 1fr;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-split__grid {
    grid-template-columns: 1fr;
  }

  .grid-8 {
    grid-template-columns: 1fr;
  }

  .col-main,
  .col-rail {
    grid-column: span 1;
  }

  .row-card,
  .archive-list .row-card {
    grid-template-columns: 1fr;
  }

  .article-layout__grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .footer-two-col {
    grid-template-columns: 1fr;
  }

  .nav-underline {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav__inner {
    justify-content: flex-end;
    min-height: 40px;
  }
}
