/* CSS Variables */
:root {
    /* Font sizes - unified system */
    --text-xl: 2.5rem;      /* Large headings */
    --text-lg: 1.8rem;      /* Medium headings */
    --text-md: 1.4rem;      /* Small headings */
    --text-base: 1.2rem;    /* Main content text */
    --text-sm: 1rem;        /* Smaller text */
    --text-xs: 0.9rem;      /* Footnotes, captions */
    
    /* Font families */
    --primary-font: 'Outfit', sans-serif;
    --decorative-font: 'Poiret One', cursive;
    
    /* Light Theme Colors (default) */
    --bg-color: #E9ECEF;
    --content-bg: #ffffff;
    --card-bg: #0F0F0F;
    --text-color: #010101;
    --light-text: #ffffff;
    --secondary-text: #3e3e3e;
    --feature-bg: #f8f8f8;
    --feature-shadow: rgba(0,0,0,0.05);
    --link-color: #1a0dab;
    --border-radius: 16px;
    --border-radius-small: 5px;
    --padding-standard: 32px;
    --padding-small: 16px;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-color: #121212;
    --content-bg: #1e1e1e;
    --card-bg: #000000;
    --text-color: #f5f5f5;
    --secondary-text: #cccccc;
    --feature-bg: #2a2a2a;
    --feature-shadow: rgba(255,255,255,0.05);
    --link-color: #6d9eeb;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--text-xl);
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: var(--text-lg);
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-size: var(--text-md);
    margin-top: 20px;
    margin-bottom: 10px;
}

p, li {
    font-size: var(--text-base);
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

/* Navigation styling */
nav {
    margin-top: 30px;
    margin-bottom: 30px;
}

nav a {
    margin-right: 40px;
    color: var(--secondary-text);
    font-size: var(--text-base);
}

nav a:last-child {
    margin-right: 0;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--feature-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--feature-shadow);
    z-index: 1000;
    border: none;
    outline: none;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--secondary-text);
}

/* Only show appropriate icon based on current theme */
.light-icon {
    display: block;
}

.dark-icon {
    display: none;
}

[data-theme="dark"] .light-icon {
    display: none;
}

[data-theme="dark"] .dark-icon {
    display: block;
}

/* Responsive adjustments for tablets */
@media screen and (max-width: 900px) {
    :root {
        --text-xl: 2.2rem;
        --text-lg: 1.6rem;
        --text-md: 1.3rem;
        --text-base: 1.15rem;
    }
    
    nav a {
        margin-right: 25px;
    }
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 640px) {
    :root {
        --text-xl: 1.8rem;
        --text-lg: 1.5rem;
        --text-md: 1.2rem;
        --text-base: 1.1rem;
        --text-sm: 1rem;
        --text-xs: 0.85rem;
    }
    
    body {
        padding: 15px;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    nav a {
        margin-right: 0;
    }
}
