* { box-sizing: border-box; }
html { color: #26312e; background: #faf9f5; font-family: system-ui, sans-serif; line-height: 1.65; }
body { max-width: 850px; margin: auto; padding: 0 28px; }
a { color: #226553; text-underline-offset: .2em; }
a:hover { color: #143d32; }
header { padding: 28px 0; border-bottom: 1px solid #dadfd8; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
header a { font-weight: 650; text-decoration: none; }
header span { font-size: .65rem; letter-spacing: .12em; color: #63716a; white-space: nowrap; }
main { min-height: 65vh; padding: 36px 0 56px; }
nav { font-size: .85rem; margin-bottom: 24px; color: #839088; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; font-weight: 500; margin: 0 0 32px; }
.prose { font-family: Georgia, serif; font-size: 1.13rem; overflow-wrap: anywhere; }
.markdown-source { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose h2, .prose h3 { line-height: 1.3; }
blockquote { border-left: 3px solid #a8b9ab; padding-left: 22px; margin-left: 0; color: #4e6254; }
.listing { list-style: none; padding: 0; }
.listing li { padding: 19px 0; border-bottom: 1px solid #dadfd8; }
.listing a { font-size: 1.15rem; }
.listing p { margin: 6px 0 0; color: #626d66; }
footer { border-top: 1px solid #dadfd8; padding: 24px 0 36px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .85rem; }
table { border-collapse: collapse; max-width: 100%; }
td, th { border: 1px solid #dadfd8; padding: 8px; text-align: left; }
pre { overflow-x: auto; }
.prose img { max-width: 100%; max-height: 20rem; height: auto; }
.article-image { margin: 2rem auto; text-align: center; }
.article-image .image-open { display: block; width: fit-content; max-width: 100%; margin: auto; cursor: zoom-in; }
.article-image img { display: block; margin: auto; width: auto; height: auto; border-radius: 6px; }
.article-image.image-compact img { max-height: 20rem; }
.article-image.image-wide { width: 100%; }
.article-image.image-wide .image-open { width: 100%; }
.article-image.image-wide img { width: 100%; max-height: none; }
.article-image figcaption { max-width: 38rem; margin: .65rem auto 0; font-family: system-ui, sans-serif; font-size: .85rem; line-height: 1.5; color: #626d66; }
.image-open:focus-visible, .lightbox-close:focus-visible { outline: 3px solid #328269; outline-offset: 5px; }
.image-overlay-open { overflow: hidden; }
.media-embed { margin: 2rem 0; }
.media-frame { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; }
.media-frame iframe { width: 100%; height: 100%; min-height: 200px; border: 0; display: block; }
.media-fallback, .media-error { font-family: system-ui, sans-serif; font-size: .9rem; line-height: 1.5; }
.media-fallback { margin: .7rem 0 0; }
.media-error { border-left: 3px solid #8c9d92; padding-left: 1rem; }
.image-lightbox { border: 1px solid #dadfd8; padding: 0; border-radius: 8px; background: #faf9f5; color: #26312e; max-width: 96vw; max-height: 96vh; }
.image-lightbox::backdrop { background: rgb(10 19 15 / 85%); }
.lightbox-panel { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; max-width: 94vw; max-height: 94vh; }
.lightbox-close { align-self: flex-end; flex-shrink: 0; border: 1px solid #8c9d92; border-radius: 4px; padding: .4rem .9rem; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.image-lightbox img { display: block; width: auto; height: auto; min-height: 0; max-width: 90vw; max-height: 74vh; object-fit: contain; margin: auto; }
.lightbox-caption { margin: 0; font-size: .9rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; overflow-y: auto; }
@media (max-width: 480px) { body { padding: 0 18px; } header { align-items: flex-start; flex-direction: column; gap: 5px; } }

.publication-label { display: inline-block; font: 600 .75rem system-ui, sans-serif; padding: .15rem .5rem; border: 1px solid #8b6a2d; border-radius: 4px; color: #624516; background: #fff1cf; vertical-align: middle; }
body.is-draft h1 { margin-top: .65rem; }
