/**
 * Oyes Golf Magazine - Typography System v5.0
 * Sistema de tipografía moderna con system-ui
 */

/* ========================================
   Font Stacks
======================================== */

:root {
    /* System UI Font Stack - Fuentes nativas del sistema */
    --font-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Font Sizes - Escala modular */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
}

/* ========================================
   Base Typography
======================================== */

body {
    font-family: var(--font-system);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   Headings
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-system);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin: 0;
}

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

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

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

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

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

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

/* ========================================
   Text Elements
======================================== */

p {
    margin: 0 0 1rem;
    line-height: var(--line-height-relaxed);
}

strong, b {
    font-weight: var(--font-weight-semibold);
}

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

code, kbd, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ========================================
   Links
======================================== */

a {
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ========================================
   Buttons & Form Elements
======================================== */

button,
input,
select,
textarea {
    font-family: var(--font-system);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* ========================================
   Utility Classes
======================================== */

.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); }
.text-4xl { font-size: var(--font-size-4xl); }

.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); }

.leading-tight { line-height: var(--line-height-tight); }
.leading-snug { line-height: var(--line-height-snug); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }
.leading-loose { line-height: var(--line-height-loose); }

/* ========================================
   Component Typography
======================================== */

/* Site Title */
.site-title {
    font-family: var(--font-system);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
}

/* Navigation */
.main-navigation a {
    font-family: var(--font-system);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
}

/* Post Titles */
.post-card h2,
.post-title {
    font-family: var(--font-system);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
}

/* Meta Text */
.post-meta,
.post-date,
.post-author {
    font-family: var(--font-system);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
}

/* Widget Titles */
.widget-title,
.footer-widget-title {
    font-family: var(--font-system);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
}

/* Search Input */
.search-input,
.ogm-search-input {
    font-family: var(--font-system);
    font-weight: var(--font-weight-normal);
}

/* Buttons */
.btn,
button {
    font-family: var(--font-system);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
}
