/* =======================================================================
   TYPOGRAPHY
   =======================================================================
   Font definitions, text styles, and typography-related utilities.
   ======================================================================= */

/* ============================================
   FONT IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   BASE TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ============================================
   HEADINGS
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

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

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

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

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

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

h6 {
    font-size: var(--font-size-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   BODY TEXT
   ============================================ */
p {
    margin-bottom: 1em;
    color: var(--text-color);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color-light);
}

.text-small {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

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

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--brand-accent-orange);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   LISTS
   ============================================ */
ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.25em;
    line-height: 1.6;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
    margin-bottom: 0.5em;
    margin-top: 0.25em;
}

/* ============================================
   TEXT EMPHASIS
   ============================================ */
strong, b {
    font-weight: 600;
    color: var(--text-color);
}

em, i {
    font-style: italic;
}

mark {
    background-color: rgba(235, 129, 50, 0.2);
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* ============================================
   CODE & PREFORMATTED TEXT
   ============================================ */
code {
    font-family: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 0.875em;
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

pre {
    font-family: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 1em;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    margin-bottom: 1em;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */
blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--brand-accent-orange);
    background-color: rgba(235, 129, 50, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
    margin-bottom: 0.5em;
    font-style: italic;
    color: var(--text-color-light);
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-color-light);
    margin-top: 0.5em;
    font-style: normal;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Font weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text colors */
.text-primary { color: var(--text-color); }
.text-secondary { color: var(--text-color-light); }
.text-accent { color: var(--brand-accent-orange); }
.text-white { color: var(--brand-white); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Line height */
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }
.leading-loose { line-height: 2; }

/* Letter spacing */
.tracking-tight { letter-spacing: -0.05em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.05em; } 