/* Subpáginas (artigo, certificações): mesma identidade editorial da página principal */
:root {
  --bg: #F4F0EA;
  --card: #FBF9F6;
  --ink: #22102F;
  --muted: #6E5F78;
  --lilac: #6A2C9C;
  --line: rgba(34, 16, 47, .14);
  --gold: #9A5A96;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: #E2D2F2; }

/* o tema editorial não usa o lírio de fundo nem o grão */
.bg, .grain { display: none; }

.wrap { max-width: 980px; margin: 0 auto; padding: 22px 18px 0; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); background: var(--card); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s; }
.back:hover { color: var(--ink); border-color: var(--ink); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }

.kicker { display: flex; align-items: center; gap: 10px; margin-top: 36px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.kicker .dot { width: 18px; height: 1px; background: currentColor; }
h1 { margin-top: 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 10vw, 84px); line-height: .98; letter-spacing: -.025em; font-variation-settings: "opsz" 72; }
h1 em { font-weight: 400; color: var(--ink); }
.lede { margin-top: 14px; max-width: 640px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--muted); }

.glass { background: var(--card); border: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .3s, border-color .3s, color .3s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--lilac); }
.btn--ghost { border: 1px solid var(--ink); background: var(--card); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn:focus-visible, .back:focus-visible, .card:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }

footer { margin-top: 48px; padding: 12px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
footer a:hover { color: var(--ink); }

.rise { animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms + .05s); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 960px) {
  .wrap { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
