/* 1. Reset and Base Styles ========================= */
/* Reset default browser styles and set up base font and layout. */

/* CSS Custom Properties for consistent theming */
:root {
    /* Primary Colors */
    --primary-color: #2d3748;
    --primary-dark: #1a202c;
    --primary-light: #4a5568;

    /* Accent Colors - Enhanced Palette */

    /*
    old blue accents just in case
    --accent-color: #3182ce;
    --accent-light: #63b3ed;
    --accent-dark: #2c5282;
    */

    --accent-color: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;
    --accent-rgb: 16, 185, 129;

    /* Warm Accent Colors */
    --warm-accent: #f56565;
    --warm-accent-light: #fc8181;
    --warm-accent-dark: #e53e3e;

    /* Success/Positive Colors */
    --success-color: #48bb78;
    --success-light: #68d391;
    --success-dark: #38a169;

    /* Premium/Purple Accent */
    --premium-color: #805ad5;
    --premium-light: #9f7aea;
    --premium-dark: #553c9a;

    /* Neutral Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --border-color: #e2e8f0;

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

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure no white space above header */
html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Ensure body has no top margin that could cause gaps */
body {
    margin-top: 0 !important;
}

/* Body padding will be dynamically adjusted by JavaScript to match header height */
body {
    /* Ensure no conflicting positioning */
    position: relative;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    font-weight: 400;
    font-size: 16px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Improved Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

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

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 10001;
    transition: top var(--transition-normal);
}

.skip-link:focus {
    top: 6px;
}

/* Improved color contrast for better accessibility */
:root {
    /* Enhanced contrast colors */
    --text-primary: #0f1419;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --accent-color: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;
    --accent-rgb: 16, 185, 129;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}