/* Dark only, in the site's teal-black palette. Contrast against --bg
   (WCAG 2 relative luminance):
     --fg     #c9cbc6  11.53:1  text, headings, site name
     --muted  #8b8f8a   5.74:1  nav, dates, descriptions, blockquotes
     --link   #b48a9b   6.33:1  links (the site's mauve, lightened from #9c6d80)
     --rule   #1d3a40           borders only, not text                        */
:root {
  color-scheme: dark;
  --bg: #001418; --fg: #c9cbc6; --muted: #8b8f8a; --rule: #1d3a40; --link: #b48a9b;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); }
body { margin: 0 auto; max-width: 42rem; padding: 2rem 1.25rem 4rem; font: 1.125rem/1.65 var(--serif); }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
header.site { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; align-items: baseline; font-family: var(--sans); font-size: 0.95rem; padding-bottom: 1rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
header.site .name { color: var(--fg); font-weight: 600; text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 1rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--link); }
h1, h2, h3 { font-family: var(--sans); line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.9rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
time { display: block; color: var(--muted); font-family: var(--sans); font-size: 0.9rem; margin-bottom: 1.75rem; }
.list-heading { margin-top: 2.5rem; }
.posts { list-style: none; padding: 0; }
.posts li { margin: 0 0 1.5rem; }
.posts li a { font-family: var(--sans); font-weight: 600; text-decoration: none; }
.posts li a:hover { text-decoration: underline; }
.posts li time { margin: 0.1rem 0 0.25rem; }
.posts li p { margin: 0; color: var(--muted); }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
/* Posts are justified on screens wide enough for even word spacing, and
   left-aligned on phones, where justifying whole words leaves wide gaps.
   Words are never split with a hyphen. */
@media (min-width: 640px) {
  article p, article li { text-align: justify; }
}
code { font-size: 0.9em; }
pre { overflow-x: auto; padding: 1rem; border: 1px solid var(--rule); border-radius: 6px; }
img { max-width: 100%; height: auto; }
.back { margin-top: 3rem; font-family: var(--sans); font-size: 0.95rem; }
.more { font-family: var(--sans); font-size: 0.95rem; }
.more a { text-decoration: none; }
