/**
 * Typography System
 * Soria Natural - Botanical Modernism Design
 * 
 * Font Stack:
 * - Display: Playfair Display (serif)
 * - Body: Montserrat (sans-serif)
 */

/* ============================================
   CSS Variables - Typography
   ============================================ */

:root {
    /* Font Families */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Font Sizes */
    --fs-xs: 0.75rem;      /* 12px */
    --fs-sm: 0.875rem;     /* 14px */
    --fs-base: 1rem;       /* 16px */
    --fs-lg: 1.125rem;     /* 18px */
    --fs-xl: 1.25rem;      /* 20px */
    --fs-2xl: 1.5rem;      /* 24px */
    --fs-3xl: 1.875rem;    /* 30px */
    --fs-4xl: 2.25rem;     /* 36px */
    --fs-5xl: 3rem;        /* 48px */
    --fs-6xl: 3.75rem;     /* 60px */
    --fs-7xl: 4.5rem;      /* 72px */
    
    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    
    /* Line Heights */
    --lh-tight: 1.2;
    --lh-snug: 1.375;
    --lh-normal: 1.5;
    --lh-relaxed: 1.625;
    --lh-loose: 2;
    
    /* Letter Spacing */
    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.05em;
    --ls-wider: 0.1em;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    font-weight: var(--fw-regular);
    color: #1a3a2a;
    background-color: #ffffff;
}

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

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: 1rem;
    color: #0b3a2a;
    letter-spacing: var(--ls-tight);
}

h1, .h1 {
    font-size: var(--fs-7xl);
    font-weight: 900;
}

h2, .h2 {
    font-size: var(--fs-5xl);
    font-weight: 800;
}

h3, .h3 {
    font-size: var(--fs-3xl);
    font-weight: 700;
}

h4, .h4 {
    font-size: var(--fs-2xl);
    font-weight: 700;
}

h5, .h5 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
}

h6, .h6 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}

/* ============================================
   Paragraphs & Text
   ============================================ */

p {
    margin-bottom: 1rem;
    line-height: var(--lh-relaxed);
}

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

small, .small {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
}

strong, .strong {
    font-weight: var(--fw-bold);
}

em, .em {
    font-style: italic;
}

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

a {
    color: #0b8457;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover,
a:focus {
    color: #067a4a;
    text-decoration: underline;
}

a:active {
    color: #055a3a;
}

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

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

li {
    margin-bottom: 0.5rem;
    line-height: var(--lh-relaxed);
}

ul ul,
ol ol,
ul ol,
ol ul {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

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

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0b8457;
    background-color: #f5f9f7;
    font-style: italic;
    color: #6b7280;
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: var(--fs-sm);
    font-style: normal;
    color: #1a3a2a;
}

/* ============================================
   Code
   ============================================ */

code, pre {
    font-family: 'Courier New', monospace;
    background-color: #f5f9f7;
    border-radius: 0.25rem;
}

code {
    padding: 0.25rem 0.5rem;
    font-size: 0.9em;
    color: #d73a49;
}

pre {
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* ============================================
   Buttons
   ============================================ */

button, .button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover, .button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
}

button:active, .button:active,
input[type="button"]:active,
input[type="submit"]:active {
    transform: translateY(0);
}

/* ============================================
   Labels & Form Text
   ============================================ */

label {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    display: block;
    margin-bottom: 0.5rem;
    color: #1a3a2a;
}

.label, .tag, .badge {
    font-family: var(--font-primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}

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

@media (max-width: 1024px) {
    :root {
        --fs-7xl: 3.75rem;
        --fs-6xl: 3rem;
        --fs-5xl: 2.25rem;
    }
    
    h1, .h1 {
        font-size: var(--fs-6xl);
    }
    
    h2, .h2 {
        font-size: var(--fs-4xl);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-7xl: 2.5rem;
        --fs-6xl: 2.25rem;
        --fs-5xl: 1.875rem;
        --fs-4xl: 1.5rem;
    }
    
    h1, .h1 {
        font-size: var(--fs-5xl);
    }
    
    h2, .h2 {
        font-size: var(--fs-3xl);
    }
    
    h3, .h3 {
        font-size: var(--fs-2xl);
    }
}

@media (max-width: 480px) {
    :root {
        --fs-7xl: 2rem;
        --fs-6xl: 1.75rem;
        --fs-5xl: 1.5rem;
        --fs-4xl: 1.25rem;
    }
    
    h1, .h1 {
        font-size: var(--fs-4xl);
    }
    
    h2, .h2 {
        font-size: var(--fs-2xl);
    }
    
    h3, .h3 {
        font-size: var(--fs-xl);
    }
}

/* ============================================
   Utility Classes
   ============================================ */

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

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

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

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

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}

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

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

.font-light {
    font-weight: var(--fw-regular);
}

.font-normal {
    font-weight: var(--fw-regular);
}

.font-medium {
    font-weight: var(--fw-medium);
}

.font-semibold {
    font-weight: var(--fw-semibold);
}

.font-bold {
    font-weight: var(--fw-bold);
}

.font-extrabold {
    font-weight: var(--fw-extrabold);
}

.italic {
    font-style: italic;
}

.not-italic {
    font-style: normal;
}

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

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

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

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

.break-words {
    word-break: break-word;
}

.break-all {
    word-break: break-all;
}

.whitespace-normal {
    white-space: normal;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.whitespace-pre {
    white-space: pre;
}

.whitespace-pre-wrap {
    white-space: pre-wrap;
}
