/* yap.madebybark.com
   - index/listing: shares the madebybark.com landing aesthetic
   - individual posts: continuous-form / tractor-feed dot-matrix printout
   Self-hosted Departure Mono (pixel), true-black, cyan links / red focus. */

@font-face{
  font-family:'Departure Mono';
  src:url('/fonts/DepartureMono-Regular.woff2') format('woff2');
  font-style:normal;
  font-weight:normal;
  font-display:swap;
}
@font-face{
  font-family:'GFY Kersti';
  src:url('/fonts/GFYKersti-Regular.otf') format('opentype');
  font-style:normal;
  font-weight:400;
  font-display:swap;
}

@property --body-leading{
  syntax:'<length>';
  inherits:true;
  initial-value:0px;
}

@property --body-row{
  syntax:'<length>';
  inherits:true;
  initial-value:0px;
}

:root{
  --bg:#000;         /* true black background */
  --sheet:#0d0d0d;   /* printout sheet surface */
  --fg:#e6e6e6;      /* body text */
  --head:#f5f5f5;    /* near-white — index headings */
  --dim:#6f6f6f;     /* secondary text / meta */
  --rule:#242424;    /* borders / rules */
  --cyan:#00bbbb;    /* cyan — signals "you can interact with this" */
  --red:#ff3b30;     /* red  — hover / keyboard-focus / active */
  --code-bg:#0e0e0e; /* near-black — code surfaces */
  /* Keep every text role on the same 1em type size. */
  --type-micro:1em;
  --type-small:1em;
  --type-base:1em;
  --type-large:1em;
  --type-xlarge:1em;
  --type-display:1em;
  --line-small:1.5em;
  --line-base:1.5em;
  --line-large:2.5em;
  --line-xlarge:5em;
  --line-display:10em;
  --tracking-ui:0em;
  --tracking-regular:.02em;
  --tracking-bold:-.035em;
  --tracking-meta:.08em;
  --tracking-key:.04em;
  /* One physical model: 10 CPI by 6 LPI on 9.5 x 11 inch fanfold stock.
     With Departure Mono at 1em, 1ch is one 0.1-inch character pitch.
     A printer row is therefore 10 / 6 character pitches high. */
  --print-pitch:1ch;
  --print-line:calc(var(--print-pitch) * 1.6666667);
  --prose-line:1.25em;
  --print-tracking:.02em;
  --sheet-columns:95;
  --machine-columns:80;
  --prose-columns:76;
  --sheet-width:calc(var(--print-pitch) * var(--sheet-columns));
  --machine-width:calc(var(--print-pitch) * var(--machine-columns));
  --prose-width:calc(var(--print-pitch) * var(--prose-columns));
  --outer-margin:calc((var(--sheet-width) - var(--machine-width)) / 2);
  --prose-gutter:calc((var(--machine-width) - var(--prose-width)) / 2);
  /* Tractor holes follow the visible text grid: one hole per three rows,
     with each centre landing on a row boundary. */
  --hole-pitch:calc(var(--prose-line) * 3);
  --hole-phase:calc(var(--prose-line) * 2);
  --form-length:calc(var(--print-line) * 66);
  --hole-size:calc(var(--print-pitch) * 1.56);
  --hole-inset:calc(var(--print-pitch) * 2.5);
  --tear-strip-width:calc(var(--print-pitch) * 5);
  --paper-scale:1;
  --scaled-paper-width:var(--sheet-width);
  --document-index-width:18em;
  --layout-gap:2em;
  --paragraph-gap:var(--prose-line);
  --section-gap:calc(var(--prose-line) * 3);
  --print-rule:calc(var(--print-pitch) * .1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{font-size:1em;font-synthesis:none}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:'Departure Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:var(--type-base);
  font-weight:400;
  line-height:var(--line-base);
  letter-spacing:var(--tracking-regular);
  padding:48px 20px;
}

/* interactive = cyan at rest, red on focus (hover / keyboard / active) */
a{color:var(--cyan);text-decoration:none}
a:hover,a:active{color:var(--red);text-decoration:underline}
a:focus-visible,:focus-visible{outline:1px solid var(--cyan);outline-offset:2px}

h1,h2,h3{color:var(--head);font-weight:700;letter-spacing:var(--tracking-bold)}
h1{font-size:var(--type-xlarge);line-height:var(--line-xlarge)}
h2{font-size:var(--type-large);line-height:var(--line-large)}
h3{font-size:var(--type-base);line-height:var(--line-base)}

/* ============================================================= INDEX / LIST */
.site-header{
  max-width:560px;margin:0 auto;
  padding:0 0 1.4rem;
  border-bottom:1px solid var(--rule);
}
.site-title{display:block;color:var(--cyan);font-size:var(--type-base);font-weight:700;line-height:var(--line-base);letter-spacing:var(--tracking-bold)}
.site-title:hover{color:var(--red);text-decoration:none}
.site-tagline{display:block;margin-top:.35rem;color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta)}

main{max-width:560px;margin:0 auto;padding:0 0 3rem}

.post-list{list-style:none;margin:1.8rem 0 0;border-top:1px solid var(--rule)}
.post-item{padding:.95rem 0;border-bottom:1px solid var(--rule)}
.post-link{color:var(--cyan);font-size:var(--type-base);font-weight:400;line-height:var(--line-base);letter-spacing:var(--tracking-ui)}
.post-link:hover{color:var(--red);font-weight:700;letter-spacing:var(--tracking-ui);text-decoration:none}
.post-meta{
  margin-top:.4rem;color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta);
  display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;
}
.sep{color:var(--dim);opacity:.7}
.tag{
  color:var(--dim);border:1px solid var(--rule);
  padding:.05rem .45rem;font-size:var(--type-small);font-weight:300;line-height:var(--line-small);text-transform:lowercase;letter-spacing:var(--tracking-meta);
}

.site-footer{
  max-width:560px;margin:2rem auto 0;padding:1.6rem 0 0;
  color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta);border-top:1px solid var(--rule);
}

/* ===================================================== POST — DOT-MATRIX PRINTOUT */
body.post-page{
  padding:2em 1em;font-size:16px;
  --body-row:var(--prose-line);
  --body-leading:calc(var(--prose-line) - 1em);
}
body.post-page ::selection{background:var(--red);color:var(--bg);text-shadow:none}
body.post-page ::-moz-selection{background:var(--red);color:var(--bg);text-shadow:none}
@media (max-width:1303px){body.post-page{font-size:15px}}
@media (max-width:900px){
  body.post-page{
    --sheet-width:calc(100vw - 2em);
    --outer-margin:5ch;
    --machine-width:calc(var(--sheet-width) - (var(--outer-margin) * 2));
    --prose-gutter:2ch;
    --prose-width:calc(var(--machine-width) - (var(--prose-gutter) * 2));
  }
}
@media (max-width:600px){
  body.post-page{
    font-size:14px;
    --prose-line:20px;
    --hole-pitch:calc(var(--prose-line) * 3);
    --hole-phase:calc(var(--prose-line) * 2);
    --paragraph-gap:var(--prose-line);
    --section-gap:calc(var(--prose-line) * 3);
  }
}
/* posts drive their own width via .shell — neutralize the index's <main> cap */
body.post-page main{max-width:none;margin:0;padding:0}

/* single centering context for the detached index and independent paper */
.shell{max-width:calc(var(--document-index-width) + var(--layout-gap) + var(--sheet-width));margin:0 auto}

.article-layout{
  display:grid;grid-template-columns:var(--document-index-width) minmax(0,var(--sheet-width));gap:var(--layout-gap);align-items:start;
}
.paper-column{
  width:var(--scaled-paper-width);
  min-width:0;
}
.document-index{min-width:0;align-self:stretch;background:transparent;border:0}
.document-index__inner{
  position:sticky;top:2em;max-height:calc(100vh - 4em);overflow:auto;padding-right:.5em;
  scrollbar-width:thin;scrollbar-color:var(--rule) transparent;
}
.document-index__title{
  max-height:0;overflow:hidden;margin:0;color:var(--red);font-size:2em;font-weight:700;
  line-height:calc(1em + var(--body-leading));letter-spacing:var(--tracking-bold);text-transform:uppercase;overflow-wrap:anywhere;opacity:0;
  transform:translateY(-.35em);transition:max-height .18s ease,margin .18s ease,opacity .18s ease,transform .18s ease;
}
.document-index.is-title-visible .document-index__title{
  max-height:12em;margin-bottom:.5em;opacity:1;transform:none;
}
.document-index__metadata{font-size:var(--type-base);font-weight:300;line-height:var(--line-base);letter-spacing:var(--tracking-meta)}
.document-index__metadata>div{display:grid;grid-template-columns:8em minmax(0,1fr);gap:.75em;margin-bottom:.25em}
.document-index__metadata dt{color:var(--dim)}
.document-index__metadata dd{min-width:0;color:var(--fg);overflow-wrap:anywhere}
.document-toc{margin-top:1em}
.document-index__label{margin-bottom:.45em;color:var(--dim);font-size:var(--type-base);font-weight:300;line-height:var(--line-base);letter-spacing:var(--tracking-meta)}
.document-toc__list{list-style:none}
.document-toc__list .document-toc__list{padding-left:1em}
.document-toc__item{margin:.2em 0}
.document-toc__link{
  display:grid;grid-template-columns:1em minmax(0,1fr);gap:.25em;color:var(--dim);
  font-size:var(--type-base);font-weight:300;line-height:var(--line-base);letter-spacing:var(--tracking-regular);
}
.document-toc__link:hover{color:var(--cyan);text-decoration:none}
.document-toc__marker{color:var(--red);opacity:0}
.document-toc__link.is-active{color:var(--fg)}
.document-toc__link.is-active .document-toc__marker{opacity:1}
.mobile-document-index{display:none}

.backline{margin:0 0 1em}
.backline a{color:var(--cyan)}
.backline a:hover{color:var(--red);text-decoration:none}

.sheet{
  width:var(--sheet-width);min-height:var(--form-length);zoom:var(--paper-scale);
  background:var(--sheet);
  display:grid;grid-template-columns:var(--outer-margin) var(--machine-width) var(--outer-margin);
  position:relative;isolation:isolate;
  --line-small:var(--prose-line);
  --line-base:var(--prose-line);
  --line-large:calc(var(--prose-line) * 2);
  --line-xlarge:calc(var(--prose-line) * 4);
}
.paper-geometry-pending .sheet{visibility:hidden}
/* tractor-feed holes: punch bg-coloured circles out of the sheet edges */
.feed{
  position:relative;z-index:1;
  background-image:radial-gradient(circle at var(--hole-inset) var(--hole-phase),var(--bg) 0 calc(var(--hole-size) * .5),transparent calc((var(--hole-size) * .5) + var(--print-rule)));
  background-size:100% var(--hole-pitch);background-repeat:repeat-y;
}
.feed::after{
  content:"";position:absolute;top:0;bottom:0;left:var(--tear-strip-width);
  border-left:var(--print-rule) dashed var(--rule);pointer-events:none;
}
.feed.right{
  background-image:radial-gradient(circle at calc(100% - var(--hole-inset)) var(--hole-phase),var(--bg) 0 calc(var(--hole-size) * .5),transparent calc((var(--hole-size) * .5) + var(--print-rule)));
}
.feed.right::after{left:auto;right:var(--tear-strip-width)}
/* min-width:0 lets the 1fr track shrink below its content's intrinsic width,
   so wide children (pre/table) scroll internally instead of widening the sheet
   and side-scrolling the whole page. */
.page{position:relative;z-index:auto;padding:calc(var(--prose-line) * 2) 0;min-width:0}

/* geometric heading hierarchy; markdown-ish # / ## / ### prefixes via CSS */
.post-page .post-title-frame,
.post-page .mobile-document-index,
.post-page .post-nav,
.post-page .meta{
  inline-size:var(--prose-width);max-inline-size:var(--prose-width);margin-inline:auto;
}
.post-page .post-title-frame{margin-bottom:var(--paragraph-gap)}
.post-page .post-title{
  inline-size:100%;max-inline-size:100%;color:var(--red);font-size:4em;font-weight:700;line-height:1.25;
  letter-spacing:var(--tracking-bold);text-transform:uppercase;overflow-wrap:anywhere;
}
.post-page .post-title::before{content:"# ";color:var(--dim)}

.post-page .meta{color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--prose-line);letter-spacing:var(--tracking-meta)}
.post-page hr.transmission-rule{
  height:var(--prose-line);border:0;margin:0;
  background:linear-gradient(to bottom,transparent 0 calc(50% - (var(--print-rule) * .5)),var(--rule) calc(50% - (var(--print-rule) * .5)) calc(50% + (var(--print-rule) * .5)),transparent calc(50% + (var(--print-rule) * .5)) 100%);
}
/* Perforations are editorial dividers, not pagination. The first separates
   Zola's title block from the writing; Markdown `---` creates the same cut. */
.post-page hr.paper-perforation,
.post-page .post-body > hr{
  position:relative;top:0!important;display:block;flex:none;width:var(--sheet-width);height:calc(var(--prose-line) * 6);border:0;pointer-events:none;
  background:repeating-linear-gradient(to right,var(--rule) 0 calc(var(--print-pitch) * 1.5),transparent calc(var(--print-pitch) * 1.5) calc(var(--print-pitch) * 2)) center / 100% var(--print-rule) no-repeat;
}
.post-page hr.paper-perforation{margin:0 0 0 calc(var(--outer-margin) * -1)}
.post-page .post-body > hr{margin:0 0 0 calc((var(--outer-margin) + var(--prose-gutter)) * -1)}
.post-page .post-body{
  inline-size:var(--prose-width);max-inline-size:var(--prose-width);margin-inline:auto;
  display:flex;flex-direction:column;align-items:stretch;
  font-size:var(--type-base);font-weight:400;line-height:var(--prose-line);letter-spacing:var(--print-tracking);
  text-align:left;text-wrap:wrap;overflow-wrap:normal;word-break:normal;hyphens:none;
}
.post-page .post-body h1,
.post-page .post-body h2,
.post-page .post-body h3{
  color:var(--red);font-weight:700;
  letter-spacing:var(--tracking-key);text-transform:uppercase;
  margin:var(--section-gap) 0 calc(var(--body-row) - var(--body-leading));overflow-wrap:anywhere;
}
.post-page .post-body h1{font-size:4em;line-height:calc(1em + var(--body-leading))}
.post-page .post-body h2{font-size:2em;line-height:calc(1em + var(--body-leading))}
.post-page .post-body h3{font-size:var(--type-base);line-height:calc(1em + var(--body-leading))}
.post-page .post-body :is(h1,h2,h3) + :is(h1,h2,h3){margin-top:0}
.post-page .post-body h2::before{content:"## ";color:var(--dim)}
.post-page .post-body h3::before{content:"### ";color:var(--dim)}
.post-page .post-body > *:has(+ hr){margin-bottom:0!important}
.post-page .post-body > hr + *{margin-top:0}
.post-page hr.paper-perforation,
.post-page .post-body > hr{margin-top:0!important;margin-bottom:0!important}
.post-page .post-body :is(h1,h2,h3,h4,h5,h6){scroll-margin-top:4em}
.post-page .post-body p{margin:0 0 var(--paragraph-gap);overflow-wrap:normal;word-break:normal;hyphens:none}
.post-page .post-body > *:has(+ p.prose-blank-row){margin-bottom:0!important}
.post-page .post-body > p.prose-blank-row{
  display:block;height:var(--prose-line);min-height:var(--prose-line);margin:0!important;padding:0;
  line-height:0;visibility:hidden;pointer-events:none;
}
.post-page .post-body a{text-decoration:none}
.post-page .post-body a,
.post-page .post-body code{overflow-wrap:anywhere}
.post-page .post-body a,
.post-page .post-body a:hover,
.post-page .post-body a:active,
.post-page .post-body a:focus{
  color:inherit;font:inherit;letter-spacing:inherit;text-decoration:none;background:none;
}
.post-page .post-body a:focus-visible{outline:0}
.post-page .post-body a:hover,
.post-page .post-body a:focus-visible{position:relative;z-index:4}
.post-page .post-body.has-human-link-layer{position:relative}
.human-link-ink{
  position:absolute;inset:0;z-index:3;display:block;width:100%;height:100%;overflow:visible;pointer-events:none;
}
.human-link-ink__group{
  opacity:1;
}
.human-link-ink__shadow{
  opacity:0;
  transition:opacity .24s ease-out
}
.human-link-ink__shadow--range{stroke:none;filter:none}
.human-link-ink__shadow--core{
  fill:#000;stroke:#000;stroke-width:4em;filter:blur(1.25em)
}
.human-link-ink__marginalia{opacity:0;transition:opacity .24s ease-out}
.human-link-ink__group.is-active .human-link-ink__shadow{opacity:1}
.human-link-ink__group.is-active .human-link-ink__shadow--core{opacity:1}
.human-link-ink__group.is-active .human-link-ink__marginalia{opacity:1}
.human-link-ink__note{
  fill:var(--cyan);font-family:'GFY Kersti',cursive;font-size:.8em;font-weight:400;letter-spacing:.015em;
  paint-order:stroke fill;stroke:color-mix(in srgb,var(--cyan) 20%,transparent);stroke-width:.018em;
}
.human-link-ink__stroke{
  fill:none;stroke:var(--cyan);stroke-width:.085em;stroke-linecap:round;stroke-linejoin:round;opacity:.9;
}
.human-link-ink__stroke--echo{stroke-width:.04em;opacity:.34}
.post-page a,
.post-page a:hover,
.post-page a:active{text-decoration:none}
.post-page .post-body strong:not(.quote-chat *){
  color:inherit;font-weight:400;letter-spacing:inherit;padding:.02em .13em .08em;margin:0 -.02em;
  background-image:
    linear-gradient(178.7deg,transparent 13%,color-mix(in srgb,var(--red) 38%,transparent) 14% 88%,transparent 89%),
    linear-gradient(181.2deg,transparent 24%,color-mix(in srgb,var(--red) 18%,transparent) 25% 91%,transparent 92%);
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
.post-page .post-body em{
  color:inherit;font-style:italic;text-decoration:none;background:none;padding:0;text-shadow:none;
}
.post-page .post-body :is(mark,u,ins,del){color:inherit;background:none;text-decoration:none}

.post-page .post-body ul{margin:0 0 var(--paragraph-gap);padding-left:3ch}
.post-page .post-body ol{margin:0 0 var(--paragraph-gap);padding-left:3ch}
.post-page .post-body li{margin:0}
.post-page .post-body li::marker{color:var(--dim)}

.post-page .post-body table{border-collapse:collapse;width:100%;margin:0 0 var(--paragraph-gap)}
.post-page .post-body th,
.post-page .post-body td{border:var(--print-rule) solid var(--rule);padding:.375em .625em;text-align:left;font-weight:400}
.post-page .post-body th{color:var(--dim)}

.post-page .post-body pre{
  border:0;outline:var(--print-rule) solid var(--rule);padding:var(--prose-line) var(--print-pitch);margin:0 0 var(--paragraph-gap);
  overflow-x:auto;max-width:100%;color:var(--fg);background:var(--code-bg);
}
.post-page .post-body code{font:inherit;background:none;padding:0}
.post-page .post-body pre code{background:none;padding:0}
.post-page .post-body blockquote{
  border:0;padding:0;color:inherit;background:transparent;margin:0 0 var(--paragraph-gap);text-align:center;
}
.post-page .post-body blockquote>*{margin-left:0}
.post-page .post-body blockquote>p{margin:var(--paragraph-gap) 0}

@media (min-width:601px) and (max-width:81.375rem){
  .post-page .post-body{max-width:var(--prose-width)}
}
@media (min-width:81.4375rem){.post-page .post-body{min-width:0;max-inline-size:var(--prose-width)}}
/* ---- quote shortcode: stacked chat bubbles ---- */
.quote-chat{
  --quote-fill:#807b76;
  --quote-text:#fff;
  margin:1.25em 0;
}
.quote-chat--teal{--quote-fill:#00e0e0;--quote-text:#000}
.quote-chat--red{--quote-fill:#ff3d33;--quote-text:#fff}
.quote-chat--orange{--quote-fill:#ffa024;--quote-text:#000}
.quote-chat--yellow{--quote-fill:#ffd138;--quote-text:#000}
.quote-chat--green{--quote-fill:#73ff4d;--quote-text:#000}
.quote-chat--mint{--quote-fill:#5cffd9;--quote-text:#000}
.quote-chat--blue{--quote-fill:#6b72ff;--quote-text:#fff}
.quote-chat--pink{--quote-fill:#ff7ae7;--quote-text:#000}
.quote-sender{
  margin:0 0 .25em;padding-left:.25em;color:var(--dim);
  font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta);text-transform:uppercase;
}
.quote-chat--right .quote-sender{padding:0 .25em 0 0;text-align:right}
.quote-messages{display:flex;flex-direction:column;gap:.25em}
.quote-row{display:flex;justify-content:flex-start}
.quote-bubble{
  max-width:82%;padding:.625em 1em;background:var(--quote-fill);color:var(--quote-text);
  border:0;border-radius:.25em 1.125em 1.125em .25em;font-size:var(--type-base);font-weight:400;line-height:var(--line-base);letter-spacing:var(--tracking-regular);overflow-wrap:anywhere;
}
.quote-row:first-child .quote-bubble{border-radius:1.125em 1.125em 1.125em .25em}
.quote-chat--right .quote-row{justify-content:flex-end}
.quote-chat--right .quote-bubble{border-radius:1.125em .25em .25em 1.125em}
.quote-chat--right .quote-row:first-child .quote-bubble{border-radius:1.125em 1.125em .25em 1.125em}
.post-page .post-body .quote-bubble p{margin:0}
.post-page .post-body .quote-bubble strong{color:inherit}
.post-page .post-body .quote-bubble a{color:inherit;text-decoration:none}
.post-page .post-body .quote-bubble a:hover{color:inherit;text-decoration:none}
@media (max-width:600px){
  .quote-bubble{max-width:85%;padding:.5625em .8125em}
}

/* ---- raw html embeds (iframe/video/etc. pasted straight into markdown) ---- */
.post-page .post-body img,
.post-page .post-body video{max-width:100%;height:auto;display:block;margin:var(--paragraph-gap) 0}
.post-page .post-body picture,
.post-page .post-body figure{max-inline-size:100%;box-sizing:border-box}
.post-page .post-body iframe,
.post-page .post-body embed,
.post-page .post-body object{max-width:100%;margin:var(--paragraph-gap) 0;border:0}
/* embeds that declare a fixed pixel width (YouTube's default share code, etc.)
   shrink to fit the column; wrap in .embed-16x9 for true aspect-ratio scaling */
.post-page .post-body .embed-16x9{position:relative;height:0;padding-bottom:56.25%;margin:var(--paragraph-gap) 0}
.post-page .post-body .embed-16x9 iframe{
  position:absolute;top:0;left:0;width:100%;height:100%;margin:0;
}

/* ---- filmstrip shortcode: true-scale 135 film fixed to the fanfold paper ---- */
.filmstrip{
  --film-gauge:8.6125em;
  --film-frame-width:8.858em;
  --film-frame-height:5.906em;
  --film-frame-advance:9.35em;
  --film-perf-width:.6875em;
  --film-perf-height:.4875em;
  --film-perf-pitch:1.16875em;
  --film-right-overhang:-3.4375em;
  --staple-crown:3em;
  --staple-wire:.125em;
  --film-scale:1;
  --film-mounted-gauge:var(--film-gauge);
  position:relative;z-index:3;isolation:isolate;width:100%;margin:var(--paragraph-gap) 0;
}
.filmstrip__strips{position:relative;z-index:2}
.filmstrip__mount{
  position:relative;width:100%;height:var(--film-mounted-gauge);
}
.filmstrip__mount + .filmstrip__mount{margin-top:calc(var(--print-pitch) * 1.8)}
.filmstrip__object{
  position:absolute;inset-block-start:0;inset-inline-end:var(--film-right-overhang);
  display:flex;width:calc(var(--film-frame-advance) * var(--film-frame-count));height:var(--film-gauge);
  background:#111111eb;border-block:var(--print-rule) solid #565656;
  box-shadow:calc(var(--print-pitch) * .3) calc(var(--print-pitch) * .3) calc(var(--print-pitch) * .35) #0007;
  transform:rotate(-1.2deg) scale(var(--film-scale));
  transform-origin:calc(100% - (var(--print-pitch) * 4.25)) 50%;
}
.filmstrip__exposure{
  position:relative;flex:0 0 var(--film-frame-advance);height:var(--film-gauge);
}
.filmstrip__window{
  position:absolute;inset-block-start:calc((var(--film-gauge) - var(--film-frame-height)) / 2);
  inset-inline-start:calc((var(--film-frame-advance) - var(--film-frame-width)) / 2);
  width:var(--film-frame-width);height:var(--film-frame-height);overflow:hidden;
  border:var(--print-rule) solid #6a6a6a;background:#151515;
}
.post-page .post-body .filmstrip__window img{
  display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;
  filter:invert(1) contrast(1.45);mix-blend-mode:multiply;opacity:.8;
}
.filmstrip__perforations{
  position:absolute;inset-inline-start:calc((var(--film-frame-advance) - var(--film-frame-width)) / 2);
  display:grid;grid-template-columns:repeat(8,var(--film-perf-width));gap:calc(var(--film-perf-pitch) - var(--film-perf-width));
  width:var(--film-frame-width);height:var(--film-perf-height);
}
.filmstrip__perforations--top{inset-block-start:calc(var(--print-pitch) * .48)}
.filmstrip__perforations--bottom{inset-block-end:calc(var(--print-pitch) * .48)}
.filmstrip__perforations i{
  display:block;width:var(--film-perf-width);height:var(--film-perf-height);
  background:var(--sheet);border:var(--print-rule) solid #444;
}
.filmstrip__number,.filmstrip__stock{
  position:absolute;color:#aaa;font-size:var(--type-micro);font-weight:400;line-height:1;letter-spacing:.08em;
}
.filmstrip__number{inset-inline-start:calc(var(--print-pitch) * .7);inset-block-end:calc(var(--print-pitch) * 1.05)}
.filmstrip__stock{inset-inline-end:calc(var(--print-pitch) * .7);inset-block-start:calc(var(--print-pitch) * 1.05)}
.filmstrip__staple{
  position:absolute;z-index:5;inset-inline-end:calc((var(--print-pitch) * 4.25) - (var(--staple-crown) / 2));
  inset-block-start:calc(50% - (var(--staple-wire) / 2));width:var(--staple-crown);height:var(--staple-wire);
  background:#b8b1a4;box-shadow:calc(var(--print-rule) * 2) calc(var(--print-rule) * 2) calc(var(--print-rule) * 2) #0009;
  transform:rotate(-3deg);
}
.filmstrip__staple::before,.filmstrip__staple::after{
  content:"";position:absolute;inset-block-start:calc(var(--staple-wire) * -.5);
  width:calc(var(--staple-wire) * 1.5);height:calc(var(--staple-wire) * 2);background:#080706;
}
.filmstrip__staple::before{inset-inline-start:calc(var(--staple-wire) * -.2)}
.filmstrip__staple::after{inset-inline-end:calc(var(--staple-wire) * -.2)}
.filmstrip__note{
  position:relative;z-index:1;min-height:calc(var(--line-large) * 1.5);margin-top:calc(var(--line-large) * -1.5);
  font-size:1em;font-weight:400;line-height:2.5em;text-align:left;overflow-wrap:normal;word-break:normal;
}
body.post-page{overflow-x:hidden}

.filmstrip.is-enhanced .filmstrip__exposure{cursor:pointer}
.filmstrip.is-enhanced .filmstrip__exposure:focus{outline:none}
.filmstrip.is-enhanced .filmstrip__exposure:focus-visible .filmstrip__window{
  outline:var(--print-rule) solid var(--cyan);outline-offset:calc(var(--print-pitch) * .25);
}
.filmstrip.is-enhanced .filmstrip__exposure.is-selected .filmstrip__window{
  outline:calc(var(--print-rule) * 2) solid var(--red);outline-offset:calc(var(--print-pitch) * .25);
}

/* Photographic projection cast directly onto the surrounding table. */
body.post-page{
  --projection-shift-x:0px;
  --projection-left:calc(100vw - 31em);
  --projection-top:2em;
  --projection-width:30em;
  --projection-image-max-height:calc(100vh - 11em);
}
body.post-page::before{
  content:"";position:fixed;z-index:20;inset:0;background:var(--bg);opacity:0;pointer-events:none;
  transition:opacity 120ms linear;
}
body.post-page.is-projection-open::before{opacity:.75}
.post-page .shell{
  transform:translateX(0);transform-origin:top center;
  transition:transform 180ms ease-out;
}
.post-page.is-projection-open .shell{transform:translateX(var(--projection-shift-x))}
.projection-viewer[hidden]{display:none}
.projection-viewer{
  position:fixed;z-index:30;inset-block-start:var(--projection-top);inset-inline-start:var(--projection-left);
  display:grid;grid-template-rows:minmax(0,1fr) auto;
  width:var(--projection-width);height:calc(100vh - var(--projection-top) - 1em);
  max-width:calc(100vw - 2em);max-height:calc(100vh - 2em);
  color:var(--fg);font-family:'Departure Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  isolation:isolate;background:transparent;border:0;box-shadow:none;
  opacity:0;pointer-events:none;transform:translateX(calc(var(--print-pitch) * 1.2));
  transition:opacity 120ms linear,transform 180ms ease-out;
}
.projection-viewer.is-open{opacity:1;pointer-events:auto;transform:none}
.projection-viewer:focus{outline:none}
.projection-viewer__figure{
  display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;min-height:0;margin:0;background:transparent;
}
.projection-viewer__image-stage{
  position:relative;display:flex;align-items:flex-start;justify-content:center;width:100%;min-height:0;
  max-height:none;overflow:visible;background:transparent;
}
.projection-viewer__image-stack{
  position:relative;z-index:1;display:block;max-width:100%;
  max-height:100%;isolation:isolate;background:transparent;
}
.projection-viewer__ambient{
  position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;pointer-events:none;
  transform:scale(1.18);filter:blur(clamp(2.25em,5vw,5em)) saturate(1.35) brightness(.9);
  opacity:0;
}
.projection-viewer__ambient[data-ready]{opacity:var(--projection-ambient-opacity,.72)}
.projection-viewer__image{
  position:relative;z-index:2;display:block;width:auto;height:auto;max-width:100%;max-height:100%;
  max-inline-size:100%;block-size:auto;margin:0;border:0;object-fit:contain;
  filter:none;mask:none;-webkit-mask-image:none;opacity:1;
}
.projection-viewer__image-stack[data-mode="projected"] .projection-viewer__image{
  mix-blend-mode:screen;opacity:.8;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeGaussianBlur stdDeviation='.8'/%3E%3C/filter%3E%3Crect x='1.5' y='1.5' width='97' height='97' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
  -webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeGaussianBlur stdDeviation='.8'/%3E%3C/filter%3E%3Crect x='1.5' y='1.5' width='97' height='97' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
  mask-size:100% 100%;mask-repeat:no-repeat;
}
.projection-viewer__grain{
  position:absolute;z-index:3;inset:0;pointer-events:none;opacity:.06;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size:10em 10em;
}
.projection-viewer__dust{position:absolute;z-index:3;inset:-5%;overflow:visible;pointer-events:none}
.projection-viewer__dust i{
  --dust-size:.16em;--dust-opacity:.18;--dust-x:1em;--dust-y:-1em;--dust-time:23s;--dust-delay:-4s;
  position:absolute;left:20%;top:25%;width:var(--dust-size);height:var(--dust-size);border-radius:50%;
  background:#eee6d8;opacity:var(--dust-opacity);filter:blur(.01875em);
  animation:projection-dust var(--dust-time) var(--dust-delay) ease-in-out infinite alternate;
}
.projection-viewer__dust i:nth-child(2){left:72%;top:14%;--dust-size:.1em;--dust-opacity:.12;--dust-x:-1.4em;--dust-y:.7em;--dust-time:29s;--dust-delay:-17s}
.projection-viewer__dust i:nth-child(3){left:88%;top:48%;--dust-size:.19em;--dust-opacity:.14;--dust-x:-.8em;--dust-y:-1.3em;--dust-time:31s;--dust-delay:-9s}
.projection-viewer__dust i:nth-child(4){left:43%;top:8%;--dust-size:.12em;--dust-opacity:.16;--dust-x:1.2em;--dust-y:.9em;--dust-time:19s;--dust-delay:-12s}
.projection-viewer__dust i:nth-child(5){left:8%;top:67%;--dust-size:.14em;--dust-opacity:.11;--dust-x:.7em;--dust-y:-1.5em;--dust-time:37s;--dust-delay:-28s}
.projection-viewer__dust i:nth-child(6){left:61%;top:77%;--dust-size:.09em;--dust-opacity:.19;--dust-x:-1em;--dust-y:-.6em;--dust-time:17s;--dust-delay:-6s}
.projection-viewer__dust i:nth-child(7){left:33%;top:55%;--dust-size:.18em;--dust-opacity:.1;--dust-x:1.5em;--dust-y:.5em;--dust-time:41s;--dust-delay:-31s}
.projection-viewer__dust i:nth-child(8){left:79%;top:86%;--dust-size:.13em;--dust-opacity:.15;--dust-x:-.6em;--dust-y:-1.1em;--dust-time:26s;--dust-delay:-19s}
.projection-viewer__dust i:nth-child(9){left:13%;top:36%;--dust-size:.08em;--dust-opacity:.2;--dust-x:1.1em;--dust-y:.8em;--dust-time:34s;--dust-delay:-23s}
.projection-viewer__dust i:nth-child(10){left:53%;top:38%;--dust-size:.11em;--dust-opacity:.13;--dust-x:-1.3em;--dust-y:-.9em;--dust-time:22s;--dust-delay:-15s}
@keyframes projection-dust{
  from{transform:translate3d(0,0,0);opacity:.05}
  to{transform:translate3d(var(--dust-x),var(--dust-y),0);opacity:var(--dust-opacity)}
}
.projection-viewer__image-stack[data-mode="original"] .projection-viewer__ambient,
.projection-viewer__image-stack[data-mode="original"] .projection-viewer__grain,
.projection-viewer.is-original .projection-viewer__dust{display:none}
.projection-viewer__caption{
  width:min(var(--projection-media-width,100%),100%);align-self:center;
  margin:var(--print-pitch) 0 0;color:var(--fg);font-size:var(--type-small);font-weight:400;
  line-height:var(--line-small);letter-spacing:var(--tracking-regular);text-align:left;
}
.projection-viewer__controls{
  display:flex;align-items:center;flex-wrap:wrap;gap:calc(var(--print-pitch) * .8);
  margin-top:var(--print-pitch);font-size:var(--type-small);line-height:var(--line-small);
}
.projection-viewer__controls button{
  min-height:calc(var(--print-pitch) * 3);border:var(--print-rule) solid var(--rule);padding:0 calc(var(--print-pitch) * .8);
  background:transparent;color:var(--cyan);font:inherit;letter-spacing:var(--tracking-ui);cursor:pointer;
}
.projection-viewer__controls button:hover{border-color:var(--cyan);color:var(--cyan)}
.projection-viewer__controls button:active{border-color:var(--red);color:var(--red)}
.projection-viewer__controls button:focus-visible{outline:var(--print-rule) solid var(--cyan);outline-offset:calc(var(--print-pitch) * .2)}
.projection-viewer__controls output{color:var(--dim);letter-spacing:var(--tracking-meta);white-space:nowrap}
.projection-viewer__mode span{color:var(--dim)}
.projection-viewer:not(.is-original) [data-projection-mode-projected],
.projection-viewer.is-original [data-projection-mode-original]{color:var(--cyan)}
.projection-viewer__controls [data-projection-close]{margin-inline-start:auto;color:var(--red)}

@media (max-width:44rem){
  .filmstrip__mount--5{--film-scale:.88;--film-mounted-gauge:7.58em}
}
@media (max-width:62.25rem){
  .filmstrip{--film-right-overhang:calc(var(--print-pitch) * -1.2)}
}
@media (max-width:600px){
  .filmstrip{--film-right-overhang:calc(var(--print-pitch) * -2)}
  .filmstrip__mount--4{--film-scale:.88;--film-mounted-gauge:7.58em}
  .filmstrip__mount--5{--film-scale:.7;--film-mounted-gauge:6.03em}
  .projection-viewer{
    width:calc(100vw - 1.5em);max-width:calc(100vw - 1.5em);max-height:calc(100vh - 1.5em);
  }
  .projection-viewer__image-stage{width:var(--projection-width);align-self:center}
  .projection-viewer__caption{box-sizing:border-box;padding-inline:calc(var(--print-pitch) * .25);overflow-wrap:anywhere}
  .projection-viewer__controls{gap:calc(var(--print-pitch) * .6)}
  .projection-viewer__controls output{max-width:100%;padding-inline:calc(var(--print-pitch) * .25);white-space:normal;overflow-wrap:anywhere}
  .projection-viewer__controls button{
    min-height:calc(var(--print-pitch) * 4.4);padding-inline:calc(var(--print-pitch) * .9);
  }
  .projection-viewer__controls [data-projection-close]{margin-inline-start:0}
}
@media (max-width:26.25rem){
  .filmstrip__mount--3{--film-scale:.66;--film-mounted-gauge:5.69em}
  .filmstrip__mount--4{--film-scale:.49;--film-mounted-gauge:4.22em}
  .filmstrip__mount--5{--film-scale:.39;--film-mounted-gauge:3.36em}
  .filmstrip__mount + .filmstrip__mount{margin-top:var(--print-pitch)}
  .filmstrip__note{min-height:var(--line-large);margin-top:calc(var(--line-large) * -1)}
}

.post-nav{
  display:flex;justify-content:space-between;gap:1em;margin-top:var(--section-gap);font-size:var(--type-small);font-weight:400;line-height:var(--line-small);letter-spacing:var(--tracking-ui);
}
.nav-next{margin-left:auto;text-align:right}

.printout-footer{margin:var(--paragraph-gap) 0 0;color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta)}

/* ---- math (KaTeX) — keep its own font, just contain overflow ---- */
.math-display{margin:var(--paragraph-gap) 0}
.katex-display{overflow-x:auto;overflow-y:hidden;padding:.35em 0}
.katex{font-size:1em}

/* ---- narrow screens: shrink the feed margins (site is best on desktop) ---- */
@media (max-width:81.375rem){
  .shell{max-width:75em}
  .article-layout{display:block}
  .paper-column{margin-inline:auto}
  .sheet{width:var(--sheet-width);margin-inline:auto}
  .document-index{display:none}
  .mobile-document-index{display:block;margin:-.5em auto 1em;color:var(--fg)}
  .mobile-document-index summary{
    width:max-content;color:var(--cyan);font-size:var(--type-small);font-weight:400;line-height:var(--line-small);
    letter-spacing:var(--tracking-meta);cursor:pointer;
  }
  .mobile-document-index__toc{margin-top:.75em}
  .mobile-document-index .document-toc__list .document-toc__list{padding-left:1em}
}

@media (max-width:600px){
  .backline,.printout-footer{padding:0 calc(var(--print-pitch) * .4)}
}

@media (prefers-reduced-motion:reduce){
  .document-index__title{transition:none}
  .human-link-ink__shadow,
  .human-link-ink__marginalia{transition:none}
  .post-page .shell,
  body.post-page::before,
  .projection-viewer{transition:none}
  .projection-viewer__dust i{animation:none}
}

/* ================================================= HOMEPAGE FILTER / LISTING */
.listing-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.rss-link{display:block;width:1.1rem;height:1.1rem;margin-top:.1rem}
.rss-link svg{display:block;width:100%;height:100%;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linecap:round;fill-rule:evenodd}
.listing-tools{border:1px solid var(--rule);border-top:0}
.post-search{min-height:2.8rem;padding:.65rem .8rem;border-bottom:1px solid var(--rule);color:var(--cyan);display:flex;align-items:center;gap:.55rem}
.post-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--cyan);font:inherit;font-size:var(--type-base);font-weight:400;line-height:var(--line-base);letter-spacing:var(--tracking-ui);caret-color:var(--red)}
.post-search input::placeholder{color:var(--dim);opacity:1;font-weight:300;letter-spacing:var(--tracking-meta)}
.filter-panel{padding:.75rem .8rem .8rem}
.filter-group{border:0}
.filter-group + .filter-group{margin-top:.7rem}
.filter-group legend{color:var(--red);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta);margin-bottom:.35rem}
.filter-options{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .65rem}
.filter-pill{border:0;padding:0;background:none;font:inherit;font-size:var(--type-base);font-weight:400;line-height:var(--line-base);letter-spacing:var(--tracking-ui);text-transform:none;white-space:nowrap;cursor:pointer}
.filter-pill:hover,.filter-pill.is-active{color:var(--cyan);font-weight:700;letter-spacing:var(--tracking-ui);text-decoration:none}
.filter-pill:active{color:var(--red)}
.list-controls{min-height:2.7rem;padding:.75rem 0 .45rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta)}
.sort-toggle{margin-left:auto;white-space:nowrap}
.sort-option{border:0;background:none;color:var(--dim);font:inherit;font-size:var(--type-base);font-weight:400;line-height:var(--line-base);letter-spacing:var(--tracking-ui);cursor:pointer;padding:0}
.sort-option:hover,.sort-option.is-active{color:var(--cyan);font-weight:700;letter-spacing:var(--tracking-ui)}
.sort-option:active{color:var(--red)}
.results-status{color:var(--dim)}
.listing-tools + .list-controls + .post-list{margin-top:0}
.month-divider{padding:.35rem 0;border-bottom:1px solid var(--rule);color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);text-transform:uppercase;letter-spacing:var(--tracking-meta)}
.post-heading{display:flex;align-items:baseline;gap:.65rem;flex-wrap:wrap}
.post-heading .post-link{font-size:var(--type-base);font-weight:400;line-height:var(--line-base);letter-spacing:var(--tracking-ui);text-transform:uppercase}
.style-tag{border:0;padding:0;white-space:nowrap;text-transform:uppercase}
.post-description{margin-top:.28rem;color:var(--dim);font-size:var(--type-small);font-weight:400;line-height:var(--line-small);letter-spacing:var(--tracking-regular)}
.copy-link{margin-left:auto;border:0;background:none;color:var(--dim);font:inherit;font-size:var(--type-base);font-weight:400;line-height:var(--line-base);letter-spacing:var(--tracking-ui);cursor:pointer}
.copy-link:hover{color:var(--cyan);font-weight:700;letter-spacing:var(--tracking-ui)}
.copy-link:active{color:var(--red)}
.no-results{padding:1.5rem 0;color:var(--dim);font-size:var(--type-small);font-weight:300;line-height:var(--line-small);letter-spacing:var(--tracking-meta)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.taxonomy-page{padding-top:1.8rem}
.taxonomy-title{color:var(--red);font-size:var(--type-small);font-weight:700;line-height:var(--line-small);letter-spacing:var(--tracking-key)}
.taxonomy-terms{list-style:none;margin-top:1rem}
.taxonomy-terms li{padding:.55rem 0;border-bottom:1px solid var(--rule)}
@media (max-width:600px){
  body:not(.post-page){padding:28px 16px}
  .filter-options{gap:.35rem .5rem}
  .post-heading{gap:.35rem .55rem}
  .post-heading .post-link{font-size:var(--type-base)}
}
