/* Quorela Typography Stylesheet */

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--qu-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Paragraph & Body Text
   ============================================ */

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
}

.text-small {
    font-size: 0.875rem;
}

.text-tiny {
    font-size: 0.75rem;
}

/* ============================================
   Font Weights
   ============================================ */

.qu-text-light {
    font-weight: 300;
}

.qu-text-regular {
    font-weight: 400;
}

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

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

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

.qu-text-extrabold {
    font-weight: 800;
}

/* ============================================
   Monospace Typography
   ============================================ */

.qu-mono {
    font-family: 'Space Mono', monospace;
}

code, pre {
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
}

code {
    background: var(--qu-gray-100);
    color: var(--qu-primary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

pre {
    background: var(--qu-gray-900);
    color: var(--qu-gray-100);
    padding: 1.5rem;
    border-radius: var(--qu-radius-md);
    overflow-x: auto;
    line-height: 1.5;
}

/* ============================================
   Text Colors
   ============================================ */

.qu-text-primary {
    color: var(--qu-primary);
}

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

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

.qu-text-dark {
    color: var(--qu-dark);
}

.qu-text-gray {
    color: var(--qu-gray-600);
}

.qu-text-light {
    color: var(--qu-gray-400);
}

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

/* ============================================
   Text Alignment
   ============================================ */

.qu-text-left {
    text-align: left;
}

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

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

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

/* ============================================
   Text Transforms
   ============================================ */

.qu-uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qu-lowercase {
    text-transform: lowercase;
}

.qu-capitalize {
    text-transform: capitalize;
}

/* ============================================
   Letter Spacing
   ============================================ */

.qu-tracking-tight {
    letter-spacing: -0.5px;
}

.qu-tracking-normal {
    letter-spacing: 0;
}

.qu-tracking-wide {
    letter-spacing: 1px;
}

.qu-tracking-wider {
    letter-spacing: 2px;
}

.qu-tracking-widest {
    letter-spacing: 3px;
}

/* ============================================
   Line Heights
   ============================================ */

.qu-leading-tight {
    line-height: 1.25;
}

.qu-leading-normal {
    line-height: 1.6;
}

.qu-leading-relaxed {
    line-height: 1.8;
}

.qu-leading-loose {
    line-height: 2;
}

/* ============================================
   Text Decoration
   ============================================ */

.qu-underline {
    text-decoration: underline;
}

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

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

/* ============================================
   Text Overflow
   ============================================ */

.qu-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qu-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qu-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Gradient Text
   ============================================ */

.qu-gradient-text {
    background: var(--qu-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qu-gradient-text-accent {
    background: var(--qu-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Lists
   ============================================ */

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.qu-list-unstyled {
    list-style: none;
    padding-left: 0;
}

.qu-list-inline {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 1rem;
}

.qu-list-spaced li {
    margin-bottom: 1rem;
}

/* Custom List Styles */
.qu-list-check {
    list-style: none;
    padding-left: 0;
}

.qu-list-check li {
    position: relative;
    padding-left: 2rem;
}

.qu-list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--qu-primary);
}

.qu-list-arrow {
    list-style: none;
    padding-left: 0;
}

.qu-list-arrow li {
    position: relative;
    padding-left: 2rem;
}

.qu-list-arrow li::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--qu-primary);
}

/* ============================================
   Blockquotes
   ============================================ */

blockquote {
    border-left: 4px solid var(--qu-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--qu-gray-700);
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--qu-gray-600);
}

blockquote cite::before {
    content: '— ';
}

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

a {
    color: var(--qu-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.qu-link-underline {
    text-decoration: underline;
}

.qu-link-underline:hover {
    text-decoration: none;
}

.qu-link-arrow::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.qu-link-arrow:hover::after {
    transform: translateX(4px);
}

/* ============================================
   Emphasis & Strong
   ============================================ */

em, i {
    font-style: italic;
}

strong, b {
    font-weight: 700;
}

mark {
    background-color: var(--qu-accent);
    color: var(--qu-dark);
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* ============================================
   Small Text
   ============================================ */

small {
    font-size: 0.875em;
    color: var(--qu-gray-600);
}

/* ============================================
   Abbreviations
   ============================================ */

abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: none;
}

/* ============================================
   Display Text (Large Headers)
   ============================================ */

.qu-display-1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.qu-display-2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.qu-display-3 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.qu-display-4 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   Text Shadows
   ============================================ */

.qu-text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.qu-text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.qu-text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Responsive Typography
   ============================================ */

@media (max-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .qu-display-1 {
        font-size: 4rem;
    }
    
    .qu-display-2 {
        font-size: 3.5rem;
    }
    
    .qu-display-3 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    h5 {
        font-size: 1.125rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .qu-display-1 {
        font-size: 3rem;
    }
    
    .qu-display-2 {
        font-size: 2.5rem;
    }
    
    .qu-display-3 {
        font-size: 2rem;
    }
    
    .qu-display-4 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
}
