:root {
  /* a paleta e as fontes da sua primeira versao */
  --bg: #f5f4ed;
  --bg-2: #ebe9de;
  --fg: #141413;
  --muted: #6b675d;
  --line: #dedbcd;
  --accent: #9a5b12;
  --dither: #9a5b12; /* mesma cor do destaque (dourado/ocre, como o Jupiter) */
  --serif: "Newsreader", Georgia, serif;
  --mono: "Fira Code", ui-monospace, Menlo, Consolas, monospace;
  --w: 720px;
  --r: 6px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme=dark] {
  --bg: #1a1a1a;
  --bg-2: #242422;
  --fg: #e8e5da;
  --muted: #9a968c;
  --line: #2f2e2a;
  --accent: #e3b778;
  --dither: #e3b778;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* grao de papel (emile) */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; background-image: var(--grain); background-size: 120px; opacity: .045; }
[data-theme=dark] body::after { opacity: .06; filter: invert(1); }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--fg) 28%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color .25s, text-decoration-color .25s, background .25s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
h1, h2, h3, p, ul { margin: 0; }
main, .top-in, .foot-in { max-width: var(--w); margin: 0 auto; padding-left: 20px; padding-right: 20px; width: 100%; }
main { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.mono { font-family: var(--mono); }

/* cabecalho fixo e translucido (emile) */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 15px; font-weight: 500; text-decoration: none; }
.brand svg { width: 28px; height: 28px; transition: transform .6s; }
.brand:hover svg { transform: rotate(40deg); }
.top nav { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 13px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
#theme { background: none; border: 0; color: var(--muted); width: 32px; height: 32px; border-radius: var(--r); cursor: pointer; font-size: 16px; transition: background .2s, color .2s; }
#theme:hover { background: var(--bg-2); color: var(--fg); }

/* abertura: etiqueta (anakan) + caixa (emile) */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.box { border: 1px solid var(--line); border-radius: var(--r); }
.intro { padding: 28px 28px 30px; }
h1 { font-weight: 500; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.intro h1 { margin-bottom: 14px; }
.tagline { font-size: 22px; color: var(--muted); margin-bottom: 20px; }
.tagline em { font-style: italic; color: var(--accent); }
.intro p + p { margin-top: 12px; }
.intro p { color: var(--muted); max-width: 560px; }
.intro p a { color: var(--fg); }

/* em numeros (anakan) */

h2.label { font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -.015em; margin-bottom: 16px; }
.sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: -8px 0 16px; }

/* cards de post (emile): capa em preto e branco */
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.stats li { padding: 16px 20px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-weight: 500; font-size: 32px; line-height: 1.1; }
.stats span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cards { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.card { display: flex; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: background .3s; }
.card:hover { background: color-mix(in srgb, var(--bg-2) 70%, transparent); color: inherit; }
.card .cover { flex: 0 0 190px; max-width: 190px; align-self: flex-start; }
.card .cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; border-radius: 4px; }
.card .cover.empty { aspect-ratio: 1200 / 630; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); }
.card .cover.empty svg { width: 26px; height: 26px; }
.card .info { flex: 1; min-width: 0; }
.card h3 { font-size: 23px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 4px; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--muted); font-size: 16px; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.meta i { width: 1px; height: 14px; background: var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a, .tags span { display: inline-flex; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 9px; border-radius: 4px; text-decoration: none; color: var(--fg); }
.tags a:hover { color: var(--accent); border-color: var(--accent); }
.more { font-family: var(--mono); font-size: 13px; }
.more a { text-decoration: none; display: inline-flex; gap: 6px; }
.more a span { transition: transform .3s; }
.more a:hover span { transform: translateX(4px); }

/* projetos em destaque (anakan) - placeholders */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: background .3s, border-color .3s; }
.project:hover { background: color-mix(in srgb, var(--bg-2) 70%, transparent); border-color: var(--accent); color: inherit; }
.project h3 { font-size: 22px; font-weight: 500; line-height: 1.2; }
.project p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.project .tags { margin-top: auto; padding-top: 6px; }

/* convite (anakan) */
.cta { padding: 28px; text-align: center; }
.cta h2 { font-size: 28px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 8px; }
.cta p { color: var(--muted); margin-bottom: 18px; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn { font-family: var(--mono); font-size: 12.5px; text-decoration: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r); transition: background .25s, border-color .25s, color .25s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* lista de posts como diretorio (anakan) */
.page-title { font-weight: 500; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.tree { list-style: none; padding: 0; font-family: var(--mono); font-size: 13.5px; }
.tree li { position: relative; display: grid; grid-template-columns: 94px 1fr; gap: 10px; padding: 7px 0 7px 26px; }
.tree li::before { content: "├─"; position: absolute; left: 0; color: var(--muted); }
.tree li:last-child::before { content: "└─"; }
.tree time { color: var(--muted); }
.tree a { text-decoration: none; font-family: var(--serif); font-size: 19px; }
.tree a:hover { text-decoration: underline; }
.tag-cloud { margin-bottom: 4px; }
.tag-cloud small { opacity: .6; margin-left: 4px; }
.tag-group { scroll-margin-top: 80px; }
.tag-group h2.label { font-family: var(--mono); font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.tag-group:target h2.label { color: var(--accent); }

/* post */
.post-head h1 { margin-bottom: 12px; }
.post-head time { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 4px 0 28px; font-family: var(--mono); font-size: 12.5px; }
.toc b { display: block; font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc .l3 { margin-left: 1em; color: var(--muted); }
.prose { overflow-wrap: break-word; }
.prose h2, .prose h3 { font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 1.8em 0 .6em; scroll-margin-top: 80px; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 24px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose a { text-decoration-color: var(--accent); }
.prose img { max-width: 100%; height: auto; display: block; border-radius: var(--r); }
.prose figure { margin: 1.5em 0; }
.prose figcaption { margin-top: 8px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
/* caixa de aviso dentro dos posts (ex: "importante:") */
.prose .aviso { margin: 1.4em 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--bg-2); font-size: .95em; }
.prose .aviso strong { color: var(--accent); }
.prose .aviso code { background: var(--bg); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose code { font-family: var(--mono); font-size: .8em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
.prose pre { margin: 1.5em 0; }
.prose .highlight, .prose pre.highlight { overflow-x: auto; border-radius: var(--r); padding: 16px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; }
.prose .highlight pre { margin: 0; }
.prose pre code, .prose .highlight code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose div.highlighter-rouge { margin: 1.5em 0; }
.prose .mermaid { text-align: center; margin: 1.5rem 0; }
.prose .mermaid svg { max-width: 100%; height: auto; }
.reply { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reply a { color: var(--muted); }

/* rodape (emile) */
.foot { padding: 12px 0 20px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.foot-in ul { list-style: none; padding: 0; display: flex; gap: 8px; }
.foot-in a.ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r); color: var(--fg); text-decoration: none; transition: background .25s; }
.foot-in a.ico:hover { background: var(--bg-2); color: var(--accent); }
.foot-in svg { width: 16px; height: 16px; }

@keyframes subir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main > * { animation: subir .5s ease both; }
main > *:nth-child(2) { animation-delay: .06s; }
main > *:nth-child(3) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

@media (min-width: 640px) { .foot-in { flex-direction: row; justify-content: space-between; } }
@media (max-width: 639px) {
  .stats { grid-template-columns: 1fr; }
  .stats li { border-left: 0; border-top: 1px solid var(--line); }
  .stats li:first-child { border-top: 0; }
  body { font-size: 18px; }
  .card { flex-direction: column; }
  .card .cover { flex: none; max-width: none; width: 100%; }
  .projects { grid-template-columns: 1fr; }
  .tree li { grid-template-columns: 1fr; gap: 0; }
  .top nav { gap: 14px; }
  .intro { padding: 22px; }
}

/* imagem com efeito dither (inspirado no anakan.me) */
.dither-box { margin: 0; }
.dither { display: block; width: 100%; aspect-ratio: 16 / 6; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); image-rendering: pixelated; image-rendering: crisp-edges; }
.dither-box figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; letter-spacing: .04em; }
.dither-box figcaption code { font-size: 1em; }

.tags .wip { color: var(--accent); border-color: var(--accent); background: transparent; }

.tree li[hidden] { display: none; }
.tree li.last::before { content: "└─"; }
.tree li:not(.last):not(:last-child)::before { content: "├─"; }

/* ---- universo de tags (3D, redesenhado em dither a cada quadro) ---- */
.universo { position: relative; width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline-offset: 3px; }
.universo.arrastando { cursor: grabbing; }
.universo canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.planeta { position: absolute; left: 0; top: 0; width: 0; height: 0; text-decoration: none; color: var(--fg); cursor: pointer; }
.planeta .hit { position: absolute; border-radius: 50%; }
.planeta .nome { position: absolute; left: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; background: color-mix(in srgb, var(--bg-2) 82%, transparent); padding: 1px 6px; border-radius: 4px; transition: color .2s; }
.planeta .nome small { display: block; color: var(--muted); font-size: 10.5px; }
.planeta:hover .nome, .planeta:focus-visible .nome { color: var(--accent); }
.planeta:focus-visible { outline: none; }
.u-ctrl { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 200; }
.u-ctrl button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--fg); font-family: var(--mono); font-size: 15px; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s; }
.u-ctrl button:hover { border-color: var(--accent); color: var(--accent); }
.universo.usado .u-dica { opacity: 0; }

.tags[hidden], .universo[hidden] { display: none; }

/* universo em tela cheia (pagina de tags) */
.universo.cheio { position: fixed; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: transparent; z-index: 0; pointer-events: auto; }
body.tem-universo main, body.tem-universo .foot { position: relative; z-index: 1; }
body.tem-universo main { pointer-events: none; }
body.tem-universo .foot { margin-top: auto; }
.universo.cheio .planeta .nome { background: color-mix(in srgb, var(--bg) 78%, transparent); }
.universo.cheio .u-ctrl { top: 78px; right: 16px; }

/* fractais em dither nos projetos */
.fractal { display: block; width: 100%; aspect-ratio: 16 / 8; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); image-rendering: pixelated; image-rendering: crisp-edges; margin-bottom: 8px; }

/* estetica: tudo em minusculo, inclusive o texto dos posts (so por CSS; o texto original continua intacto).
   unica excecao: codigo, onde maiuscula/minuscula muda o significado */
body { text-transform: lowercase; }
pre, code, kbd, samp, .highlight, .mermaid { text-transform: none; }

/* notas laterais (telas largas): ficam na margem direita, alinhadas com a chamada */
.post { position: relative; }
.sidenote { display: none; }
.com-notas .sidenote { display: block; position: absolute; left: calc(100% + 28px); width: 230px; font-size: 14px; line-height: 1.45; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--line); transition: color .15s, border-color .15s; }
.com-notas .sidenote b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--accent); margin-right: 6px; vertical-align: top; }
.com-notas .sidenote p { display: inline; margin: 0; }
.com-notas .sidenote.lit { color: var(--fg); border-left-color: var(--accent); }
.com-notas .prose .footnotes { display: none; }
.prose sup a.footnote { color: var(--accent); text-decoration: none; padding: 0 2px; border-radius: 3px; }
.prose sup a.footnote.lit { background: var(--line); }
.prose .footnotes { margin-top: 2.4em; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* botao de voltar ao topo */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s, border-color .15s, color .15s; z-index: 20; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* imagens dos posts centralizadas */
.prose img { margin-left: auto; margin-right: auto; }
.prose p > img:only-child, .prose figure { text-align: center; }
.prose figure { margin: 1.4em auto; }
.prose figcaption, .prose img + em { display: block; text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* "nesta leitura": a caixa fica no topo do post; ao rolar, ela gruda e desliza para a lateral esquerda (telas largas) */
.toc a.on { color: var(--accent); }
.toc-side { display: none; }
@media (min-width: 1240px) {
  .toc-side { display: block; position: fixed; top: 110px; left: calc(50% - 568px); width: 200px; box-sizing: border-box; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: none; font-family: var(--mono); font-size: 12.5px; background: var(--bg); border: 1px solid transparent; border-radius: var(--r); padding: 0; opacity: 0; visibility: hidden; pointer-events: none; z-index: 5; transition: left .55s cubic-bezier(.22,.8,.26,1), width .55s cubic-bezier(.22,.8,.26,1), padding .55s cubic-bezier(.22,.8,.26,1), border-color .55s; }
  .toc-side::-webkit-scrollbar { display: none; }
  /* ponto de partida: exatamente sobre a caixa original */
  .toc-side.dock { opacity: 1; visibility: visible; left: calc(50% - 340px); width: 680px; padding: 14px 18px; border-color: var(--line); background: var(--bg); }
  /* chegada: trilha na margem */
  .toc-side.on { opacity: 1; visibility: visible; pointer-events: auto; }
  .toc-side.sem-anim { transition: none; }
  .toc-side.volta { transition: left .3s cubic-bezier(.22,.8,.26,1), width .3s cubic-bezier(.22,.8,.26,1), padding .3s, border-color .3s; }
  .toc-side b { display: block; font-weight: 500; color: var(--muted); margin-bottom: 8px; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; white-space: nowrap; }
  .toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc-side.dock ol { border-left-color: transparent; }
  .toc-side li { margin: 0; }
  .toc-side li a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
  .toc-side li a:hover { color: var(--fg); }
  .toc-side li a.on { color: var(--accent); border-left-color: var(--accent); }
  .toc-side .l3 { margin-left: 0; }
  .toc-side .l3 a { padding-left: 24px; }
}

/* espacamento do cabecalho do post: tags, indice e texto */
.post-head { margin-bottom: 28px; }
.post-head .tags { margin-top: 14px; }
.post-head + .toc { margin: 0 0 36px; }
.post-head + .toc[hidden] { display: none; }

/* botao de idioma no menu */
.top nav a.lang { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.top nav a.lang:hover { border-color: var(--accent); color: var(--accent); }

/* cartao de projeto com dois destinos: o cartao abre o site, e um link pequeno leva ao codigo */
.project.duplo h3 a.alvo { text-decoration: none; }
.project.duplo h3 a.alvo::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.project .repo { position: relative; z-index: 2; align-self: flex-start; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.project .repo:hover { color: var(--accent); }

/* aviso quando ainda nao ha posts no idioma */
.vazio { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 6px 0 14px; }

/* celular / telas bem pequenas: o menu desce para uma segunda linha, com respiro em relacao ao logo */
.top-in { gap: 16px; }
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .top nav { width: 100%; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* selecao de texto: marrom do tema. sem JS fica uma cor lisa; com JS vira dither (camada #sel-dither) */
::selection { background: color-mix(in srgb, var(--accent) 38%, transparent); color: inherit; }
.sel-dither-on ::selection { background: transparent; color: inherit; }
#sel-dither { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 40; }
#sel-dither i { position: absolute; background-size: 8px 8px; image-rendering: pixelated; image-rendering: crisp-edges; }

/* fundo de ondas em dither (so nas paginas com data-fundo no body: home e sobre) */
#bg-dither { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; }
main, .foot { position: relative; z-index: 1; }

/* links: uma faixa com o mesmo padrao da selecao de texto (xadrez de quadradinhos de 2px, pontos fortes e fundo suave),
   so que como uma linha grossa (8px) que fica meio atras da parte de baixo da palavra */
.prose a:not(.footnote):not(.reversefootnote), .intro p a, .sidenote a {
  text-decoration: none;
  background-image:
    conic-gradient(
    color-mix(in srgb, var(--accent) 59%, transparent) 0 25%,
    color-mix(in srgb, var(--accent) 13%, transparent) 0 50%,
    color-mix(in srgb, var(--accent) 59%, transparent) 0 75%,
    color-mix(in srgb, var(--accent) 13%, transparent) 0),
    conic-gradient(
    color-mix(in srgb, var(--accent) 59%, transparent) 0 25%,
    color-mix(in srgb, var(--accent) 13%, transparent) 0 50%,
    color-mix(in srgb, var(--accent) 59%, transparent) 0 75%,
    color-mix(in srgb, var(--accent) 13%, transparent) 0);
  background-repeat: repeat-x;
  background-position: left bottom, left calc(100% - 4px);
  background-size: 4px 4px;
  image-rendering: pixelated;
}
.prose a:not(.footnote):not(.reversefootnote):hover, .intro p a:hover, .sidenote a:hover {
  background-image:
    conic-gradient(
    color-mix(in srgb, var(--accent) 75%, transparent) 0 25%,
    color-mix(in srgb, var(--accent) 30%, transparent) 0 50%,
    color-mix(in srgb, var(--accent) 75%, transparent) 0 75%,
    color-mix(in srgb, var(--accent) 30%, transparent) 0),
    conic-gradient(
    color-mix(in srgb, var(--accent) 75%, transparent) 0 25%,
    color-mix(in srgb, var(--accent) 30%, transparent) 0 50%,
    color-mix(in srgb, var(--accent) 75%, transparent) 0 75%,
    color-mix(in srgb, var(--accent) 30%, transparent) 0);
}

/* fonte da citacao da home */
.intro .fonte { font-family: var(--mono); font-size: 12px; font-style: normal; white-space: nowrap; margin-left: .4em; }

/* capas dos cartoes: "meio dither" (foto em duotone misturada com pontos), desenhada em canvas pelo pro.js */
.card .cover canvas.capa { background: none; width: 100%; aspect-ratio: 1200 / 630; height: auto; border: 0; border-radius: 4px; }

/* lista de posts: arvore (├─) com entradas ricas: capa em meio dither, titulo, data e tempo de leitura, resumo e tags */
.tree li { display: block; padding: 14px 0 14px 30px; }
.tree li::before { top: 18px; }
.tree li:not(.last):not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 40px; bottom: -8px; border-left: 1px dashed var(--line); }
.tree a.entrada { display: flex; gap: 20px; align-items: flex-start; font-family: var(--serif); font-size: inherit; text-decoration: none; color: inherit; }
.tree a.entrada:hover { text-decoration: none; }
.entrada .cover { flex: 0 0 230px; max-width: 230px; }
.entrada .cover img, .entrada .cover canvas { width: 100%; aspect-ratio: 1200 / 630; display: block; border-radius: 4px; }
.entrada .cover.empty { aspect-ratio: 1200 / 630; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); }
.entrada .cover.empty svg { width: 26px; height: 26px; }
.entrada .info { flex: 1; min-width: 0; }
.entrada h3 { font-size: 25px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 6px; transition: color .25s; }
.entrada:hover h3 { color: var(--accent); }
.entrada:hover .cover canvas, .entrada:hover .cover img { outline: 1px solid var(--accent); outline-offset: 2px; }
.entrada p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
@media (max-width: 639px) {
  .tree a.entrada { flex-direction: column; gap: 12px; }
  .entrada .cover { flex: none; max-width: none; width: 100%; }
}
