/*
 * Roxty Framework — Typography CSS
 * Basado en Roboto + escala fluid con clamp()
 * Limpio y legible en todos los dispositivos
 *
 * Objetivo: < 2kb minificado
 */

/* ── BASE ──────────────────────────────────────────────────────────────── */

body {
    font-family: var(--rxty-font-main, 'Roboto', sans-serif);
    font-size: var(--rxty-text-base);
    font-weight: var(--rxty-font-weight-normal, 400);
    color: var(--rxty-text);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* ── HEADINGS ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rxty-font-main, 'Roboto', sans-serif);
    font-weight: var(--rxty-heading-weight, 700);
    text-transform: var(--rxty-heading-transform, none);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--rxty-text);
}

h1 { font-size: var(--rxty-text-3xl); }
h2 { font-size: var(--rxty-text-2xl); }
h3 { font-size: var(--rxty-text-xl); }
h4 { font-size: var(--rxty-text-lg); }
h5 { font-size: var(--rxty-text-base); font-weight: var(--rxty-font-weight-medium, 500); }
h6 { font-size: var(--rxty-text-sm);  font-weight: var(--rxty-font-weight-medium, 500); }

/* ── PÁRRAFOS ──────────────────────────────────────────────────────────── */

p {
    margin-bottom: 1em;
    color: var(--rxty-text);
}

p:last-child { margin-bottom: 0; }

/* ── LINKS ─────────────────────────────────────────────────────────────── */

a {
    color: var(--rxty-accent);
    text-decoration: none;
    transition: color var(--rxty-transition-fast);
}

a:hover {
    color: var(--rxty-accent-hover, var(--rxty-accent));
}

/* ── ÉNFASIS ───────────────────────────────────────────────────────────── */

strong, b {
    font-weight: var(--rxty-font-weight-bold, 700);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--rxty-text-xs);
    color: var(--rxty-text-muted);
}

/* ── LISTAS CON CONTENIDO ──────────────────────────────────────────────── */

/* Solo dentro del contenido del editor, no en nav o footer */
.rxty-content ul,
.entry-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.rxty-content ol,
.entry-content ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.rxty-content li,
.entry-content li {
    margin-bottom: 0.3em;
}

/* ── BLOCKQUOTE ────────────────────────────────────────────────────────── */

blockquote {
    border-left: 3px solid var(--rxty-accent);
    padding-left: 1.5rem;
    margin-block: 1.5rem;
    font-style: italic;
    color: var(--rxty-text-muted);
    font-size: var(--rxty-text-lg);
}

/* ── CODE ──────────────────────────────────────────────────────────────── */

code, pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background: var(--rxty-surface-alt, var(--rxty-surface));
    border-radius: var(--rxty-radius);
}

code {
    padding: 0.15em 0.4em;
}

pre {
    padding: 1rem 1.5rem;
    overflow-x: auto;
    margin-block: 1.5rem;
}

/* ── UTILIDADES DE TIPOGRAFÍA ──────────────────────────────────────────── */

.rxty-text-xs     { font-size: var(--rxty-text-xs); }
.rxty-text-sm     { font-size: var(--rxty-text-sm); }
.rxty-text-base   { font-size: var(--rxty-text-base); }
.rxty-text-lg     { font-size: var(--rxty-text-lg); }
.rxty-text-xl     { font-size: var(--rxty-text-xl); }
.rxty-text-2xl    { font-size: var(--rxty-text-2xl); }
.rxty-text-3xl    { font-size: var(--rxty-text-3xl); }

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

.rxty-font-light  { font-weight: var(--rxty-font-weight-light, 300); }
.rxty-font-normal { font-weight: var(--rxty-font-weight-normal, 400); }
.rxty-font-medium { font-weight: var(--rxty-font-weight-medium, 500); }
.rxty-font-bold   { font-weight: var(--rxty-font-weight-bold, 700); }

.rxty-uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.rxty-center      { text-align: center; }
.rxty-right       { text-align: right; }
.rxty-left        { text-align: left; }
