/* ============================================
   BASE STYLES
   ============================================ */

/* Body */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

/* Paragraphs */
p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Links */
a {
    color: var(--color-neutral-700);
    text-decoration: none;
    transition: color var(--transition-fast) var(--ease-out);
}

a:hover {
    color: var(--color-primary-600);
}

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

/* Strong & Em */
strong,
b {
    font-weight: var(--font-weight-semibold);
}

em,
i {
    font-style: italic;
}

/* Selection */
::selection {
    background-color: var(--color-primary-500);
    color: var(--color-text-inverted);
}

::-moz-selection {
    background-color: var(--color-primary-500);
    color: var(--color-text-inverted);
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neutral-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-neutral-500);
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}