/* December 3 — tokens e estrutura do November24, com o laranja no lugar do verde (spec 00). */
:root {
  --ground: #120d0a;
  --raised: #1a1410;
  --line: #2e231c;
  --edge: #5a4637;
  --text: #f2ebe5;
  --soft: #d8cbc0;
  --mute: #ad9a8b;
  --accent: #ff7a1f;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ground); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
main { display: flex; flex-direction: column; gap: 80px; padding: 48px 0 88px; }

/* Topo e rodapé */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.top a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--accent); }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand span, .accent { color: var(--accent); }
.lang { font-family: var(--mono); font-size: 13px; color: var(--mute); border: 1px solid var(--edge); border-radius: 999px; padding: 0 14px; min-height: 36px !important; }
.lang:hover { color: var(--accent); border-color: var(--accent); }

.bottom { border-top: 1px solid var(--line); padding: 28px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--mute); }
.bottom > div { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.bottom a:hover { color: var(--accent); }

/* Tipografia */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.eyebrow.hot { color: var(--accent); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--mute); overflow-wrap: anywhere; }
.lead { font-size: 20px; line-height: 1.5; color: var(--soft); max-width: 620px; }
.body { font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 680px; }
.body a, .prose a { color: var(--accent); }
h1 { font-size: clamp(38px, 6.6vw, 72px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
.prose { font-size: 18px; line-height: 1.68; color: var(--text); max-width: 680px; overflow-wrap: break-word; }
.prose p + p { margin-top: 1em; }
.prose.large { font-size: clamp(19px, 2.1vw, 22px); }

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack.tight { gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
section > .between { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 8px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 4px; border: 1px solid var(--edge); background: transparent; color: var(--text); font: inherit; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ground); font-weight: 700; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* Capa */
.masthead { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 8px 0 0; }
.stats div { border-top: 2px solid var(--accent); padding-top: 10px; min-width: 120px; }
.stats dt { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.stats dd { margin: 2px 0 0; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }

/* Prancha da obra */
.art { display: block; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; background: #eceae4; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art.extinct { filter: grayscale(1); opacity: 0.6; }

/* Abertura: obra ao lado do texto */
.feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.feature > .plate { flex: 1 1 260px; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.feature > .stack { flex: 999 1 380px; min-width: 0; }

/* Cartão de texto */
.texts { display: flex; flex-direction: column; }
.card { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.card:last-child { border-bottom: 1px solid var(--line); }
.card .art { width: 84px; }
.card .stack { gap: 8px; min-width: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.excerpt { font-size: 16px; line-height: 1.6; color: var(--soft); overflow-wrap: break-word; }
.prov { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--mute); overflow-wrap: anywhere; }
.prov .house { color: var(--accent); }
.rating { font-family: var(--mono); font-size: 12px; color: var(--ground); background: var(--accent); padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
.kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--edge); border-radius: 2px; padding: 0 5px; }

.pager { margin-top: 24px; gap: 8px; }
.pager [aria-current] { border-color: var(--accent); color: var(--accent); }

/* Grade de obras */
.grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 104px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0; }
.tile:hover .mono { color: var(--accent); }

/* Páginas de obra e texto */
.detail { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.detail > .plate { flex: 1 1 280px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.detail > .stack { flex: 999 1 380px; min-width: 0; }
.detail h1 { font-size: clamp(34px, 5.5vw, 56px); }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 20px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.facts dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.facts.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.thread { border-left: 1px solid var(--edge); padding-left: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 20px; }
.entry { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line); }
.thread .entry { border-top: 0; padding: 4px 0; }

/* Convite */
.copy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid var(--edge); border-radius: 4px; padding: 10px 10px 10px 16px; background: var(--raised); max-width: 680px; }
.copy code { font-family: var(--mono); font-size: 15px; color: var(--accent); overflow-wrap: anywhere; flex: 1 1 200px; }
pre, .quote { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--soft); background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; margin: 0; }
details { border-top: 1px solid var(--line); padding: 14px 0; max-width: 760px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--mute); }
details[open] summary::after { content: "–"; }
details > .stack { padding-top: 14px; gap: 12px; }

.notice { border: 1px dashed var(--edge); border-radius: 4px; padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--mute); max-width: 760px; }
.manifesto { display: flex; flex-wrap: wrap; gap: 16px 48px; border-top: 1px solid var(--line); padding-top: 40px; }
.manifesto > .eyebrow { flex: 1 1 160px; }
.manifesto > .stack { flex: 999 1 420px; max-width: 720px; gap: 18px; }
.manifesto p { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; letter-spacing: -0.01em; }
.manifesto p + p { color: var(--soft); }

table { border-collapse: collapse; width: 100%; max-width: 900px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.scroll { overflow-x: auto; max-width: 100%; }

@media (max-width: 560px) {
  main { gap: 64px; padding-top: 32px; }
  .card { grid-template-columns: 64px 1fr; gap: 14px; }
  .card .art { width: 64px; }
  .top nav { gap: 0 16px; font-size: 14px; }
  .prose { font-size: 17px; }
}
