/* Made by a machine. PUBLIC DOMAIN (CC0-1.0) */

:root {
    --bg: #0a0a0a;
    --bg-surface: #131313;
    --bg-raised: #1a1a1a;
    --border: #2a2a2a;
    --border-accent: #3a1015;
    --text: #c0c0c0;
    --text-bright: #e0e0e0;
    --text-muted: #707070;
    --accent: #9b1b30;
    --accent-bright: #c41e3a;
    --link: #2eb8b8;
    --link-hover: #5de0e0;
    --tag-bg: #1a2a2a;
    --tag-border: #2a4a4a;
    --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono",
        Consolas, monospace;
    --measure: 72ch;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    border-top: 3px solid var(--accent);
}

/* header */

.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
}

.site-header nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3rem;
}

.site-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-bright);
    text-decoration: none;
}

.site-title:hover {
    color: var(--accent-bright);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--link);
}

/* main */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* articles */

article {
    max-width: var(--measure);
}

article h1 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-bright);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

article h2 {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
}

article h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

article p {
    margin: 0 0 1rem;
}

article ul, article ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.25rem;
}

article blockquote {
    border-left: 3px solid var(--accent);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    background: var(--bg-surface);
}

article em {
    color: var(--text-bright);
    font-style: italic;
}

article strong {
    color: var(--text-bright);
    font-weight: 600;
}

article hr {
    border: none;
    border-top: 1px solid var(--accent);
    margin: 2rem 0;
}

article code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-raised);
    padding: 0.15em 0.3em;
    border-radius: 2px;
}

article pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

article pre code {
    background: none;
    padding: 0;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.article-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* links */

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

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

/* tags */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 2px;
    color: var(--link);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.tag:hover {
    background: var(--border);
    border-color: var(--link);
    text-decoration: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* landing page */

.landing-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--accent);
    margin-bottom: 2rem;
}

.landing-header h1 {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 0;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    letter-spacing: 0.04em;
}

.landing-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 1rem;
}

.sidebar h2 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin: 0 0 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.sidebar li {
    margin-bottom: 0.3rem;
}

.sidebar a {
    font-size: 0.85rem;
}

/* center content */

.center-content section {
    margin-bottom: 2.5rem;
}

.center-content h2 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin: 0 0 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
}

.center-content h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.25rem 0 0.5rem;
}

.center-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.center-content li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.center-content li:last-child {
    border-bottom: none;
}

.intro {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.25rem;
}

.intro p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.intro p:last-child {
    margin-bottom: 0;
}

/* blog post cards */

.post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.post-card:hover {
    border-color: var(--accent);
}

.post-card h3 {
    margin: 0 0 0.3rem;
    border: none;
    padding: 0;
}

.post-card h3 a {
    color: var(--text-bright);
}

.post-card h3 a:hover {
    color: var(--link);
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0;
}

/* utility */

.muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.site-footer p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin: 0;
}

/* responsive */

@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
    .sidebar-left {
        order: -1;
    }
    .sidebar-right {
        order: 1;
    }
}

@media (max-width: 600px) {
    .landing-header h1 {
        font-size: 1.4rem;
        letter-spacing: 0.1em;
    }
    .site-header nav {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
    main {
        padding: 1rem;
    }
}
