/* Projeto Victória · SDM — base comum das páginas.
   Direção: caderno de trabalho claro, com a matéria da estante dela (madeira queimada, papel, lombada escura).
   Tipografia do site do Manual: Fraunces nos títulos, Inter no texto. */
:root {
  --paper: #f8f4ee;
  --card: #fffdf9;
  --ink: #24170f;
  --soft: #6e5f55;
  --hair: #e8dfd4;
  --accent: #b4501f;
  --accent-ink: #fff8f2;
  --wash: #f5e6da;
  --ok: #3d6b47;
  --okwash: #e3eee4;
  --warn: #93600f;
  --warnwash: #f6ebd6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
  --radius: 18px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #15100c; --card: #1e1712; --ink: #f3ebe2; --soft: #b3a596; --hair: #33281f;
  --accent: #e88a55; --accent-ink: #1a0f08; --wash: #2c1d14; --ok: #8fc79c; --okwash: #1b2a1e; --warn: #e3b866; --warnwash: #2b2213;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
.toplinks { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--soft); min-width: 0; }
.toplinks a { text-decoration: none; }
.themebtn { border: 1px solid var(--hair); background: var(--card); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--soft); cursor: pointer; white-space: nowrap; }

/* Tipografia */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; }
.lede { font-size: 18px; color: var(--soft); max-width: 56ch; margin: 0; }
.muted { color: var(--soft); }

/* Hero com foto */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 56px 0 64px; }
.hero .copy { display: grid; gap: 20px; }
.hero .photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--wash); }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }

/* Seções */
.sec { padding: 56px 0; border-top: 1px solid var(--hair); scroll-margin-top: 56px; }
.sechead { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 28px; }
.num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); font-weight: 400; }
.sechead p { margin: 8px 0 0; color: var(--soft); max-width: 60ch; }
.secbody { margin-left: 92px; }

/* Cartões e botões */
.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; padding: 12px 22px; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn.small { padding: 7px 14px; font-size: 13px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 500; background: var(--wash); color: var(--soft); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill.ok { background: var(--okwash); color: var(--ok); }
.pill.vou { background: var(--warnwash); color: var(--warn); }
.pill.nao { background: var(--wash); color: var(--accent); }
.pill.call { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.pill.call::before { opacity: 1; }

.note { background: var(--wash); border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 0; }
.note b { color: var(--accent); }

footer.site { border-top: 1px solid var(--hair); padding: 32px 0 56px; color: var(--soft); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0 44px; }
  .hero .photo { aspect-ratio: 16 / 11; order: -1; border-radius: 20px; }
  .hero .photo img { object-position: 50% 30%; }
  .sechead { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .num { font-size: 32px; }
  .secbody { margin-left: 0; }
  .sec { padding: 44px 0; }
}
@media (hover: hover) {
  .toplinks a:hover { color: var(--ink); }
  .themebtn:hover { color: var(--ink); border-color: var(--soft); }
  .btn:hover { filter: brightness(1.06); }
  .btn.ghost:hover { border-color: var(--soft); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
