/* ==========================================================================
   sistemabm.com
   Preto e laranja sobre um degradê de verde-escuro para preto.
   ========================================================================== */

/* Fontes hospedadas no próprio site (licença SIL OFL, ver assets/fonts) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores */
  --preto: #000000;
  --laranja: #ff7a1a;
  --laranja-forte: #ff5f00;
  --laranja-suave: rgba(255, 122, 26, 0.14);
  --verde-escuro: #0b3a26;
  --verde-noite: #04180f;
  --texto: #f2eee6;
  --texto-suave: #a9b5ad;
  --linha: rgba(242, 238, 230, 0.13);
  --painel: rgba(0, 0, 0, 0.62);

  /* Tipografia */
  --fonte-titulo: "Archivo", "Arial Black", system-ui, sans-serif;
  --fonte-texto: "Newsreader", Georgia, "Times New Roman", serif;
  --fonte-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-codigo: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Escala (proporção 1.25) */
  --t-0: 0.8rem;
  --t-1: 0.9375rem;
  --t-2: 1.0625rem;
  --t-3: 1.25rem;
  --t-4: 1.5625rem;
  --t-5: 1.953rem;
  --t-6: 2.441rem;

  --largura: 76rem;
  --medida: 40rem;
  --raio: 6px;
  --espaco: clamp(1rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--texto);
  background-color: var(--preto);
  font-family: var(--fonte-ui);
  font-size: var(--t-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Rodapé sempre no fim da tela, mesmo em páginas curtas */
main { flex: 1 0 auto; }

/* Degradê fixo em pseudo-elemento: funciona também no Safari do iOS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 0% 0%, var(--verde-escuro) 0%, transparent 60%),
    linear-gradient(165deg, var(--verde-escuro) 0%, var(--verde-noite) 38%, var(--preto) 78%);
}

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

a {
  color: inherit;
  text-decoration-color: var(--laranja);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--laranja);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--laranja); color: var(--preto); }

h1, h2, h3, h4 { margin: 0; font-family: var(--fonte-titulo); line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

code, kbd, pre {
  font-family: var(--fonte-codigo);
  /* Sem ligaduras: "===" e "=>" aparecem exatamente como devem ser digitados */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--laranja);
  color: var(--preto);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: var(--espaco);
}

.muted { color: var(--texto-suave); }

/* --------------------------------------------------------------------------
   Elementos comuns
   -------------------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--texto);
}
.brand:hover { color: var(--texto); }

.brand__mark {
  width: 0.95rem;
  height: 0.95rem;
  background: var(--laranja);
  box-shadow: 0.3rem 0.3rem 0 var(--verde-escuro);
}

.brand__name {
  font-family: var(--fonte-titulo);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.section-title {
  font-stretch: 115%;
  font-weight: 750;
  font-size: var(--t-5);
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--laranja);
}

.section-title--small { font-size: var(--t-3); margin-bottom: 1rem; }
.section-title--small::after { width: 1.5rem; height: 3px; margin-top: 0.45rem; }

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: var(--t-1);
  color: var(--laranja);
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--texto); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  border: 0;
  border-radius: var(--raio);
  background: var(--laranja);
  color: var(--preto);
  font: 700 var(--t-1) / 1 var(--fonte-ui);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--laranja-forte); color: var(--preto); }

/* Medidor de nível dos tutoriais */
.level {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-0);
  font-weight: 600;
  color: var(--texto);
}
.level__bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.level__bar { width: 4px; background: var(--linha); border-radius: 1px; }
.level__bar:nth-child(1) { height: 6px; }
.level__bar:nth-child(2) { height: 10px; }
.level__bar:nth-child(3) { height: 14px; }
.level__bar.is-on { background: var(--laranja); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tags a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: var(--t-0);
  text-decoration: none;
  color: var(--texto-suave);
}
.tags a:hover { border-color: var(--laranja); color: var(--laranja); }
.tags__count { color: var(--laranja); margin-left: 0.2rem; }

.badge-external {
  font-size: var(--t-0);
  color: var(--texto-suave);
  border-left: 2px solid var(--laranja);
  padding-left: 0.45rem;
}

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav ul { display: flex; gap: 0.25rem; list-style: none; }

.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: var(--t-1);
  text-decoration: none;
  color: var(--texto-suave);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--texto); }
.site-nav a[aria-current="page"] { color: var(--texto); border-bottom-color: var(--laranja); }

.header-search { position: relative; }
.header-search input {
  width: 11rem;
  height: 2.4rem;
  padding: 0 2rem 0 0.8rem;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: rgba(255, 255, 255, 0.04);
  color: var(--texto);
  font: inherit;
  font-size: var(--t-1);
}
.header-search input::placeholder { color: var(--texto-suave); }
.header-search input:focus { border-color: var(--laranja); outline: none; background: var(--preto); }
.header-search__hint {
  position: absolute;
  right: 0.5rem; top: 50%;
  transform: translateY(-50%);
  padding: 0 0.35rem;
  border: 1px solid var(--linha);
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--texto-suave);
  pointer-events: none;
}
.header-search input:focus + .header-search__hint { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: transparent;
  color: var(--texto);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem; height: 2px;
  margin-inline: auto;
  background: currentColor;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Página inicial
   -------------------------------------------------------------------------- */

.lead {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.lead__kicker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: var(--t-1);
  color: var(--laranja);
}
.lead__kicker a { text-decoration: none; }
.lead__kicker a:hover { text-decoration: underline; color: var(--laranja); }
.lead__sep { color: var(--texto-suave); }

/* O elemento marcante do site: a manchete larga e pesada */
.lead__title {
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(2.35rem, 6.2vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
/* Títulos longos ganham mais largura e corpo menor, sem perder o peso */
.lead__title--medio { font-size: clamp(2.2rem, 5.2vw, 4.4rem); max-width: 17ch; }
.lead__title--longo { font-size: clamp(2rem, 4.3vw, 3.7rem); max-width: 22ch; line-height: 1; }
.lead__title a {
  text-decoration: none;
  background-image: linear-gradient(var(--laranja), var(--laranja));
  background-repeat: no-repeat;
  background-size: 0% 0.12em;
  background-position: 0 92%;
  transition: background-size 0.35s ease;
}
.lead__title a:hover { color: var(--texto); background-size: 100% 0.12em; }

.lead__excerpt {
  max-width: 34rem;
  margin: 1.75rem 0 1.75rem;
  font-family: var(--fonte-texto);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: #d6d9d2;
}

.lead__latest {
  align-self: end;
  padding: 1.5rem;
  background: var(--painel);
  border-top: 4px solid var(--laranja);
}

.latest-list { list-style: none; }
.latest-list li { padding-block: 0.9rem; border-bottom: 1px solid var(--linha); }
.latest-list li:first-child { padding-top: 0; }
.latest-list time { display: block; font-size: var(--t-0); color: var(--laranja); font-weight: 600; }
.latest-list a {
  display: block;
  margin-top: 0.15rem;
  font-weight: 650;
  font-size: var(--t-2);
  line-height: 1.3;
  text-decoration: none;
}

.lead--solo { grid-template-columns: minmax(0, 1fr); }

.lead__byline { font-size: var(--t-1); }
.lead__muted { display: block; color: var(--texto-suave); }

/* Faixa de tutoriais */
.band {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: rgba(0, 0, 0, 0.55);
  border-block: 1px solid var(--linha);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}
.section-head .section-title { margin-bottom: 0; }
.section-head__desc { color: var(--texto-suave); font-size: var(--t-1); padding-bottom: 0.3rem; }
.section-head .text-link { margin-top: 0; padding-bottom: 0.3rem; }

.coming-soon {
  max-width: var(--medida);
  padding: 1.5rem 1.75rem;
  background: var(--painel);
  border-left: 4px solid var(--laranja);
}
.coming-soon__text {
  font-family: var(--fonte-texto);
  font-size: var(--t-4);
  line-height: 1.35;
}
.coming-soon .text-link { margin-top: 0.75rem; }
.coming-soon--compact .coming-soon__text { font-size: var(--t-3); }

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.tutorial-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 2rem 0.5rem;
  border-left: 1px solid var(--linha);
}
.tutorial-tile:first-child { padding-left: 0; border-left: 0; }

.tutorial-tile__title {
  font-stretch: 108%;
  font-weight: 700;
  font-size: var(--t-4);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tutorial-tile__title a { text-decoration: none; }
.tutorial-tile__excerpt { color: var(--texto-suave); font-size: var(--t-1); }
.tutorial-tile__meta { margin-top: auto; font-size: var(--t-0); color: var(--texto-suave); }

/* Notícias + radar */
.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.split--solo { grid-template-columns: minmax(0, 1fr); }
.split--solo .radar-panel { position: static; }
.split--solo .radar-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  column-gap: 2rem;
}

.radar-panel {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  padding: 1.5rem;
  background: var(--preto);
  border: 1px solid var(--linha);
}
.radar-panel__intro { font-size: var(--t-1); color: var(--texto-suave); margin-bottom: 1rem; }

.radar-list { list-style: none; }
.radar-list a {
  display: block;
  padding-block: 0.85rem;
  border-top: 1px solid var(--linha);
  text-decoration: none;
}
.radar-list__source { display: block; font-size: var(--t-0); font-weight: 700; color: var(--laranja); }
.radar-list__title { display: block; font-weight: 600; line-height: 1.3; }
.radar-list a:hover .radar-list__title { color: var(--laranja); }

/* --------------------------------------------------------------------------
   Listas de publicações
   -------------------------------------------------------------------------- */

.post-list { display: grid; }

.post-row {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--linha);
}
.post-list > .post-row:first-child { padding-top: 0; }

.post-row__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.5rem;
  font-size: var(--t-0);
}
.post-row__type { font-weight: 700; color: var(--texto); }
.post-row__category { font-weight: 600; color: var(--laranja); text-decoration: none; }
.post-row__category:hover { text-decoration: underline; }

.post-row__title {
  font-stretch: 105%;
  font-weight: 700;
  font-size: var(--t-4);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.post-row__title a { text-decoration: none; }

.post-row__excerpt {
  max-width: var(--medida);
  margin-top: 0.5rem;
  font-family: var(--fonte-texto);
  font-size: var(--t-3);
  line-height: 1.45;
  color: #c9cec7;
}

.post-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin-top: 0.75rem;
  font-size: var(--t-0);
  color: var(--texto-suave);
}
.post-row__meta a { color: var(--texto); font-weight: 600; text-decoration: none; }
.post-row__meta a:hover { color: var(--laranja); }

.post-list--columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem;
}
.post-list--columns .post-row { padding-top: 0; border-bottom: 0; }
.post-list--columns .post-row__title { font-size: var(--t-3); }
.post-list--columns .post-row__excerpt { font-size: var(--t-2); }

/* --------------------------------------------------------------------------
   Páginas internas
   -------------------------------------------------------------------------- */

.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }

.page-head {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--linha);
}

.page-title {
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-intro {
  max-width: var(--medida);
  margin-top: 1rem;
  font-family: var(--fonte-texto);
  font-size: var(--t-3);
  color: #c9cec7;
}

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.filter a {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  font-size: var(--t-0);
  font-weight: 600;
  text-decoration: none;
  color: var(--texto-suave);
}
.filter a:hover { color: var(--texto); border-color: var(--texto-suave); }
.filter a[aria-current="true"] { background: var(--laranja); border-color: var(--laranja); color: var(--preto); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: var(--t-1);
}
.pagination__status { color: var(--texto-suave); }
.pagination__step { font-weight: 700; color: var(--laranja); }
.pagination__step[rel="next"] { margin-left: auto; }

.empty-state {
  padding: 3rem 0;
  max-width: var(--medida);
}
.empty-state h2 { font-size: var(--t-4); margin-bottom: 0.6rem; }
.empty-state p { color: var(--texto-suave); }
.empty-state code { color: var(--laranja); }

/* --------------------------------------------------------------------------
   Artigo
   -------------------------------------------------------------------------- */

.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--laranja);
  transform: scaleX(var(--progresso, 0));
  transform-origin: 0 50%;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.article--with-toc {
  grid-template-columns: minmax(0, 1fr) 16rem;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.article--with-toc .article__head,
.article--with-toc .article__foot { grid-column: 1 / -1; }
.article--with-toc .prose { grid-column: 1; grid-row: 2; }
.article--with-toc .toc { grid-column: 2; grid-row: 2; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: var(--t-1);
  font-weight: 600;
  color: var(--texto-suave);
}
.breadcrumb a { color: var(--laranja); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article__title {
  font-stretch: 122%;
  font-weight: 850;
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}

.article__dek {
  max-width: 44rem;
  margin-top: 1.25rem;
  font-family: var(--fonte-texto);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  color: #d6d9d2;
}

.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 48rem;
  margin-top: 2rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--linha);
}
.article__author { font-weight: 700; font-size: var(--t-2); }
.article__dates { font-size: var(--t-0); color: var(--texto-suave); text-align: right; line-height: 1.6; }

.tutorial-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  max-width: 48rem;
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--painel);
  border-left: 4px solid var(--laranja);
}
.tutorial-facts dt { font-size: var(--t-0); color: var(--texto-suave); }
.tutorial-facts dd { margin: 0.15rem 0 0; font-weight: 600; font-size: var(--t-1); }
.tutorial-facts .level { font-size: var(--t-1); }
.tutorial-facts__req { flex-basis: 100%; }

.external-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 48rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--laranja);
  border-radius: var(--raio);
  background: var(--laranja-suave);
}
.external-note p { flex: 1 1 18rem; font-size: var(--t-1); }

.article__cover { margin: 2rem 0 0; }
.article__cover img { width: 100%; border-radius: var(--raio); }

.toc {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--linha);
  font-size: var(--t-1);
}
.toc__title { font-size: var(--t-1); font-weight: 700; margin-bottom: 0.75rem; }
.toc ol { list-style: none; }
.toc__item a {
  display: block;
  padding-block: 0.3rem;
  color: var(--texto-suave);
  text-decoration: none;
  line-height: 1.35;
}
.toc__item--h3 a { padding-left: 0.9rem; font-size: var(--t-0); }
.toc__item a:hover,
.toc__item a[aria-current="true"] { color: var(--laranja); }

/* Corpo do texto: parágrafos com medida confortável, código e tabelas mais largos */
.prose {
  margin-top: 2.5rem;
  font-family: var(--fonte-texto);
  font-size: 1.25rem;
  line-height: 1.68;
  color: #e8e6df;
}

.prose > * { max-width: var(--medida); }
.prose > pre,
.prose > .table-wrap { max-width: 52rem; }
.prose > * + * { margin-top: 1.25em; }

.prose h2,
.prose h3 {
  font-family: var(--fonte-titulo);
  color: var(--texto);
  letter-spacing: -0.01em;
  scroll-margin-top: 5.5rem;
}
.prose h2 { margin-top: 2.2em; font-stretch: 112%; font-weight: 750; font-size: 1.75rem; }
.prose h3 { margin-top: 1.8em; font-weight: 700; font-size: 1.3rem; }
.prose h2 + *,
.prose h3 + * { margin-top: 0.6em; }

.prose a { color: var(--texto); text-decoration-color: var(--laranja); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--laranja); }

.prose strong { color: var(--texto); font-weight: 600; }

.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--laranja); font-family: var(--fonte-ui); font-weight: 700; }

.prose blockquote {
  margin-inline: 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--laranja);
  font-style: italic;
  color: var(--texto);
}

.prose hr { border: 0; height: 1px; background: var(--linha); margin-block: 2.5em; }

.prose img { border-radius: var(--raio); }

.prose :not(pre) > code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: rgba(255, 122, 26, 0.12);
  color: #ffb27a;
  font-size: 0.82em;
}

.prose pre {
  position: relative;
  margin-inline: 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--preto);
  font-size: 0.9rem;
  line-height: 1.6;
  tab-size: 4;
}
.prose pre code { color: #e6e1d6; }

.copy-button {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--linha);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--texto-suave);
  font: 600 0.75rem / 1.4 var(--fonte-ui);
  cursor: pointer;
  opacity: 0;
}
.prose pre:hover .copy-button,
.copy-button:focus-visible { opacity: 1; }
.copy-button:hover { color: var(--laranja); border-color: var(--laranja); }

.table-wrap { overflow-x: auto; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fonte-ui);
  font-size: var(--t-1);
}
.prose th,
.prose td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--linha); }
.prose th { color: var(--laranja); font-weight: 700; }

/* Destaque de sintaxe (highlight.js), nas cores do site */
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-type { color: var(--laranja); }
.hljs-string, .hljs-attr, .hljs-symbol, .hljs-template-variable { color: #8fd6a8; }
.hljs-number, .hljs-literal { color: #ffc98f; }
.hljs-comment, .hljs-quote { color: #6f8277; font-style: italic; }
.hljs-title, .hljs-section, .hljs-name { color: #f2eee6; font-weight: 600; }
.hljs-variable, .hljs-params { color: #ffd9b8; }
.hljs-meta { color: #9fb5a8; }

.article__foot {
  max-width: var(--medida);
  margin-top: 3rem;
}

.sources-box {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--painel);
  border-top: 4px solid var(--laranja);
}
.sources-box__title { font-size: var(--t-3); margin-bottom: 0.6rem; }
.sources-box ul { list-style: none; }
.sources-box li { padding-block: 0.45rem; border-top: 1px solid var(--linha); }
.sources-box li:first-child { border-top: 0; }
.sources-box a { font-weight: 700; color: var(--laranja); }
.sources-box a:hover { color: var(--texto); }
.sources-box__host { margin-left: 0.5rem; font-size: var(--t-0); color: var(--texto-suave); }

.related { padding-block: 2rem clamp(3rem, 8vw, 6rem); }

/* --------------------------------------------------------------------------
   Radar
   -------------------------------------------------------------------------- */

.radar-page {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.radar-feed { list-style: none; }
.radar-feed__item { padding-block: 1.5rem; border-bottom: 1px solid var(--linha); }
.radar-feed__item:first-child { padding-top: 0; }
.radar-feed__source { font-size: var(--t-0); font-weight: 700; color: var(--laranja); }
.radar-feed__host { margin-left: 0.5rem; font-weight: 400; color: var(--texto-suave); }
.radar-feed__title { margin-top: 0.3rem; font-stretch: 105%; font-size: var(--t-4); line-height: 1.2; }
.radar-feed__title a { text-decoration: none; }
.radar-feed__title a::after { content: "\2197"; margin-left: 0.35rem; font-size: 0.7em; color: var(--laranja); }
.radar-feed__note { margin-top: 0.5rem; max-width: var(--medida); font-family: var(--fonte-texto); font-size: var(--t-3); color: #c9cec7; }
.radar-feed__date { margin-top: 0.5rem; font-size: var(--t-0); color: var(--texto-suave); }

.sources {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  padding: 1.5rem;
  background: var(--preto);
  border: 1px solid var(--linha);
}
.sources ul { list-style: none; }
.sources li { padding-block: 0.7rem; border-top: 1px solid var(--linha); }
.sources a { font-weight: 700; }
.sources span { display: block; font-size: var(--t-0); color: var(--texto-suave); }

/* --------------------------------------------------------------------------
   Busca e 404
   -------------------------------------------------------------------------- */

.search-form { display: flex; gap: 0.5rem; max-width: 36rem; margin-top: 1.5rem; }
.search-form input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--preto);
  color: var(--texto);
  font: inherit;
}
.search-form input:focus { border-color: var(--laranja); outline: none; }
.search-form .button { min-height: 3rem; }

.search-summary { margin-bottom: 2rem; color: var(--texto-suave); }
.search-summary strong { color: var(--texto); }

.tag-cloud { margin-top: 3rem; }

.not-found__code {
  font-family: var(--fonte-titulo);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--laranja);
}
.not-found .page-title { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 2rem;
  padding-top: 3.5rem;
  background: var(--preto);
  border-top: 1px solid var(--linha);
  font-size: var(--t-1);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
.site-footer__about p { margin-top: 0.8rem; max-width: 22rem; color: var(--texto-suave); }
.site-footer__title { font-size: var(--t-1); font-weight: 700; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer nav a,
.site-footer ul a { color: var(--texto-suave); text-decoration: none; }
.site-footer nav a:hover,
.site-footer ul a:hover { color: var(--laranja); }
.site-footer__legal {
  padding-block: 1.25rem;
  background: linear-gradient(var(--linha), var(--linha)) no-repeat top center / calc(100% - 2 * var(--espaco)) 1px;
  font-size: var(--t-0);
  color: var(--texto-suave);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 64rem) {
  .article--with-toc { grid-template-columns: minmax(0, 1fr); }
  .article--with-toc .toc {
    grid-column: 1; grid-row: auto;
    position: static;
    max-width: var(--medida);
    padding: 1rem 1.25rem;
    background: var(--painel);
    border-left: 4px solid var(--laranja);
  }
  .article--with-toc .prose { grid-row: auto; }
  .post-list--columns { grid-template-columns: minmax(0, 1fr); }
  .post-list--columns .post-row { padding-block: 1.25rem; border-bottom: 1px solid var(--linha); }
}

@media (max-width: 52rem) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--espaco) 1.5rem;
    background: var(--preto);
    border-bottom: 1px solid var(--linha);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--linha); }
  .site-nav a[aria-current="page"] { color: var(--laranja); border-bottom-color: var(--linha); }
  .header-search input { width: 100%; height: 2.75rem; }
  .header-search__hint { display: none; }

  .lead,
  .split,
  .radar-page { grid-template-columns: minmax(0, 1fr); }
  .lead__latest { align-self: stretch; }
  .radar-panel,
  .sources { position: static; }

  .section-head { grid-template-columns: 1fr; }

  .coming-soon {
  max-width: var(--medida);
  padding: 1.5rem 1.75rem;
  background: var(--painel);
  border-left: 4px solid var(--laranja);
}
.coming-soon__text {
  font-family: var(--fonte-texto);
  font-size: var(--t-4);
  line-height: 1.35;
}
.coming-soon .text-link { margin-top: 0.75rem; }
.coming-soon--compact .coming-soon__text { font-size: var(--t-3); }

.tutorial-grid { grid-template-columns: minmax(0, 1fr); }
  .tutorial-tile,
  .tutorial-tile:first-child { padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--linha); }
  .tutorial-tile:first-child { border-top: 0; padding-top: 0; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }

  .article__author { font-weight: 700; font-size: var(--t-2); }
.article__dates { text-align: left; }
  .prose { font-size: 1.15rem; }
  .copy-button { opacity: 1; }
}

@media (max-width: 30rem) {
  .search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body::before, .site-header, .site-footer, .reading-progress, .toc, .copy-button { display: none; }
  body { background: #fff; color: #000; }
  .prose, .article__dek { color: #000; }
}
