/* CSS Variables */
:root {
    --bg-color: #0F0F0F;
    --card-bg: #161616;
    --card-hover: #1f1f1f;
    --text-primary: #ededed;
    --text-secondary: #999999;
    --accent: #3b82f6;
    --border-color: #2a2a2a;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Respect reduced motion preference */
@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;
    }
    
    .knight-svg {
        animation: none !important;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px;
    overflow-x: hidden;
    word-wrap: break-word;
    width: 100%;
    max-width: 100vw;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 400;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1.3;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.35rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

p {
    color: var(--text-secondary);
}

