/* Site público do Maria — design system "Maria · Presença" 1.0 (docs/design/DESIGN_SYSTEM_MARIA.md).
   Cores = packages/design-tokens/tokens.json (204 pares conferidos por tools/check-contrast.mjs).
   Fontes locais sob SIL OFL 1.1: Source Sans 3 (Adobe) e Literata (TypeTogether/Google), licenças em fonts/. */
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Literata; src: url("fonts/Literata-Semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F8F3ED; --surface: #FFFCF8; --soft: #EDE2E7; --ink: #30282D; --muted: #695C64;
  --accent: #65435B; --on-accent: #FFFCF8; --accent-hover: #57384E; --accent-pressed: #493042;
  --border: #8D7D87; --focus: #65435B;
  --info: #475768; --info-bg: #E5EBF1; --warning: #65512F; --warning-bg: #F1E9DB;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Literata, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211D21; --surface: #2D272D; --soft: #3B3039; --ink: #F5EDE7; --muted: #C4B5BD;
    --accent: #D9B6CB; --on-accent: #30232C; --accent-hover: #E4C8D9; --accent-pressed: #CDA3BD;
    --border: #A28E9C; --focus: #E7C8DB;
    --info: #CADCEB; --info-bg: #2D3742; --warning: #E8D9B9; --warning-bg: #40382D;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.53 var(--sans); color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 20px; }
main { padding-top: 8px; padding-bottom: 56px; }
main:focus { outline: none; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button:focus-visible { box-shadow: 0 0 0 3px var(--surface); }

.skip { position: fixed; left: 16px; top: -100px; background: var(--surface); color: var(--ink); padding: 12px; z-index: 30; border: 1px solid var(--border); border-radius: 12px; }
.skip:focus { top: 12px; }

/* 5.13 Barra superior e menu: marca, menu recolhível de 48px; no computador, tudo em linha. */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { margin: 0; }
.brand a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--accent); text-decoration: none; font: 600 1.75rem/1 var(--serif); letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--accent); font: 600 1.0625rem/1.4 var(--sans); cursor: pointer; }
.menu-toggle:hover { background: var(--soft); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle[hidden] { display: none; }
.menu { flex: 1 1 100%; }
.js .site-header.is-collapsible .menu { display: none; }
.js .site-header.is-collapsible.is-open .menu { display: block; padding-bottom: 8px; }
.nav, .langs { list-style: none; margin: 0; padding: 0; }
.nav li + li { border-top: 1px solid var(--border); }
.nav a { display: flex; align-items: center; min-height: 52px; padding: 14px 4px; color: var(--accent); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 600; color: var(--ink); }
.nav a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.langs a { display: inline-flex; align-items: center; min-height: 48px; color: var(--accent); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; text-decoration: none; }

@media (min-width: 960px) {
  .site-header .wrap { max-width: 72rem; flex-wrap: nowrap; }
  .menu-toggle { display: none !important; }
  .js .site-header.is-collapsible .menu, .menu { display: flex !important; flex: 0 1 auto; align-items: center; gap: 20px; padding: 0 !important; }
  .nav { display: flex; gap: 4px 18px; }
  .nav li + li { border: 0; }
  .nav a { min-height: 48px; padding: 0; }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
  .langs { margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid var(--border); }
}

/* Tipografia: títulos em Literata, texto em Source Sans 3 (seção 3). */
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.25; margin: 36px 0 12px; }
h2 { font-size: 1.5rem; line-height: 1.33; margin: 40px 0 10px; }
h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; margin: 28px 0 8px; }
.lead { font-size: 1.375rem; line-height: 1.45; }
ul, ol { padding-left: 1.3rem; }
li { margin: 8px 0; }
li::marker { color: var(--accent); }
.small { font-size: .9375rem; line-height: 1.47; color: var(--muted); }
strong { font-weight: 600; }

dl.modes { display: grid; gap: 12px; }
dl.modes dt { font-weight: 600; margin: 0; }
dl.modes dd { margin: 2px 0 0; color: var(--muted); }

/* 5.8 Aviso em linha: borda integral, sem tarja lateral. */
.notice { background: var(--info-bg); color: var(--ink); border: 1px solid var(--info); border-radius: 12px; padding: 16px; }
.placeholder { background: var(--warning-bg); color: var(--warning); border: 1px dashed var(--warning); border-radius: 8px; padding: 0 6px; font-weight: 600; }

/* 5.5 Cartão. */
.release, .help-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.release { padding: 4px 20px 20px; }
.release dl { margin: 0; }
.release dt { font-weight: 600; margin-top: 16px; }
.release dd { margin: 4px 0 0; }

code, pre { font-family: var(--mono); font-size: .875em; }
code { background: var(--soft); border-radius: 6px; padding: 1px 6px; }
code.hash { word-break: break-all; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { background: var(--soft); font-weight: 600; }

.help-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.help-list li { padding: 8px 20px; margin: 0; }

/* 5.14 Rodapé institucional. */
.site-footer { border-top: 1px solid var(--border); padding: 20px 0 28px; font-size: .875rem; line-height: 1.43; color: var(--muted); }
.site-footer p { margin: 6px 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .menu-toggle, .release, .help-list li, .notice { border: 1px solid CanvasText; } }
@media print { .site-header, .skip { display: none; } body { background: #fff; color: #000; } }

/* Início: chamada, símbolo e passos (exemplo "site" do pacote Presença). */
.eyebrow { margin: 36px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.43; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-title { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.2; margin-top: 12px; }
.hero-mark { display: flex; align-items: center; justify-content: center; height: 136px; margin: 28px 0 8px; border-radius: 96px 96px 24px 24px; background: var(--soft); color: var(--accent); }
.hero-mark svg { width: 96px; height: 96px; }
/* O símbolo se desenha uma vez ao abrir. Só quando a pessoa NÃO pediu menos movimento; fora disso aparece
   inteiro e parado. Sem dependência: só traço animado (stroke-dashoffset) sobre pathLength="100". */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark svg path { stroke-dasharray: 100; animation: hero-draw 1.3s cubic-bezier(.65, 0, .35, 1) both; }
}
@keyframes hero-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.steps-title { font-family: var(--sans); font-size: 1.25rem; line-height: 1.4; margin-top: 32px; }
.steps { list-style: none; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.step-num { color: var(--accent); font: 600 1.5rem/1.2 var(--serif); min-width: 24px; }
/* 5.11 Bloco "Preciso de ajuda agora". */
.help-inline { display: flex; align-items: center; gap: 12px; min-height: 64px; margin-top: 40px; padding: 16px; border-radius: 16px; background: var(--soft); color: var(--accent); font-weight: 600; text-decoration: none; }
.help-inline:hover { text-decoration: underline; }
.help-inline span { flex: 1; min-width: 0; }
.help-inline svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (forced-colors: active) { .help-inline { border: 1px solid CanvasText; } }
