﻿/* ==========================================
   TYPOGRAPHY TOKENS
========================================== */

:root {
    /* Font Family */
    --font-family-base: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
    /* Font Sizes (Poppins se ve más grande que el fallback a igual tamaño
       numérico por su x-height más alta, así que la escala se recorta
       ~1px respecto a una fuente de sistema equivalente) */
    --font-size-xs: 0.6875rem; /* 11px */
    --font-size-sm: 0.75rem; /* 12px */
    --font-size-base: 0.8125rem; /* 13px */
    --font-size-lg: 0.9375rem; /* 15px */
    --font-size-xl: 1.0625rem; /* 17px */
    --font-size-2xl: 1.25rem; /* 20px */
    --font-size-3xl: 1.625rem; /* 26px */
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Line Heights */
    --line-height-base: 1.5;
    --line-height-heading: 1.2;
    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
}

/* ==========================================
   ROOT
========================================== */

html {
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    margin: 0;
}

/* ==========================================
   HEADINGS
========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

h6 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

/* ==========================================
   TEXT
========================================== */

p {
    margin: 0 0 1rem;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

small {
    font-size: var(--font-size-sm);
}

strong,
b {
    font-weight: var(--font-weight-bold);
}

em,
i {
    font-style: italic;
}

label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: .35rem;
}

blockquote {
    margin: 0;
    padding-left: 1rem;
    font-style: italic;
}

code,
pre {
    font-family: Consolas, "Courier New", monospace;
    font-size: .95em;
}

pre {
    overflow-x: auto;
}

/* ==========================================
   LINKS
========================================== */

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ==========================================
   LISTS
========================================== */

ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

li {
    line-height: var(--line-height-base);
}

/* ==========================================
   TEXT UTILITIES
========================================== */

.text-xs {
    font-size: var(--font-size-xs);
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-base {
    font-size: var(--font-size-base);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

.text-2xl {
    font-size: var(--font-size-2xl);
}

.text-3xl {
    font-size: var(--font-size-3xl);
}

.font-normal {
    font-weight: var(--font-weight-normal);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

.text-end {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}
