:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --fg: #d8d6d0;
  --mut: #86847e;
  --rule: #1d1d1f;
  --hot: #ff2e4d;
  --mono: 'Martian Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; position: relative; min-height: 100vh; color: var(--fg); font: 17px/1.7 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

/* the margin mosaic: drawn by mosaic.js, clipped to the page, scrolls with it */
/* starts 600px above the page (margins.js PAD): a bounce at the top shows more field; can't extend below without
   making the page scrollable, so it fades out over the page's last 400px instead of ending in a cut */
#field { position: absolute; top: -600px; right: 0; bottom: 0; left: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 400px), transparent); mask-image: linear-gradient(#000 calc(100% - 400px), transparent); }
/* side images, rendered from the seed in the editor; inner edges sit 10px outside the 612px text box */
#field > * { position: absolute; top: 0; display: block; image-rendering: pixelated; opacity: 0; transition: opacity .7s ease-out; }
#field > .on { opacity: 1; }
#field > .l { right: calc(50% + 316px); }
#field > .r { left: calc(50% + 316px); }
@media (max-width: 800px) { #field { display: none; } }     /* phones: no margins */
@media (prefers-reduced-motion: reduce) { #field > * { transition: none; } }

.col { position: relative; max-width: 42rem; margin: 0 auto; padding: 0 30px 96px; }
.hdr { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 30px; border-bottom: 1px solid var(--rule); }
.hdr nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; font: 300 12px var(--mono); color: var(--mut); }
.hdr a { text-decoration: none; }
.hdr nav a:hover { color: var(--fg); }
.word { font: 400 13px/1 var(--mono); letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.word i { width: 11px; height: 11px; background: #050505; box-shadow: inset 0 2px 0 #4a4a4a, 0 0 0 1px #2a2a2a; display: block; }

.lede { color: var(--mut); padding-block: 40px 0; max-width: 34ch; margin: 0; font-size: 1.05rem; }
.posts { list-style: none; margin: 40px 0 0; padding: 0; }
.posts .empty { display: block; color: var(--mut); border: 0; }
.posts li:first-child { border-top: 0; }
.posts li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 20px; align-items: baseline; border-top: 1px solid var(--rule); padding-block: 18px; }
.posts time, .meta { font: 300 12px/1.8 var(--mono); color: var(--mut); }
.posts a { font-size: 1.15rem; font-weight: 500; line-height: 1.35; text-decoration: none; text-wrap: balance; overflow-wrap: anywhere; }
.posts a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: 5px; }

article { padding-top: 64px; }
article h1 { font-size: 1.9rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 8px 0 0; text-wrap: balance; overflow-wrap: anywhere; }
article h2 { font-size: 1.3rem; font-weight: 500; line-height: 1.3; margin: 2em 0 0; color: #ecebe6; }
article h3 { font: 400 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-top: 2.4em; color: #bdbbb5; }
article p, article ul, article ol { margin: 1em 0; }
article a { color: #ecebe6; text-decoration-color: #8a8a90; text-underline-offset: 3px; }
article a:hover { color: #fff; text-decoration-color: var(--hot); }
article img { display: block; max-width: 100%; height: auto; margin: 1.6em 0; }
code { overflow-wrap: anywhere; font: 300 .8em var(--mono); color: #fff; background: #161617; padding: .2em .4em; }
pre { font: 300 13px/1.6 var(--mono); background: #111112; border: 1px solid var(--rule); padding: 16px; overflow-x: auto; }
pre code { overflow-wrap: normal; background: none; padding: 0; font-size: inherit; }
blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid #3a3a3d; color: #a9a7a1; }
article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9em; }
article th, article td { border-bottom: 1px solid var(--rule); padding: 6px 12px 6px 0; text-align: left; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.end { margin-top: 48px; font: 300 12px var(--mono); color: var(--mut); display: flex; justify-content: space-between; gap: 12px; }

@media print {
  html, body { background: #fff; color: #000; }
  #field, .hdr nav, .end { display: none; }
  article a { color: inherit; }
}

@media (max-width: 640px) {
  .col { padding-inline: 18px; }
  .posts li { grid-template-columns: minmax(0, 1fr); }
}
