/* ==========================================================================
   base.css — token desain (warna, font, radius, bayangan), tema gelap,
   reset, tipografi, dan utilitas kecil.
   Layout ide: sidebar kiri · topbar · area utama (+ kolom kanan di Beranda).
   ========================================================================== */
:root {
  /* Warna inti — mengikuti desain referensi (biru cerah, latar biru sangat muda) */
  --bg: #EEF4FC;
  --surface: #FFFFFF;
  --surface-2: #F4F8FE;
  --sidebar: #F7FAFF;
  --ink: #111A2E;
  --muted: #5E6B82;
  --line: #E2EAF5;
  --primary: #1A73F5;
  --primary-2: #4D95FA;     /* ujung gradien tombol & progress */
  --primary-ink: #FFFFFF;
  --primary-soft: #E2EDFE;
  --gold: #FFB21E;
  --gold-soft: #FFF4DC;

  /* Warna kategori (kartu skill pastel) */
  --c-purple: #8B6CF6;  --c-purple-soft: #F1ECFF;
  --c-red: #F2555F;     --c-red-soft: #FFEDEE;
  --c-green: #22B55E;   --c-green-soft: #E4F8EB;
  --c-orange: #F7922A;  --c-orange-soft: #FFF2E2;
  --c-teal: #12A3E0;    --c-teal-soft: #E2F5FD;
  --c-blue: #1A73F5;    --c-blue-soft: #E2EDFE;

  /* Bentuk */
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 26, 46, .04), 0 10px 28px rgba(26, 115, 245, .07);

  /* Font */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Satu tema terang (sengaja), sama seperti desain referensi */
  color-scheme: light;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 8px; }

/* Tipografi */
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
small { font-size: 12.5px; }
.lead { color: var(--muted); max-width: 68ch; margin-top: 6px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
