/* Base */
:root {
    --bg: #000;
    --bg-light: #111;
    --text: #e0e0e0;
    --text-muted: #666;
    --accent: #8b7ea6;
    --accent-hover: #a99bc2;
    --max-width: 680px;
}

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

html {
    font-size: 18px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    color: var(--text-muted);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Header */
header {
    padding: 3rem 2rem 2rem;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1rem;
    color: var(--text);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.site-title:hover {
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

nav ul a:hover,
nav ul a.active {
    color: var(--text);
}

/* Main */
main {
    flex: 1;
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* Home */
.home {
    padding-top: 1rem;
}

.home h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tagline {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Articles / Pages */
article {
    padding-top: 1rem;
}

article h1 {
    margin-bottom: 2rem;
}

/* Book entries */
.book-entry {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-light);
}

.book-entry:last-child {
    border-bottom: none;
}

.book-entry h2 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.book-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Page list */
.page-list {
    list-style: none;
}

.page-list li {
    margin-bottom: 1.5rem;
}

.page-list a {
    font-size: 1.2rem;
}

.page-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .home h1 {
        font-size: 1.8rem;
    }
}
