:root {
    color-scheme: light;
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bg: #f7f8fb;
    --bg-muted: #eef1f7;
    --surface: #ffffff;
    --surface-muted: #f2f4f8;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #d8deeb;
    --accent: #2563eb;
    --accent-2: #22c55e;
    --shadow-soft: 0 12px 40px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --max-width: 1100px;
    background: var(--bg);
    color: var(--text);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1220;
    --bg-muted: #0f172a;
    --surface: #101827;
    --surface-muted: #0f1a2f;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #1f2a44;
    --accent: #60a5fa;
    --accent-2: #34d399;
    --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12), transparent 25%), radial-gradient(circle at 80% 10%, rgba(34, 197, 94, 0.12), transparent 20%), linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 50%, var(--bg) 100%);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

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

main.page {
    flex: 1;
}

.site-header,
.site-footer {
    position: sticky;
    top: 0;
    z-index: 5;
}

.site-footer {
    position: static;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
