:root {
  --nav-bg: oklch(15% 0.008 45);
  --nav-fg: oklch(90% 0.006 60);
  --accent: oklch(62% 0.16 55);
  --accent-hover: oklch(68% 0.17 55);
  --bg: oklch(97.5% 0.006 80);
  --bg-alt: oklch(94% 0.01 75);
  --fg: oklch(18% 0.01 45);
  --muted: oklch(50% 0.012 55);
  --border: oklch(89% 0.012 70);
  --max: 780px;
  --r: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header { background: var(--nav-bg); position: sticky; top: 0; z-index: 100; }
.site-header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; gap: 1rem;
}
.brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 800; font-size: 1.3rem;
  font-optical-sizing: auto; letter-spacing: -0.03em;
  color: var(--accent); text-decoration: none; flex-shrink: 0;
}
.brand:hover { color: var(--accent-hover); }
.site-nav { display: flex; align-items: center; }
.site-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem; font-weight: 500;
  color: var(--nav-fg); text-decoration: none;
  padding: 0 0.9rem; letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 56px;
  display: inline-block; transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }
.header-accent-line { height: 2px; background: var(--accent); opacity: 0.7; }

/* Page header */
.page-header { background: var(--nav-bg); padding: 2.5rem 1.25rem 2rem; }
.page-header-inner { max-width: var(--max); margin: 0 auto; }
.page-breadcrumb {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.75rem;
}
.page-header h1 {
  font-family: 'Source Serif 4', Georgia, serif; font-optical-sizing: auto;
  font-size: clamp(1.85rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.025em; color: oklch(95% 0.006 70); margin: 0;
}
.page-header h1 .emoji { display: inline-block; margin-right: 0.4rem; }
.page-header .hub-tagline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic; color: oklch(72% 0.01 60);
  margin: 0.7rem 0 0; font-size: 1.05rem; line-height: 1.6;
  max-width: 560px;
}

/* Main content */
.main-content {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.hub-intro {
  font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem;
  line-height: 1.7; color: var(--fg);
  margin: 0 0 2.25rem; max-width: 660px;
}
.section-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.75rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}

/* Post card (reuse home pattern) */
.post-card { padding: 0.5rem 0 0.75rem; }
.post-card-kicker {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  background: oklch(62% 0.16 55 / 0.08);
  border-radius: 2px;
  padding: 0.2em 0.55em;
  margin-bottom: 0.85rem;
}
.post-card h2 {
  font-family: 'Source Serif 4', Georgia, serif; font-optical-sizing: auto;
  font-size: clamp(1.5rem, 3.2vw, 1.85rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 0.85rem;
}
.post-card h2 a {
  color: var(--fg); text-decoration: none; transition: color 0.15s;
}
.post-card h2 a:hover { color: var(--accent); }
.post-card .excerpt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem; color: var(--fg);
  margin: 0; max-width: 660px; line-height: 1.6;
}
.post-card-divider {
  border: 0; border-top: 1px solid var(--border); margin: 2.25rem 0;
}

/* Empty state (mobilidade) */
.empty-state {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1rem 0 2rem;
}
.empty-state p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem; color: var(--fg);
  margin: 0 0 0.75rem; line-height: 1.6;
}
.empty-state p.lead { font-weight: 600; font-size: 1.15rem; color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--nav-bg); margin-top: 2rem;
  padding: 2.25rem 1.25rem;
}
.site-footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-row {
  display: flex; flex-wrap: wrap;
  gap: 1.25rem 2.5rem; justify-content: space-between;
  align-items: flex-start; margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid oklch(30% 0.008 45);
}
.footer-brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--accent); letter-spacing: -0.02em;
}
.footer-brand span {
  display: block; font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem; font-weight: 400;
  color: oklch(55% 0.01 55); letter-spacing: 0;
  margin-top: 0.2rem;
}
.footer-brand a {
  color: oklch(65% 0.01 55); text-decoration: underline;
  text-underline-offset: 2px; font-size: 0.8rem;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 400;
}
.footer-nav {
  display: flex; flex-direction: column;
  gap: 0.35rem; align-items: flex-end;
}
.footer-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem; color: oklch(65% 0.01 55);
  text-decoration: none; transition: color 0.15s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-fine {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.76rem; color: oklch(42% 0.008 50);
  line-height: 1.7;
}
.footer-fine a { color: oklch(48% 0.01 55); text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  .site-header-inner { padding: 0 1rem; }
  .site-nav a { padding: 0 0.55rem; font-size: 0.78rem; }
  .page-header { padding: 2rem 1rem 1.5rem; }
  .main-content { padding: 2rem 1rem 2.5rem; }
  .footer-nav { align-items: flex-start; }
  .footer-row { flex-direction: column; gap: 1.25rem; }
}

/* ── CTA Telegram banner (ADR-026 D4) ── */
.cta-tg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem 1.35rem;
  background: oklch(62% 0.16 55 / 0.08);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
}
.cta-tg-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--fg);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.cta-tg-text strong { font-weight: 600; }
.cta-tg-button {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: oklch(98% 0.005 70);
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r);
  transition: background 0.15s;
  flex-shrink: 0;
}
.cta-tg-button:hover { background: var(--accent-hover); }
@media (max-width: 600px) {
  .cta-tg { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-tg-button { text-align: center; }
}

/* ── Newsletter signup (ADR-026 D4) ── */
.newsletter-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 2rem 0;
}
.newsletter-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.newsletter-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.newsletter-form-inner {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-form-inner input[type="email"] {
  flex: 1;
  min-width: 200px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  outline: none;
}
.newsletter-form-inner input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form-inner button {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: oklch(98% 0.005 70);
  border: 0;
  border-radius: var(--r);
  padding: 0.65rem 1.3rem;
  cursor: pointer;
}
.newsletter-form-inner button:hover { background: var(--accent-hover); }
.newsletter-msg {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0.7rem 0 0;
}
.newsletter-msg[hidden] { display: none; }
.newsletter-privacy {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
  line-height: 1.5;
}
.newsletter-privacy a { color: var(--accent); text-underline-offset: 2px; }

/* Newsletter embed (Beehiiv iframe handles internal styling) */
.newsletter-embed { margin: 2rem 0; }
