/* ── Base ─────────────────────────────────────────────── */

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    max-width: 40rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fdfdfd;
}

/* ── Typography ──────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h2 { margin-top: 2rem; margin-bottom: 0.5rem; }

/* ── Header ──────────────────────────────────────────── */

header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 1.5rem;
    margin: 0 0 0.4rem 0;
}

header a {
    color: inherit;
    text-decoration: none;
}

header a:hover {
    color: #2c5282;
}

/* ── Language switcher ───────────────────────────────── */

.lang-switcher {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.lang-switcher span {
    font-weight: 600;
    color: #1a1a1a;
}

.lang-switcher a {
    color: #888;
    text-decoration: none;
}

.lang-switcher a:hover {
    color: #2c5282;
}

.lang-switcher a.missing-translation {
    text-decoration: line-through;
}

/* ── Main content ────────────────────────────────────── */

main { margin-top: 0; }

/* ── Links ───────────────────────────────────────────── */

a {
    color: #2c5282;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Article list (index page) ───────────────────────── */

article {
    margin-bottom: 2.5rem;
}

article time {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.reading-time {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    color: #888;
}

.reading-time::before {
    content: " · ";
}

article > a {
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.4;
}

article > a:hover {
    color: #2c5282;
}

.meta {
    margin: 0.2rem 0;
}

.excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 0.3rem 0 0 0;
    line-height: 1.5;
}

/* ── Post page ───────────────────────────────────────── */

article h1 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

article h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

article p {
    margin-bottom: 1.4rem;
}

article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
}

/* ── Blockquotes ─────────────────────────────────────── */

blockquote {
    border-left: 3px solid #2c5282;
    margin: 1.5rem 0;
    padding: 0.5rem 1.5rem;
    color: #444;
    font-style: italic;
}

blockquote p { margin-bottom: 0; }

/* ── Horizontal rule ─────────────────────────────────── */

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2.5rem 0;
}

/* ── Code ────────────────────────────────────────────── */

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85em;
    background: #f5f5f5;
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

pre {
    background: #f5f5f5;
    padding: 1.2rem;
    overflow-x: auto;
    border-radius: 4px;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85em;
}

/* ── Back link (post pages) ──────────────────────────── */

.back-link {
    display: inline-block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.8rem;
    font-family: system-ui, -apple-system, sans-serif;
}
