:root { color-scheme: light dark; --fg: #222; --bg: #fdfdfb; --muted: #6b6b6b; --accent: #1d5fa8; }
@media (prefers-color-scheme: dark) { :root { --fg: #e6e6e6; --bg: #17181a; --muted: #9a9a9a; --accent: #7fb2f0; } }
body { margin: 0 auto; max-width: 42rem; padding: 1.5rem 1rem 3rem; font: 1.0625rem/1.65 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
header { margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; border-radius: .75rem; background: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.site-name { display: flex; align-items: center; gap: 1rem; font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; text-decoration: none; color: var(--fg); }
.site-name img { flex: none; width: clamp(4rem, 14vw, 5.5rem); height: auto; }
header nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
header nav a { padding: .35rem .9rem; border: 1px solid var(--accent); border-radius: 999px; font-size: .9rem; text-decoration: none; }
header nav a:hover, header nav a[aria-current] { background: var(--accent); color: var(--bg); }
header nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tagline, .meta, footer { color: var(--muted); font-size: .9rem; }
article { margin-bottom: 2.5rem; }
.h-entry + .h-entry::before { content: ""; display: block; width: min(18rem, 70%); height: 1.25rem; margin: 0 auto 2.5rem; background: var(--muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 20'%3E%3Cpath d='M0 10h118M170 10h118' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M144 1l9 9-9 9-9-9z'/%3E%3Ccircle cx='124' cy='10' r='2.2'/%3E%3Ccircle cx='164' cy='10' r='2.2'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Lightbox (script in the layout) */
.e-content img[tabindex] { cursor: zoom-in; }
.e-content img[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / .88); }
dialog.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 94vw; max-height: 90vh; width: auto; height: auto; }
dialog.lightbox button { position: absolute; border: 0; border-radius: 999px; width: 2.75rem; height: 2.75rem; font-size: 1.5rem; line-height: 1; color: #fff; background: rgb(0 0 0 / .55); cursor: pointer; }
dialog.lightbox button:focus-visible { outline: 2px solid #fff; }
dialog.lightbox .close { top: 1rem; right: 1rem; }
dialog.lightbox .prev { left: 1rem; top: calc(50% - 1.375rem); }
dialog.lightbox .next { right: 1rem; top: calc(50% - 1.375rem); }
article h2 { margin-bottom: .25rem; }
article h2 a { color: var(--fg); text-decoration: none; }
img, video { max-width: 100%; height: auto; }
pre { overflow-x: auto; }
.pager { display: flex; justify-content: space-between; }
footer { margin-top: 3rem; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); padding-top: 1rem; }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; font-size: 1.4rem; text-decoration: none; color: var(--bg); background: var(--accent); box-shadow: 0 2px 8px rgb(0 0 0 / .25); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.shown { opacity: 1; pointer-events: auto; }
.to-top:focus-visible { opacity: 1; pointer-events: auto; outline: 2px solid var(--fg); outline-offset: 2px; }
