/*
 * Project 1754157885091 - Iteration 1
 * style.css
 */

/* -------------------------------------------------------------------------- */
/*                                1. Base Reset & Box Sizing                  */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/*                                2. CSS Custom Properties (Variables)        */
/* -------------------------------------------------------------------------- */
:root {
    /* Colors - Light Theme (Default) */
    --color-primary: #007bff;
    --color-secondary: #6c757d;
    --color-text-default: #333;
    --color-text-heading: #2c3e50;
    --color-background-body: #f8f8f8;
    --color-background-card: #ffffff;
    --color-border-default: #ddd;

    /* Typography */
    --font-family-sans-serif: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --font-size-base: 1rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Layout */
    --max-width-content: 960px;
    --padding-page: var(--spacing-lg);
}

/* Dark Theme */
[data-theme="dark"] {
    --color-primary: #66b3ff;
    --color-secondary: #a0a0a0;
    --color-text-default: #e0e0e0;
    --color-text-heading: #f0f0f0;
    --color-background-body: #282c34;
    --color-background-card: #3a3f4a;
    --color-border-default: #555;
}

/* -------------------------------------------------------------------------- */
/*                                3. Base Styles                              */
/* -------------------------------------------------------------------------- */
html {
    font-size: 16px; /* Base for rem units */
}

body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-default);
    background-color: var(--color-background-body);
    margin: 0;
    padding: var(--padding-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans-serif);
    color: var(--color-text-heading);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-h1);
    text-align: center;
    margin-top: 0;
    padding-top: var(--spacing-xl);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
}

/* Accessibility: Focus states */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/*                                4. Layout                                   */
/* -------------------------------------------------------------------------- */
.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: var(--spacing-lg);
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                                5. Media Queries (Responsive Design)        */
/* -------------------------------------------------------------------------- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    body {
        padding: var(--spacing-xl);
    }

    h1 {
        font-size: calc(var(--font-size-h1) * 1.2);
    }

    .container {
        padding: var(--spacing-xl);
    }
}