﻿/* Typography Styles for Blazor SSR Application
   Defines text styles for accessibility and consistency. Uses modular scale for hierarchy, optimized for desktop (90%) and mobile (10%) readability. */

body, p, nav {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
}

p {
    margin-bottom: var(--spacing-sm);
}

.fs-5 {
    font-size: var(--font-size-lg);
    line-height: 1.5;
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-body-font-family);
    font-weight: var(--bs-heading-font-weight);
    line-height: var(--bs-heading-line-height);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

h1:focus {
    outline: none;
}

.display-1 {
    font-size: 4.5rem;
    font-weight: var(--bs-display-font-weight);
    line-height: var(--bs-display-line-height);
    margin-bottom: var(--spacing-sm);
}

.display-2 {
    font-size: 3.75rem;
    font-weight: var(--bs-display-font-weight);
    line-height: var(--bs-display-line-height);
    margin-bottom: var(--spacing-sm);
}

.display-3 {
    font-size: 3rem;
    font-weight: var(--bs-display-font-weight);
    line-height: var(--bs-display-line-height);
    margin-bottom: var(--spacing-sm);
}

.display-4 {
    font-size: 2.25rem;
    font-weight: var(--bs-display-font-weight);
    line-height: var(--bs-display-line-height);
    margin-bottom: var(--spacing-sm);
}

small {
    font-size: var(--font-size-sm);
    color: var(--bs-body-color);
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

code, pre {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: var(--bs-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--bs-border-radius);
}

pre {
    padding: var(--spacing-sm);
    overflow-x: auto;
}

a {
    color: var(--bs-link-color);
    text-decoration: var(--bs-link-decoration);
    transition: var(--bs-transition);
}

    a:hover {
        color: var(--bs-link-hover-color);
        text-decoration: var(--bs-link-decoration);
    }

ul, ol {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
}

li {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

ul li::marker {
    color: var(--bs-primary);
    font-size: var(--font-size-sm);
}

/* Media Queries */
@media (max-width: 575.98px) {
    :root {
        --bs-body-font-size: 0.9375rem; /* 15px for mobile readability */
        --font-size-base: 0.9375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 1rem;
    }

    .display-1 {
        font-size: 3.5rem;
    }

    .display-2 {
        font-size: 3rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }
}

@media (min-width: 576px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }
}
