:root {
    --bg-dark: #0a0a0c;
    --text-main: #e4e4e7;
    --text-muted: #8b949e;
    --link-color: #58a6ff;
    --link-hover: #79c0ff;
    --font-sans:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    margin-top: 40px;
    margin-bottom: 60px;
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.nav-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    border-bottom: none;
}

.nav-link:hover {
    color: var(--link-hover);
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    color: #ffffff;
    font-weight: 500;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 1.7rem;
    margin-top: 0;
}
h2 {
    font-size: 1.4rem;
}
h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.5em;
}

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

a:hover {
    text-decoration: underline;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
}

.post-item a.title {
    text-decoration: none;
}

.post-item a.title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--link-color);
}

.post-item:hover a.title h3 {
    text-decoration: underline;
    color: var(--link-hover);
}

.post-item .date {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    white-space: nowrap;
}

.site-footer {
    margin-top: auto;
    padding: 60px 0 30px 0;
    text-align: left;
}

.footer-credit {
    color: var(--text-muted);
    font-size: 0.9rem;
}
