@font-face{font-family:Cerebri;src:url(fonts/CerebriSans-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:Cerebri;src:url(fonts/CerebriSans-Medium.ttf);font-weight:500;font-display:swap}
@font-face{font-family:Cerebri;src:url(fonts/CerebriSans-SemiBold.ttf);font-weight:600;font-display:swap}
@font-face{font-family:Cerebri;src:url(fonts/CerebriSans-Bold.ttf);font-weight:700;font-display:swap}

:root{
  --bg:#ffffff;
  --ink:#111111;
  --soft:#6b6b6b;
  --line:#ececec;
  --wash:#f6f6f6;
  --side:264px;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{min-height:100dvh;background:var(--bg);color:var(--ink);font-family:Cerebri,-apple-system,sans-serif;overflow-x:hidden}
body{font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit;color:inherit;background:none;border:0;outline:none}
img{max-width:100%;display:block}

/* ---------- menu lateral ---------- */
.side{
  position:fixed;inset:0 auto 0 0;width:var(--side);z-index:60;
  background:var(--bg);border-right:1px solid var(--line);
  padding:calc(28px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  display:flex;flex-direction:column;gap:26px;
  transition:transform .42s cubic-bezier(.22,1,.36,1);
}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:19px;letter-spacing:-.01em}
.brand img{width:30px;height:30px;border-radius:9px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{
  display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:999px;
  color:var(--soft);font-weight:500;transition:background .25s,color .25s,transform .25s;
}
.nav a:hover{background:var(--wash);color:var(--ink);transform:translateX(3px)}
.nav a.on{background:var(--ink);color:#fff}
.nav a.on i{opacity:1}
i[data-i]{width:18px;height:18px;flex:none;opacity:.85;background:currentColor;
  -webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}
.pill{
  display:flex;align-items:center;justify-content:center;gap:9px;
  padding:13px 20px;border-radius:999px;background:var(--ink);color:#fff;font-weight:600;
  transition:transform .25s,opacity .25s;
}
.pill:active{transform:scale(.96)}
.pill.write{margin-top:-8px}
.side-foot{margin-top:auto}
.who{display:flex;align-items:center;gap:11px}
.who strong{display:block;font-size:14px;font-weight:600}
.who small{color:var(--soft);font-size:13px}
.av{width:38px;height:38px;border-radius:999px;background:var(--wash);flex:none;
  background-size:cover;background-position:center}

.burger{position:fixed;top:calc(14px + env(safe-area-inset-top));left:14px;z-index:80;
  width:42px;height:42px;border-radius:999px;background:var(--bg);border:1px solid var(--line);
  display:none;flex-direction:column;justify-content:center;align-items:center;gap:4px}
.burger span{width:16px;height:1.6px;background:var(--ink);border-radius:2px;transition:.35s}
body.open .burger span:nth-child(1){transform:translateY(5.6px) rotate(45deg)}
body.open .burger span:nth-child(2){opacity:0}
body.open .burger span:nth-child(3){transform:translateY(-5.6px) rotate(-45deg)}
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.28);opacity:0;pointer-events:none;
  z-index:50;transition:opacity .4s;backdrop-filter:blur(2px)}

/* ---------- conteúdo ---------- */
.app{margin-left:var(--side);padding:56px 40px calc(80px + env(safe-area-inset-bottom));
  max-width:1180px}
.head{margin-bottom:34px}
.head h1{font-size:clamp(34px,5vw,54px);font-weight:700;letter-spacing:-.035em;line-height:1.05}
.head p{color:var(--soft);margin-top:10px;max-width:46ch}

.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:14px;margin-bottom:8px;
  scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:8px 16px;border-radius:999px;background:var(--wash);color:var(--soft);
  font-size:14px;font-weight:500;cursor:pointer;transition:.25s}
.chip:hover{color:var(--ink)}
.chip.on{background:var(--ink);color:#fff}

.feed{display:flex;flex-direction:column}
.post{display:flex;gap:28px;align-items:flex-start;padding:26px 0;border-bottom:1px solid var(--line);
  cursor:pointer}
.post .body{flex:1;min-width:0}
.meta{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--soft);margin-bottom:9px}
.meta .av{width:22px;height:22px}
.post h2{font-size:21px;font-weight:700;letter-spacing:-.02em;line-height:1.25;
  transition:opacity .25s}
.post:hover h2{opacity:.6}
.post .sub{color:var(--soft);font-size:15px;margin-top:7px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tail{display:flex;align-items:center;gap:14px;margin-top:14px;font-size:13px;color:var(--soft)}
.tag{padding:5px 12px;border-radius:999px;background:var(--wash);font-size:12px}
.thumb{width:140px;height:104px;border-radius:6px;background:var(--wash);flex:none;
  background-size:cover;background-position:center}
.ico{width:16px;height:16px;opacity:.5;transition:.25s}
.ico:hover,.ico.on{opacity:1}

.empty{padding:70px 0;color:var(--soft);text-align:center}

/* ---------- artigo ---------- */
.article{max-width:700px}
.article h1{font-size:clamp(30px,4.4vw,44px);font-weight:700;letter-spacing:-.03em;line-height:1.12}
.article .lede{color:var(--soft);font-size:19px;margin-top:14px}
.byline{display:flex;align-items:center;gap:12px;margin:30px 0;padding:18px 0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.byline .av{width:44px;height:44px}
.byline .bwho{flex:1;min-width:120px}
.byline .bacts{display:flex;gap:8px;flex:none}
.byline .ghost{padding:9px 18px;font-size:14px}
.prose{font-size:19px;line-height:1.75}
.prose p{margin:24px 0}
.prose h2{font-size:26px;font-weight:700;letter-spacing:-.02em;margin:40px 0 -6px}
.prose blockquote{border-left:2px solid var(--ink);padding-left:20px;margin:28px 0;color:var(--soft)}
.cover{width:100%;aspect-ratio:16/9;border-radius:8px;background:var(--wash);margin:28px 0;
  background-size:cover;background-position:center}
.back{display:inline-flex;align-items:center;gap:8px;color:var(--soft);font-size:14px;margin-bottom:26px}
.back:hover{color:var(--ink)}

/* ---------- editor ---------- */
.editor{max-width:700px}
.editor .t{font-size:40px;font-weight:700;letter-spacing:-.03em;width:100%;line-height:1.12;
  resize:none;overflow:hidden}
.editor .t::placeholder,.editor .b::placeholder{color:#c9c9c9}
.editor .b{font-size:19px;line-height:1.75;width:100%;min-height:44vh;resize:none;margin-top:20px}
.editor .tagin{margin-top:24px;font-size:15px;color:var(--soft);width:100%}
.bar{position:sticky;bottom:0;display:flex;gap:10px;justify-content:flex-end;
  padding:18px 0 calc(10px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--bg) 30%)}
.ghost{padding:12px 22px;border-radius:999px;background:var(--wash);font-weight:600;cursor:pointer;
  transition:.25s}
.ghost:hover{background:#ececec}
.solid{padding:12px 26px;border-radius:999px;background:var(--ink);color:#fff;font-weight:600;
  cursor:pointer;transition:transform .25s}
.solid:active{transform:scale(.96)}

/* ---------- tópicos / perfil ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.tcard{padding:22px;border-radius:20px;background:var(--wash);cursor:pointer;transition:.3s}
.tcard:hover{transform:translateY(-4px);background:#efefef}
.tcard b{font-size:17px;font-weight:600}
.tcard small{color:var(--soft);display:block;margin-top:4px}

.phead{display:flex;align-items:center;gap:20px;margin-bottom:34px}
.phead .av{width:78px;height:78px}
.phead h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
.phead input{border-bottom:1px solid transparent;transition:.25s}
.phead input:focus{border-color:var(--line)}
.stats{display:flex;gap:22px;color:var(--soft);font-size:14px;margin-top:6px}

/* ---------- animação ---------- */
@keyframes up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.anim{animation:up .6s cubic-bezier(.22,1,.36,1) both}

/* ---------- mobile ---------- */
@media (max-width:900px){
  .side{transform:translateX(-100%);box-shadow:0 0 60px rgba(0,0,0,.12)}
  body.open .side{transform:none}
  body.open .scrim{opacity:1;pointer-events:auto}
  .burger{display:flex}
  .app{margin-left:0;padding:calc(72px + env(safe-area-inset-top)) 20px calc(64px + env(safe-area-inset-bottom))}
  .post{gap:16px}
  .thumb{width:92px;height:70px}
  .post h2{font-size:18px}
  .post .sub{display:none}
  .editor .t{font-size:30px}
  .byline{flex-wrap:wrap;row-gap:14px}
  .byline .bacts{width:100%}
  .byline .bacts .ghost{flex:1}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}
