/* base.css - Design tokens, reset, tipografi (STEP 4)
   Konsep: "Modern Educational Digital Campus" - minimal, editorial, teknis. */

:root {
  /* Warna: navy sebagai identitas, cyan HANYA untuk garis/fokus/aksen kecil */
  --c-navy-950: #071634;
  --c-navy-900: #0a1f44;
  --c-navy-800: #0f2d63;
  --c-navy-700: #143a7b;
  --c-accent: #1da1d8;       /* dekorasi & fokus (jangan untuk teks kecil) */
  --c-accent-ink: #0b6c99;   /* aksen untuk teks/link (kontras 5.8:1 di putih) */
  --c-bg: #f5f7fa;
  --c-surface: #ffffff;
  --c-line: #dce2ea;
  --c-line-strong: #c3ccd8;
  --c-text: #17212f;
  --c-muted: #566275;        /* kontras 5.8:1 di --c-bg */
  --c-success: #146c43; --c-success-bg: #e8f5ee;
  --c-danger:  #b42318; --c-danger-bg:  #fdecea;
  --c-warning: #8a5a00; --c-warning-bg: #fff4db;
  --c-info:    #0b6c99; --c-info-bg:    #e6f4fb;

  /* Tipografi: font sistem (0 download) */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
  --fs-3xl: clamp(1.9rem, 1.2rem + 3vw, 3rem);

  /* Jarak, radius, bayangan, gerak */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4.5rem;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(10, 31, 68, 0.06);
  --t-fast: 150ms; --t-base: 220ms;
  --header-h: 64px;

}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.6;
  color: var(--c-text); background: var(--c-bg);
}
main { flex: 1; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; color: var(--c-navy-900); font-weight: 700; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
a { color: var(--c-accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--c-navy-900); }

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

.ds-skip {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--c-navy-900); color: #fff; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
}
.ds-skip:focus { top: var(--sp-2); color: #fff; }

.ds-container { width: min(100% - 2rem, 1160px); margin-inline: auto; }

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