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

:root {
    --bg: #0a0a0a;
    --text: #e8e4df;
    --text-muted: #6b6762;
    --accent: #d45252;
}

html {
    font-size: 17px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

header {
    padding: 3rem 2rem 0;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.site-title {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title .word-max {
    color: var(--text);
}

.site-title .word-variance {
    color: #c23b3b;
}

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

.site-title:hover .word-variance {
    color: #d45252;
}

nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

main {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Site Intro ---- */

.site-intro {
    display: block;
    padding: 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 2.5rem;
}

.motto {
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0.75rem;
}

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

/* ---- Index ---- */

.post-list {
    list-style: none;
}

.post-list li {
    margin-bottom: 2.5rem;
}

.post-list a {
    text-decoration: none;
    display: block;
}

.post-list .post-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.post-list a:hover .post-title {
    color: var(--accent);
}

.post-description {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    line-height: 1.5;
}

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

/* ---- Post ---- */

.post-header {
    margin-bottom: 2.5rem;
}

.post-header h1 {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

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

.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.3;
}

.post-body {
    color: var(--text-body);
    font-size: 1.1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body h3 {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text-muted);
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.post-body blockquote {
    border-left: 2px solid var(--text-muted);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-body code {
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.post-body pre {
    background: rgba(255, 255, 255, 0.04);
    padding: 1.25rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.4rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.post-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0;
}

.post-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.post-nav a:hover {
    color: var(--accent);
}

/* ---- Footer ---- */

footer {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

--text-body: #9e9a94;