:root {
    color-scheme: light;
    --ink: #22252c;
    --muted: #515664;
    --link: #263f73;
    --background: #f5f2eb;
    --paper: #fffefa;
    --line: #d8d4c9;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: var(--link); text-underline-offset: .16em; }
a:hover { color: #7f432d; }
a:focus-visible, summary:focus-visible { outline: 2px solid #9c522a; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: 1rem; padding: .5rem; background: white; z-index: 1; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { text-align: center; background: #152036; color: #f9f5eb; padding: clamp(1.65rem, 5vw, 3.7rem) 1rem; border-bottom: 4px solid #ad7149; }
.site-name { display: inline-block; color: inherit; text-decoration: none; font: 700 clamp(2rem, 5vw, 4.2rem)/1.05 Georgia, serif; letter-spacing: -.025em; }
.site-name:hover { color: #f6e0cb; }
.masthead p { color: #e1dbcf; margin: .7rem 0 0; font-size: clamp(.9rem, 2.2vw, 1.08rem); }
.layout { max-width: 92rem; margin: 0 auto; padding: clamp(.85rem, 2.5vw, 2.25rem); display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(0, 4.35fr) minmax(8rem, .9fr);
    grid-template-areas: "categories content dates"; align-items: start; gap: clamp(.75rem, 2.25vw, 2rem); }
.categories { grid-area: categories; }
.dates { grid-area: dates; }
main { grid-area: content; min-width: 0; background: var(--paper); border: 1px solid var(--line); padding: clamp(1rem, 3.5vw, 3.2rem); }
.archive-panel { border-top: 2px solid var(--link); }
.archive-panel summary { cursor: pointer; color: var(--ink); font-size: .93rem; font-weight: 700; padding: .6rem .15rem; }
.archive-panel ul, .post-categories { padding: 0; margin: .1rem 0 .7rem; list-style: none; }
.archive-panel li a { display: block; padding: .23rem .15rem; overflow-wrap: anywhere; font-size: .9rem; }
.archive-panel a[aria-current] { font-weight: 700; }
.month-list { max-height: 72vh; overflow: auto; padding: .12rem .3rem .2rem .15rem; }
.month-list h2 { margin: .8rem 0 .15rem; font-size: .93rem; color: var(--muted); }
.month-list h2:first-child { margin-top: 0; }
h1, h2 { font-family: Georgia, serif; line-height: 1.2; }
h1 { overflow-wrap: anywhere; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 .9rem; }
h1 a { color: inherit; text-decoration: none; }
.post-heading time, .posts time, .comment time { color: var(--muted); font-size: .86rem; }
.post-heading time { display: block; margin-bottom: .65rem; }
.post-heading { padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; }
.post-categories { display: flex; flex-wrap: wrap; column-gap: .85rem; font-size: .83rem; margin-bottom: 0; }
.post-body, .comment-body { overflow-wrap: anywhere; white-space: pre-line; }
.post-body { font: 1.13rem/1.65 Georgia, serif; }
.post-body p, .comment-body p { margin: .7em 0; }
.post-body img, .comment-body img { max-width: 100%; height: auto; vertical-align: middle; }
.post-body pre, .comment-body pre { white-space: pre-wrap; }
.post-body blockquote, .comment-body blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 3px solid var(--line); }
.posts { padding: 0; list-style: none; }
.posts li { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.posts time { display: block; }
.posts a { font-family: Georgia, serif; font-size: 1.2rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; border-block: 1px solid var(--line); padding: .75rem 0; margin: 1.6rem 0; }
.comments h2 { font-size: 1.6rem; }
.comments h2 span { font-size: 1rem; color: var(--muted); }
.comment { border-top: 1px solid var(--line); padding: .9rem 0; }
.comment header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .7rem; margin-bottom: .35rem; overflow-wrap: anywhere; }
.comment header a { font-size: .85rem; }
.comment:target { background: #f5eddf; }
@media (max-width: 58rem) {
    .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "categories dates" "content content"; gap: .7rem; max-width: 52rem; }
    .archive-panel { background: var(--paper); border: 1px solid var(--line); padding: 0 .6rem; }
    .archive-panel nav { max-height: 15rem; overflow: auto; }
}
