/* ==========================================================================
   BASE – typography & phần tử HTML mặc định
   ========================================================================== */
body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-heading);
    color: var(--color-heading);
}

a {
    transition: color var(--transition), background-color var(--transition),
        border-color var(--transition), box-shadow var(--transition);
}

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

::selection {
    background: var(--color-primary);
    color: #fff;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
}

.icon--stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: 10px 16px;
    margin: 0;
    clip: auto;
    background: #fff;
    color: var(--color-heading);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}
