:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --link-color: #3182ce;
    --link-hover: #2c5282;
    --code-bg: #f7fafc;
}

[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --border-color: #4a5568;
    --link-color: #63b3ed;
    --link-hover: #90cdf4;
    --code-bg: #2d3748;
}

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

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    transition: none;
}

body.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    margin-bottom: 3rem;
}

header .title {
    text-decoration: none;
    color: var(--text-primary);
}

header .name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-items a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-items a:hover {
    color: var(--link-hover);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    opacity: 0.7;
}

main {
    min-height: 60vh;
    margin-bottom: 3rem;
}

main h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

main h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

main p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

main p em {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

main a:hover {
    text-decoration: underline;
}

main ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

main ul li {
    margin-bottom: 0.5rem;
}

.wip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.wip-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--link-color), var(--link-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .wip-container h1 {
    background: linear-gradient(135deg, #63b3ed, #90cdf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    color: var(--text-muted);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--link-color);
}

code {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    header .name {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-items {
        gap: 1rem;
    }

    main h1 {
        font-size: 1.5rem;
    }

    main h2 {
        font-size: 1.25rem;
    }
}

