:root {
    --bg: #0a0a0a;
    --fg: #e0e0e0;
    --dim: #666;
    --hl: #888;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #fff;
        --fg: #1a1a1a;
        --dim: #999;
        --hl: #666;
    }
}

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 12rem 2rem 2rem 2rem;
}

main {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.content {
    display: flex;
    flex-direction: column;
    /*gap: 0.75rem;*/
}

h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0em;
    padding-bottom: 0em;
}

.dim {
    color: var(--dim);
    font-size: 0.95rem;
}

.nick {
    margin-bottom: 0.8em;
}

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

.pgp a:hover {
    color: #666;
}

.cv {
    color: var(--fg);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    width: fit-content;
    margin-left: 0.5em;
}

.cv:hover {
    opacity: 1;
}

.pgp {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--hl);
    display: block;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.profile {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.achievements {
    margin-top: 4rem;
    width: 100%;
}

.achievements h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
}

.achievements h2:first-child {
    margin-top: 0;
}

.achievements ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.achievements li {
    color: var(--dim);
    font-size: 0.95rem;
    padding-left: 1.2rem;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.achievements li::before {
    content: "—";
    position: absolute;
    left: 0;
}

.achievements a {
    color: var(--dim);
    transition: color 0.2s;
}

.achievements a:hover {
    color: var(--fg);
}

@media (max-width: 700px) {
    main {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .profile {
        width: 140px;
        height: 140px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .achievements {
        margin-top: 2rem;
    }
}
