/* Root CSS Variables */
:root {
    /* Font Families */
    --font-primary: 'satoshi', 'inter', 'montserrat', 'General Sans', 'helvetica', 'sf ui text', 'clash grotesk', sans-serif;
    --font-secondary: 'Bricolage Grotesque', sans-serif;
    
    /* Font Sizes */
    --font-size-base: 16px;         /* Base font size for body text */
    --font-size-lg: 18px;           /* Larger text for subheadings */
    --font-size-heading1: 48px;     /* Heading 1 font size */
    --font-size-heading2: 36px;     /* Heading 2 font size */
    --font-size-heading3: 28px;     /* Heading 3 font size */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Line Heights */
    --line-height-wide: 1.8;         /* wide line height for readability */
    --line-height-base: 1.6;         /* Base line height for readability */
    --line-height-heading: 1.3;      /* Line height for headings */
    --line-height-auto: auto;      /* Line height for auto */
    
    /* Colors */
    --color-text-primary: #333;
    --color-text-secondary: #555;
    --color-link: #007BFF;
    --color-link-hover: #0056b3;
    --color-bg-light: #f9f9f9;
    --color-bg-dark: #222;
    --color-button-bg: #007BFF;
    --color-button-bg-hover: #0056b3;

    
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-wide);
    color: var(--color-text-primary);
    background-color: var(--color-bg-light);
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-black);
    color: var(--color-text-primary);
    line-height: var(--line-height-heading);
    padding: 0;
    margin: 0;
    margin-block-end: 1rem;
}

h1 {
    font-size: var(--font-size-heading1);
}

h2 {
    font-size: var(--font-size-heading2);
}

h3 {
    font-size: var(--font-size-heading3);
}

/* Paragraphs */
p {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
    line-height: var(--line-height-wide);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Links */
a {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    color: var(--color-link);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* Buttons */
button {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
    background-color: var(--color-button-bg);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--color-button-bg-hover);
}

/* Media Queries for Responsiveness */

/* Mobile devices (Portrait) */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --font-size-lg: 16px;
        --font-size-heading1: 36px;
        --font-size-heading2: 28px;
        --font-size-heading3: 22px;
    }

    h1 {
        font-size: var(--font-size-heading1);
    }

    h2 {
        font-size: var(--font-size-heading2);
    }

    h3 {
        font-size: var(--font-size-heading3);
    }

    p {
        font-size: var(--font-size-base);
    }

    button {
        font-size: var(--font-size-lg);
        padding: 8px 16px;
    }
}

/* Large Devices (Tablets, Laptops) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-heading1: 42px;
        --font-size-heading2: 32px;
        --font-size-heading3: 26px;
    }

    h1 {
        font-size: var(--font-size-heading1);
    }

    h2 {
        font-size: var(--font-size-heading2);
    }

    h3 {
        font-size: var(--font-size-heading3);
    }

    p {
        font-size: var(--font-size-base);
    }

    button {
        font-size: var(--font-size-lg);
        padding: 10px 20px;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 1025px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-heading1: 48px;
        --font-size-heading2: 36px;
        --font-size-heading3: 28px;
    }

    h1 {
        font-size: var(--font-size-heading1);
    }

    h2 {
        font-size: var(--font-size-heading2);
    }

    h3 {
        font-size: var(--font-size-heading3);
    }

    p {
        font-size: var(--font-size-base);
    }

    button {
        font-size: var(--font-size-lg);
        padding: 12px 24px;
    }
}
