@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --font-base: 0.9rem;
    --page-width: 62rem;
    --content-width: 42rem;
}

body {
    font-size: var(--font-base);
    max-width: var(--page-width);
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem 2.5rem;
    box-sizing: border-box;
    background: #121212;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    margin-top: -0.8rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    background: #121212;
    z-index: 10;
    padding: 0.25rem 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: -0.55rem;
}

.content-row {
    display: flex;
    justify-content: flex-start;
}

.site-title {
    margin: 0;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    max-width: var(--content-width);
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    font-size: calc(var(--font-base) * 0.9);
    margin-right: -0.55rem;
}

.nav a {
    font-size: inherit;
    color: inherit;
    text-decoration: none;
}

.nav a.current {
    color: #7a7a7a;
}

.nav a:hover {
    text-decoration: underline;
}

p {
    margin: 0;
}

.content p {
    max-width: 70ch;
}

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

.avatar {
    width: 56px;
    height: auto;
    margin: 0;
}

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

    .content {
        max-width: 100%;
    }
}
