/* =====================================================================
   base.css — variabel warna, reset, tipografi dasar
   ===================================================================== */

:root {
  --bg-1: #0f1b33;
  --bg-2: #1e3c72;
  --bg-3: #2a5298;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --surface-solid: #1a2b4d;
  --border: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --text-muted: #b8c2d8;
  --accent: #f1c40f;
  --accent-2: #3498db;
  --orange: #e67e22;
  --orange-dark: #d35400;
  --green: #2ecc71;
  --red: #c0392b;
  --blue: #3498db;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --mono: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 1.6rem; color: var(--accent); }
h2 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--accent); }
h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }

p { margin-bottom: 0.6rem; }
p:last-child { margin-bottom: 0; }

a { color: #8fd3ff; }

ul, ol { padding-left: 1.2rem; }

.list-tight li { margin-bottom: 0.3rem; }

.muted { color: var(--text-muted); }
.small { font-size: 0.82rem; }
.is-hidden { display: none !important; }

canvas {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }
