/* pi-daemon — the logbook.
   Paper, quad ruling and a red margin; ink drawings; red marks a commit, yellow highlighter marks
   live work, indigo is a protocol, ochre a worker process, green a settled answer. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 400 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Commit Mono"; src: url("fonts/commit-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f3eee1; --paper-3: #e8e0cb; --sheet: #fffdf7;
  --ink: #16181d; --ink-2: #33373f; --ink-3: #63676f; --rule: #d3c9b2; --rule-2: #a99f88;
  --grid: rgba(52, 100, 156, .085); --grid-2: rgba(52, 100, 156, .15);
  --red: #c23a28; --indigo: #2d4ca6; --ochre: #9a640c; --green: #2a7046; --crimson: #a51f37; --slate: #55647a;
  --yellow: #f2d24b; --hi: rgba(242, 210, 75, .78);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Commit Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 72rem; --gutter: 8.5rem; --gap: 3rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; color: var(--ink-2); font: 400 1.125rem/1.62 var(--serif); font-optical-sizing: auto;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  text-rendering: optimizeLegibility; font-synthesis: none;
}
::selection { background: var(--hi); color: var(--ink); }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
strong, b { color: var(--ink); font-weight: 650; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 20; padding: .5rem .8rem; background: var(--ink); color: var(--paper); font: 600 .9rem var(--display); }
.skip:focus { left: .5rem; }

/* ------------------------------------------------------------------ masthead */
.masthead { position: sticky; top: 0; z-index: 10; background: rgba(243, 238, 225, .94); backdrop-filter: blur(6px); border-bottom: 3px double var(--ink); }
.masthead-in { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; height: 3.6rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { width: 1.7rem; height: 1.7rem; }
.brand b { font: 850 1.38rem/1 var(--display); font-stretch: 118%; letter-spacing: -.02em; }
.brand i { font: 400 .68rem/1 var(--mono); font-style: normal; color: var(--red); border: 1.5px solid var(--red); padding: .16rem .3rem .12rem; transform: rotate(-4deg); }
.masthead nav { display: flex; gap: .2rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a { display: flex; align-items: baseline; gap: .35rem; padding: .5rem .55rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  font: 650 .8rem/1 var(--display); font-stretch: 88%; letter-spacing: .07em; text-transform: uppercase; }
.masthead nav a span { font: 400 .66rem/1 var(--mono); letter-spacing: 0; color: var(--ink-3); }
.masthead nav a:hover { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.masthead nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px var(--red); }
.masthead nav a[aria-current="page"] span { color: var(--red); }

/* --------------------------------------------------------------------- frame */
.log { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); column-gap: var(--gap); }
.log::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(1.5rem + var(--gutter) + var(--gap) / 2 - 2px);
  border-left: 1px solid rgba(194, 58, 40, .75); border-right: 1px solid rgba(194, 58, 40, .4); width: 4px; pointer-events: none; }
.log > * { grid-column: 2; min-width: 0; }

.folio { position: relative; padding: 4.2rem 0 1.4rem; }
.folio .log-no { position: absolute; left: calc(-1 * (var(--gutter) + var(--gap))); top: 4.1rem; width: var(--gutter); text-align: right;
  font: 900 4.6rem/.8 var(--display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px var(--red); letter-spacing: -.04em; }
.kicker { margin: 0 0 1rem; font: 700 .78rem/1 var(--display); font-stretch: 82%; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
h1 { margin: 0; max-width: 17ch; color: var(--ink); font: 820 clamp(2.5rem, 6vw, 4.7rem)/.98 var(--display); font-stretch: 112%; letter-spacing: -.028em; }
h1 em, .hl { font-family: var(--serif); font-style: italic; font-weight: 500; font-stretch: 100%; letter-spacing: -.01em;
  background: linear-gradient(transparent 56%, var(--hi) 56%, var(--hi) 90%, transparent 90%); padding: 0 .06em; }
.lede { margin: 1.5rem 0 0; max-width: 40rem; font-size: 1.28rem; line-height: 1.55; color: var(--ink-2); }

/* contents: a logbook's index with dot leaders */
.log-index { margin: 2.2rem 0 .5rem; padding: .9rem 0 1rem; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.log-index > p { margin: 0 0 .5rem; font: 700 .72rem/1 var(--display); font-stretch: 82%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.log-index ol, .log-index > ul { columns: 2; column-gap: 3rem; margin: 0; padding: 0; list-style: none; }
.log-index li { break-inside: avoid; }
.log-index a { display: flex; align-items: baseline; gap: .5rem; padding: .16rem 0; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.3; }
.log-index a::after { content: ""; flex: 1; order: 1; border-bottom: 1.5px dotted var(--rule-2); transform: translateY(-.25em); }
.log-index a span { order: 2; font: 400 .8rem/1 var(--mono); color: var(--ink-3); }
.log-index a:hover { color: var(--red); }
.log-index a.here span { color: var(--red); }
.log-index ul ul { margin: 0 0 .2rem .9rem; padding: 0; list-style: none; }
.log-index ul ul a { font-size: .9rem; color: var(--ink-2); }
.log-index ul ul a::after, .ref .log-index a::after { display: none; }

/* --------------------------------------------------------------------- entries */
.entry { position: relative; padding: 3.4rem 0 1.2rem; border-top: 1px solid var(--ink); }
.entry:first-of-type { border-top: 0; }
.entry::before { content: ""; position: absolute; top: 3.95rem; left: calc(-1 * var(--gap) / 2 - 8px); width: 15px; height: 3px; background: var(--red); }
.entry > header { margin-bottom: 1.3rem; }
.entry-no { position: absolute; top: 3.35rem; left: calc(-1 * (var(--gutter) + var(--gap))); width: var(--gutter); margin: 0; text-align: right;
  font: 700 .7rem/1.25 var(--display); font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.entry-no b { display: block; margin-bottom: .3rem; font: 850 1.9rem/1 var(--display); font-stretch: 110%; letter-spacing: -.02em; color: var(--ink); }
h2 { margin: 0; max-width: 26ch; color: var(--ink); font: 760 clamp(1.65rem, 2.8vw, 2.3rem)/1.08 var(--display); font-stretch: 102%; letter-spacing: -.016em; }
h3 { margin: 2.2rem 0 .6rem; color: var(--ink); font: 720 1.2rem/1.25 var(--display); font-stretch: 96%; letter-spacing: -.005em; }
h4 { margin: 1.6rem 0 .4rem; color: var(--ink); font: 700 .8rem/1.3 var(--display); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; }
.prose p, .prose li, .entry > p { max-width: 42rem; }
.prose p, .entry > p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin: .3rem 0; }
.prose li::marker { color: var(--red); }
.more { font: 600 .92rem var(--display); font-stretch: 92%; }
.more a::after { content: " →"; }

code { font: 400 .86em/1.4 var(--mono); }
:not(pre) > code { padding: .08em .32em; background: rgba(232, 224, 203, .85); border: 1px solid var(--rule); color: var(--ink); overflow-wrap: break-word; }
pre { margin: 1.3rem 0 1.5rem; padding: 1rem 1.2rem; overflow-x: auto; background: #1b1e24; color: #ece6d6; border-left: 4px solid var(--red);
  font: 400 .9rem/1.62 var(--mono); tab-size: 2; box-shadow: 5px 5px 0 rgba(22, 24, 29, .12); }
pre code { font: inherit; }
pre .c { color: #969ca6; }
pre .p { color: var(--yellow); }
pre .s { color: #a8d3a0; }
kbd { display: inline-block; min-width: 1.5em; padding: .04em .36em; border: 1px solid var(--ink-3); border-bottom-width: 2px; background: var(--sheet); color: var(--ink); font: 400 .78em/1.4 var(--mono); text-align: center; }

/* cards: short facts, each under a heavy rule */
.cards { list-style: none; margin: 1.8rem 0 .6rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2.2rem; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards li { padding-top: .75rem; border-top: 3px solid var(--ink); font-size: 1rem; line-height: 1.55; }
.cards b { display: block; margin-bottom: .3rem; font: 720 1.05rem/1.25 var(--display); font-stretch: 96%; }
.cards li > code:first-child { display: inline-block; margin-bottom: .35rem; }
.cards li > a:first-child { color: var(--ink); text-decoration: none; }
.cards li > a:first-child:hover b { color: var(--red); }

/* callouts */
.note, .caution { margin: 1.6rem 0; max-width: 46rem; padding: .95rem 1.15rem; font-size: 1rem; }
.note { background: rgba(242, 210, 75, .3); border-left: 5px solid #ddb722; }
.caution { background: rgba(194, 58, 40, .07); border-left: 5px solid var(--red); }
.note > b:first-child, .caution > b:first-child { display: block; margin-bottom: .25rem; font: 750 .74rem/1.2 var(--display); font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase; }
.note p, .caution p { margin: 0; }

/* ledger tables */
.ledger-wrap { margin: 1.7rem 0; overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ledger { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.45; }
.ledger th, .ledger td { padding: .55rem .9rem .55rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ledger tr:last-child > * { border-bottom: 0; }
.ledger thead th { padding-top: .7rem; border-bottom: 1px solid var(--ink); color: var(--ink-3); font: 700 .7rem/1.2 var(--display); font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ledger tbody th { color: var(--ink); font: 650 .95rem/1.4 var(--display); font-stretch: 96%; }
.ledger tbody tr:nth-child(even) { background: rgba(255, 253, 247, .55); }
.ledger td.num, .ledger th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .y, .ledger .n, .ledger .p { white-space: nowrap; }
.ledger .y::before { content: "✓ "; color: var(--green); font-weight: 700; }
.ledger .n::before { content: "✕ "; color: var(--crimson); font-weight: 700; }
.ledger .p::before { content: "◐ "; color: var(--ochre); }

/* ------------------------------------------------------------------- figures */
.sheet { margin: 2rem 0 2.3rem; background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 rgba(22, 24, 29, .11); }
.sheet .fig-body { overflow-x: auto; padding: 1.1rem 1.1rem .9rem; }
.sheet .fig-body > svg { min-width: var(--fig-min, 0); width: 100%; }
.sheet figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-top: 1.5px solid var(--ink); }
.sheet figcaption > * { padding: .55rem .85rem; }
.fig-no { display: flex; align-items: center; background: var(--ink); color: var(--sheet); font: 750 .72rem/1 var(--display); font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sheet figcaption > span { font: italic 400 .98rem/1.45 var(--serif); color: var(--ink-2); }
.sheet figcaption::after { content: "pi-daemon"; display: flex; align-items: center; padding: 0 .85rem; border-left: 1.5px solid var(--ink); font: 400 .68rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.sheet[data-scrolls] .fig-body { background: linear-gradient(90deg, transparent 92%, rgba(22, 24, 29, .05)); }
.sheet[data-scrolls] figcaption > span::before { content: "↔ scroll · "; font: 400 .74rem var(--mono); font-style: normal; color: var(--red); }

/* drawing language */
.dg { display: block; height: auto; font-family: var(--display); font-stretch: 94%; word-spacing: .14em; }
.dg .k-ink, .dg .k-store { color: var(--ink); } .dg .k-server { color: #24365c; } .dg .k-worker { color: var(--ochre); }
.dg .k-proto { color: var(--indigo); } .dg .k-commit { color: var(--red); } .dg .k-live { color: #8f7200; }
.dg .k-ok { color: var(--green); } .dg .k-err { color: var(--crimson); } .dg .k-app { color: var(--slate); } .dg .k-muted { color: var(--ink-3); }
.dg .node { fill: var(--sheet); stroke: currentColor; stroke-width: 1.5; }
.dg .node.solid { fill: currentColor; }
.dg .node.ghost { stroke-dasharray: 4 3; }
.dg .shadow { fill: currentColor; opacity: .16; }
.dg .live-fill { fill: var(--yellow); }
.dg .band { fill: currentColor; }
.dg .mark { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg .tick { stroke: currentColor; stroke-width: 2.5; }
.dg .cut { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dg .edge { fill: none; stroke: currentColor; stroke-width: 1.5; }
.dg .edge.dash { stroke-dasharray: 6 4; }
.dg .edge.dot { stroke-dasharray: 1 4.5; stroke-linecap: round; stroke-width: 2; }
.dg .tip { fill: currentColor; }
.dg .tip.open { fill: none; stroke: currentColor; stroke-width: 1.6; }
.dg text { fill: var(--ink); }
.dg .lbl { font-weight: 650; fill: var(--ink); }
.dg .sub { font-weight: 450; fill: var(--ink-2); }
.dg .m { font-family: var(--mono); font-stretch: 100%; font-weight: 400; }
.dg .cap { font-weight: 700; font-stretch: 80%; letter-spacing: .1em; fill: currentColor; }
.dg .elabel { font-weight: 620; fill: currentColor; }
.dg .k-muted .elabel { fill: var(--ink-2); }
.dg .lab-bg { fill: var(--sheet); }
.dg .halo { paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.dg .grp { fill: none; stroke: currentColor; stroke-width: 1.2; }
.dg .grp.dash { stroke-dasharray: 6 4; }
.dg .grp-in { fill: var(--sheet); }
.dg .hatch-l { stroke: currentColor; stroke-width: 1.3; opacity: .55; }
.dg .frame { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 5 4; }
.dg .frame-tag { fill: currentColor; }
.dg .frame-tag-t { fill: var(--sheet); font-weight: 750; font-stretch: 82%; letter-spacing: .1em; }
.dg .note { fill: #f8eaa8; }
.dg .note-t { font-weight: 500; fill: var(--ink); }
.dg .badge { fill: var(--ink); }
.dg .badge-t { fill: var(--sheet); font-weight: 700; font-family: var(--mono); font-stretch: 100%; }
.dg .life { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 2 5; }
.dg .window { fill: url(#none); }
.dg .rule { stroke: var(--ink); stroke-width: 1.5; }
.dg .rule.thin { stroke-width: 1; stroke: var(--rule-2); }
.dg .shade { fill: currentColor; opacity: .1; }
.dg .paper { fill: var(--sheet); }

/* key: the glyph legend */
.key { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 1rem 0 0; padding: 0; list-style: none; font: 500 .86rem/1.3 var(--display); font-stretch: 92%; color: var(--ink-2); }
.key li { display: flex; align-items: center; gap: .45rem; }
.key svg { width: 1.6rem; height: 1.6rem; flex: none; }

/* ------------------------------------------------------------------ overview */
.hero { padding-bottom: .5rem; }
.hero h1 { max-width: 15ch; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2.2rem 0 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.specs div { padding: .9rem 1rem .95rem 0; }
.specs div + div { padding-left: 1rem; border-left: 1px solid var(--rule-2); }
.specs dt { font: 850 2.1rem/1 var(--display); font-stretch: 110%; color: var(--ink); letter-spacing: -.02em; }
.specs dd { margin: .4rem 0 0; font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.steps { counter-reset: step; list-style: none; margin: 1.6rem 0; padding: 0; }
.steps > li { position: relative; padding: 0 0 1.4rem 3rem; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  background: var(--ink); color: var(--sheet); font: 800 .95rem/1 var(--display); }
.steps h3 { margin: 0 0 .4rem; }
.steps pre { margin: .6rem 0 .5rem; }

/* screenshots */
.shot { margin: 2rem 0; background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 rgba(22, 24, 29, .11); }
.shot img { display: block; width: 100%; height: auto; border-bottom: 1.5px solid var(--ink); }
.shot figcaption { padding: .55rem .85rem; font: italic 400 .95rem/1.45 var(--serif); color: var(--ink-2); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.shots .shot { margin: 0; }

/* ------------------------------------------------------------------ reference */
.ref .ref-body { padding: 1rem 0 2rem; }
.ref-body h2 { margin: 3rem 0 1rem; padding-top: 2.2rem; border-top: 1px solid var(--ink); max-width: none; }
.ref-body h3 { margin-top: 2rem; }
.ref-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.4rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-size: .96rem; }
.ref-body th, .ref-body td { padding: .5rem .9rem .5rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ref-body thead th { font: 700 .7rem/1.2 var(--display); font-stretch: 82%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.ref-body blockquote { margin: 1.4rem 0; padding: .9rem 1.1rem; background: rgba(242, 210, 75, .3); border-left: 5px solid #ddb722; }
.ref-body blockquote p { margin: 0; }

/* -------------------------------------------------------------------- 404 */
.lost { padding: 6rem 0 4rem; }
.lost pre { max-width: 36rem; }

/* ----------------------------------------------------------------- colophon */
.colophon { margin-top: 5rem; border-top: 3px double var(--ink); background: rgba(232, 224, 203, .55); }
.colophon-in { max-width: var(--wrap); margin: 0 auto; padding: 2.4rem 1.5rem 2rem; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.colophon .def { font-size: 1.02rem; line-height: 1.5; max-width: 26rem; }
.colophon dfn { display: block; margin-bottom: .35rem; font: 850 1.6rem/1 var(--display); font-style: normal; font-stretch: 118%; letter-spacing: -.02em; color: var(--ink); }
.colophon .def i { color: var(--ink-3); }
.colophon nav p { margin: 0 0 .6rem; font: 700 .7rem/1 var(--display); font-stretch: 82%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li { margin: .15rem 0; }
.colophon nav a { color: var(--ink); text-decoration: none; font-size: .98rem; }
.colophon nav a:hover { color: var(--red); }
.colophon small { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--rule-2); font: 400 .74rem/1.5 var(--mono); color: var(--ink-3); }
.colophon small a { color: inherit; }

/* ----------------------------------------------------------------- narrow */
@media (max-width: 1000px) {
  :root { --gutter: 0rem; --gap: 0rem; }
  .log { display: block; padding-left: 1.75rem; }
  .log::before { left: .7rem; }
  .folio .log-no { position: static; display: block; width: auto; margin-bottom: .8rem; text-align: left; font-size: 3rem; }
  .entry::before { left: -1.35rem; top: 3.5rem; width: 12px; }
  .entry-no { position: static; width: auto; margin: 0 0 .55rem; text-align: left; display: flex; align-items: baseline; gap: .55rem; }
  .entry-no b { display: inline; margin: 0; font-size: 1.15rem; }
}
@media (max-width: 760px) {
  body { font-size: 1.06rem; background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
  .masthead-in { gap: 1rem; padding: 0 1rem; }
  .brand i { display: none; }
  .log { padding-right: 1rem; }
  .folio { padding-top: 2.6rem; }
  .lede { font-size: 1.14rem; }
  .log-index ol, .log-index > ul { columns: 1; }
  .cards, .cards.three, .shots { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
  .specs dt { font-size: 1.6rem; }
  .specs dd { font-size: .86rem; }
  .sheet figcaption { grid-template-columns: minmax(0, 1fr); }
  .sheet figcaption::after { display: none; }
  .fig-no { padding: .45rem .85rem; }
  .colophon-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .colophon .def { grid-column: 1 / -1; }
  pre { font-size: .82rem; padding: .85rem .95rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .dg .flow { animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -22; } }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .masthead { position: static; backdrop-filter: none; background: #fff; }
  .masthead nav, .skip, .log-index { display: none; }
  .log::before { display: none; }
  .sheet, .shot, pre { box-shadow: none; break-inside: avoid; }
  .sheet .fig-body { overflow: visible; }
  .sheet .fig-body > svg { min-width: 0; }
  .sheet[data-scrolls] figcaption > span::before { content: none; }
  pre { background: #f4f1ea; color: #16181d; border-left-color: var(--red); }
  pre .c { color: #63676f; }
  .entry { break-inside: auto; }
  a { color: inherit; }
  .colophon { background: none; }
}
