/* =====================================================================
   base.css (v2 — overhaul visual)
   Reset & tipografi dasar. Mobile-first. Menambahkan detail halus:
   letter-spacing pada heading besar, custom selection, dan eyebrow label.
   ===================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-family-base);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
    color: var(--color-text-primary);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

h1, h2, h3, h4 {
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-heading);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.01em; }

.text-secondary {
    color: var(--color-text-secondary);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

section {
    padding-block: var(--space-16);
}

.section-alt {
    background-color: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-12);
}

.section-header .eyebrow,
.section-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.section-header .eyebrow::before,
.section-header__eyebrow::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header h2 {
    margin-top: var(--space-1);
}

.section-header p {
    color: var(--color-text-secondary);
    margin-top: var(--space-3);
    line-height: var(--lh-relaxed);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Skip-to-content link untuk aksesibilitas keyboard */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gradient-primary);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    z-index: 1000;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

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