/* ═══════════════════════════════════════════════════════════════
   Paynt Design System — Base Styles
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    line-height: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-page);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Focus ─── */
:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-s);
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ─── Selection ─── */
::selection {
    background-color: var(--brand-light);
    color: var(--text-primary);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-strong);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--border-stronger);
}

/* ─── Links ─── */
a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--duration-fast) var(--easing-default);
}

a:hover {
    color: var(--text-link-hover);
}

/* ─── Headings ─── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}
