/* Inkwell's look: a man page, as man7.org renders one - a header line and a
 * footer line, section names in capitals at the margin, the text indented under
 * them - in the type elysiajs.com is set in: the system's own sans for reading,
 * Geist Mono for code and for the furniture of the page. */

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Italic-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111111;
  --text: #242424;
  --dim: #5a5a5a;
  --faint: #737373;
  --rule: #e7e7e7;
  --rule-2: #cdcdcd;
  --wash: #f5f5f4;
  --link: #1a3fbf;
  --accent: var(--link);   /* what marks where a section starts, in an article and while writing it */
  --mark: #fff0a0;
  --spark: #b45309;
  --select: #d6dfff;
  --note: #1a3fbf;
  --tip: #15803d;
  --important: #7c3aed;
  --warning: #b45309;
  --caution: #c62828;
  /* code, in the colours GitHub's light theme gives it */
  --code-bg: #f6f8fa;
  --code-bar: #eff2f5;
  --code-rule: #dfe3e8;
  --code-ink: #1f2328;
  --c-cm: #6e7781;
  --c-pp: #cf222e;
  --c-str: #0a3069;
  --c-esc: #0550ae;
  --c-var: #953800;
  --c-num: #0550ae;
  --c-kw: #cf222e;
  --c-ty: #953800;
  --c-fn: #8250df;
  --c-an: #116329;
  --c-pr: #0550ae;
  --c-tg: #116329;
  --c-at: #0550ae;
  --add: #e3f4e7;
  --del: #fbe6e6;
  --shadow: 0 12px 32px rgba(0, 0, 0, .12);

  /* the stacks elysiajs.com uses, word for word */
  --sans: -apple-system, BlinkMacSystemFont, Inter, system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --indent: 5.5rem;   /* how far the text sits in from the section names */
  --measure: 40rem;   /* how wide a line of text runs */
  --bar: 2.75rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111213;
    --ink: #ededed;
    --text: #d4d4d4;
    --dim: #a3a3a3;
    --faint: #8a8a8a;
    --rule: #26282b;
    --rule-2: #3b3d41;
    --wash: #1a1b1d;
    --link: #8aa8ff;
    --mark: #5c4b0e;
    --spark: #f0b429;
    --select: #2b3a68;
    --note: #8aa8ff;
    --tip: #4ade80;
    --important: #c4a1ff;
    --warning: #f0b429;
    --caution: #ff7b7b;
    --code-bg: #161b22;
    --code-bar: #1b2129;
    --code-rule: #30363d;
    --code-ink: #e6edf3;
    --c-cm: #8b949e;
    --c-pp: #ff7b72;
    --c-str: #a5d6ff;
    --c-esc: #79c0ff;
    --c-var: #ffa657;
    --c-num: #79c0ff;
    --c-kw: #ff7b72;
    --c-ty: #ffa657;
    --c-fn: #d2a8ff;
    --c-an: #7ee787;
    --c-pr: #79c0ff;
    --c-tg: #7ee787;
    --c-at: #79c0ff;
    --add: #13271b;
    --del: #2e1618;
    --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111213;
  --ink: #ededed;
  --text: #d4d4d4;
  --dim: #a3a3a3;
  --faint: #8a8a8a;
  --rule: #26282b;
  --rule-2: #3b3d41;
  --wash: #1a1b1d;
  --link: #8aa8ff;
  --mark: #5c4b0e;
  --spark: #f0b429;
  --select: #2b3a68;
  --note: #8aa8ff;
  --tip: #4ade80;
  --important: #c4a1ff;
  --warning: #f0b429;
  --caution: #ff7b7b;
  --code-bg: #161b22;
  --code-bar: #1b2129;
  --code-rule: #30363d;
  --code-ink: #e6edf3;
  --c-cm: #8b949e;
  --c-pp: #ff7b72;
  --c-str: #a5d6ff;
  --c-esc: #79c0ff;
  --c-var: #ffa657;
  --c-num: #79c0ff;
  --c-kw: #ff7b72;
  --c-ty: #ffa657;
  --c-fn: #d2a8ff;
  --c-an: #7ee787;
  --c-pr: #79c0ff;
  --c-tg: #7ee787;
  --c-at: #79c0ff;
  --add: #13271b;
  --del: #2e1618;
  --shadow: 0 12px 32px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

/* hidden means hidden, whatever a class says about display */
[hidden] { display: none !important; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--select); }

a { color: var(--link); text-decoration: none; }

a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

button, input, textarea { font: inherit; color: inherit; }

kbd {
  display: inline-block;
  min-width: 1.2rem;
  padding: 0 .3rem;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font: 500 11px/1.35rem var(--mono);
  text-align: center;
  color: var(--faint);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- the bar on top -------------------------------------------------- */

.crumbs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--bar);
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
  backdrop-filter: saturate(1.5) blur(10px);
  font: 13px/1 var(--mono);
  color: var(--faint);
}

.trail {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
  overflow: hidden;
}

.trail > * { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.trail > :first-child, .trail .sep { flex: none; }

.trail .sep { color: var(--rule-2); }

.trail .here { color: var(--ink); }

.writing .trail .here, .unlock .trail .here { flex: none; }

.tools { display: flex; align-items: center; gap: 1.15rem; }

.find { position: relative; display: flex; align-items: center; }

.find input {
  width: 11rem;
  height: 1.85rem;
  padding: 0 1.9rem 0 .6rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: 12.5px var(--mono);
  transition: width .2s ease, border-color .2s ease;
}

.find input::placeholder { color: var(--faint); }

.find input:focus { outline: none; width: 15rem; border-color: var(--rule-2); }

.find input::-webkit-search-cancel-button { display: none; }

.find kbd { position: absolute; right: .4rem; pointer-events: none; }

.find input:focus + kbd, .find input:not(:placeholder-shown) + kbd { opacity: 0; }

.cmd {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: 13px var(--mono);
  cursor: pointer;
}

.cmd:hover { text-decoration: underline; text-underline-offset: .2em; }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--ink);
  pointer-events: none;
}

/* ---- the page, as a man page ----------------------------------------- */

main { flex: 1; width: 100%; }

.page { width: 100%; max-width: 64rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }

.hdr, .ftr {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font: 600 12.5px/1.5 var(--mono);
  letter-spacing: .02em;
  color: var(--ink);
}

.hdr > span, .ftr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ftr > span:first-child { flex: none; }

.hdr .mid { flex: none; font-weight: 400; color: var(--dim); }

.ftr { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-weight: 400; color: var(--faint); }

.sh, .prose > h1, .prose > h2 {
  margin: 2.75rem 0 .85rem;
  font: 650 13px/1.45 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--ink);
}

.text { padding-left: var(--indent); max-width: calc(var(--indent) + var(--measure)); }

.text p { margin: 0 0 .9rem; }

.dim { color: var(--faint); }

.empty { padding: 1rem 0; font: 13px var(--mono); color: var(--faint); }

/* ---- the shelf ------------------------------------------------------- */

.intro { margin: 2.75rem 0 0; }

.intro h1 {
  margin: 0 0 .75rem;
  font: 700 2.6rem/1.08 var(--sans);
  letter-spacing: -.035em;
  color: var(--ink);
}

.lede { margin: 0; max-width: 37rem; font-size: 1.08rem; line-height: 1.6; color: var(--dim); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  margin: 0 0 1.4rem;
  padding-left: var(--indent);
  font: 12.5px/1.6 var(--mono);
}

.filters a.on {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
}

.entries { list-style: none; margin: 0; padding: 0; max-width: 58rem; }

.entry {
  display: grid;
  grid-template-columns: var(--indent) minmax(0, 1fr) auto;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.entry:last-child { border-bottom: 1px solid var(--rule); }

.entry time { font: 11.5px/1.95 var(--mono); color: var(--faint); }

.entry .what { min-width: 0; max-width: var(--measure); }

.entry .title {
  font: 600 1.08rem/1.4 var(--sans);
  letter-spacing: -.012em;
}

.entry .excerpt {
  margin: .3rem 0 .5rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .95rem;
  font: 12px/1.6 var(--mono);
  color: var(--faint);
}

.meta .who { color: var(--ink); }

.meta .tagged { color: var(--faint); }

.meta .tagged a { color: var(--faint); }

.meta .tagged a:hover { color: var(--ink); text-decoration: none; }

.thumb {
  display: block;
  width: 7.5rem;
  margin-left: 1.75rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  background: var(--wash);
  outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  outline-offset: -1px;
}

/* the shelf at any size: a page of it at a time, in an order the reader picks, the tags and the most read beside it */
.shelf { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3.5rem; align-items: start; }

/* the shelf uses the width a large screen has: up to 100rem */
.page.feed.wide { max-width: min(100%, 100rem); }

/* one article to a row, as wide as the side leaves it: the words run to the picture, and the pictures line up */
.feed.wide .entries { max-width: none; }

.feed.wide .entry .what { max-width: none; }

/* on the shelf the large search below takes the place of the one in the bar */
body.shelfpage .crumbs .find { display: none; }

.seek { position: relative; margin: 2.4rem 0 .6rem; }

.seekbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .5rem;
  min-height: 3.5rem;
  padding: .5rem .8rem .5rem 1rem;
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  background: var(--paper);
  cursor: text;
}

.seekbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }

.seekbox input {
  flex: 1;
  min-width: 16rem;
  padding: .35rem 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font: 17px/1.4 var(--sans);
}

.seekbox input::placeholder { color: var(--faint); }

.seekbox input::-webkit-search-cancel-button { display: none; }

.seekbox kbd {
  padding: .05rem .45rem;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  font: 12px/1.6 var(--mono);
  color: var(--faint);
}

.seekbox:focus-within kbd { display: none; }

.chips { display: contents; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .18rem .2rem .18rem .65rem;
  border: 1px solid;
  border-radius: 999px;
  font: 13.5px/1.45 var(--mono);
  color: var(--ink);
  white-space: nowrap;
}

.chip.keep { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 11%, transparent); }

.chip.drop { border-color: color-mix(in srgb, var(--caution) 45%, transparent); background: color-mix(in srgb, var(--caution) 9%, transparent); }

.chip button {
  padding: 0 .35rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font: 16px/1.2 var(--sans);
  cursor: pointer;
}

.chip button:hover { background: var(--wash); color: var(--ink); }

/* how to search, under the box while it has the caret */
.seekhelp {
  position: absolute;
  z-index: 30;
  top: calc(100% + .45rem);
  left: 0;
  right: 0;
  max-width: 52rem;
  padding: 1.05rem 1.25rem 1rem;
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font: 14px/1.55 var(--sans);
  color: var(--text);
}

.seekhelp .howto { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.2rem; margin: 0 0 .95rem; }

.seekhelp .howto dd { margin: 0; color: var(--dim); }

.seekhelp code { padding: .08rem .4rem; border-radius: 4px; background: var(--wash); font: 13px var(--mono); color: var(--ink); }

.seekhelp .examples, .seekhelp .seektags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .8rem; }

.seekhelp .examples:empty { display: none; }

.seekhelp .seektags > .dim:first-child { min-width: 4.5rem; font: 12px var(--mono); }

.seekhelp .examples > .dim { font: 12px var(--mono); margin-right: .2rem; }

.seekhelp button {
  padding: .2rem .65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font: 12.5px/1.45 var(--mono);
  cursor: pointer;
}

.seekhelp button:hover { border-color: var(--accent); color: var(--ink); }

.seekhelp button span { margin-left: .45rem; color: var(--faint); font-size: 11px; }

.seekhelp .keys { margin: .2rem 0 0; padding-top: .7rem; border-top: 1px solid var(--rule); font: 12px/1.6 var(--sans); }

.seekhelp .keys code { font-size: 11.5px; }

/* a touch screen has no / to press */
@media (max-width: 640px), (pointer: coarse) {
  .seekbox kbd { display: none; }
}

@media (max-width: 640px) {
  .seek { margin-top: 1.6rem; }
  .seekbox input { min-width: 10rem; font-size: 16px; }
  .seekhelp { padding: .9rem 1rem; }
  .seekhelp .howto { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .seekhelp .howto dd { margin: 0 0 .55rem; }
}

.shelfmain { min-width: 0; }

.shelfbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  margin: 0 0 1rem;
  padding-left: var(--indent);
  font: 12.5px/1.6 var(--mono);
  color: var(--faint);
}

.shelfbar .count { margin: 0; color: var(--dim); }

.sorts { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }

.sorts a { color: var(--dim); }

.sorts a.on {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
}

.pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  margin: 1.5rem 0 0;
  padding-left: var(--indent);
  font: 12.5px/1.6 var(--mono);
}

.pages > * { min-width: 2.1rem; padding: .28rem .55rem; border-radius: 4px; text-align: center; }

.pages a:hover { background: var(--wash); text-decoration: none; }

.pages .on { background: var(--ink); color: var(--paper); font-weight: 650; }

.pages .gap { min-width: 1rem; padding: .28rem .1rem; color: var(--faint); }

.pages .step { min-width: 0; }

.pages .off { color: var(--rule-2); }

.shelfside { position: sticky; top: min(calc(var(--bar) + 1.5rem), calc(100vh - var(--tall, 0px) - 1.5rem)); }

.tagcloud { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; font: 12px/1.4 var(--mono); }

.tagcloud a {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .24rem .6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--dim);
}

.tagcloud a span { color: var(--faint); font-size: 11px; }

.tagcloud a:hover { border-color: var(--rule-2); color: var(--ink); text-decoration: none; }

.tagcloud a.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink); }

.tagcloud a.left { border-color: color-mix(in srgb, var(--caution) 45%, transparent); color: var(--faint); text-decoration: line-through; }

.alltags { margin: .75rem 0 0; font: 12px var(--mono); }

.popular { margin: 0; padding: 0; list-style: none; counter-reset: popular; font: 13.5px/1.45 var(--sans); }

.popular li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  padding: .5rem 0;
  border-top: 1px solid var(--rule);
  counter-increment: popular;
}

.popular li::before { content: counter(popular); grid-row: span 2; font: 600 12px/1.7 var(--mono); color: var(--faint); }

.popular a { color: var(--ink); }

.popular .dim { font: 11.5px/1.6 var(--mono); }

.tagindex { columns: 3 12rem; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; font: 13px/2 var(--mono); }

.tagindex li { display: flex; justify-content: space-between; gap: 1rem; break-inside: avoid; border-bottom: 1px dotted var(--rule); }

.tagindex span { color: var(--faint); }

/* ---- an article ------------------------------------------------------ */

/* As wide as its widest code, so that code needs no scrollbar where the screen has the room. The text
 * itself stops at --measure, past which lines get hard to follow. */
.piece {
  --measure: 48rem;
  width: fit-content;
  min-width: min(100%, 73rem);
  max-width: min(100%, 110rem);
}

.head { margin: 2.75rem 0 2.4rem; max-width: calc(var(--indent) + var(--measure)); }

.head h1 {
  margin: 0 0 .95rem;
  font: 700 2.5rem/1.1 var(--sans);
  letter-spacing: -.032em;
  color: var(--ink);
  text-wrap: balance;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: 0;
  font: 12.5px/1.7 var(--mono);
  color: var(--faint);
}

.byline .who { color: var(--ink); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem;
  gap: 3.5rem;
}

.toc { font: 13px/1.45 var(--sans); }

.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }

.toc li a {
  display: block;
  margin-left: -1px;
  padding: .24rem 0 .24rem .9rem;
  border-left: 1px solid transparent;
  color: var(--dim);
}

/* sections in the text's own colour, their subsections lighter and further in, a little room between sections */
.toc li:not(.h3) > a { color: var(--text); font-weight: 600; }

.toc li:not(.h3):not(:first-child) { margin-top: .3rem; }

.toc li.h3 a { padding-left: 1.75rem; font-size: 12.5px; }

.toc li a:hover { color: var(--ink); text-decoration: none; }

.toc li a.on { color: var(--ink); border-left-color: var(--accent); }

.toc.side {
  position: sticky;
  top: calc(var(--bar) + 1.75rem);
  align-self: start;
  max-height: calc(100vh - var(--bar) - 3.5rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.toc.side .sh { margin: .25rem 0 .7rem; font-size: 11.5px; color: var(--faint); }

.toc.inline { display: none; margin: -.75rem 0 2.25rem; padding-left: var(--indent); }

.toc.inline summary {
  cursor: pointer;
  font: 650 12px/1.6 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--ink);
  list-style: none;
}

.toc.inline summary::-webkit-details-marker { display: none; }

.toc.inline summary::before { content: "+ "; color: var(--faint); }

.toc.inline[open] summary::before { content: "- "; }

.toc.inline ol { margin-top: .6rem; }

/* code too long for the room beside the contents gets that room: showArticle sets this */
.fold .layout { grid-template-columns: minmax(0, 1fr); }
.fold .toc.side { display: none; }
.fold .toc.inline { display: block; }

.after { padding-left: var(--indent); max-width: calc(var(--indent) + var(--measure)); }

.after p { margin: 0 0 .5rem; }

.tagline { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font: 13px/1.6 var(--mono); }

.related { list-style: none; margin: .5rem 0 0; padding: 0; }

.related li { margin: .3rem 0; }

.related .dim { font: 12px var(--mono); margin-left: .6rem; }

.sparkrow { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; font: 12.5px var(--mono); color: var(--faint); }

.spark {
  padding: .45rem .85rem;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: none;
  color: var(--ink);
  font: 12.5px var(--mono);
  cursor: pointer;
}

.spark:hover { border-color: var(--ink); }

.spark.lit { border-color: var(--spark); color: var(--spark); cursor: default; }

/* ---- made by people -------------------------------------------------- */

.human {
  display: inline-block;
  padding: 0 .42em;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--ink);
  font: 600 10px/1.65 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: .08em;
}

a.human:hover { background: var(--wash); text-decoration: none; }

.meta .human { align-self: center; line-height: 1.5; }

.colophon p { margin: 0 0 .55rem; }

.colophon .cmd { font-size: inherit; }

.reportform { display: grid; gap: .5rem; max-width: 30rem; margin: .4rem 0 0; font: 12.5px var(--mono); color: var(--dim); }

.reportform textarea, .keyform input {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  resize: vertical;
}

.reportform textarea:focus, .keyform input:focus { outline: none; border-color: var(--ink); }

.row { display: flex; align-items: center; gap: 1rem; }

.pledge {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-right: .6rem;
  font: 12.5px var(--mono);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.pledge input { margin: 0; accent-color: var(--ink); width: 14px; height: 14px; }

.pledge a { color: var(--faint); }

.pledge.wanted { color: var(--caution); }

.pledge.wanted input { outline: 2px solid var(--caution); outline-offset: 2px; }

.policy .text ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.policy .text li { margin: 0 0 .55rem; }

.policy .text li::marker { color: var(--faint); }

.policy .text code, .text code {
  padding: .1em .32em;
  border-radius: 3px;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .86em;
}

.keyform { display: grid; gap: .6rem; max-width: calc(var(--indent) + 26rem); font: 12.5px var(--mono); color: var(--dim); }

.keyform .problem { margin: 0; min-height: 1.4em; }

.notice { color: var(--ink); font: 12.5px var(--mono); }

.keynote .after p { margin: 0 0 .6rem; }

.keybox {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem 1.1rem;
  width: fit-content;
  max-width: 100%;
  margin: .5rem 0 .8rem;
  padding: .55rem .8rem;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
}

.keybox code {
  padding: 0;
  background: none;
  font: 14.5px/1.5 var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
  user-select: all;
}

.keybox .cmd { font-size: 12px; }

#editkey { font-family: var(--mono); }

.keyform input[type=checkbox] { width: auto; margin: 0; accent-color: var(--ink); }

.keyform .remember { display: flex; align-items: center; gap: .45rem; }

.byline .cmd, .statusbar .cmd { font: inherit; }

.ledger { list-style: none; margin: 0 0 1rem; padding: 0; }

.ledger li { padding: .75rem 0; border-top: 1px solid var(--rule); }

.ledger li:last-child { border-bottom: 1px solid var(--rule); }

.ledger p { margin: .25rem 0 .35rem; font-size: .92rem; }

.ledger .dim { font: 12px var(--mono); }

.ledger .acts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

.ledger .cmd { font-size: 12px; }

/* ---- the text of an article ------------------------------------------ */

.prose {
  min-width: 0;
  padding-left: var(--indent);
  counter-reset: fig;
  font: 17px/1.72 var(--sans);
  color: var(--text);
  overflow-wrap: break-word;
}

.prose > * { max-width: var(--measure); }

.prose > h1, .prose > h2 { margin-left: calc(-1 * var(--indent)); max-width: calc(var(--indent) + var(--measure)); }

.prose > .code { max-width: none; }

/* Where a section starts has to be plain at a glance: the owner found it "too bland" and the sections
 * "hard to discern visually". Still a man page: a section name in capitals at the margin, now larger,
 * under a rule as wide as the text with a mark in the accent where it starts; a subsection set halfway
 * between the section names and the text, as man7.org sets a subsection, with a mark of its own. */
.prose > h1, .prose > h2 {
  position: relative;
  margin-top: 3.9rem;
  margin-bottom: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-2);
  font: 700 16.5px/1.4 var(--mono);
  letter-spacing: .07em;
}

.prose > h1::before, .prose > h2::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
}

.prose > :first-child { margin-top: 0; }

.prose p { margin: 0 0 1.15rem; }

.prose h3 {
  margin: 2.7rem 0 .7rem;
  font: 650 1.2rem/1.38 var(--sans);
  letter-spacing: -.012em;
  color: var(--ink);
}

.prose > h3 { margin-left: calc(-.5 * var(--indent)); max-width: calc(.5 * var(--indent) + var(--measure)); }

.prose h3::before {
  content: "";
  display: inline-block;
  width: .4em;
  height: .4em;
  margin: 0 .6em .16em 0;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: middle;
}

.prose h4, .prose h5, .prose h6 { margin: 1.9rem 0 .45rem; font: 650 1.03rem/1.45 var(--sans); color: var(--ink); }

.prose .anchor {
  margin-left: .55rem;
  color: var(--faint);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity .15s ease;
}

.prose h1:hover .anchor, .prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }

.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }

.prose a:hover { text-decoration-color: currentColor; }

.prose strong { font-weight: 650; color: var(--ink); }

.prose mark { padding: 0 .15em; border-radius: 2px; background: var(--mark); color: inherit; }

.prose del { color: var(--faint); }

.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }

.prose li { margin: .3rem 0; padding-left: .15rem; }

.prose li > ul, .prose li > ol { margin: .3rem 0 0; }

.prose li > p { margin-bottom: .6rem; }

.prose ul > li::marker { color: var(--faint); }

.prose ol > li::marker { font: 13px var(--mono); color: var(--faint); }

.prose li.task { list-style: none; margin-left: -1.4rem; }

.prose li.task input { margin: 0 .5rem 0 0; accent-color: var(--ink); vertical-align: -.1em; }

.prose hr { height: 1px; margin: 2.4rem 0; border: 0; background: var(--rule); }

.prose blockquote { margin: 0 0 1.2rem; padding: .05rem 0 .05rem 1.15rem; border-left: 2px solid var(--rule-2); color: var(--dim); }

.prose blockquote > :last-child, .prose .callout > :last-child { margin-bottom: 0; }

.prose code {
  padding: .14em .34em;
  border-radius: 3px;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .85em;
}

.prose dl { margin: 0 0 1.2rem; }

.prose dt { margin-top: 1rem; font-weight: 650; color: var(--ink); }

.prose dt:first-child { margin-top: 0; }

.prose dd { margin: .15rem 0 0 2rem; }

/* callouts */

.callout {
  margin: 0 0 1.35rem;
  padding: .1rem 0 .1rem 1.15rem;
  border-left: 2px solid var(--note);
  font-size: 16px;
}

.callout .label {
  margin: 0 0 .15rem;
  font: 650 11.5px/1.6 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--note);
}

.callout.tip { border-color: var(--tip); }
.callout.tip .label { color: var(--tip); }
.callout.important { border-color: var(--important); }
.callout.important .label { color: var(--important); }
.callout.warning { border-color: var(--warning); }
.callout.warning .label { color: var(--warning); }
.callout.caution { border-color: var(--caution); }
.callout.caution .label { color: var(--caution); }

/* code */

/* a block of code is a panel of its own, its language and file in a bar across the top */
.code {
  margin: 0 0 1.45rem;
  border: 1px solid var(--code-rule);
  border-radius: 7px;
  background: var(--code-bg);
  overflow: hidden;
}

.code .bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .42rem .95rem;
  border-bottom: 1px solid var(--code-rule);
  background: var(--code-bar);
  font: 11.5px/1.5 var(--mono);
  color: var(--faint);
}

.code .bar .file { color: var(--code-ink); font-weight: 550; }

.code .bar .lang { text-transform: lowercase; }

.code .copy {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font: 11.5px var(--mono);
  cursor: pointer;
}

.code .copy:hover { color: var(--link); }

.code pre { margin: 0; padding: .85rem .95rem .95rem; overflow-x: auto; font: 13.5px/1.65 var(--mono); tab-size: 4; }

.code code { padding: 0; border-radius: 0; background: none; font: inherit; color: var(--code-ink); }

/* what md.js marks: keywords, strings and what is inside them, comments, numbers and constants, functions,
 * types, annotations, the preprocessor, and in formats keys, tags and attributes */
.code .k { color: var(--c-kw); }
.code .s { color: var(--c-str); }
.code .e { color: var(--c-esc); font-weight: 600; }
.code .v { color: var(--c-var); }
.code .c { color: var(--c-cm); font-style: italic; }
.code .n, .code .o { color: var(--c-num); }
.code .f { color: var(--c-fn); }
.code .t { color: var(--c-ty); }
.code .a { color: var(--c-an); }
.code .p { color: var(--c-pp); }
.code .pr { color: var(--c-pr); }
.code .tg { color: var(--c-tg); }
.code .at { color: var(--c-at); }
.code .da, .code .dd, .code .dh { display: inline-block; min-width: 100%; }
.code .da { background: var(--add); }
.code .dd { background: var(--del); }
.code .dh { color: var(--c-ty); }
.code .dm { color: var(--faint); }

/* tables */

.prose .table { margin: 0 0 1.45rem; overflow-x: auto; }

.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }

.prose th {
  padding: .5rem 1.2rem .5rem 0;
  border-bottom: 1px solid var(--rule-2);
  text-align: left;
  vertical-align: bottom;
  font: 600 11.5px/1.4 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--dim);
}

.prose td { padding: .55rem 1.2rem .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

.prose th:last-child, .prose td:last-child { padding-right: 0; }

.prose th.c, .prose td.c { text-align: center; }

.prose th.r, .prose td.r { text-align: right; }

/* pictures and videos */

.prose figure { margin: 2rem 0 2.1rem; }

.prose figure img, .prose figure video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  background: var(--wash);
}

.prose figure img {
  cursor: zoom-in;
  outline: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  outline-offset: -1px;
}

.prose figure video { width: 100%; background: #000; }

.prose p img { max-width: 100%; vertical-align: middle; }

.prose .pending {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  max-height: 14rem;
  border: 1px dashed var(--rule-2);
  border-radius: 3px;
  font: 12.5px var(--mono);
  color: var(--faint);
}

.prose [id] { scroll-margin-top: calc(var(--bar) + 1.25rem); }

.prose figcaption { margin-top: .7rem; font: 12.5px/1.6 var(--mono); color: var(--dim); }

.prose figure.captioned { counter-increment: fig; }

.prose figure.captioned figcaption::before {
  content: "Fig. " counter(fig) "   ";
  white-space: pre;
  font-weight: 600;
  color: var(--ink);
}

.prose .gallery { display: grid; gap: .8rem; margin: 2rem 0 2.1rem; }

.prose .gallery.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.prose .gallery.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prose .gallery figure { margin: 0; }

.prose .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.prose .gallery figcaption { margin-top: .45rem; font-size: 11.5px; }

/* footnotes */

.prose sup.fn { margin-left: .08em; font: 600 .68em/0 var(--mono); }

.prose sup.fn a { padding: 0 .1em; text-decoration: none; }

.prose ol.notes { font-size: .93rem; color: var(--dim); }

.prose ol.notes .back { margin-left: .2rem; text-decoration: none; font-family: var(--mono); }

.prose .missing { color: var(--faint); font-style: italic; }

/* HTML of the article's own, kept in a box of its own: whatever it does with margins and sizes stays inside */
.prose .html { margin: 0 0 1.2rem; overflow: hidden; }

.prose .html > :last-child { margin-bottom: 0; }

/* the commands on mcp(7), and its tools */
.policy pre.cmdline {
  margin: .4rem 0 1.1rem;
  padding: .7rem .95rem;
  border: 1px solid var(--code-rule);
  border-radius: 7px;
  background: var(--code-bg);
  overflow-x: auto;
  font: 13px/1.6 var(--mono);
  color: var(--code-ink);
}

.policy pre.cmdline code { padding: 0; background: none; font: inherit; color: inherit; }

.policy dl.tooling { margin: 0 0 1rem; }

.policy dl.tooling dt { margin-top: .9rem; font: 650 13px/1.5 var(--mono); color: var(--ink); }

.policy dl.tooling dd { margin: .2rem 0 0; }

.flash { animation: flash 1.6s ease-out; }

@keyframes flash { from { background: var(--mark); } to { background: transparent; } }

/* ---- a picture, large ------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: appear .14s ease-out;
}

@keyframes appear { from { opacity: 0; } }

.lightbox figure { display: grid; place-items: center; min-height: 0; margin: 0; padding: 2.5rem 2.5rem .5rem; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: var(--shadow);
  cursor: zoom-out;
}

.lightbox .lbbar {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: .9rem 1.5rem 1.2rem;
  font: 12.5px/1.5 var(--mono);
  color: var(--dim);
}

.lightbox .what { flex: 1; min-width: 0; color: var(--text); }

html.locked { overflow: hidden; }

/* ---- the editor ------------------------------------------------------ */

.desk { display: flex; flex-direction: column; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); }

.deskhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  padding: 1.15rem 1.5rem .9rem;
  border-bottom: 1px solid var(--rule);
}

#title {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: 700 1.8rem/1.2 var(--sans);
  letter-spacing: -.028em;
  color: var(--ink);
}

#title::placeholder { color: var(--rule-2); }

#title:focus { outline: none; }

.sub { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: .6rem; font: 12.5px var(--mono); color: var(--faint); }

.sub label { display: flex; align-items: baseline; gap: .55rem; }

.sub input {
  width: 13rem;
  padding: .15rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font: 12.5px var(--mono);
}

.sub input:focus { outline: none; border-bottom-color: var(--ink); }

.sub input::placeholder { color: var(--rule-2); }

.deskactions { display: flex; align-items: center; gap: .6rem; }

.btn {
  padding: .45rem .9rem;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: none;
  color: var(--ink);
  font: 12.5px var(--mono);
  cursor: pointer;
}

.btn:hover { border-color: var(--ink); }

.btn.on { background: var(--wash); }

.btn.primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn.primary:hover { opacity: .86; }

.btn:disabled { opacity: .45; cursor: default; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  padding: .3rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  font: 12.5px var(--mono);
}

.toolbar button {
  padding: .3rem .5rem;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
}

.toolbar button:hover { background: var(--wash); color: var(--ink); }

.toolbar .sep { width: 1px; height: 14px; margin: 0 .35rem; background: var(--rule); }

.toolbar .hint { margin-left: auto; color: var(--faint); }

.fontpick { display: inline-flex; align-items: center; gap: .1rem; padding-left: .5rem; color: var(--dim); }

.fontpick select {
  field-sizing: content;
  padding: .3rem .2rem;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
}

.fontpick select:hover { background: var(--wash); color: var(--ink); }

.split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }

.split.solo { grid-template-columns: 1fr; }

.split.solo .preview { display: none; }

.pane { position: relative; min-width: 0; overflow: auto; }

#body {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1.4rem 1.6rem 45vh;
  border: 0;
  outline: none;
  resize: none;
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--ink);
  font: 14px/1.75 var(--mono);
  tab-size: 2;
}

/* What is written lies over the ink, a layer app.js draws with the same text in the same type, so its
 * lines wrap where the textarea's do. It shows the structure while writing - headings, code, quotes - by
 * colouring only what is behind the text: the text, the caret and the selection stay the textarea's own,
 * and a frame late it hides nothing. Nothing in it may change the size of a letter or a line. */
.pane.source { background: var(--paper); }

.ink { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.ink > div { white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; color: transparent; }

/* a marked line runs the whole width, into the textarea's padding, with its text where it was */
.ink .h1, .ink .h2, .ink .h3, .ink .h4, .ink .fence, .ink .incode, .ink .quote {
  margin: 0 calc(-1 * var(--pr)) 0 calc(-1 * var(--pl));
  padding: 0 var(--pr) 0 var(--pl);
}

.ink .h1, .ink .h2 { background: color-mix(in srgb, var(--accent) 11%, transparent); box-shadow: inset 3px 0 0 var(--accent); }

.ink .h3 { background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }

.ink .h4 { background: color-mix(in srgb, var(--accent) 3.5%, transparent); }

.ink .fence, .ink .incode { background: var(--wash); }

.ink .fence { box-shadow: inset 3px 0 0 var(--rule-2); }

.ink .quote { box-shadow: inset 3px 0 0 var(--rule-2); }

.statusbar .where { min-width: 0; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }

.preview { padding: 1.4rem 1.9rem 40vh; border-left: 1px solid var(--rule); }

.preview .prose { --indent: 2.75rem; --measure: 48rem; font-size: 16px; }

.preview .prose > h1, .preview .prose > h2 { margin-top: 2.9rem; }

/* ---- the font of an article ------------------------------------------ */

/* Chosen in the editor. Only what is set in --sans follows it: the title and the text of the article,
 * neither the furniture of the page nor its code. The files are in fonts/faces.css. */

[data-font="inter"] { --sans: "Inter Variable", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif; }
[data-font="plex"] { --sans: "IBM Plex Sans Variable", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif; }
[data-font="source-serif"] { --sans: "Source Serif 4 Variable", Georgia, Cambria, "Times New Roman", serif; }
[data-font="literata"] { --sans: "Literata Variable", Georgia, Cambria, "Times New Roman", serif; }
[data-font="stix"] { --sans: "STIX Two Text Variable", "Times New Roman", Times, serif; }
[data-font="geist-mono"] { --sans: var(--mono); }
[data-font="jetbrains-mono"] { --sans: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* a monospaced text reads large and STIX small at the size the others are set in */
.prose[data-font="geist-mono"], .prose[data-font="jetbrains-mono"] { font-size: 15px; }
.prose[data-font="stix"] { font-size: 18px; }

/* the title's tight tracking is for a sans; a monospaced title takes up a lot of room */
.head[data-font="source-serif"] h1, .head[data-font="literata"] h1, .head[data-font="stix"] h1 { letter-spacing: -.012em; }
.head[data-font="geist-mono"] h1, .head[data-font="jetbrains-mono"] h1 { font-size: min(2.1rem, 6.5vw); letter-spacing: -.04em; }

/* left to the site's own font, what is being written stays in the editor's mono */
#body[data-font] { font-family: var(--sans); font-size: 16px; line-height: 1.7; }
#body[data-font="geist-mono"], #body[data-font="jetbrains-mono"] { font-size: 14px; line-height: 1.75; }

.desk.dropping .pane:first-child::after {
  content: "drop to upload";
  position: absolute;
  z-index: 2;
  inset: .75rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--ink);
  border-radius: 4px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  font: 13px var(--mono);
  color: var(--ink);
  pointer-events: none;
}

.statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem 1.25rem;
  padding: .45rem 1.5rem;
  border-top: 1px solid var(--rule);
  font: 12px/1.5 var(--mono);
  color: var(--faint);
}

.statusbar .busy { color: var(--ink); }

.statusbar .saved { margin-left: auto; }

.problem { color: var(--caution); }

.slash {
  position: absolute;
  z-index: 40;
  min-width: 15.5rem;
  padding: .3rem;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font: 13px var(--sans);
}

.slash div {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: .36rem .55rem;
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
}

.slash div small { margin-left: auto; font: 11.5px var(--mono); color: var(--faint); }

.slash div.on { background: var(--wash); color: var(--ink); }

/* ---- narrower screens ------------------------------------------------ */

@media (max-width: 1080px) {
  .shelf { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shelfside { position: static; padding-left: var(--indent); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc.side { display: none; }
  .toc.inline { display: block; }
}

@media (max-width: 760px) {
  :root { --indent: 0rem; }

  .page { padding: 1rem 1rem 2.5rem; }
  .crumbs { gap: .8rem; padding: 0 1rem; }
  .tools { gap: .9rem; }
  .find input { width: 6.5rem; padding-right: .5rem; }
  .find input:focus { width: 9.5rem; }
  .find kbd { display: none; }

  .hdr .mid, .ftr .mid { display: none; }

  .intro h1 { font-size: 2.1rem; }
  .head h1 { font-size: 1.9rem; }
  .head { margin-top: 2rem; }
  .sh, .prose > h1, .prose > h2 { margin-top: 2.25rem; }

  .entry { grid-template-columns: minmax(0, 1fr) auto; }
  .entry time { grid-column: 1 / -1; line-height: 1.6; }
  .thumb { width: 5.25rem; margin-left: 1rem; }

  .prose { font-size: 16.5px; }
  .toc.inline { margin-top: -1rem; }
  .prose .gallery.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .deskhead { grid-template-columns: 1fr; padding: 1rem; }
  .deskactions { flex-wrap: wrap; }
  .pledge { flex-basis: 100%; margin: 0 0 .3rem; white-space: normal; }
  .toolbar { padding: .3rem .6rem; }
  .toolbar .hint { display: none; }
  .sub input { width: 9.5rem; }
  #body { padding: 1rem 1rem 45vh; }
  .split { grid-template-columns: 1fr; }
  .preview { display: none; padding: 1rem 1rem 40vh; border-left: 0; }
  .split.showpreview .pane:first-child { display: none; }
  .split.showpreview .preview { display: block; }
  .statusbar { padding: .45rem 1rem; }
}

@media print {
  .crumbs, .toc, .sparkrow, .copy, .anchor, .keynote { display: none !important; }
  .page { max-width: none; padding: 0; }
  .piece { width: auto; min-width: 0; }
  .layout { display: block; }
  .prose a { color: inherit; }
}
