/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fonts */
h1, h2, h3 {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    font-family: "Literata", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #1a1a1a;
}

code, pre {
    font-family: "JetBrains Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Layout */
body {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Typography scale */
h1 { font-size: 2rem; font-weight: 700; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
p { margin: 0.75rem 0; }

/* Site header */
.site-title {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
}

nav {
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* Links */
a {
    color: #1a5c97;
    text-decoration: underline;
}

a:hover {
    color: #0d3b66;
}

/* Lists */
ul { padding-left: 1.5rem; margin: 0.75rem 0; }
li { margin: 0.25rem 0; }

/* Code */
code {
    font-size: 0.875em;
    background: #f4f4f4;
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

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

/* Blog post list */
.date {
    font-size: 0.85rem;
    color: #666;
}

.title h3 {
    margin: 0.1rem 0 0.4rem;
}

.tag {
    font-size: 0.8rem;
    color: #1a5c97;
    background: #e8f0f8;
    padding: 0.1em 0.5em;
    border-radius: 3px;
}

.tags {
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

/* Prev/Next navigation */
#prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #666;
}
