/* ==========================================================================
   Base — SFA Middleware Prototype
   ==========================================================================
   Reset ringkas, tipografi dasar, utility global, dan scrollbar kustom.
   Bergantung sepenuhnya pada custom property dari css/tokens.css.
   ========================================================================== */

/* Reset ringkas
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* Tipografi dasar
   ========================================================================== */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Fokus (aksesibilitas)
   ========================================================================== */
:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

/* Utility global
   ========================================================================== */
.u-hidden {
  display: none !important;
}

/* Scrollbar kustom global
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}
