/* ==========================================================
   AstraNexo Design System
   Base
   ========================================================== */

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

html {
    font-family: var(--an-font);
    background: var(--an-bg);
    color: var(--an-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--an-bg);
    color: var(--an-text);
    font-family: var(--an-font);
    font-size: var(--an-text-md);
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: var(--an-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1 {
    font-size: var(--an-text-2xl);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--an-text-xl);
    line-height: 1.3;
    font-weight: 700;
}

h3 {
    font-size: var(--an-text-lg);
    line-height: 1.4;
    font-weight: 600;
}

small {
    font-size: var(--an-text-sm);
    color: var(--an-text-secondary);
}

code,
pre {
    font-family: var(--an-font-mono);
}

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

:focus-visible {
    outline: 3px solid rgba(99, 91, 255, 0.28);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.an-muted {
    color: var(--an-text-muted);
}

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

.an-text-danger {
    color: var(--an-danger);
}

.an-text-success {
    color: var(--an-success);
}

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