/* ============================================================
   SHORTO — Base
   Reset minimal, elemen dasar, tipografi global, helper a11y.
   ============================================================ */

@import url('https://fonts.bunny.net/css?family=inter:300,400,700&display=swap');

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

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

body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ----- Tipografi (Seksi 3.2) ----- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--color-ink);
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h4 {
  font-size: var(--text-h4);
  line-height: 1.3;
}

p {
  font-size: var(--text-body);
  line-height: 1.65;
}

/* ----- Utility tipografi ----- */
.text-display {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.text-body-lg {
  font-size: var(--text-body-lg);
  line-height: 1.65;
}

.text-body-sm {
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.text-label {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.text-micro {
  font-size: var(--text-micro);
  line-height: 1.4;
}

/* ----- Warna teks ----- */
.t-secondary { color: var(--color-dark-gray); }
.t-tertiary { color: var(--color-mid-gray); }
.t-mid-dark { color: var(--color-gray-mid-dark); }

/* ----- Aksesibilitas ----- */

/* Focus visible — WAJIB terlihat (Seksi 10.2) */
:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Skip link — elemen pertama di body */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  z-index: 1000;
  background: var(--color-ink);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 150ms var(--ease-out);
}

.skip-link:focus {
  top: var(--space-3);
}

/* Visually hidden tapi terbaca screen reader */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
