/* Crédito Climático — high-contrast-bw editorial */
:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-100: #e8e8e8;
  --gray-200: #c4c4c4;
  --gray-400: #737373;
  --gray-600: #404040;
  --container: 1140px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", monospace;
  --radius: 2px;
  --radius-img: 6px;
  --gap: 0.75rem;
  --gap-lg: 1.25rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
}

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

a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { text-decoration-thickness: 2px; }

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

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

/* Typography — mixed newsroom */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8125rem; }
h4 { font-size: 1rem; }

.lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--gray-600);
}

.byline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

.tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--black);
  background: var(--white);
  text-decoration: none;
}

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

/* Header — double-row-nav */
.site-header {
  border-bottom: 2px solid var(--black);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row-top {
  border-bottom: 1px solid var(--gray-200);
  padding: 0.5rem 0;
}

.header-row-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-tagline {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-top: 0.15rem;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-meta a { text-decoration: none; }
.header-meta a:hover { text-decoration: underline; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--black);
  padding: 0.35rem 0.6rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: var(--font-sans);
}

.menu-toggle:hover { background: var(--black); color: var(--white); }

.header-row-nav {
  padding: 0.4rem 0;
}

.header-row-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.main-nav a {
  display: block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-right: 1px solid var(--gray-200);
}

.main-nav li:first-child a { border-left: 1px solid var(--gray-200); }
.main-nav a:hover { background: var(--black); color: var(--white); }

.nav-sections {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* Mobile drawer — vertical */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  border-right: 2px solid var(--black);
  z-index: 200;
  padding: 1.5rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-drawer.is-open { transform: translateX(0); }

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  z-index: 199;
}

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

.drawer-nav {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.drawer-nav li { border-bottom: 1px solid var(--gray-200); }

.drawer-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.drawer-close {
  background: none;
  border: 1px solid var(--black);
  padding: 0.3rem 0.6rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero — text-only-lead */
.hero-lead {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--black);
}

.hero-lead h1 { margin-bottom: 0.75rem; }
.hero-lead .lead { max-width: 42rem; }

/* Editorial columns homepage */
.editorial-columns {
  padding: 1.25rem 0 2rem;
}

.col-main { grid-column: span 8; }
.col-side { grid-column: span 4; }
.col-full { grid-column: span 12; }
.col-half { grid-column: span 6; }
.col-third { grid-column: span 4; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

/* Cards — flat */
.card-flat {
  border: 1px solid var(--gray-200);
  padding: 0.75rem;
  margin-bottom: var(--gap);
  background: var(--white);
}

.card-flat:hover { border-color: var(--black); }

.card-flat img {
  border-radius: var(--radius-img);
  margin-bottom: 0.5rem;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-flat h2, .card-flat h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card-flat h2 a, .card-flat h3 a {
  text-decoration: none;
  color: var(--black);
}

.card-flat h2 a:hover, .card-flat h3 a:hover { text-decoration: underline; }

.card-flat p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.45;
}

/* Numbered article list */
.feed-numbered {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: feed;
}

.feed-numbered li {
  counter-increment: feed;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}

.feed-numbered li::before {
  content: counter(feed, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-200);
  line-height: 1;
}

.feed-numbered h3 { margin: 0 0 0.2rem; font-size: 0.9375rem; text-transform: none; letter-spacing: 0; font-family: var(--font-serif); font-weight: 700; }
.feed-numbered h3 a { text-decoration: none; }
.feed-numbered h3 a:hover { text-decoration: underline; }
.feed-numbered .meta { font-size: 0.6875rem; color: var(--gray-400); }

/* Article — split-content-rail */
.article-layout {
  padding: 1.5rem 0 2.5rem;
}

.article-header {
  grid-column: span 8;
  margin-bottom: 1rem;
}

.article-body {
  grid-column: span 8;
}

.article-rail {
  grid-column: span 4;
  padding-left: 1rem;
  border-left: 1px solid var(--gray-200);
}

.article-body p { margin: 0 0 1rem; }
.article-body h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--black);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--gray-600);
}

.article-body ul, .article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.article-body li { margin-bottom: 0.35rem; }

.article-figure {
  margin: 1.25rem 0;
}

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

.article-figure figcaption {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

/* Author sidebar bio box */
.author-bio-box {
  border: 2px solid var(--black);
  padding: 0.85rem;
  margin-bottom: var(--gap-lg);
}

.author-bio-box img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-img);
  margin-bottom: 0.5rem;
}

.author-bio-box .author-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-bio-box .author-role {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.author-bio-box p {
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.45;
  color: var(--gray-600);
}

/* Buttons — subtle-ghost */
.btn-ghost {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--gray-200);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-ghost:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Page content */
.page-content {
  padding: 1.5rem 0 2.5rem;
}

.page-content .col-main { grid-column: span 8; }
.page-content .col-full { grid-column: span 12; max-width: 42rem; }

.page-content p { margin: 0 0 1rem; }
.page-content h2 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; }
.page-content ul, .page-content ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* Contact form */
.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--black);
  outline-offset: 0;
}

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

/* Footer — stacked-links */
.site-footer {
  border-top: 2px solid var(--black);
  padding: 1.5rem 0 1rem;
  margin-top: auto;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.footer-legal {
  font-size: 0.6875rem;
  color: var(--gray-400);
  line-height: 1.5;
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
}

/* Cookie — inline-footer-note */
.cookie-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.6875rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-200);
}

.cookie-note.is-hidden { display: none; }

.cookie-note button {
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
}

/* Articles listing */
.articles-grid .card-flat { margin-bottom: 1rem; }

.related-block {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--black);
}

.related-block h3 {
  margin-bottom: 0.75rem;
}

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

.related-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}

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

.text-muted { color: var(--gray-400); }
.mt-1 { margin-top: 0.75rem; }
.mb-1 { margin-bottom: 0.75rem; }

/* Responsive */
@media (max-width: 900px) {
  .col-main, .col-side, .col-half, .col-third,
  .article-header, .article-body, .article-rail,
  .page-content .col-main {
    grid-column: span 12;
  }

  .article-rail {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .nav-sections { display: none; }
  .mobile-drawer { display: block; }

  h1 { font-size: 1.75rem; }
}

@media (max-width: 600px) {
  .header-meta { display: none; }
  .brand-name { font-size: 1.25rem; }
}
