:root {
    --bg: #fff;
    --bg-alt: #f7f7f7;
    --text: #111;
    --text-secondary: #333;
    --text-muted: #666;
    --text-faint: #999;
    --border: #111;
    --border-light: #e5e5e5;
    --border-faint: #f0f0f0;
    --accent: #000;
}

[data-theme="dark"] {
    --bg: #0d0d0d;
    --bg-alt: #1a1a1a;
    --text: #f0f0f0;
    --text-secondary: #d0d0d0;
    --text-muted: #a0a0a0;
    --text-faint: #606060;
    --border: #404040;
    --border-light: #2a2a2a;
    --border-faint: #1f1f1f;
    --accent: #fff;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

.masthead {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.masthead-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
}

.masthead-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.theme-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
}

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

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

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

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