/* Distância — remotobr.click */
:root {
  --ds-graphite: #2B2D31;
  --ds-graphite-mid: #454850;
  --ds-graphite-soft: #6B7280;
  --ds-mint: #5EC4A8;
  --ds-mint-dark: #3DA88C;
  --ds-mint-light: #E8F7F3;
  --ds-mint-pale: #F3FBF8;
  --ds-bg: #FAFBFC;
  --ds-surface: #FFFFFF;
  --ds-border: #E5E7EB;
  --ds-text: #2B2D31;
  --ds-muted: #6B7280;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max-width: 68rem;
  --narrow: 38rem;
  --radius: 2px;
}

[data-theme="dark"] {
  --ds-bg: #1A1B1E;
  --ds-surface: #24262B;
  --ds-border: #3A3D44;
  --ds-text: #F3F4F6;
  --ds-muted: #9CA3AF;
  --ds-graphite: #F3F4F6;
  --ds-graphite-mid: #D1D5DB;
  --ds-graphite-soft: #9CA3AF;
  --ds-mint-light: #1E2E29;
  --ds-mint-pale: #1A2421;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ds-text);
  background: var(--ds-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ds-mint-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--ds-mint); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ds-graphite);
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1.1rem; }

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

.narrow {
  max-width: var(--narrow);
  margin-left: auto;
  margin-right: auto;
}

/* Minimal header */
.site-header {
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ds-graphite);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo:hover { color: var(--ds-mint-dark); }

.logo img { width: 32px; height: 32px; }

.logo-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ds-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ds-muted);
}

.main-nav a:hover,
.main-nav a.active { color: var(--ds-mint-dark); }

.header-utils {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.menu-toggle {
  background: none;
  border: 1px solid var(--ds-border);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ds-muted);
  font-family: var(--font-sans);
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--ds-mint);
  color: var(--ds-mint-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.45rem;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ds-graphite);
}

.cat-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  border-top: 1px solid var(--ds-border);
}

.cat-nav a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-muted);
  padding: 0.15rem 0;
}

.cat-nav a:hover,
.cat-nav a.active {
  color: var(--ds-mint-dark);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav,
  .cat-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-border);
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav.is-open,
  .cat-nav.is-open { display: flex; }

  .site-header { position: relative; }
  .header-inner { position: relative; }
}

/* Article stream homepage */
.stream-intro {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--ds-border);
}

.stream-intro h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.75rem;
}

.stream-lead {
  font-size: 1.05rem;
  color: var(--ds-muted);
  max-width: 36rem;
  line-height: 1.65;
}

.stream-body {
  padding: 0.5rem 0 3rem;
}

.stream-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-mint-dark);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ds-border);
}

/* Flat cards */
.stream-card {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ds-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.stream-card:hover {
  background: var(--ds-mint-pale);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.stream-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-mint-dark);
  margin-bottom: 0.35rem;
}

.stream-card h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin-bottom: 0.5rem;
  color: var(--ds-graphite);
}

.stream-card:hover h2 { color: var(--ds-mint-dark); }

.stream-card-excerpt {
  font-size: 0.95rem;
  color: var(--ds-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.stream-card-meta {
  font-size: 0.8rem;
  color: var(--ds-muted);
}

.stream-featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 2px solid var(--ds-mint);
  margin-bottom: 0.5rem;
}

.stream-featured img {
  width: 100%;
  background: var(--ds-mint-light);
}

.stream-featured-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-mint-dark);
  margin-bottom: 0.5rem;
}

.stream-featured h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.65rem;
}

.stream-featured h2 a {
  text-decoration: none;
  color: var(--ds-graphite);
}

.stream-featured h2 a:hover { color: var(--ds-mint-dark); }

@media (max-width: 700px) {
  .stream-featured { grid-template-columns: 1fr; }
}

/* Editorial note block */
.editorial-note {
  background: var(--ds-mint-pale);
  border-left: 3px solid var(--ds-mint);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}

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

/* Page headers */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 2rem;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--ds-muted);
  max-width: 36rem;
}

/* Narrow reading article */
.article-narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.article-narrow .article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--ds-muted);
  padding: 1rem 0;
  border-top: 1px solid var(--ds-border);
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 1.75rem;
}

.article-narrow .cat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-mint-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.article-narrow h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.article-narrow blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 3px solid var(--ds-mint);
  color: var(--ds-graphite-mid);
  font-size: 1.05rem;
}

.article-narrow .article-hero-img {
  margin-bottom: 1.75rem;
  background: var(--ds-mint-light);
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--ds-mint-pale);
  margin: 2.5rem 0 1rem;
}

.author-box img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.author-box h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.author-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ds-muted);
  line-height: 1.55;
}

.related-strip {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--ds-border);
}

.related-strip h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-muted);
  margin-bottom: 1rem;
}

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

.related-links li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ds-border);
  font-size: 0.92rem;
}

.related-links a {
  text-decoration: none;
  color: var(--ds-graphite);
  font-weight: 500;
}

.related-links a:hover { color: var(--ds-mint-dark); }

/* Articles listing */
.articles-list .stream-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.articles-list .stream-card-thumb img {
  width: 100%;
  background: var(--ds-mint-light);
}

.articles-list .stream-card:hover {
  background: var(--ds-mint-pale);
}

@media (max-width: 560px) {
  .articles-list .stream-card { grid-template-columns: 1fr; }
}

/* Contact form */
.contact-form { max-width: 28rem; }

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ds-graphite);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--ds-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--ds-surface);
  color: var(--ds-text);
}

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

.btn {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  background: var(--ds-mint-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn:hover {
  background: var(--ds-mint);
  color: #fff;
}

/* Legal */
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-content li { margin-bottom: 0.35rem; }

/* Footer */
.site-footer {
  background: var(--ds-graphite);
  color: #D1D5DB;
  padding: 2.5rem 0 1.25rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--ds-mint);
  text-decoration: none;
}

.site-footer a:hover { color: #7DD4BC; }

.footer-nav h4 {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li { margin-bottom: 0.35rem; font-size: 0.88rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.15rem;
  font-size: 0.78rem;
  color: #9CA3AF;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ds-surface);
  border-top: 2px solid var(--ds-mint);
  padding: 1rem 1.25rem;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

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

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
}

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