:root {
    --bg: #0d0f12;
    --surface: #15181d;
    --border: #292e36;
    --text: #e8e8e8;
    --muted: #9299a3;
    --accent: #8fd3ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

.writing-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.writing-links a,
.writing-links a:visited {
    color: var(--accent);
    font-family: monospace;
    text-decoration: none;
}

.writing-links a:hover {
    color: var(--text);
}


.site-header,
main,
footer {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.site-title {
    font-family: monospace;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 20px;
}

nav a,
.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

nav a:hover,
.footer-links a:hover {
    color: var(--text);
}

main {
    padding: 72px 0 96px;
}

.hero {
    margin-bottom: 72px;
}

.eyebrow,
.meta {
    color: var(--accent);
    font-family: monospace;
    font-size: 0.9rem;
}

h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1;
}

.lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.1rem;
}

.writing-section {
    margin-top: 56px;
}

.writing-section h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.writing-list {
    border-top: 1px solid var(--border);
}

.writing-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.writing-item h3 {
    margin: 4px 0 8px;
    font-size: 1.35rem;
}

.description,
.empty-state {
    color: var(--muted);
}

.empty-state {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

@media (max-width: 640px) {
    .site-header,
    footer {
        align-items: flex-start;
        gap: 16px;
    }

    .site-header {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
    }

    main {
        padding-top: 48px;
    }
}