/* ════════════════════════════════════════════════════════════════════════════
   Evidenciare — design system
   Mobile-first. OKLCH-derived hex. Escala tipográfica 1.333.
   Sem side-stripe ≥3px. Sem gradient text. Sem glassmorphism decorativo.
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Color */
  --bg:           #f7f2e8;
  --bg-elevated:  #fbf8f1;
  --bg-deep:      #ece5d4;
  --ink:          #1a2521;
  --ink-2:        #3d4d47;
  --ink-3:        #62716b;
  --brand:        #2d3a36;
  --brand-2:      #3a4a45;
  --accent:       #c89882;
  --accent-deep:  #a87560;
  --accent-soft:  #e6d2c2;
  --cream:        #f5efe6;
  --line:         #d6cdb9;
  --line-dark:    rgba(245, 239, 230, 0.14);

  /* Type scale 1.333 (perfect fourth) — rem */
  --t-0: 0.703rem;
  --t-1: 0.79rem;
  --t-2: 0.889rem;
  --t-3: 1rem;
  --t-4: 1.125rem;
  --t-5: 1.266rem;
  --t-6: 1.424rem;
  --t-7: 1.602rem;
  --t-8: 1.802rem;
  --t-9: 2.027rem;
  --t-10: 2.281rem;
  --t-11: 2.566rem;
  --t-12: 4.21rem;

  /* Spacing scale (modular ×1.5) — rem */
  --s-0: 0;
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 12rem;
  --s-12: 16rem;

  /* Radii */
  --r-1: 6px;
  --r-2: 12px;
  --r-3: 18px;
  --r-pill: 999px;

  /* Type families */
  --font-display: "GT Sectra", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-serif:   "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);          /* expo.out */
  --ease-out-q: cubic-bezier(0.25, 1, 0.5, 1);        /* quart.out */
  --dur-micro: 180ms;
  --dur-trans: 600ms;
  --dur-macro: 900ms;

  /* Layout */
  --col-aside-l: 220px;
  --col-body:    680px;
  --col-aside-r: 220px;
  --col-gap:     3.5rem;
  --read-width:  68ch;
}

/* ─── Base ───────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--t-4);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s-3);
  top: var(--s-3);
  padding: var(--s-2) var(--s-4);
  background: var(--brand);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--t-2);
  border-radius: var(--r-1);
  transform: translateY(-200%);
  transition: transform var(--dur-micro) var(--ease-out);
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }

/* Focus visível em tudo */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Typography primitives ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--ink); letter-spacing: -0.012em; }
h1 { font-size: var(--t-9); }
h2 { font-size: var(--t-7); }
h3 { font-size: var(--t-5); }

p { margin-bottom: var(--s-4); max-width: var(--read-width); }
a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-deep); padding: 0.1em 0.4em; border-radius: var(--r-1); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ─── Prose (corpo de leitura longa) ─────────────────────────────────── */
.prose { font-family: var(--font-serif); font-size: var(--t-4); line-height: 1.78; color: var(--ink); }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--t-7);
  font-weight: 500;
  letter-spacing: -0.008em;
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  position: relative;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--accent);
}
.prose h3 { font-family: var(--font-display); font-size: var(--t-5); font-weight: 500; margin-top: var(--s-6); }
.prose p { font-size: var(--t-4); line-height: 1.78; max-width: var(--read-width); }
.prose ul, .prose ol { padding-left: var(--s-5); margin-bottom: var(--s-4); }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: var(--s-4); margin-bottom: var(--s-2); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.prose ol { list-style: decimal; list-style-position: outside; padding-left: var(--s-5); }
.prose ol li { margin-bottom: var(--s-2); padding-left: var(--s-2); }
.prose ol li::marker { color: var(--accent-deep); font-weight: 600; font-family: var(--font-mono); font-size: 0.9em; }

/* Blockquote: sem side-stripe ≥3px. Indent + italic + dropcap discreto */
.prose blockquote {
  margin: var(--s-6) 0;
  padding: 0 0 0 var(--s-5);
  border-left: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--t-5);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
}
.prose blockquote p { max-width: 60ch; }
.prose blockquote p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 1.6em;
  color: var(--accent-deep);
  font-style: normal;
  line-height: 1;
  margin-right: 0.04em;
  vertical-align: -0.05em;
}

/* Tabelas no prose */
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: var(--t-3); font-family: var(--font-sans); }
.prose th, .prose td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-sans); font-weight: 600; color: var(--ink); font-size: var(--t-2); text-transform: uppercase; letter-spacing: 0.04em; }
.prose td { color: var(--ink-2); }

/* ─── Layout primitives ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--s-5);
}
@media (min-width: 720px) {
  .container { padding-inline: var(--s-6); }
}

/* Hex pattern wrapper utility */
.hex-bg { position: relative; isolation: isolate; }
.hex-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.5'/><path d='M50 58 L100 86 V145 L50 173 L0 145 V86 Z' fill='none' stroke='%23c89882' stroke-width='0.5'/></svg>");
  background-size: 130px;
  opacity: 0.09;
  pointer-events: none;
  z-index: -1;
}

/* ─── Nav ────────────────────────────────────────────────────────────── */
.nav {
  background: var(--brand);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(6px);
  -webkit-backdrop-filter: saturate(180%) blur(6px);
  background-color: color-mix(in oklch, var(--brand) 92%, transparent);
}
.nav__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.nav__brand { display: flex; align-items: center; gap: var(--s-3); }
.nav__mark { width: 32px; height: 36px; flex-shrink: 0; }
.nav__name {
  font-family: var(--font-display);
  font-size: var(--t-5);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  line-height: 1;
}
.nav__tag {
  font-family: var(--font-sans);
  font-size: var(--t-0);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  display: block;
  margin-top: 4px;
}
.nav__menu { display: flex; align-items: center; gap: var(--s-5); }
.nav__menu a {
  font-family: var(--font-sans);
  font-size: var(--t-2);
  letter-spacing: 0.02em;
  color: var(--cream);
  opacity: 0.78;
  text-decoration: none;
  transition: opacity var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.nav__menu a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 640px) {
  .nav__inner { padding: var(--s-3) var(--s-4); gap: var(--s-3); }
  .nav__tag { display: none; }
  .nav__name { font-size: var(--t-4); }
  .nav__menu { gap: var(--s-3); }
  .nav__menu a { font-size: var(--t-1); }
}

/* ─── Main wrapper ───────────────────────────────────────────────────── */
main { display: block; }

/* Pages com hero full-bleed não devem ter max-width no main */
body.layout-post main,
body.layout-blog main,
body.layout-home main { max-width: none; padding: 0 0 var(--s-8); }

/* ─── Hero editorial (post) ──────────────────────────────────────────── */
.post-hero {
  background: var(--brand);
  color: var(--cream);
  padding: var(--s-8) var(--s-5) var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.post-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.6'/><path d='M50 58 L100 86 V145 L50 173 L0 145 V86 Z' fill='none' stroke='%23c89882' stroke-width='0.6'/></svg>");
  background-size: 140px;
  opacity: 0.10;
  z-index: -1;
}
.post-hero__inner {
  max-width: 860px;
  margin-inline: auto;
}
.post-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: var(--s-5);
  font-weight: 500;
}
.post-hero__eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-top: var(--s-3);
  opacity: 0.6;
}
.post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--t-9), 4.5vw + 0.5rem, var(--t-12));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--cream);
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.post-hero__lede {
  font-family: var(--font-display);
  font-size: clamp(var(--t-5), 1.5vw + 0.5rem, var(--t-6));
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.92;
  max-width: 64ch;
  margin-bottom: var(--s-7);
}
.post-hero__byline {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.post-hero__author { display: flex; align-items: center; gap: var(--s-3); }
.post-hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.post-hero__author-name {
  font-family: var(--font-sans);
  font-size: var(--t-3);
  font-weight: 500;
  color: var(--cream);
  margin: 0;
  line-height: 1.2;
}
.post-hero__author-role {
  font-family: var(--font-sans);
  font-size: var(--t-1);
  color: var(--cream);
  opacity: 0.65;
  margin: 4px 0 0;
}
.post-hero__meta {
  font-family: var(--font-mono);
  font-size: var(--t-1);
  color: var(--cream);
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.post-hero__sep { opacity: 0.4; }

@media (min-width: 720px) {
  .post-hero { padding: var(--s-9) var(--s-6) var(--s-8); }
}

/* ─── Post grid (3 colunas) ──────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  max-width: 720px;
  margin-inline: auto;
  padding: var(--s-7) var(--s-5) 0;
}
.post-body { min-width: 0; }
.post-aside { font-family: var(--font-sans); }
.post-aside__sticky { position: static; }

@media (min-width: 860px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr) var(--col-aside-r);
    max-width: 980px;
    gap: var(--col-gap);
  }
  .post-aside--left { grid-column: 1 / -1; order: 2; }
  .post-aside--left .author-card { max-width: 540px; margin: var(--s-7) auto 0; }
  .post-aside--right { grid-column: 2; grid-row: 1; }
  .post-aside--right .post-aside__sticky { position: sticky; top: var(--s-9); }
}

@media (min-width: 1180px) {
  .post-grid {
    grid-template-columns: var(--col-aside-l) minmax(0, var(--col-body)) var(--col-aside-r);
    justify-content: center;
    max-width: 1320px;
    gap: var(--col-gap);
    padding: var(--s-8) var(--s-7) 0;
  }
  .post-aside--left { grid-column: 1; grid-row: 1; order: initial; }
  .post-aside--left .author-card { max-width: none; margin: 0; }
  .post-aside--left .post-aside__sticky { position: sticky; top: var(--s-9); }
  .post-body { grid-column: 2; grid-row: 1; }
  .post-aside--right { grid-column: 3; grid-row: 1; }
}

/* ─── Author card ────────────────────────────────────────────────────── */
.author-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
}
.author-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  margin-bottom: var(--s-4);
}
.author-card__name {
  font-family: var(--font-display);
  font-size: var(--t-6);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
.author-card__role {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin: var(--s-2) 0 var(--s-4);
  font-weight: 500;
}
.author-card__bio {
  font-family: var(--font-serif);
  font-size: var(--t-3);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
  max-width: none;
}
.author-card__links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.author-card__links a {
  font-family: var(--font-sans);
  font-size: var(--t-1);
  padding: var(--s-2) var(--s-3);
  background: var(--brand);
  color: var(--cream);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
  font-weight: 500;
}
.author-card__links a:hover { background: var(--accent-deep); color: var(--cream); text-decoration: none; }

/* ─── TOC (sidebar direita) ──────────────────────────────────────────── */
.post-toc { font-family: var(--font-sans); }
.post-toc__label {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.post-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}
.post-toc li::before { content: none; }
.post-toc li { padding: 0; margin: 0; }
.post-toc a {
  display: block;
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  font-family: var(--font-sans);
  font-size: var(--t-2);
  line-height: 1.4;
  color: var(--ink-3);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
  text-decoration: none;
}
.post-toc a:hover { color: var(--ink); border-left-color: var(--accent); text-decoration: none; }
.post-toc a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent-deep);
}

@media (max-width: 860px) {
  .post-aside--right .post-toc {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    padding: var(--s-4) var(--s-5);
  }
  .post-aside--right .post-toc ol { border-left-width: 0; }
  .post-aside--right .post-toc a { padding-left: 0; border-left-width: 0; }
  .post-aside--right .post-toc a.is-active::before { content: "▸ "; color: var(--accent-deep); }
}

/* ─── Callout "Resposta direta" ─────────────────────────────────────── */
.post-answer {
  background: var(--brand);
  color: var(--cream);
  border-radius: var(--r-2);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0 var(--s-7);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.post-answer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.5'/></svg>");
  background-size: 90px;
  opacity: 0.08;
  z-index: -1;
}
.post-answer__label {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.post-answer p:last-child {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-4);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--cream);
  max-width: 62ch;
}

/* ─── Referências ────────────────────────────────────────────────────── */
.post-sources {
  margin-top: var(--s-8);
  padding: var(--s-5) var(--s-6);
  background: var(--bg-deep);
  border-radius: var(--r-2);
}
.post-sources h2 {
  font-family: var(--font-mono);
  font-size: var(--t-1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 var(--s-4);
  padding-top: 0;
}
.post-sources h2::before { content: none; }
.post-sources ol {
  font-family: var(--font-sans);
  font-size: var(--t-2);
  color: var(--ink-2);
  padding-left: var(--s-5);
  margin: 0;
}
.post-sources li { margin-bottom: var(--s-3); line-height: 1.55; padding-left: var(--s-1); }

/* ─── Disclaimer (tema sensível) ─────────────────────────────────────── */
.post-disclaimer {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-2);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--font-sans);
  font-size: var(--t-3);
  color: var(--ink);
}
.post-disclaimer p { margin: 0; max-width: none; }
.post-disclaimer strong { color: var(--ink); }

/* ─── Tags ───────────────────────────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-7) 0 0;
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--line);
}
.post-tags li::before { content: none; }
.post-tags li { padding: 0; margin: 0; }
.post-tags a {
  display: inline-block;
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all var(--dur-micro) var(--ease-out);
}
.post-tags a:hover { background: var(--brand); color: var(--cream); border-color: var(--brand); text-decoration: none; }

/* ─── Blog index ─────────────────────────────────────────────────────── */
.blog-hero {
  background: var(--brand);
  color: var(--cream);
  padding: var(--s-8) var(--s-5);
  margin-bottom: var(--s-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.blog-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.6'/></svg>");
  background-size: 130px;
  opacity: 0.10;
  z-index: -1;
}
.blog-hero__inner { max-width: 880px; margin-inline: auto; }
.blog-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-1);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--t-9), 5vw, var(--t-12));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
.blog-hero__title em { color: var(--accent); font-style: italic; }
.blog-hero__sub {
  font-family: var(--font-display);
  font-size: clamp(var(--t-4), 1.5vw + 0.4rem, var(--t-5));
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  opacity: 0.88;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .blog-hero { padding: var(--s-9) var(--s-6); }
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); padding: 0 var(--s-6); } }
@media (min-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
  .blog-grid > article:first-child { grid-column: 1 / span 2; grid-row: span 2; }
  .blog-grid > article:first-child .blog-card__cover { aspect-ratio: 4 / 3; }
  .blog-grid > article:first-child .blog-card__title { font-size: var(--t-7); }
  .blog-grid > article:first-child .blog-card__monogram { font-size: 6rem; }
}

.blog-card { background: transparent; }
.blog-card__link { display: block; text-decoration: none; color: inherit; }
.blog-card__link:hover { text-decoration: none; }
.blog-card__cover {
  aspect-ratio: 16 / 10;
  background: var(--brand);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
  transition: transform var(--dur-micro) var(--ease-out);
}
.blog-card__cover::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.6'/><path d='M50 58 L100 86 V145 L50 173 L0 145 V86 Z' fill='none' stroke='%23c89882' stroke-width='0.6'/></svg>");
  background-size: 110px;
  opacity: 0.12;
  z-index: -1;
}
.blog-card__monogram {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
}
.blog-card__link:hover .blog-card__cover { transform: translateY(-3px); }
.blog-card__cat {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--t-6);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  letter-spacing: -0.008em;
  transition: color var(--dur-micro) var(--ease-out);
}
.blog-card__link:hover .blog-card__title { color: var(--accent-deep); }
.blog-card__lede {
  font-family: var(--font-serif);
  font-size: var(--t-3);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
  max-width: none;
}
.blog-card__meta {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0;
}

.blog-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-5);
  color: var(--ink-3);
  padding: var(--s-9) 0;
}

/* ─── Home page ──────────────────────────────────────────────────────── */
.home-hero {
  background: var(--brand);
  color: var(--cream);
  padding: var(--s-9) var(--s-5) var(--s-8);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.55'/><path d='M50 58 L100 86 V145 L50 173 L0 145 V86 Z' fill='none' stroke='%23c89882' stroke-width='0.55'/></svg>");
  background-size: 150px;
  opacity: 0.10;
  z-index: -1;
}
.home-hero__inner {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.home-hero__mark { width: 64px; height: 72px; margin: 0 auto var(--s-5); }
.home-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(var(--t-10), 6vw, var(--t-12));
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin: 0 0 var(--s-3);
  line-height: 1;
  text-wrap: balance;
}
.home-hero__brand em { color: var(--accent); font-style: normal; }
.home-hero__tagline {
  font-family: var(--font-mono);
  font-size: var(--t-2);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin: 0 0 var(--s-6);
}
.home-hero__sub {
  font-family: var(--font-display);
  font-size: clamp(var(--t-5), 2vw, var(--t-6));
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.92;
  max-width: 56ch;
  margin: 0 auto var(--s-7);
}
.home-hero__cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--t-3);
  font-weight: 500;
  padding: var(--s-3) var(--s-6);
  background: var(--accent);
  color: var(--brand);
  border-radius: var(--r-pill);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.home-hero__cta:hover { background: var(--cream); transform: translateY(-2px); color: var(--brand); text-decoration: none; }

.home-section {
  max-width: 1080px;
  margin: var(--s-9) auto;
  padding: 0 var(--s-5);
}
.home-section__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
  text-align: left;
}
.home-section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-1);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-deep);
  font-weight: 600;
}
.home-section__title {
  font-family: var(--font-display);
  font-size: clamp(var(--t-7), 3vw, var(--t-9));
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 24ch;
  margin: 0;
}
.home-section__title em { color: var(--accent-deep); font-style: italic; }

/* 3 pilares featured */
.home-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .home-pillars { grid-template-columns: 1.4fr 1fr; grid-auto-rows: minmax(auto, auto); }
  .home-pillars > a:first-child { grid-row: span 2; }
}

.home-pillar {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
  min-height: 200px;
}
.home-pillar:first-child { background: var(--brand); color: var(--cream); border-color: var(--brand); position: relative; overflow: hidden; isolation: isolate; }
.home-pillar:first-child::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.6'/></svg>");
  background-size: 130px;
  opacity: 0.1;
  z-index: -1;
}
.home-pillar:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.home-pillar__cat {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.home-pillar:first-child .home-pillar__cat { color: var(--accent); }
.home-pillar__title {
  font-family: var(--font-display);
  font-size: var(--t-6);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  flex-grow: 1;
}
.home-pillar:first-child .home-pillar__title { color: var(--cream); font-size: var(--t-7); }
.home-pillar__lede {
  font-family: var(--font-serif);
  font-size: var(--t-3);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
}
.home-pillar:first-child .home-pillar__lede { color: var(--cream); opacity: 0.9; }
.home-pillar__more {
  font-family: var(--font-sans);
  font-size: var(--t-1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-top: auto;
}
.home-pillar:first-child .home-pillar__more { color: var(--accent); }

/* Quem escreve */
.home-author {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-6);
}
@media (min-width: 720px) { .home-author { grid-template-columns: 140px 1fr; gap: var(--s-7); padding: var(--s-7); } }
.home-author__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; outline: 3px solid var(--accent); outline-offset: 3px; }
.home-author__name { font-family: var(--font-display); font-size: var(--t-7); font-weight: 500; color: var(--ink); margin: 0 0 var(--s-2); }
.home-author__role { font-family: var(--font-mono); font-size: var(--t-1); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); margin: 0 0 var(--s-4); }
.home-author__bio { font-family: var(--font-serif); font-size: var(--t-4); line-height: 1.65; color: var(--ink-2); margin: 0 0 var(--s-4); max-width: 56ch; }
.home-author__link { font-family: var(--font-sans); font-size: var(--t-2); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.home-author__link:hover { color: var(--ink); text-decoration: none; }

/* Áreas */
.home-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3);
  list-style: none;
  padding: 0;
}
.home-areas li::before { content: none; }
.home-areas li {
  font-family: var(--font-mono);
  font-size: var(--t-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--bg-elevated);
  margin: 0;
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.home-areas li:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ─── Page (sobre, privacidade) ──────────────────────────────────────── */
.page-hero {
  background: var(--bg-elevated);
  padding: var(--s-8) var(--s-5) var(--s-7);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-7);
}
.page-hero__inner { max-width: 860px; margin-inline: auto; }
.page-hero__eyebrow { font-family: var(--font-mono); font-size: var(--t-1); text-transform: uppercase; letter-spacing: 0.28em; color: var(--accent-deep); font-weight: 600; margin-bottom: var(--s-3); }
.page-hero__title { font-family: var(--font-display); font-size: clamp(var(--t-9), 4vw, var(--t-11)); font-weight: 400; line-height: 1.05; color: var(--ink); letter-spacing: -0.012em; }
.page-hero__sub { font-family: var(--font-display); font-size: var(--t-5); font-style: italic; color: var(--ink-2); margin-top: var(--s-3); max-width: 56ch; }

.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-5) 0;
}

/* About 2-col */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); max-width: 1080px; margin: 0 auto; padding: 0 var(--s-5); }
@media (min-width: 860px) { .about-grid { grid-template-columns: 280px 1fr; gap: var(--s-9); } }
.about-aside { position: sticky; top: var(--s-9); align-self: start; }
.about-portrait { width: 100%; max-width: 240px; border-radius: var(--r-2); outline: 3px solid var(--accent); outline-offset: 4px; aspect-ratio: 1; object-fit: cover; }
.about-meta { margin-top: var(--s-5); }
.about-meta__label { font-family: var(--font-mono); font-size: var(--t-0); text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-deep); font-weight: 600; margin-bottom: var(--s-2); }
.about-meta__value { font-family: var(--font-sans); font-size: var(--t-2); color: var(--ink-2); margin-bottom: var(--s-3); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--brand);
  color: var(--cream);
  margin-top: var(--s-9);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 173'><path d='M50 0 L100 28 V87 L50 115 L0 87 V28 Z' fill='none' stroke='%23c89882' stroke-width='0.5'/></svg>");
  background-size: 90px;
  opacity: 0.06;
  z-index: -1;
}
.footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: var(--s-8) var(--s-5) var(--s-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 720px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: var(--s-7); padding: var(--s-9) var(--s-6) var(--s-6); } }

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--t-7);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 var(--s-2);
}
.footer__tag {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--cream);
  opacity: 0.65;
  margin: 0 0 var(--s-4);
}
.footer__inst {
  font-family: var(--font-serif);
  font-size: var(--t-3);
  color: var(--cream);
  opacity: 0.8;
  margin: 0;
  max-width: 40ch;
  font-style: italic;
}
.footer__col-heading {
  font-family: var(--font-mono);
  font-size: var(--t-0);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--s-2); }
.footer__col li::before { content: none; }
.footer__col a {
  font-family: var(--font-sans);
  font-size: var(--t-2);
  color: var(--cream);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.footer__col a:hover { opacity: 1; color: var(--accent); text-decoration: none; }

.footer__bottom {
  max-width: 1280px;
  margin-inline: auto;
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-sans);
  font-size: var(--t-1);
  color: var(--cream);
  opacity: 0.55;
}
@media (min-width: 720px) { .footer__bottom { padding: var(--s-4) var(--s-6); } }
.footer__bottom p { margin: 0; max-width: none; }

/* ═══════════════════════════════════════════════════════════════════════
   Motion — initial states (GSAP detecta e anima a partir destes)
   Se GSAP não carregar, a página renderiza com estes elementos visíveis.
   ═══════════════════════════════════════════════════════════════════════ */
.js-motion-ready [data-anim="enter"] { opacity: 0; transform: translateY(12px); }
.js-motion-ready [data-anim="fade"] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ─── Print ──────────────────────────────────────────────────────────── */
@media print {
  .nav, .footer, .post-aside, .home-hero__cta { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .post-hero, .blog-hero, .home-hero { background: white; color: black; padding: 0; }
  .post-hero__title, .post-hero__lede, .blog-hero__title, .home-hero__brand { color: black; }
  .post-grid { grid-template-columns: 1fr; padding: 0; max-width: 100%; }
  a { color: black; text-decoration: underline; }
  .prose blockquote { color: black; }
}
