:root { --text:48rem; --bg:#fff; --fg:#000; --muted:#555; --line:#ddd; --link:#0000ee; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#121212; --fg:#e6e6e6; --muted:#9a9a9a; --line:#2a2a2a; --link:#8ab4ff; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:17px/1.5 "Iowan Old Style",Palatino,"Palatino Linotype","Book Antiqua",serif; }
main, header { max-width: 80rem; margin: 0 auto; padding: 0 16px; }
header { padding-top: 24px; padding-bottom: 8px; position: relative; }
#textonly { position: absolute; top: 28px; right: 16px; font-size: .85rem; color: var(--muted); }
header h1 { margin:0; font-size:1.25rem; }
header a { color: inherit; text-decoration: none; }
a { color: var(--link); }
article { padding: 0 0 22px; }
.meta { color: var(--muted); font-size: .85rem; }
.meta a { color: var(--muted); }
article h2 { margin: 2px 0; font-size: 1.1rem; }
article p { margin: 4px 0; overflow-wrap: anywhere; }
article img { margin-top: 6px; } /* natural size, deliberately uncapped: big images overflow */
article h2, article p { max-width: var(--text); } /* readable line length; media can stay wider */
article.preview img { max-width: min(100%, 40rem); height: auto; } /* link previews stay small */
footer { padding: 16px 0 40px; color: var(--muted); font-size: .85rem; }
.embed { display:block; position:relative; width:100%; padding:0; border:0; background:var(--line); max-width:40rem; margin-top:6px; cursor:pointer; min-height:120px; }
.embed span { position:absolute; inset:0; display:grid; place-items:center; font-size:2rem; color:#fff; text-shadow:0 1px 6px #000; }
.embed.sc { display:inline-block; width:auto; min-height:0; margin:2px 0; background:none; color:var(--link); font:inherit; font-size:.85rem; text-decoration:underline; } /* liked tracks: a text link that swaps in the player on click */
iframe.embed { aspect-ratio:auto; }
.embed img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; margin:0; } /* crops the black bars off YouTube posters */
nav { color: var(--muted); font-size: .85rem; padding-top: 2px; }
nav a { color: var(--muted); }
h2.list, summary.list { font-size: 1rem; color: var(--muted); margin: 16px 0 0; }
summary.list { cursor: pointer; }
.pager { padding: 14px 0; }
main > ul { padding-left: 1.1rem; }
article ul { margin: 4px 0; padding-left: 1.1rem; }
.tags{margin:.4rem 0 0;font-size:.85rem}.tags a{margin-right:.5rem;color:var(--muted)}
#q { width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: none; border: 1px solid var(--muted); padding: 6px 8px; margin-bottom: 12px; }
details.fold > summary { cursor: pointer; }
details.fold:not([open]) .h, details.fold[open] .s { display: none; } /* summary reads "show N …" closed, "hide" open */

/* "text only" (nav toggle): hide pictures and players, show the link's address instead */
.url { display:none; }
html.text article img, html.text article .embed { display:none; }
html.text .url { display:block; overflow-wrap:anywhere; }
