// Typography styles for cecli website

// Body styles
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: var(--body-line-height);
    color: var(--dark); // Light text on dark background
    background-color: var(--light); // Dark background
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

// Code and preformatted text styles
code, pre, .code-block {
    font-family: 'Fira Code', 'JetBrains Mono', 'SF Mono', Consolas, Monaco, 'Andale Mono', monospace;
    font-feature-settings: "liga" 1, "calt" 1; // Enable ligatures
    letter-spacing: -0.025em;
    font-size: 0.95em;
}

.code-block {
    background-color: var(--code-bg);
    border-radius: 8px;
    padding: 1.5rem;
    color: white;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    tab-size: 2;
}

// Responsive typography adjustments
// Large tablets and small desktops (992px and below)
@media (max-width: 992px) {
    body {
        font-size: 15px;
    }
    
    .code-block {
        font-size: 0.8rem;
    }
}

// Tablets (768px and below)
@media (max-width: 768px) {
    body {
        line-height: 1.5;
    }
}

// Mobile devices (576px and below)
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 15px;
    }
}