/* Voz Pública — ink-cream, minimal-editorial, 960px */
:root {
  --cream-50: #faf9f6;
  --cream-100: #f3f1eb;
  --cream-200: #e8e4da;
  --cream-300: #d4cfc3;
  --ink-900: #1a1a18;
  --ink-700: #3d3d38;
  --ink-500: #6b6a63;
  --ink-400: #8a8880;
  --accent: #2c4a3e;
  --accent-hover: #1e3329;
  --border: var(--cream-200);
  --bg: var(--cream-50);
  --bg-card: #ffffff;

  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;

  --space-xs: 12px;
  --space-sm: 20px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 72px;

  --radius: 0;
  --container: 960px;
  --line: 1.7;
  --read: 640px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: var(--line);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-xs);
}

h1 { font-size: 2.35rem; letter-spacing: -0.01em; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

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

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

/* Header — minimal-header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  background: var(--bg-card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-tagline {
  font-size: 0.72rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
  flex: 1 1 100%;
  order: 3;
}

@media (min-width: 640px) {
  .site-tagline {
    flex: 0 1 auto;
    order: 0;
    margin-left: var(--space-sm);
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Nav — horizontal-underline */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.site-nav a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ink-900);
  color: var(--ink-900);
}

/* Hero — carousel-single */
.hero-carousel {
  padding: var(--space-lg) 0 var(--space-md);
}

.carousel {
  position: relative;
}

.carousel-track {
  position: relative;
  min-height: 280px;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.35s ease;
}

.carousel-slide.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  margin-bottom: var(--space-xs);
}

.carousel-slide h2 {
  font-size: 2rem;
  max-width: 720px;
  margin-bottom: var(--space-sm);
}

.carousel-slide h2 a {
  color: inherit;
  text-decoration: none;
}

.carousel-slide h2 a:hover {
  color: var(--accent);
}

.carousel-deck {
  font-size: 1.05rem;
  color: var(--ink-500);
  max-width: 600px;
  margin-bottom: var(--space-md);
}

.carousel-meta {
  font-size: 0.85rem;
  color: var(--ink-400);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.carousel-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--cream-100);
  border-color: var(--cream-300);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--ink-400);
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}

.carousel-dot.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
}

.hero-svg {
  margin-top: var(--space-md);
  opacity: 0.85;
}

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

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

@media (min-width: 720px) {
  .columns-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
  }
}

.column-lead h2 {
  font-size: 1.85rem;
}

.column-lead h2 a {
  color: inherit;
  text-decoration: none;
}

.column-lead h2 a:hover { color: var(--accent); }

.column-secondary article + article {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Magazine columns feed */
.section {
  padding: var(--space-lg) 0;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-400);
  margin-bottom: var(--space-md);
  font-family: var(--font-sans);
  font-weight: 400;
}

.magazine-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .magazine-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 840px) {
  .magazine-feed {
    grid-template-columns: repeat(3, 1fr);
  }

  .magazine-feed .feed-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* Cards — flat */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

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

.card-meta {
  font-size: 0.8rem;
  color: var(--ink-400);
  margin-bottom: var(--space-xs);
}

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

.feed-item.is-muted h3 {
  color: var(--ink-500);
  font-weight: 400;
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* Buttons — subtle-ghost */
.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 10px 18px;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: var(--cream-100);
  color: var(--ink-900);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* Article — minimalist-reading */
.article-header {
  padding: var(--space-lg) 0 var(--space-md);
  max-width: var(--read);
  margin: 0 auto;
}

.article-header h1 {
  font-size: 2.1rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--ink-400);
}

.article-body {
  max-width: var(--read);
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

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

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

.prose-wide {
  max-width: var(--read);
  margin: 0 auto;
  padding: var(--space-lg) 0 var(--space-xl);
}

.related-block {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 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(--ink-900);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

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

/* Page layouts */
.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  max-width: var(--read);
}

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

.lead {
  font-size: 1.1rem;
  color: var(--ink-500);
}

.text-muted { color: var(--ink-400); }
.text-small { font-size: 0.88rem; }

.contact-email {
  font-size: 1.15rem;
  font-family: var(--font-serif);
}

/* Footer — minimal-single */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
  background: var(--bg-card);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--ink-400);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-700);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.footer-links a {
  color: var(--ink-500);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink-900);
  text-decoration: underline;
}

/* Cookie — bottom-bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink-900);
  color: var(--cream-100);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.82rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-bar.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-bar .btn-ghost {
  border-color: var(--cream-300);
  color: var(--cream-50);
}

.cookie-bar .btn-ghost:hover {
  background: var(--ink-700);
  color: var(--cream-50);
}

body.has-cookie-bar { padding-bottom: 72px; }

/* Articles list page */
.article-index {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-index li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.article-index h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.article-index h2 a {
  color: inherit;
  text-decoration: none;
}

.article-index h2 a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 639px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    padding-top: var(--space-sm);
  }

  h1 { font-size: 1.85rem; }
  .carousel-slide h2 { font-size: 1.55rem; }
}
