/* Blog do Ether 2050: mesmos tokens do design system do site (web/src/index.css). Só tema escuro. */
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --bg: #0b0a07; --bg-2: #12100a; --panel: #15120b; --line: #3a301a;
  --gold: #e1ad3a; --gold-hi: #f9e15d; --gold-edge: #c5a03a;
  --ink: #f4f1e8; --ink-2: #d9d4c6; --muted: #a8b2b1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 18px/1.65 "Barlow", system-ui, sans-serif; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.top .wrap { max-width: 1180px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 22px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.top nav { display: flex; align-items: center; gap: 16px; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font: 600 16px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.top nav a:not(.btn):hover { color: var(--gold-hi); }
main.wrap { padding-top: 40px; padding-bottom: 64px; }
h1, h2, h3 { color: var(--ink); font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; line-height: 1; }
h1 { font-size: clamp(36px, 6vw, 56px); margin: 8px 0 16px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 40px 0 12px; }
.kicker { margin: 0; color: var(--gold-edge); font: 600 14px/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .18em; }
.lede { font-size: 20px; color: var(--ink); }
/* Categoria e data do artigo, logo abaixo do título (antes era uma etiqueta em caixa alta acima dele). */
.byline { margin: -6px 0 18px; font-size: 15px; color: var(--muted); }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
strong { color: var(--ink); }
.box { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--gold-edge); border-radius: 14px; background: linear-gradient(#1b170d, var(--panel)); }
.box h2 { margin-top: 0; font-size: 24px; color: var(--gold); }
.box ul { margin: 0; padding-left: 20px; }
.table { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--panel); color: var(--gold); font: 600 15px/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
tbody th { color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--gold); color: #1a1405; text-decoration: none; font: 800 18px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--gold); }
.btn:hover { background: var(--gold-hi); color: #1a1405; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 8px; }
.more { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.foot { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 15px; padding: 24px 0; }
.foot .wrap { max-width: 1180px; }
.foot a { color: var(--muted); }
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top nav a:not(.btn) { display: none; }
  .top nav a[href="/blog"] { display: inline; }
}
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
.toc { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc a { color: var(--ink-2); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.faq details p { margin: 10px 0 0; }
h2.cat { margin-top: 48px; color: var(--gold); }
.calc td:last-child, .calc th:last-child { text-align: right; white-space: nowrap; }
.note { font-size: 15px; color: var(--muted); }

/* Artes do jogo nas páginas estáticas (28/11/2026): faixa de abertura, capas, miniaturas, galeria e página de erro. */
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.wide { max-width: 1180px; }

/* Faixa de abertura (blog e imprensa): arte em cima; no celular o texto vem logo abaixo, sobre o fim da arte. */
.hero { position: relative; margin: 0 0 8px; }
.hero > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; border-radius: 16px; background: linear-gradient(180deg, rgba(11,10,7,0) 45%, rgba(11,10,7,.75) 80%, var(--bg) 100%); pointer-events: none; }
.hero-txt { position: relative; z-index: 1; margin-top: -56px; padding: 0 4px; }
.hero-txt h1 { margin-top: 0; }
.hero-txt .lede { margin-bottom: 0; max-width: 62ch; }
@media (min-width: 760px) {
  .hero { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
  .hero > img { aspect-ratio: auto; height: clamp(380px, 44vw, 500px); border: 0; border-radius: 0; }
  .hero::after { top: 0; bottom: 0; aspect-ratio: auto; border-radius: 0; background: linear-gradient(90deg, rgba(11,10,7,.92) 0%, rgba(11,10,7,.7) 45%, rgba(11,10,7,0) 80%), linear-gradient(180deg, rgba(11,10,7,0) 50%, rgba(11,10,7,.85) 100%); }
  .hero-txt { position: absolute; left: 0; bottom: 0; max-width: 640px; margin: 0; padding: 40px; }
  .hero-txt h1 { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
}
main:not(.wide) .hero-txt { max-width: 560px; }

/* Cartões do blog: capa em cima, título e resumo embaixo. */
.cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cards li { display: flex; }
.cards a { display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: inherit; text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; }
.cards .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.cards .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cards .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,18,11,0) 55%, var(--panel) 100%); }
.cards .card-txt { display: flex; flex-direction: column; flex: 1; padding: 4px 22px 22px; }
.cards h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.02; }
.cards p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cards time { margin-top: auto; color: var(--gold-edge); font-size: 14px; }
.cards a:hover, .cards a:focus-visible { border-color: var(--gold-edge); transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(225,173,58,.35); }
.cards a:hover .thumb img, .cards a:focus-visible .thumb img { transform: scale(1.04); }
.cards a:hover h3 { color: var(--gold-hi); }

/* Capa do artigo, logo abaixo do título. */
.cover { margin: 0 0 24px; }
.cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }

/* "Leia também" com miniaturas. */
.reads { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.reads a { display: flex; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); text-decoration: none; font: 600 20px/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; transition: border-color .2s; }
.reads img { flex: none; width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.reads a:hover { border-color: var(--gold-edge); color: var(--gold-hi); }
@media (min-width: 640px) { .reads img { width: 160px; } .reads a { font-size: 22px; } }

/* Galeria da imprensa: miniatura, nome e link para o arquivo cheio. */
.gallery { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery figure { margin: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.gallery img.pad { object-fit: contain; padding: 12% 14%; background: radial-gradient(ellipse at center, #1f1a0e 0%, var(--bg) 75%); }
.gallery figcaption { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; font-size: 16px; }
.gallery .dl { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--gold-edge); border-radius: 999px; color: var(--gold-hi); text-decoration: none; font: 600 15px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.gallery .dl:hover { background: var(--gold); border-color: var(--gold); color: #1a1405; }

/* Página de erro: arte do Gabi ao fundo, texto por cima, à esquerda. */
.lost { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.lost-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .55; }
.lost::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,10,7,.95) 0%, rgba(11,10,7,.8) 50%, rgba(11,10,7,.25) 100%); }
.lost-txt { position: relative; z-index: 1; padding: 32px 22px; max-width: 520px; }
.lost-txt h1 { margin-top: 0; }
.lost-txt ul { padding-left: 20px; }
.lost-txt .cta { margin-bottom: 0; }
@media (min-width: 760px) { .lost-txt { padding: 56px 48px; } }
/* Celular: o Gabi ficava atrás do texto. A arte vira uma faixa em cima e o texto fica no fundo liso. */
@media (max-width: 759px) {
  .lost-bg { position: relative; inset: auto; display: block; height: auto; aspect-ratio: 16 / 9; object-position: 62% 30%; opacity: .9; }
  .lost::after { inset: 0 0 auto 0; height: calc((100vw - 32px) * 9 / 16); background: linear-gradient(180deg, rgba(11,10,7,0) 45%, rgba(11,10,7,.95) 100%); }
  .lost-txt { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cards a, .cards .thumb img { transition: none; }
  .cards a:hover, .cards a:focus-visible { transform: none; }
  .cards a:hover .thumb img, .cards a:focus-visible .thumb img { transform: none; }
}
