/* Dono do App — tema próprio. Claro por padrão, escuro se o sistema pedir.
   Deliberadamente diferente do site da Hens (escuro, roxo): outro público. */

:root {
  --bg: #fbfaf7;
  --bg-soft: #f3f1ec;
  --card: #ffffff;
  --line: #e3ded4;
  --text: #1c1a17;
  --muted: #6a645b;
  --accent: #b4451f;      /* terracota: aviso sem ser alarme */
  --accent-soft: #fdf0ea;
  --ok: #2f6b46;
  --wrap: 720px;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --bg-soft: #1e1c16;
    --card: #211f18;
    --line: #35322a;
    --text: #f0ece3;
    --muted: #a49d90;
    --accent: #f08a5d;
    --accent-soft: #2b211a;
    --ok: #6cc08c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.68;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }

/* ===== topo ===== */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .5px;
}
.brand-name { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.15; }
.brand-name em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 7px 15px; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* ===== hero do índice ===== */
.hero { border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 48px; }
.hero-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0 0 16px; font-size: clamp(30px, 6vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 34em; }

/* ===== lista ===== */
.list { padding: 40px 0 8px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px;
}
.card:hover { border-color: var(--accent); }
.card h2 { margin: 8px 0 8px; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.card-more { font-size: 14px; font-weight: 600; color: var(--accent); }
.card-meta, .post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.tag {
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px;
}

/* ===== post ===== */
.post { padding: 32px 0 8px; }
.back { display: inline-block; margin-bottom: 20px; font-size: 14px; text-decoration: none; }
.post h1 { margin: 12px 0 14px; font-size: clamp(28px, 5.5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { margin: 0 0 32px; font-size: 20px; line-height: 1.55; color: var(--muted); }

.body { font-size: 18px; }
.body h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; }
.body h3 { margin: 32px 0 10px; font-size: 20px; }
.body p { margin: 0 0 20px; }
.body ul, .body ol { margin: 0 0 22px; padding-left: 24px; }
.body li { margin-bottom: 9px; }
.body strong { font-weight: 700; }
.body a { text-underline-offset: 2px; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.body blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text); font-size: 19px; line-height: 1.55;
}
.body blockquote p { margin-bottom: 10px; }
.body blockquote p:last-child { margin-bottom: 0; }

.body code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px;
}
.body pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.5;
}
.body pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.body th, .body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.body th { background: var(--bg-soft); font-weight: 700; }

.body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ===== autor ===== */
.author {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 48px 0 0; padding: 22px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.author-name { font-weight: 700; }
.author-role { font-size: 14px; color: var(--muted); }
.author-bio { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* ===== CTA ===== */
.cta {
  position: relative; /* âncora do honeypot */
  margin: 28px 0 56px; padding: 30px 26px;
  background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius);
}
.cta-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.cta h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.22; }
.cta > p { margin: 0 0 22px; color: var(--muted); font-size: 16.5px; }
.cta-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field textarea {
  font: inherit; font-size: 16px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--text); resize: vertical; min-height: 84px;
}
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input {
  font: inherit; font-size: 16px; /* 16px: evita o zoom automático do iOS */
  padding: 13px 14px; min-height: 50px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--text);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn {
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 9px;
  padding: 15px 20px; min-height: 54px;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.cta-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.cta-msg { margin: 0; font-size: 14.5px; color: var(--accent); min-height: 1em; }
.cta-done h3 { margin: 0 0 8px; color: var(--ok); }
.cta-done p { margin: 0; color: var(--muted); }
/* Honeypot: escondido sem criar rolagem horizontal. `left:-9999px` puxa a
   largura do documento e no celular dá pra arrastar a página pro vazio. */
.hp {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ===== rodapé ===== */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 30px 0 40px; color: var(--muted); font-size: 14.5px; }
.footer p { margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal { font-size: 12.5px; opacity: .8; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand-name em { display: none; }
  .cta { padding: 24px 18px; }
}

/* ===== capas ===== */
.hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); margin: 0 0 34px;
}
.card-img img {
  display: block; width: calc(100% + 44px); margin: -22px -22px 18px;
  height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
