/* Reset e base tipográfica */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--f-text); font-size: var(--fs-base); line-height: var(--lh-body); color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; color: var(--c-mute); }
a { color: var(--c-purple-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--c-purple-500); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); font-weight: 700; line-height: var(--lh-snug); color: var(--c-purple-900); margin: 0 0 0.5em; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-md); font-family: var(--f-text); font-weight: 600; }
h6 { font-size: var(--fs-sm); font-family: var(--f-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
/* Espaçamento entre itens só em listas de texto corrido. Listas com classe
   (navegação, paginação, grades) resetam padding, margem e list-style. */
:where(ul, ol):not([class]) li + li { margin-top: 0.35em; }
:where(ul, ol)[class] { padding-left: 0; margin: 0; list-style: none; }
/* Lista dentro de <nav> é navegação, nunca texto corrido: o espaçamento
   entre itens desalinharia a fila horizontal. */
nav :where(ul, ol) li + li { margin-top: 0; }
blockquote { margin: 1.5em 0; padding: 1rem 1.5rem; border-left: 3px solid var(--c-purple-700); background: var(--c-purple-050); font-size: var(--fs-md); font-weight: 500; color: var(--c-purple-900); border-radius: 0 var(--r-md) var(--r-md) 0; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--block-y) 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { font-weight: 600; color: var(--c-purple-900); background: var(--c-bg-alt); }
small, .small { font-size: var(--fs-sm); }
.caption { font-size: var(--fs-xs); color: var(--c-mute); letter-spacing: 0.02em; }
.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--c-ink-soft); font-weight: 400; }
.eyebrow { font-family: var(--f-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-purple-700); margin-bottom: 0.9rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.eyebrow::before { content: ''; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M16.3 3.2c4.2 1.6 6.7 5.3 6.1 10s-5.2 8-10.4 8.5S3.6 19.7 2.6 15 4.7 6.7 8.9 4.6c3-1.5 5.3-1.9 7.4-1.4zm-.9 5.1c-1.5-.6-3.4-.2-5.9 1.1-2.5 1.3-3.8 4-3.2 6.9.6 2.9 3.4 4.5 6.5 4.2s5.9-2.6 6.3-5.5-1.1-5.5-3.7-6.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M16.3 3.2c4.2 1.6 6.7 5.3 6.1 10s-5.2 8-10.4 8.5S3.6 19.7 2.6 15 4.7 6.7 8.9 4.6c3-1.5 5.3-1.9 7.4-1.4zm-.9 5.1c-1.5-.6-3.4-.2-5.9 1.1-2.5 1.3-3.8 4-3.2 6.9.6 2.9 3.4 4.5 6.5 4.2s5.9-2.6 6.3-5.5-1.1-5.5-3.7-6.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.on-dark { color: var(--c-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .eyebrow { color: var(--c-cyan-500); }
.on-dark a:not(.btn) { color: #fff; }
/* O botão manda na própria cor de texto, mesmo dentro de bloco escuro. */
.on-dark .btn, .section--dark .btn { color: var(--btn-fg); }
.on-dark .lead { color: var(--c-on-dark-soft); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-purple-900); color: #fff; padding: 0.6rem 1rem; z-index: 1000; border-radius: 0 0 var(--r-sm) 0; text-decoration: none; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.prose { max-width: var(--container-narrow); }
.prose h2 { margin-top: 2.2em; } .prose h3 { margin-top: 1.8em; }
/* O primeiro bloco do texto não soma a própria margem ao respiro da seção:
   sem isso o começo abria com quase o dobro do espaço dos blocos seguintes. */
[hidden] { display: none !important; }   /* .btn e afins declaram display e venceriam o atributo */
.prose > :first-child { margin-top: 0; }
.prose img { display: block; width: 100%; height: auto; border-radius: var(--r-md); margin: var(--block-y) 0; }
.prose figure { margin: var(--block-y) 0; } .prose figcaption { font-size: var(--fs-xs); color: var(--c-mute); margin-top: 0.5rem; }
.prose ul li::marker { color: var(--c-purple-700); }
