/* ==========================================================================
   Base — reset, body, typography, utilities
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ash);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--bone);
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* Layout */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

section {
  padding-block: 96px;
  scroll-margin-top: 80px;
}

/* Utilities */
.mono { font-family: var(--mono); }

@media (max-width: 760px) {
  section { padding-block: 64px; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
}

/* Hormati preferensi reduced motion: matikan semua animasi & smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Hanya untuk screen reader (tidak tampil di layar) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
