/* base.css — reset, tipografi, layout dasar.
   Tipografi: Plus Jakarta Sans (judul, geometris & hangat) + Inter (isi, sangat terbaca untuk teks teknis panjang).
   Arah ini berasal dari referensi visual Stitch (DESIGN.md), bukan dari PRD. Monospace memakai font sistem. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text-muted);
  font: 400 15px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; color: var(--text); margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.025em; }
h2 { font-size: 28px; line-height: 36px; font-weight: 600; }
h3 { font-size: 22px; line-height: 30px; font-weight: 600; }
h4 { font-size: 18px; line-height: 26px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, kbd, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* fokus terlihat: #0A1825 di latar terang, Lime di latar gelap */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .admin-side :focus-visible, .drawer-panel :focus-visible, .code-block :focus-visible, .locked-card :focus-visible { outline-color: var(--lime); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 960px; }
main#view { flex: 1; }
@media (max-width: 767px) {
  h1 { font-size: 26px; line-height: 34px; letter-spacing: -0.02em; }
  h2 { font-size: 22px; line-height: 30px; }
  .container { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
