/* ESSENZA - Typography
   ============================================
   Estilos tipográficos e definições de fontes
   ============================================ */

/* ===== FONT FACES ===== */
/* Fontes locais podem ser adicionadas aqui quando os arquivos forem fornecidos. */

/* 
@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/roboto-300.woff2') format('woff2'),
         url('../fonts/roboto-300.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/roboto-400.woff2') format('woff2'),
         url('../fonts/roboto-400.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/roboto-500.woff2') format('woff2'),
         url('../fonts/roboto-500.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/roboto-700.woff2') format('woff2'),
         url('../fonts/roboto-700.woff') format('woff');
}
*/

/* ===== HEADINGS ===== */

h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-sm);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-sm);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-sm);
}

/* ===== BODY TEXT ===== */

p {
    margin-bottom: var(--space-md);
}

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

/* ===== TEXT UTILITIES ===== */

.text-xs {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

.text-sm {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.text-lg {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
}

.text-xl {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-normal);
}

.text-2xl {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-snug);
}

/* Font weights */
.font-light {
    font-weight: var(--font-weight-light);
}

.font-normal {
    font-weight: var(--font-weight-regular);
}

.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 colors */
.text-primary {
    color: var(--color-text-primary);
}

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

.text-tertiary {
    color: var(--color-text-tertiary);
}

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

.text-white {
    color: var(--color-white);
}

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

.text-warning {
    color: var(--color-warning);
}

.text-error {
    color: var(--color-error);
}

/* Text alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Text transform */
.uppercase {
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* Text decoration */
.underline {
    text-decoration: underline;
}

.line-through {
    text-decoration: line-through;
}

.no-underline {
    text-decoration: none;
}

/* ===== STRONG & EM ===== */

strong {
    font-weight: var(--font-weight-bold);
}

b {
    font-weight: var(--font-weight-bold);
}

em {
    font-style: italic;
}

i {
    font-style: italic;
}

/* ===== LISTS ===== */

ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

ul ul, ul ol,
ol ul, ol ol {
    margin-bottom: 0;
    margin-top: var(--space-sm);
}

li {
    margin-bottom: var(--space-sm);
}

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

/* ===== BLOCKQUOTE ===== */

blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--color-accent-gold);
    background-color: var(--color-bg-secondary);
    font-style: italic;
    color: var(--color-text-secondary);
}

blockquote footer {
    font-size: var(--font-size-sm);
    font-style: normal;
    color: var(--color-text-tertiary);
    margin-top: var(--space-sm);
}

/* ===== CODE ===== */

code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    background-color: var(--color-bg-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--color-accent-gold);
}

pre {
    background-color: var(--color-bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--space-md);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* ===== LINKS ===== */

a {
    color: var(--color-primary);
    transition: var(--transition-color);
}

a:hover {
    color: var(--color-accent-gold);
    text-decoration: underline;
}

a:active {
    color: var(--color-primary-dark);
}

/* ===== ABBREVIATIONS ===== */

abbr[title] {
    cursor: help;
    text-decoration: underline dotted;
    text-decoration-color: var(--color-border);
}

/* ===== MARK ===== */

mark {
    background-color: var(--color-accent-gold);
    color: var(--color-primary);
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

/* ===== SMALL & LARGE ===== */

small {
    font-size: var(--font-size-sm);
}

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

/* ===== HR ===== */

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-lg) 0;
}
