:root {
  --bg: #eeeeec; --fg: #2e3436; --muted: #6b6f70; --link: #204a87;
  font-family: "DejaVu Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] { --bg: #1f2430; --fg: #d8dee9; --muted: #8a93a3; --link: #8fb3ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1f2430; --fg: #d8dee9; --muted: #8a93a3; --link: #8fb3ff; }
}
body { background: var(--bg); color: var(--fg); font-size: 1.125rem; line-height: 1.7; margin: 3rem auto; padding: 0 1rem; max-width: 65ch; }
h1.title { font-size: 1.15rem; margin: 2rem 0 0.25rem; }
article p, article li { hyphens: auto; }
.logs { white-space: pre; line-height: 1.2; }
nav.home { margin: 0; }
footer { margin-top: 3rem; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 1ch; }
h1 { font-size: 1em; font-weight: bold; margin: 0; }
h2 { font-size: 1em; margin: 2rem 0 0.5rem; }
pre { font-family: inherit; line-height: 1.2; overflow-x: auto; margin: 1.5rem 0 0.25rem; }
a { color: var(--link); }
.muted { color: var(--muted); }
ul { padding-left: 2ch; }
button { font: inherit; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; }
button:hover, button:focus-visible { color: var(--link); }
figure { margin: 1.5rem 0; }
figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--muted); }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
code { font-family: inherit; }
code::before, code::after { content: "`"; color: var(--muted); }
pre code::before, pre code::after { content: none; }
pre:has(> code) { border-left: 2px solid var(--muted); padding-left: 1ch; }
/* Pictures drawn in text: centred; one wider than the column is cut at both edges, so a sea reaches them. */
.sunrise, .art { display: flex; justify-content: center; overflow: hidden; }
.sunrise pre, .art pre { flex: none; overflow: visible; }
/* Text at 18px with room between lines, for reading; pictures and code keep 1rem, so they keep their shape and fit a phone. */
pre { font-size: 1rem; }
h2.logs { font-size: 1rem; }
body.post h1.title { font-size: 1.3rem; }
body.post h2 { font-size: 1.15rem; }
/* A quoted log or message: wrapped, so it reads on a phone without scrolling. */
pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
/* A picture as wide as the column: on a narrow screen its right side is cut, not scrolled. */
pre.clip { overflow: hidden; }
