/* Default theme — quiet single column, ink + deep teal. */

:root {
    --ink: #1a2b32;
    --muted: #5c6f74;
    --accent: #0b5d69;
    --rule: #d8e2e4;
    --code-bg: #eef3f4;
    --paper: #fcfdfd;
}

* { box-sizing: border-box; }

body {
    margin: 0 auto;
    max-width: 44rem;
    padding: 0 1.25rem 3rem;
    font: 17px/1.65 Georgia, 'Times New Roman', serif;
    color: var(--ink);
    background: var(--paper);
}

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0 0.75rem;
    border-bottom: 3px double var(--ink);
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
}

.search input {
    font: 15px/1.4 system-ui, sans-serif;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: #fff;
    width: 13rem;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.25rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 0.2rem; }
h2 a { color: var(--ink); text-decoration: none; }
h2 a:hover { color: var(--accent); }

.meta {
    font: 14px/1.4 system-ui, sans-serif;
    color: var(--muted);
    margin: 0 0 1rem;
}

.summary { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.summary p:last-child { margin-bottom: 0; }

.post-body img { max-width: 100%; height: auto; }
.post-body pre {
    background: var(--code-bg);
    padding: 0.9rem 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
}
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code-bg); padding: 0.1rem 0.3rem; border-radius: 3px; }
.post-body pre code { background: none; padding: 0; }
.post-body blockquote { margin: 1rem 0; padding: 0.1rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.post-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tags a {
    font: 13px/1 system-ui, sans-serif;
    background: var(--code-bg);
    color: var(--accent);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}
.tags a:hover { background: var(--accent); color: #fff; }

.pagination {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 0;
    font: 15px/1 system-ui, sans-serif;
    flex-wrap: wrap;
}
.pagination .current { font-weight: 700; }
.pagination a { text-decoration: none; }

.site-foot {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 3px double var(--ink);
    font: 14px/1.6 system-ui, sans-serif;
    color: var(--muted);
}

/* Tag cloud: five weight buckets, size + colour depth encode frequency. */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: baseline; margin-bottom: 0.75rem; }
.tag-cloud a { text-decoration: none; }
.tag-cloud .w1 { font-size: 0.85rem; color: var(--muted); }
.tag-cloud .w2 { font-size: 0.95rem; color: var(--muted); }
.tag-cloud .w3 { font-size: 1.1rem; }
.tag-cloud .w4 { font-size: 1.25rem; }
.tag-cloud .w5 { font-size: 1.45rem; font-weight: 700; }

.empty { color: var(--muted); font-style: italic; }

@media (max-width: 34rem) {
    body { font-size: 16px; }
    .search input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
