/* ─────────────────────────────────────────────────
   Skava Blog — minimal, persönlich, lesbar
   Inspiriert von blog.samaltman.com / paulgraham.com
   ───────────────────────────────────────────────── */

:root {
    --b-bg: #ffffff;
    --b-text: #1a1a1a;
    --b-text-soft: #555;
    --b-text-muted: #999;
    --b-accent: #2a63df;
    --b-border: #ececec;
    --b-serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
    --b-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body.blog {
    margin: 0;
    background: var(--b-bg);
    color: var(--b-text);
    font-family: var(--b-serif);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--b-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

::selection {
    background: rgba(42, 99, 223, 0.18);
}

/* ── Header ── */
.b-header {
    padding: 40px 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--b-border);
    margin-bottom: 56px;
}

.b-header a {
    text-decoration: none;
    display: inline-block;
}

.b-header img {
    height: 56px;
    width: auto;
    margin: 0 auto 8px;
}

.b-header .b-tagline {
    font-family: var(--b-sans);
    font-size: 0.875rem;
    color: var(--b-text-muted);
    letter-spacing: 0.02em;
    margin: 0;
}

/* ── Container ── */
.b-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ── Index list ── */
.b-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.b-list li {
    padding: 22px 0;
    border-bottom: 1px solid var(--b-border);
}

.b-list li:last-child {
    border-bottom: none;
}

.b-list .b-date {
    display: block;
    font-family: var(--b-sans);
    font-size: 0.8125rem;
    color: var(--b-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.b-list .b-title a {
    color: var(--b-text);
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
}

.b-list .b-title a:hover {
    color: var(--b-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.b-list .b-excerpt {
    margin: 8px 0 0;
    color: var(--b-text-soft);
    font-size: 1rem;
    line-height: 1.55;
}

/* ── Year heading ── */
.b-year {
    font-family: var(--b-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--b-text-muted);
    margin: 36px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--b-border);
}

.b-year:first-of-type {
    margin-top: 0;
}

/* ── Single post ── */
.b-post header {
    margin-bottom: 32px;
}

.b-post .b-date {
    display: block;
    font-family: var(--b-sans);
    font-size: 0.8125rem;
    color: var(--b-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.b-post h1 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.b-post .b-author {
    font-family: var(--b-sans);
    font-size: 0.875rem;
    color: var(--b-text-muted);
    margin: 0;
}

.b-post .b-body p {
    margin: 0 0 1.1em;
}

.b-post .b-body h2 {
    font-size: 1.375rem;
    line-height: 1.3;
    margin: 1.6em 0 0.5em;
    font-weight: 700;
}

.b-post .b-body h3 {
    font-size: 1.1rem;
    margin: 1.4em 0 0.4em;
    font-weight: 700;
}

.b-post .b-body ul,
.b-post .b-body ol {
    padding-left: 1.4em;
    margin: 0 0 1.1em;
}

.b-post .b-body li {
    margin-bottom: 0.4em;
}

.b-post .b-body blockquote {
    border-left: 3px solid var(--b-border);
    padding: 4px 18px;
    margin: 1.2em 0;
    color: var(--b-text-soft);
    font-style: italic;
}

.b-post .b-body img {
    margin: 1.4em auto;
    border-radius: 4px;
}

.b-post .b-body code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    background: #f4f5f7;
    padding: 2px 6px;
    border-radius: 4px;
}

.b-post .b-body pre {
    background: #f4f5f7;
    padding: 14px 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    margin: 1.2em 0;
}

.b-post .b-body hr {
    border: none;
    border-top: 1px solid var(--b-border);
    margin: 2em auto;
    width: 60px;
}

/* ── Post footer ── */
.b-post-foot {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--b-border);
    font-family: var(--b-sans);
    font-size: 0.875rem;
    color: var(--b-text-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.b-post-foot a {
    color: var(--b-text-soft);
    text-decoration: none;
}

.b-post-foot a:hover {
    color: var(--b-accent);
    text-decoration: underline;
}

/* ── Footer ── */
.b-footer {
    margin-top: 80px;
    padding: 24px 20px 40px;
    border-top: 1px solid var(--b-border);
    text-align: center;
    font-family: var(--b-sans);
    font-size: 0.8125rem;
    color: var(--b-text-muted);
}

.b-footer a {
    color: var(--b-text-soft);
    text-decoration: none;
    margin: 0 8px;
}

.b-footer a:hover {
    color: var(--b-accent);
    text-decoration: underline;
}

@media (max-width: 600px) {
    body.blog {
        font-size: 17px;
    }

    .b-header {
        padding: 28px 16px 16px;
        margin-bottom: 36px;
    }

    .b-header img {
        height: 44px;
    }

    .b-post h1 {
        font-size: 1.625rem;
    }
}
