/* Minimal CSS for Gruswords */

:root {
    --max-width: 42rem;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", Menlo, Consolas, monospace;
    --color-text: #222;
    --color-muted: #666;
    --color-link: #0066cc;
    --color-border: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
}

/* Header & Nav */
header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-text);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--color-muted);
}

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

/* Main content */
main {
    min-height: 60vh;
}

h1 {
    font-size: 1.75rem;
    margin-top: 0;
}

a {
    color: var(--color-link);
}

/* Post list */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.post-list a {
    font-size: 1.1rem;
    text-decoration: none;
}

.post-list a:hover {
    text-decoration: underline;
}

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

/* Article */
article header {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

article header time {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.post-content,
.page-content {
    margin: 2rem 0;
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.post-nav a {
    text-decoration: none;
}

.post-nav .prev {
    margin-right: auto;
}

.post-nav .next {
    margin-left: auto;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

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

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