/* Keen Brasil — minimal-editorial, mono-accent-labels, startup-charcoal */
:root {
  --primary: #222831;
  --accent: #00ADB5;
  --bg: #F7F9FA;
  --text: #1B1F24;
  --muted: #7A8693;
  --border: #DDE3E8;
  --surface: #FFFFFF;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --container: 720px;
  --radius: 0;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", "Liberation Mono", Menlo, monospace;
  --header-height: 56px;
  --header-shrink: 44px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

/* Header — minimal, sticky shrink */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: height var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  height: var(--header-shrink);
  box-shadow: 0 1px 8px rgba(34, 40, 49, 0.06);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
  transition: font-size var(--transition);
}

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

.site-header.is-shrunk .site-logo {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--primary);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

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

.hero-lead__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: block;
}

.hero-lead h1 {
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: var(--space-5);
  max-width: 36ch;
}

.hero-lead__text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
}

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

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

.section__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: block;
}

.section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: var(--space-5);
  line-height: 1.3;
}

/* Prose */
.prose {
  max-width: var(--container);
}

.prose p {
  margin-bottom: var(--space-4);
}

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

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-6) 0 var(--space-4);
  line-height: 1.35;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-5) 0 var(--space-3);
}

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

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

.prose a {
  color: var(--accent);
}

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

.feed-list__item {
  counter-increment: feed;
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
}

.feed-list__item:first-child {
  padding-top: 0;
}

.feed-list__item:last-child {
  border-bottom: none;
}

.feed-list__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feed-list__link:hover .feed-list__title,
.feed-list__link:focus-visible .feed-list__title {
  color: var(--accent);
}

.feed-list__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.feed-list__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.feed-list__number::before {
  content: counter(feed, decimal-leading-zero);
}

.feed-list__date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.feed-list__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin-bottom: var(--space-3);
  transition: color var(--transition);
}

.feed-list__excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.feed-list__author {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Article reading */
.article-header {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
}

.article-header__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: block;
}

.article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.article-header__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.article-header__meta span + span::before {
  content: " · ";
}

.article-body {
  padding: var(--space-6) 0 var(--space-7);
}

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

.article-body p.lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
}

.article-updated {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

/* Related */
.related-block {
  padding: var(--space-6) 0 var(--space-7);
  border-top: 1px solid var(--border);
}

.related-block h2 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.related-links {
  list-style: none;
}

.related-links li {
  margin-bottom: var(--space-3);
}

.related-links a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--primary);
}

.related-links a:hover,
.related-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

/* Page header */
.page-header {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.page-header__lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Contact */
.contact-email {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--accent);
}

/* Footer — minimal single */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0 var(--space-5);
  margin-top: var(--space-4);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-footer__brand {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}

.site-footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

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

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Cookie — inline footer note */
.cookie-note {
  display: none;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

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

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

.cookie-note__accept {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-note__accept:hover,
.cookie-note__accept:focus-visible {
  color: var(--primary);
}

/* Media queries */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-4);
    box-shadow: 0 4px 12px rgba(34, 40, 49, 0.08);
  }

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

  .site-header__inner {
    position: relative;
  }

  .hero-lead {
    padding: var(--space-6) 0 var(--space-5);
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .site-header__inner {
    padding: 0 var(--space-4);
  }

  .site-footer__inner {
    padding: 0 var(--space-4);
  }

  .feed-list__title {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-lead h1 {
    font-size: 2.25rem;
  }
}
