/* After Brasil — minimal editorial */
:root {
  --primary: #212529;
  --accent: #6C757D;
  --bg: #F8F9FA;
  --text: #343A40;
  --muted: #ADB5BD;
  --space-xs: 12px;
  --space-sm: 24px;
  --space-md: 36px;
  --space-lg: 48px;
  --space-xl: 72px;
  --radius: 1px;
  --container: 720px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --line-height: 1.65;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height);
  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: none;
  transition: color var(--transition);
}

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--muted);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

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

.site-logo {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.site-logo span {
  font-weight: 400;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
}

/* Main */
main {
  flex: 1;
  padding: var(--space-lg) 0 var(--space-xl);
}

/* Mono labels */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

/* Hero — text-only lead */
.hero {
  margin-bottom: var(--space-xl);
}

.hero-lead {
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

/* Sections */
.section {
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--muted);
}

/* Prose */
.prose p {
  margin-bottom: var(--space-sm);
}

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

.prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-md) 0 var(--space-xs);
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-sm) 0 var(--space-xs);
}

.prose ul,
.prose ol {
  margin: var(--space-xs) 0 var(--space-sm) var(--space-sm);
}

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

.prose blockquote {
  border-left: 2px solid var(--muted);
  padding-left: var(--space-sm);
  margin: var(--space-sm) 0;
  color: var(--accent);
  font-style: italic;
}

/* Numbered article list */
.article-list {
  list-style: none;
  counter-reset: article-counter;
}

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

.article-list li:first-child {
  border-top: 1px solid var(--muted);
}

.article-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-sm);
  align-items: start;
}

.article-list a::before {
  content: counter(article-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 2px;
}

.article-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--accent);
  line-height: 1.5;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: var(--space-xs);
}

/* Article reading */
.article-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--muted);
}

.article-header h1 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.article-author {
  font-size: 0.8125rem;
  color: var(--accent);
}

.article-body {
  font-size: 1.0625rem;
}

.article-body p {
  margin-bottom: var(--space-sm);
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-lg) 0 var(--space-xs);
}

.article-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-md) 0 var(--space-xs);
}

.article-nav {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--muted);
  font-size: 0.875rem;
}

.article-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Page header */
.page-header {
  margin-bottom: var(--space-lg);
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.page-header p {
  color: var(--accent);
  font-size: 0.9375rem;
}

/* Contact */
.contact-email {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--primary);
  border-bottom: 1px solid var(--muted);
  padding-bottom: var(--space-xs);
  display: inline-block;
  margin-top: var(--space-sm);
}

/* Legal pages */
.legal-section {
  margin-bottom: var(--space-md);
}

.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.legal-section p,
.legal-section li {
  font-size: 0.9375rem;
  color: var(--text);
}

.legal-section ul {
  margin: var(--space-xs) 0 var(--space-sm) var(--space-sm);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--muted);
  padding: var(--space-md) 0;
  margin-top: auto;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

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

.footer-links a {
  font-size: 0.75rem;
  color: var(--accent);
}

.cookie-note {
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid transparent;
}

.cookie-note[hidden] {
  display: none;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--muted);
    padding: var(--space-sm);
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .site-header {
    position: relative;
  }

  .hero-lead {
    font-size: 1.375rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
