/**
 * base.css
 * Variáveis globais, reset e tipografia.
 * Identidade visual: Ratio Sistemas Educacionais.
 *
 * Fontes carregadas via index.html:
 *   Playfair Display — display / títulos
 *   Karla           — UI / body
 *   JetBrains Mono  — códigos BNCC
 */

/* ── Variáveis ─────────────────────────────────────────────────────────── */
:root {
  /* Fundo */
  --bg:    #0f0e0d;
  --bg2:   #181714;
  --bg3:   #201e1b;
  --bg4:   #272420;

  /* Bordas */
  --border:  #2d2a26;
  --border2: #3c3830;

  /* Texto */
  --text:  #e4ddd0;
  --text2: #9c9288;
  --text3: #5e5a54;

  /* Acento dourado */
  --gold:    #c49a3c;
  --gold2:   #8a6820;
  --gold-bg: rgba(196, 154, 60, 0.08);

  /* Documento (paper) */
  --doc-bg:   #fafaf8;
  --doc-text: #1a1815;
  --doc-muted:#5a5650;
  --doc-rule: #d0ccc4;
  --doc-head: #111111;

  /* Fontes */
  --font-ui:   'Karla', sans-serif;
  --font-disp: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --hdr-h:   56px;
  --panel-w: 460px;
  --radius:  4px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Tipografia base ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 600;
  line-height: 1.2;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ── Scrollbar personalizada (Chromium) ─────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--bg4);
  border-radius: 3px;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
}
