/* redept13 — papel quente, tinta escura e um vermelho só. */
:root {
  --fundo: #f5efe6;
  --cartao: #fffdf8;
  --tinta: #1c1513;
  --fraca: #6b5d55;
  --linha: #e2d6c6;
  --vermelho: #c8131b;
  --vermelho-forte: #9d0c13;
  --sobre-vermelho: #fff;
  --realce: #fbe9e4;
  --foco: #1c1513;
  --raio: 14px;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titulo: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #130f0e;
    --cartao: #1d1716;
    --tinta: #f4ece4;
    --fraca: #a8988e;
    --linha: #33292600;
    --linha: #362b28;
    --vermelho: #ff4a4f;
    --vermelho-forte: #ff6f73;
    --sobre-vermelho: #1a0606;
    --realce: #3a1516;
    --foco: #f4ece4;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font: 16px/1.5 var(--fonte); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--vermelho); text-underline-offset: .18em; }
a:hover { color: var(--vermelho); }
h1, h2 { line-height: 1.15; margin: 0 0 .6rem; text-wrap: balance; }
p { margin: 0 0 .8rem; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: .5rem; background: var(--tinta); color: var(--fundo); padding: .6rem 1rem; border-radius: 8px; z-index: 50; }
.pular:focus { left: .5rem; }

/* marca */
.marca { font: 400 1.7rem/1 var(--titulo); letter-spacing: -.02em; text-decoration: none; color: var(--tinta); display: inline-block; }
.marca a { text-decoration: none; }
.marca b { font-weight: 800; color: var(--vermelho); }
.marca-g { font-size: 2.2rem; margin-bottom: 2.2rem; }

/* botões e campos */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .55rem 1.25rem; border: 2px solid var(--vermelho); border-radius: 999px;
  background: var(--vermelho); color: var(--sobre-vermelho); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.bt:hover { background: var(--vermelho-forte); border-color: var(--vermelho-forte); color: var(--sobre-vermelho); }
.bt:active { transform: scale(.98); }
.bt-vazado { background: transparent; color: var(--tinta); border-color: var(--linha); }
.bt-vazado:hover { background: var(--realce); color: var(--tinta); border-color: var(--vermelho); }
.bt-perigo { background: transparent; color: var(--vermelho); }
.bt-perigo:hover { background: var(--vermelho); color: var(--sobre-vermelho); }
.bt-liso { background: none; border: 0; padding: .5rem .25rem; min-height: 44px; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--linha); text-underline-offset: .2em; }
.bt-liso:hover { color: var(--vermelho); }
.perigo { color: var(--vermelho); }
.pequeno { font-size: .85rem; min-height: 32px; padding: .2rem 0; }

.form { display: grid; gap: .35rem; }
.form label { font-weight: 650; font-size: .92rem; margin-top: .7rem; }
.form small, small.conta { color: var(--fraca); font-size: .82rem; }
.form .bt { margin-top: 1.1rem; justify-self: start; }
.opc { font-weight: 400; color: var(--fraca); }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; background: var(--fundo);
  border: 1.5px solid var(--linha); border-radius: 10px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--vermelho); outline-offset: 0; border-color: var(--vermelho); }
input[type=file] { font-size: .9rem; max-width: 100%; }
.dupla { display: grid; grid-template-columns: 1fr 6.5rem; gap: .8rem; }
.dupla label { display: block; margin-bottom: .35rem; }
.aceite { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.aceite input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--vermelho); flex: none; }
.erro { background: var(--realce); border-left: 4px solid var(--vermelho); padding: .7rem .9rem; border-radius: 0 10px 10px 0; font-weight: 600; }
.aviso { background: var(--tinta); color: var(--fundo); padding: .7rem 1rem; border-radius: 10px; margin: .8rem 1rem; font-weight: 600; }

.caixa { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.25rem; margin: 0 0 1rem; }
.caixa h2 { font-size: 1.1rem; }
.caixa-perigo { border-color: var(--vermelho); }

/* páginas públicas */
.publico { min-height: 100dvh; padding: clamp(1.2rem, 4vw, 3rem); display: flex; flex-direction: column; }
.capa { flex: 1; display: grid; gap: 2rem; align-items: center; max-width: 1080px; width: 100%; margin: 0 auto; }
.capa h1 { font: 800 clamp(2.3rem, 7vw, 4.3rem)/.98 var(--titulo); letter-spacing: -.035em; margin-bottom: 1.2rem; }
.capa h1 em { font-style: normal; color: var(--vermelho); }
.capa-sub { font-size: 1.1rem; color: var(--fraca); max-width: 34rem; }
.capa-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; }
@media (min-width: 860px) { .capa-cta { display: none; } }
.capa-pontos { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; max-width: 34rem; }
.capa-pontos li { padding-left: 1.1rem; border-left: 3px solid var(--vermelho); }
.capa-entrar { padding: 1.6rem; margin: 0; }
.capa-entrar h2 { font-size: 1.4rem; }
.capa-novo { margin: 1.2rem 0 0; color: var(--fraca); }
.capa-novo a { color: var(--tinta); font-weight: 700; }
.estreito { max-width: 30rem; width: 100%; margin: 0 auto; }
.estreito > .marca { margin: .5rem 0 1.5rem; }
.rodape { color: var(--fraca); font-size: .82rem; }
.rodape-capa { text-align: center; margin: 2rem 0 0; }
@media (min-width: 860px) { .capa { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }

/* estrutura logada */
.grade { max-width: 1180px; margin: 0 auto; }
.lado { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--cartao); border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); }
.lado .marca, .so-largo { display: none; }
.lado nav { display: flex; justify-content: space-around; }
.lado nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .2rem .45rem; min-height: 56px; text-decoration: none; font-size: .7rem; color: var(--fraca); }
.lado nav a[aria-current] { color: var(--vermelho); font-weight: 700; }
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
main#conteudo:not(.publico) { min-width: 0; padding-bottom: 5.5rem; }
.direita { padding: 0 1rem 6.5rem; }
.cab { font: 800 1.35rem/1.2 var(--titulo); letter-spacing: -.01em; padding: 1rem; margin: 0; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--fundo) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.voltar { text-decoration: none; margin-right: .4rem; padding: .3rem .5rem; }
.sub { font-size: 1rem; padding: 1.2rem 1rem .4rem; margin: 0; color: var(--fraca); text-transform: uppercase; letter-spacing: .06em; }
main > .caixa, main > details.caixa { margin: 1rem; }

@media (min-width: 720px) {
  .grade { display: grid; grid-template-columns: 5rem minmax(0, 640px); justify-content: center; }
  .lado { position: sticky; inset: 0 auto auto auto; top: 0; height: 100dvh; border: 0; background: none; padding: 1rem .5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
  .lado nav { flex-direction: column; gap: .2rem; }
  .lado nav a { flex: none; flex-direction: row; gap: .9rem; font-size: 1.08rem; padding: .7rem .9rem; border-radius: 999px; color: var(--tinta); min-height: 48px; }
  .lado nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lado nav a:hover { background: var(--realce); color: var(--tinta); }
  main#conteudo:not(.publico) { border-inline: 1px solid var(--linha); min-height: 100dvh; padding-bottom: 3rem; }
  .direita { display: none; }
}
@media (min-width: 1080px) {
  .grade { grid-template-columns: 15rem minmax(0, 620px) 19rem; }
  .lado { align-items: stretch; padding: 1.2rem 1rem; }
  .lado .marca { display: block; padding: .3rem .9rem 1rem; }
  .lado nav a span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .lado .sair { display: block; margin-top: auto; padding: 0 .9rem; }
  .direita { display: block; position: sticky; top: 0; align-self: start; padding: 1.2rem 0 1rem 1.5rem; }
}

/* compor */
.compor { display: flex; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--linha); }
.compor-c { flex: 1; min-width: 0; }
.compor textarea, .comentar textarea { border: 0; background: none; padding: .5rem 0; font-size: 1.15rem; resize: none; min-height: 3.2rem; }
.compor textarea:focus-visible, .comentar textarea:focus-visible { outline: 0; box-shadow: 0 2px 0 var(--vermelho); border-radius: 0; }
.compor-pe { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }
.compor-pe .bt { margin-left: auto; }
.anexo { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .8rem; border-radius: 999px; color: var(--vermelho); font-weight: 650; cursor: pointer; position: relative; }
.anexo:hover { background: var(--realce); }
.anexo:focus-within { outline: 3px solid var(--foco); outline-offset: 2px; }
.conta { color: var(--fraca); font-size: .85rem; font-variant-numeric: tabular-nums; }
.previa { position: relative; margin: .5rem 0; }
.previa img { border-radius: var(--raio); max-height: 320px; border: 1px solid var(--linha); }

/* publicação */
.av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--linha); flex: none; display: block; }
.av-l { display: grid; place-items: center; background: var(--vermelho); color: var(--sobre-vermelho); font: 800 1.25rem var(--titulo); }
.post, .coment { display: flex; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--linha); }
.post-av { flex: none; text-decoration: none; }
.post-c { flex: 1; min-width: 0; }
.post-c > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; line-height: 1.3; }
.nome { font-weight: 750; text-decoration: none; }
.nome:hover { text-decoration: underline; }
.arroba, .quando { color: var(--fraca); font-size: .92rem; }
.quando { text-decoration: none; margin-left: auto; white-space: nowrap; }
a.quando:hover { text-decoration: underline; }
.texto { white-space: pre-wrap; overflow-wrap: anywhere; margin: .25rem 0 .2rem; font-size: 1.04rem; }
.texto a { color: var(--vermelho); text-decoration: none; }
.texto a:hover { text-decoration: underline; }
.foto { display: block; margin: .6rem 0 .2rem; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--linha); background: var(--cartao); }
.foto img { width: 100%; max-height: 560px; object-fit: cover; }
.acoes { display: flex; align-items: center; gap: .5rem; margin: .3rem 0 -.5rem -.6rem; }
.acoes form { margin: 0; }
.ac { display: inline-flex; align-items: center; gap: .4rem; min-width: 64px; min-height: 44px; padding: 0 .6rem; border: 0; background: none; border-radius: 999px; color: var(--fraca); cursor: pointer; text-decoration: none; font-variant-numeric: tabular-nums; }
.ac:hover { background: var(--realce); color: var(--vermelho); }
.ac .i { width: 21px; height: 21px; }
.ac.on { color: var(--vermelho); }
.ac.on .i { fill: currentColor; }
.mais { margin-left: auto; position: relative; }
.mais summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--fraca); font-weight: 800; letter-spacing: .05em; }
.mais summary::-webkit-details-marker { display: none; }
.mais summary:hover { background: var(--realce); color: var(--vermelho); }
.menu { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 15; min-width: 13rem; background: var(--cartao); border: 1px solid var(--linha); border-radius: 12px; padding: .4rem; box-shadow: 0 10px 30px rgb(0 0 0 / .18); display: grid; }
.menu a, .menu button { display: block; width: 100%; padding: .65rem .8rem; min-height: 44px; border-radius: 8px; text-decoration: none; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--realce); }
.mais-posts { padding: 1.2rem 1rem; text-align: center; }
.vazio { padding: 3rem 1.5rem; text-align: center; color: var(--fraca); }
.vazio h2, .vazio h1 { color: var(--tinta); font: 800 1.5rem/1.15 var(--titulo); }
.vazio p { max-width: 28rem; margin-inline: auto; }
.erro-cod { font: 800 4.5rem/1 var(--titulo); color: var(--vermelho); margin: 0 0 .5rem; }

/* comentários */
.comentarios > h2 { font-size: 1rem; padding: 1rem 1rem 0; color: var(--fraca); }
.comentar { padding: .2rem 1rem 1rem; border-bottom: 1px solid var(--linha); }
.coment .av { width: 38px; height: 38px; font-size: 1rem; }
.coment .texto { font-size: 1rem; }
.denunciar summary { cursor: pointer; font-weight: 650; min-height: 32px; }

/* pessoas */
.pessoas { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.pessoa { display: flex; align-items: center; gap: .6rem; }
.pessoa-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 12px; text-decoration: none; color: var(--tinta); }
.pessoa-l:hover { background: var(--realce); color: var(--tinta); }
.pessoa .av { width: 42px; height: 42px; font-size: 1.05rem; }
.pessoa-t { min-width: 0; display: grid; }
.pessoa-t b, .pessoa-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-t small { color: var(--fraca); }
.pessoas-lista { padding: .5rem; }
.pessoas-lista .pessoa { padding-right: .5rem; border-bottom: 1px solid var(--linha); }
.busca { display: flex; gap: .6rem; padding: 1rem; border-bottom: 1px solid var(--linha); }

/* perfil */
.perfil { padding: 1.4rem 1rem 1rem; border-bottom: 1px solid var(--linha); background: linear-gradient(var(--realce), var(--realce)) top / 100% 5.2rem no-repeat; }
.perfil-topo { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: .7rem; }
.perfil-av .av { width: 104px; height: 104px; font-size: 2.8rem; border: 4px solid var(--fundo); }
.perfil h1 { font: 800 1.7rem/1.1 var(--titulo); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.perfil-bio { margin-top: .7rem; }
.perfil-meta { color: var(--fraca); font-size: .92rem; margin: .5rem 0 0; }
.selo { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--vermelho); }
.numeros { display: flex; gap: 1.6rem; margin: .9rem 0 0; }
.numeros div { display: flex; flex-direction: row-reverse; gap: .35rem; align-items: baseline; }
.numeros dt { color: var(--fraca); font-size: .92rem; }
.numeros dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.numeros-mod { padding: 1rem; margin: 0; flex-wrap: wrap; border-bottom: 1px solid var(--linha); }
.perfil-mod { margin-top: .6rem; }
.foto-atual { display: flex; gap: 1rem; align-items: center; }
.foto-atual .av { width: 72px; height: 72px; font-size: 1.9rem; }
.foto-atual label { display: block; margin: 0 0 .35rem; }

/* moderação */
.denuncia { margin: 1rem; }
.denuncia-cab { color: var(--vermelho); }
.denuncia-acoes { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }

/* texto corrido */
.prosa { padding: 1.2rem 1rem 3rem; max-width: 42rem; }
.estreito.prosa { max-width: 42rem; padding-inline: 0; }
.prosa h1 { font: 800 2rem/1.1 var(--titulo); letter-spacing: -.02em; }
.prosa h2 { font-size: 1.15rem; margin-top: 1.8rem; }
.prosa li { margin-bottom: .45rem; }
.prosa ul { padding-left: 1.2rem; }

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