/**
 * Typography System
 * Defines consistent font usage across MyStuff
 */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700&family=Palanquin+Dark:wght@400;500;600;700&display=swap');

:root {
    /* Colors */
     --primary: #f16ceb;
     --secondary: #6dc1e8;
     --accent: #e45f2b;
     --yellow: #f6c445;
     --dark: #303030;
     --white: #ffffff;

    /* Font Families */
    --font-body: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-title: 'Palanquin Dark', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Legacy Variables (for backward compatibility) */
    --font-primary: var(--font-body);
    --font-secondary: var(--font-title);

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
    color: var(--dark);
}

h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-3xl);
}

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

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

/* Paragraphs */
p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

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

/* Lists */
ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

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

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

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

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

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

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

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

.text-italic {
    font-style: italic;
}

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

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

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

.text-sm {
    font-size: var(--font-size-sm);
}

.text-base {
    font-size: var(--font-size-base);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-xl {
    font-size: var(--font-size-xl);
}

/* Small Text */
small {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-tight);
}

/* Code */
code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

/* Button Text */
button, .button {
    font-family: var(--font-body);
    font-weight: var(--font-weight-medium);
}

/* Form Elements */
input, select, textarea, button {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* Navigation */
.nav-link {
    font-family: var(--font-body);
    font-weight: var(--font-weight-medium);
}

/* Headers and Titles */
.section-title,
.hero-title,
.footer-title {
    font-family: var(--font-title);
    font-weight: var(--font-weight-bold);
}

/* Body Text */
.body-text,
.content-text,
.description {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: var(--font-size-sm);
    }

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

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

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

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

    h5, h6 {
        font-size: var(--font-size-lg);
    }
} 