/* =========================================================================
   DESIGN SYSTEM — BASE
   Reset & gaya elemen dasar. Wajib load tokens.css SEBELUM file ini.
   ========================================================================= */

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); color: var(--color-ink); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-hover); }

/* Fokus keyboard WAJIB kelihatan (aksesibilitas, jangan pernah outline:none tanpa ganti) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

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

.ds-container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Reduced motion: hormati preferensi pengguna yang sensitif terhadap animasi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Form dasar */
label {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
}
