/* ============================================
   Base Styles - Tipografia e Elementos Globais
   ============================================ */

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--leading-normal);
}

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

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Subtitles / section descriptions */
.subtitle, .section-description {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* === Links === */
a {
    color: var(--color-text-link);
    transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-hover); }
a:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* === Paragraphs === */
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

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

/* === Scrollbar (subtle) === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* === Images === */
img {
    object-fit: cover;
}

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

/* === Code === */
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-bg);
    padding: 0.1em 0.3em;
    border-radius: var(--radius-sm);
}

/* === HR === */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
}

/* === Focus styles for keyboard navigation === */
:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}
