/**
 * Typography & Font Styles
 * Matches React version exactly
 */

/* ============================
   Font Families
   ============================ */
:root {
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ============================
   Base Typography
   ============================ */
body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.5;
    color: var(--pc-text);
}

/* ============================
   Headings
   ============================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--pc-text);
    margin-top: 0;
}

h1 {
    font-size: 2.25rem; /* 36px */
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.875rem; /* 30px */
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.5rem; /* 24px */
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem; /* 20px */
    letter-spacing: -0.01em;
}

h5 {
    font-size: 1.125rem; /* 18px */
}

h6 {
    font-size: 1rem; /* 16px */
}

/* ============================
   Paragraphs & Text
   ============================ */
p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.text-xs {
    font-size: 0.75rem; /* 12px */
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem; /* 16px */
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem; /* 20px */
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem; /* 48px */
    line-height: 1;
}

/* ============================
   Font Weights
   ============================ */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* ============================
   Links
   ============================ */
a {
    color: var(--pc-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ============================
   Lists
   ============================ */
ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* ============================
   Code & Pre
   ============================ */
code, pre {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

code {
    background-color: var(--pc-background);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

pre {
    background-color: var(--pc-text);
    color: var(--pc-white);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* ============================
   Blockquote
   ============================ */
blockquote {
    border-left: 4px solid var(--pc-border);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--pc-text-light);
}

/* ============================
   Selection
   ============================ */
::selection {
    background-color: var(--pc-primary-light);
    color: var(--pc-white);
}

/* ============================
   Responsive Typography
   ============================ */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem; /* 28px */
    }

    h2 {
        font-size: 1.5rem; /* 24px */
    }

    h3 {
        font-size: 1.25rem; /* 20px */
    }

    h4 {
        font-size: 1.125rem; /* 18px */
    }

    .text-5xl {
        font-size: 2.25rem; /* 36px */
    }

    .text-4xl {
        font-size: 1.875rem; /* 30px */
    }

    .text-3xl {
        font-size: 1.5rem; /* 24px */
    }
}

/* ============================
   Font Loading
   ============================ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
}

/* Optional: Load Inter font from Google Fonts */
/* Add this to your theme's functions.php */
/* wp_enqueue_style('google-fonts', 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap', array(), null); */
