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

:root {
    --bg: #FCFBF7;
    --text: #1A1A1A;
    --muted: #666;
    --font-main: 'Space Grotesk', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 1.15rem;
    line-height: 1.6;
    padding: 3rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    font-optical-sizing: auto;
    font-style: normal;
}

a { color: var(--text); }
header { margin-bottom: 3rem; }

h1, h2, h3 { 
    font-weight: 600;
    letter-spacing: -0.03em;
}

header h1 { 
    font-size: 2rem; 
    margin-bottom: 0.5rem; 
}

.archive-nav {
    margin-top: 1rem;
}

.archive-nav a {
    text-decoration: none;
    color: var(--muted);
    margin-right: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-nav a:hover {
    color: var(--text);
}

.archive-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    scroll-margin-top: 2rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.essay-item h2,
.essay-item h3 { 
    font-size: 1.6rem; 
    margin-bottom: 0.5rem; 
    font-weight: 600;
    letter-spacing: -0.03em;
}

main h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

nav { 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}
nav a { text-decoration: none; margin-right: 1rem; color: var(--muted); }

.essay-list { list-style: none; padding: 0; }
.essay-item { margin-bottom: 2.5rem; }
.essay-meta { 
    font-size: 0.8rem; 
    color: var(--muted); 
    margin-bottom: 0.3rem; 
}
.essay-excerpt { font-size: 1.1rem; color: #444; }

.essay-content p { margin-bottom: 1.5rem; }

footer { 
    margin-top: 5rem; 
    font-size: 0.8rem; 
    color: var(--muted); 
    text-align: center; 
}

/* Code Styles */
pre {
    background-color: #111;
    color: #eee;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8em;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
}
