/* ==========================================================================
   base.css — reset dan pondasi dokumen (dipakai semua halaman, setelah tokens.css)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11" 1, "ss03" 1;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--black-2); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 14px 0; }
strong, b { font-weight: 600; }
code, kbd, samp, .mono { font-family: var(--font-mono); font-feature-settings: normal; }
code { font-size: .92em; }
::selection { background: rgba(56, 163, 165, .22); }

:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    padding: 7px 12px; border-radius: var(--r);
    background: var(--black); color: #fff; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ikon garis dari sprite lokal (Lucide). */
.icon {
    width: 15px; height: 15px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Utilitas ----------------------------------------------------------- */

.muted { color: var(--ink-3); }
.subtle { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.small { font-size: var(--fs-sm); }
.text-error { color: var(--st-hot); }
.strong { font-weight: 600; }
.js .js-hide { display: none !important; }
.spacer { flex: 1; }
.stack { display: grid; gap: 12px; }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.label-caps { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

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