:root {
    color-scheme: light;
    --bg: #fffffb;
    --ink: #111;
    --muted: #666;
    --line: #ddd;
    --soft: #f4f4ef;
    --accent: #0645ad;
    --measure: 660px;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --serif: Georgia, "Times New Roman", Times, serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
}

body {
    margin: 0;
}

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

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

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

.site {
    margin: 0;
    max-width: none;
    padding: 28px 24px 42px;
}

.site-header,
.site-footer {
    align-items: baseline;
    display: flex;
    font-family: var(--sans);
    font-size: 0.82rem;
    justify-content: space-between;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--measure);
}

.site-header {
    margin-bottom: 44px;
}

.site-footer {
    color: var(--muted);
    margin-top: 60px;
}

.site-title {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.site-nav ul {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a,
.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.home,
.post-shell {
    margin: 0 auto;
    max-width: var(--measure);
}

.intro {
    margin-bottom: 34px;
}

.intro h1 {
    font-family: var(--sans);
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 8px;
}

.intro p {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
    max-width: 520px;
}

.intro.compact p {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 1rem;
}

.post-preview {
    margin-bottom: 28px;
    max-width: 600px;
}

.post-preview time {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.post-preview h2 {
    font-family: var(--sans);
    font-size: 1.42rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 7px 0 8px;
}

.post-preview h2 a {
    color: var(--ink);
    text-decoration: none;
}

.post-preview h2 a:hover {
    color: var(--accent);
}

.post-preview p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0 0 8px;
}

.read-more {
    font-family: var(--sans);
    font-size: 0.82rem;
}

.post-card {
    display: grid;
    gap: 18px;
    grid-template-columns: 96px 1fr;
    padding: 4px 0;
}

.post-card time,
.post-meta {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.post-card h2 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
}

.post-card h2 a {
    color: var(--accent);
    text-decoration: underline;
}

.post-card h2 a:hover {
    color: var(--accent);
}

.pagination {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.88rem;
    justify-content: space-between;
    margin-top: 32px;
}

.post-header {
    margin-bottom: 28px;
}

.post-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.post h1 {
    font-family: var(--sans);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.post-excerpt {
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 12px 0 0;
}

.post-image {
    margin: 32px 0;
}

.post-image img {
    border: 1px solid var(--line);
}

.post-image figcaption {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 8px;
}

.post-content {
    font-family: var(--serif);
    font-size: 1.04rem;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content h2,
.post-content h3 {
    font-family: var(--sans);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 2em 0 0.5em;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin: 1.05em 0;
}

.post-content blockquote {
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-style: italic;
    padding-left: 18px;
}

.post-content pre,
.post-content code {
    font-family: var(--mono);
}

.post-content code {
    background: var(--soft);
    border-radius: 3px;
    font-size: 0.88em;
    padding: 0.12em 0.28em;
}

.post-content pre {
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
    font-size: 0.84rem;
    line-height: 1.55;
    overflow-x: auto;
    padding: 18px;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.kg-width-wide,
.kg-width-full {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
    padding-top: 16px;
}

.post-tags a {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-decoration: none;
}

@media (max-width: 620px) {
    .site {
        padding: 22px 16px 38px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 42px;
    }

    .post-card {
        gap: 0;
        grid-template-columns: 1fr;
        padding: 7px 0;
    }
}
