:root {
    --bg: #020202;
    --fg: #CECDC3;
    --muted: #575653;
    --accent: #205EA6;
    --border: #282726;
    --text-secondary: #878580;
    --section-title: #B7B5AC;
}

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

body {
    font-family: 'Geist Mono', monospace;
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    line-height: 1.7;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--fg);
    color: var(--bg);
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: clamp(64px, 10vh,120px) clamp(16px, 5vw, 24px);
}

.header {
    margin-bottom: 32px;
}

.name {
    font-size: 40px;
    color: var(--fg);
    margin-bottom: 16px;
}

.muted {
    color: var(--muted);
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 0;
    text-align: left;
}

.omarchy-text {
    color: var(--accent);
}

.section-title {
    margin-bottom: 16px;
    color: var(--section-title);
    font-size: 15px;
    font-weight: 500;
}

.projects,
.posts {
    list-style: none;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-left: 2.4ch;
}

.projects li,
.posts li {
    margin-bottom: 4px;
}

.footer {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px clamp(16px, 5vw, 24px);
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fg);
    transition: width 0.2s;
}

.footer a:hover,
.footer a:focus {
    color: var(--fg);
}

.footer a:hover::after,
.footer a:focus-visible::after {
    width: 100%;
}

.footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

::selection {
    background: #343331;
    color: var(--fg);
}

@media (max-width: 640px) {
    .name {
        font-size: 32px;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }
    
    .footer {
        border-top-color: #ccc;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer a,
    .footer a::after {
        transition: none;
    }
    
    .skip-link {
        transition: none;
    }
}