/* Artigos do defi-monitoring.com.br - mesmo visual da landing (index.html). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --bg:#0D1310; --surface:#141B17; --surface-2:#1B2521; --border:#2A362F;
  --text:#EDEEE9; --text-muted:#93A399; --accent:#FF7A45; --accent-text:#2A1206;
  --good:#6FCF97; --warn:#F2C94C; --critical:#EB5757; --mono-chip:#101613;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#F7F4EC; --surface:#FFFFFF; --surface-2:#EFEAD9; --border:#DDD5BE;
    --text:#16211A; --text-muted:#5C6A5F; --accent:#D9531F; --accent-text:#FFF6EE;
    --good:#1F8A4C; --warn:#96700A; --critical:#C23B3B; --mono-chip:#F1ECDD;
  }
}
:root[data-theme="light"]{
  --bg:#F7F4EC; --surface:#FFFFFF; --surface-2:#EFEAD9; --border:#DDD5BE;
  --text:#16211A; --text-muted:#5C6A5F; --accent:#D9531F; --accent-text:#FFF6EE;
  --good:#1F8A4C; --warn:#96700A; --critical:#C23B3B; --mono-chip:#F1ECDD;
}

*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--text); font-family:'IBM Plex Sans', system-ui, -apple-system, sans-serif; padding:0 16px; line-height:1.65; }
.wrap{ max-width:1040px; margin:0 auto; }
h1,h2,h3{ font-family:'Fraunces', Georgia, serif; font-weight:600; text-wrap:balance; margin:0; letter-spacing:-0.01em; }
a{ color:inherit; }
.mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric:tabular-nums; }
.eyebrow{ font-family:'IBM Plex Mono', monospace; text-transform:uppercase; letter-spacing:.09em; font-size:12px; color:var(--text-muted); font-weight:600; }

/* topo */
nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:18px; border-bottom:1px solid var(--border); }
.logo{ font-family:'Fraunces', serif; font-weight:600; font-size:19px; letter-spacing:-0.01em; white-space:nowrap; text-decoration:none; }
.logo em{ font-style:normal; color:var(--accent); }
.navlinks{ display:flex; align-items:center; gap:22px; font-size:14px; color:var(--text-muted); }
.navlinks a{ text-decoration:none; }
.navlinks a:hover, .navlinks a[aria-current="page"]{ color:var(--text); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--accent); color:var(--accent-text); border:none; border-radius:7px; padding:11px 18px; font-weight:600; font-size:14px; text-decoration:none; }
.btn.ghost{ background:transparent; color:var(--text); border:1px solid var(--border); }
@media (max-width:640px){ .navlinks .hide-sm{ display:none; } .navlinks{ gap:14px; } }

/* artigo */
article{ max-width:700px; margin:0 auto; padding-block:44px 20px; }
.crumbs{ font-size:13px; color:var(--text-muted); margin-bottom:18px; }
.crumbs a{ text-decoration:none; }
.crumbs a:hover{ color:var(--text); }
article h1{ font-size:clamp(30px, 5vw, 44px); line-height:1.12; margin:10px 0 14px; }
.lede{ font-size:18px; color:var(--text-muted); margin:0 0 18px; }
.meta{ font-size:13px; color:var(--text-muted); padding-bottom:22px; border-bottom:1px solid var(--border); margin-bottom:8px; }
article h2{ font-size:clamp(22px, 3.4vw, 28px); margin:40px 0 12px; }
article h3{ font-size:19px; margin:28px 0 8px; }
article p, article li{ font-size:16.5px; }
article ul, article ol{ padding-left:22px; }
article li{ margin:6px 0; }
article strong{ color:var(--text); }
.formula{ font-family:'IBM Plex Mono', monospace; background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:16px 18px; font-size:16px; overflow-x:auto; white-space:nowrap; margin:16px 0; }
.note{ background:var(--surface); border:1px solid var(--border); border-left:3px solid var(--warn); border-radius:8px; padding:14px 16px; font-size:15px; margin:20px 0; }
.note p{ margin:0; font-size:15px; }
.table-wrap{ overflow-x:auto; margin:16px 0; }
table{ border-collapse:collapse; width:100%; font-size:15px; }
th, td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--border); white-space:nowrap; }
th{ font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); font-weight:600; }
td.num{ font-family:'IBM Plex Mono', monospace; font-variant-numeric:tabular-nums; }
.video{ display:block; position:relative; border:1px solid var(--border); border-radius:12px; overflow:hidden; margin:20px 0; text-decoration:none; }
.video img{ display:block; width:100%; height:auto; }
.video span{ position:absolute; left:12px; bottom:12px; background:rgba(8,12,10,.82); color:#F4F5F0; font-size:14px; font-weight:600; padding:8px 12px; border-radius:8px; }

/* chamada para o checador */
.cta{ margin:44px 0 10px; padding:26px 24px; background:var(--surface); border:1px solid var(--border); border-radius:14px; }
.cta h2{ margin:0 0 8px; font-size:24px; }
.cta p{ margin:0 0 16px; color:var(--text-muted); font-size:15.5px; }

/* lista de artigos (indice e "leia tambem") */
.more{ max-width:700px; margin:30px auto 0; padding-top:26px; border-top:1px solid var(--border); }
.cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px; margin-top:14px; }
.card{ display:flex; flex-direction:column; gap:8px; padding:20px; background:var(--surface); border:1px solid var(--border); border-radius:12px; text-decoration:none; transition:border-color .15s; }
.card:hover{ border-color:var(--accent); }
.card h3{ font-size:19px; line-height:1.25; }
.card p{ margin:0; font-size:14.5px; color:var(--text-muted); }
.card .mono{ font-size:12px; color:var(--text-muted); margin-top:auto; }
.index-head{ max-width:700px; padding-block:44px 8px; }
.index-head h1{ font-size:clamp(30px, 5vw, 42px); margin:10px 0 12px; }
.index-head p{ color:var(--text-muted); font-size:17px; margin:0; }

footer{ margin-top:56px; padding-block:24px 36px; border-top:1px solid var(--border); font-size:12.5px; color:var(--text-muted); display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between; }
footer a{ text-decoration:none; }
