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

:root {
    --bg: #FAFAFA;
    --bg-warm: #F5F5F5;
    --text: #0A0A0A;
    --text-secondary: #525252;
    --text-tertiary: #8A8A8A;
    --accent-warm: #1E3A5F;
    --surface: #FFFFFF;
    --border: #E0E0E0;
    --border-light: #F0F0F0;
    --highlight: #F0F4F8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-warm: #141414;
    --text: #f0f0f0;
    --text-secondary: #a8a8a8;
    --text-tertiary: #6a6a6a;
    --accent-warm: #7ba3d4;
    --surface: #1a1a1a;
    --border: #2e2e2e;
    --border-light: #252525;
    --highlight: #1c2229;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-warm);
    z-index: 1100;
    transition: width 0.1s linear;
    width: 0%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-link.active {
    color: var(--text);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1001;
    padding: 100px 40px 40px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-overlay a {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    padding: 16px 24px;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    max-width: 300px;
    transition: all 0.2s ease;
}

.mobile-menu-overlay a:hover {
    background: var(--surface);
}

[data-theme="dark"] nav {
    background: rgba(15, 15, 15, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mobile-menu-overlay {
    background: rgba(15, 15, 15, 0.98);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 8px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: var(--highlight);
}

[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }

.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon { width: 20px; height: 20px; }

footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 60px;
    border-top: 1px solid var(--border-light);
}

footer p {
    font-size: 13px;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    nav {
        padding: 16px 20px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    footer {
        padding: 30px 20px;
    }
}
