:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #15171c;
  --muted: #5b606b;
  --line: #e4e3dd;
  --accent: #c8322b;
  --accent-text: #ffffff;
  --code: #f1f0ea;
  --rabbit-fill: #ffffff;
  --max: 68rem;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --surface: #171a20;
    --text: #eceae4;
    --muted: #a3a7b0;
    --line: #2a2e36;
    --accent: #ff6b5e;
    --accent-text: #15171c;
    --code: #1e2229;
    --rabbit-fill: #eceae4;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-size: 1.2rem; letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; }
.rabbit { width: 1.6rem; height: 1.6rem; flex: none; }
.rabbit { color: var(--text); }
/* Regras no <symbol> original: os clones do <use> herdam cor e variáveis do .rabbit */
#rabbit .body { fill: var(--rabbit-fill); stroke: currentColor; stroke-width: 1.5; }
#rabbit .eye { fill: var(--accent); }
.site-header nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 4.5rem 1rem 3.5rem; }
@media (min-width: 720px) { .hero { padding: 7rem 2rem 5rem; } }
.eyebrow {
  margin: 0 0 1.25rem;
  font: 500 .85rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--accent); letter-spacing: .04em;
}
.eyebrow::before { content: "→ "; }
h1 {
  margin: 0; max-width: 18ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08;
  letter-spacing: -.025em; font-weight: 800;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 1.5rem 0 2rem; max-width: 40rem; font-size: 1.2rem; color: var(--muted); }
.button {
  display: inline-block; padding: .8rem 1.3rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 600; text-decoration: none;
}
.button:hover { color: var(--accent-text); filter: brightness(1.08); }

/* Seções */
section.block { padding: 3.5rem 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { section.block { padding: 5rem 0; } }
h2 {
  margin: 0 0 .5rem; font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -.02em; line-height: 1.2;
}
.section-intro { margin: 0 0 2.25rem; color: var(--muted); max-width: 40rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; letter-spacing: -.01em; }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin: .25rem 0; }
.card .num {
  display: inline-block; margin-bottom: .9rem;
  font: 600 .8rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--accent);
}

.principles { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.principles p { margin: 0; color: var(--muted); }

.about { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .about { grid-template-columns: 1.4fr 1fr; } }
.about p { max-width: 38rem; }
.about-mark { display: flex; justify-content: center; color: var(--text); }
.about-mark .rabbit { width: 9rem; height: 9rem; opacity: .9; }

.contact-mail {
  display: inline-block; margin-top: .5rem;
  font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 700; letter-spacing: -.01em;
  word-break: break-word;
}

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer p { margin: 0; }

/* Páginas de texto (política) */
.doc { padding: 3rem 1rem 4rem; max-width: 46rem; }
@media (min-width: 720px) { .doc { padding: 4.5rem 2rem 5rem; } }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); max-width: none; }
.doc .updated { color: var(--muted); margin: .75rem 0 2.5rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.35rem; scroll-margin-top: 1rem; }
.doc h3 { margin: 1.5rem 0 .25rem; font-size: 1.05rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: .3rem 0; }
.doc .toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.doc .toc ol { margin: .25rem 0 0; padding-left: 1.25rem; }
.doc .callout {
  background: var(--code); border-left: 3px solid var(--accent);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
