:root {
    --primary-color: #3b82f6; /* Vibrant blue */
    --primary-hover: #2563eb;
    --background-color: #111827; /* Dark blue-gray */
    --surface-color: #1f2937; /* Card surface */
    --text-color: #f9fafb; /* Off-white */
    --text-muted-color: #9ca3af; /* Gray for subtitles */
    --border-color: #374151;
    --success-color: #10B981;
    --error-color: #ef4444;

    /* Layout & design tokens */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.55);
    --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.4);
    --container-max-width: 1120px;
    --transition-fast: 0.18s ease-out;
    --transition-normal: 0.25s ease-out;
}

/* Global reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fluid base typography + smooth scrolling */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Respect users that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: clamp(0.95rem, 0.25vw + 0.9rem, 1.05rem);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Improve accessibility for keyboard users */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

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

img {
    max-width: 100%;
    display: block;
}

/* Generic container helper for consistent width */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}
