/* Shared styles for the project pages. The homepage and the 404 inline their own CSS.
   Same sheet of paper as the homepage: 12px Arial, black on white, labels in a left
   column and the text beside them. Copy is written in normal case and set lowercase here. */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{background:#fff;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light}
body{margin:0;padding:15px;padding:max(15px,env(safe-area-inset-top,0px)) max(15px,env(safe-area-inset-right,0px)) calc(40px + env(safe-area-inset-bottom,0px)) max(15px,env(safe-area-inset-left,0px));background:#fff;color:#000;font:12px/1.5 Arial,Helvetica,sans-serif;text-transform:lowercase;overflow-x:clip}

a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
a:focus-visible,button:focus-visible{outline:1px solid #000;outline-offset:2px}
strong{font-weight:400}
code{font:11px/1 ui-monospace,'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;text-transform:none;white-space:nowrap}

.skip{position:absolute;left:-999px;top:8px;background:#000;color:#fff;padding:6px 10px;text-decoration:none;z-index:10}
.skip:focus{left:8px}

/* The mark in the corner is the way home */
.mark{display:block;width:28px;height:28px}
.mark svg{display:block;width:100%;height:100%;fill:#fff;stroke:#000;stroke-width:2.5;stroke-linejoin:miter}
.mark:hover svg{fill:#000}

/* Two columns: headings on the left, everything else on the right */
main{margin:2px 0 0 70px;max-width:790px;display:grid;grid-template-columns:150px minmax(0,1fr)}
article,header,.facts,.facts div{display:contents}
article>*,header>*,.next{grid-column:2;min-width:0}
h1,h2,h3,p,dl,dt,dd,figure{font:inherit;margin:0}
h1{grid-column:1;grid-row:1;padding-right:1em}
.eyebrow{grid-row:1;margin:0;color:#6b6b6b}
p{margin:0 0 1em;max-width:34em}
.lede{margin:.5em 0 3em}
.facts dt{grid-column:1;padding-right:1em}
.facts dd{grid-column:2;color:#6b6b6b;margin:0 0 .5em;max-width:34em}
.actions{display:flex;flex-wrap:wrap;gap:.5em 1.5em;margin:1em 0 0}
.arrow{text-decoration:none;display:inline-block}
h2,h3{grid-column:1;padding-right:1em}
h2,h2+*,h3,h3+*{margin-top:2.5em}

ol.steps{margin:0 0 1em;padding:0 0 0 1.7em;max-width:34em}
ol.steps li{margin:0 0 .3em}

/* Demos sit in the text column with a plain caption under them */
.print{position:relative;margin:2.5em 0 0}
.print>figcaption{display:flex;justify-content:space-between;gap:1em;margin:.5em 0 0;color:#6b6b6b}
.note{color:#6b6b6b;margin:1em 0 0}
.demo-video{display:block;width:100%;height:auto;background:#f2f2f2;aspect-ratio:var(--ar,16/10)}
.vid-toggle{position:absolute;right:8px;top:8px;z-index:2;font:11px/1 Arial,Helvetica,sans-serif;text-transform:lowercase;color:#fff;background:#000;border:0;padding:5px 7px;cursor:pointer;opacity:0;transition:opacity .2s ease}
.print:hover .vid-toggle,.vid-toggle:focus-visible,.vid-toggle[data-paused]{opacity:1}
@media (hover:none){.vid-toggle{opacity:1}}
.vid-toggle:focus-visible{outline:1px solid #fff;outline-offset:-3px}

/* Photo booth: the wall recording with the phone recording beside it */
.combo{display:grid;grid-template-columns:minmax(0,1fr) 22%;gap:10px;align-items:start;margin:2.5em 0 0}
.combo .print{margin:0}

.next{margin:4em 0 0;display:flex;flex-wrap:wrap;gap:1em 3em}
.next a{text-decoration:none;display:block}
.next small{display:block;font-size:inherit;color:#6b6b6b}
.next span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}

.site-foot{margin:3em 0 0 220px}
.site-foot a{display:block;width:fit-content;margin:0 0 .5em}
.site-foot .dot{display:none}

/* Demo controls, shared */
.controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:1em 0 0}
.controls .label{color:#6b6b6b;margin-right:4px}
.chip{font:11px/1 ui-monospace,'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;text-transform:none;color:#000;background:#fff;border:1px solid #000;border-radius:0;padding:6px 9px;cursor:pointer}
.chip:hover{background:#000;color:#fff}
.chip[disabled],.chip[aria-disabled="true"]{opacity:.35;cursor:default;background:#fff;color:#000}
.chip.primary{font:12px/1 Arial,Helvetica,sans-serif;text-transform:lowercase;background:#000;color:#fff}
.chip.primary:hover{background:#fff;color:#000}

/* Discord recreation (JustMonitors). Discord's own colours and type, left as they are. */
.dc{background:#313338;color:#dbdee1;font:15px/1.375 'gg sans','Noto Sans','Helvetica Neue',Helvetica,Arial,sans-serif;text-transform:none;overflow:hidden;text-align:left}
.dc a,.dc-link{color:#00a8fc;text-decoration:none}
.dc-head{display:flex;align-items:center;gap:8px;padding:11px 16px;border-bottom:1px solid #26282c;color:#f2f3f5;font-weight:600;font-size:15px;box-shadow:0 1px 0 rgba(0,0,0,.2)}
.dc-head .hash{color:#80848e;font-size:22px;font-weight:400;line-height:1}
.dc-head .topic{color:#949ba4;font-weight:400;font-size:13px;border-left:1px solid #3f4147;padding-left:10px;margin-left:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-log{height:var(--dc-h,440px);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:0 0 10px;mask-image:linear-gradient(to bottom,transparent 0,#000 44px)}
.dc-msg{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:14px;padding:3px 16px 3px;margin-top:14px;animation:dcIn .35s cubic-bezier(.2,.8,.2,1) both}
.dc-msg.cont{margin-top:2px}
.dc-msg.cont .dc-av,.dc-msg.cont .dc-meta{visibility:hidden;height:0}
@keyframes dcIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.dc-av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font:700 14px/1 'Helvetica Neue',Arial,sans-serif;color:#fff;overflow:hidden;background:#5865f2}
.dc-av img{width:100%;height:100%;object-fit:cover}
.dc-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;min-width:0;line-height:1.3}
.dc-name,.dc-time{white-space:nowrap}
.dc-name{color:#f2f3f5;font-weight:500}
.dc-tag{display:inline-block;background:#5865f2;color:#fff;font-size:10px;font-weight:600;border-radius:3px;padding:1px 4px;line-height:1.3;transform:translateY(-1px)}
.dc-time{color:#949ba4;font-size:12px}
.dc-text{white-space:pre-wrap;overflow-wrap:anywhere}
.dc-text code{background:#2b2d31;color:#dbdee1;border-radius:3px;padding:0 3px;font-size:.85em}
.dc-embed{display:grid;gap:6px;max-width:500px;margin-top:4px;background:#2b2d31;border-left:4px solid var(--embed,#d15b2d);border-radius:4px;padding:10px 14px 12px 12px;font-size:14px;line-height:1.375}
.dc-embed-author{display:flex;align-items:center;gap:8px;color:#f2f3f5;font-weight:600;font-size:13.5px}
.dc-embed-author i{width:22px;height:22px;border-radius:50%;background:#4e5058;display:inline-block;flex:none;font-style:normal}
.dc-embed-title{color:#00a8fc;font-weight:600;font-size:15.5px}
.dc-embed-desc{white-space:pre-wrap;overflow-wrap:anywhere}
.dc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;margin-top:2px}
.dc-field{grid-column:1/-1;min-width:0}
.dc-field.inline{grid-column:auto}
.dc-field b{display:block;color:#f2f3f5;font-weight:600;font-size:13.5px;margin-bottom:1px}
.dc-embed-foot{display:flex;align-items:center;gap:8px;color:#949ba4;font-size:12px;margin-top:4px}
.dc-embed-foot i{width:18px;height:18px;border-radius:50%;background:#d15b2d;display:inline-block;flex:none}
.dc-compose{margin:0 16px 16px;background:#383a40;border-radius:8px;padding:11px 14px;color:#a0a5ae;font-size:15px;display:flex;align-items:center;gap:10px;min-height:44px}
.dc-compose .plus{width:24px;height:24px;border-radius:50%;background:#b5bac1;color:#383a40;display:grid;place-items:center;font-weight:700;font-size:18px;line-height:1;flex:none}
.dc-compose .typed{color:#dbdee1}
.dc-compose .caret{display:inline-block;width:1px;height:1.1em;background:#dbdee1;vertical-align:-.15em;margin-left:1px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}

/* Terminal replay (Squarespace) */
.term{background:#111;color:#e6e6e6;overflow:hidden;font:12px/1.65 ui-monospace,'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;text-transform:none}
.term-bar{display:flex;align-items:center;gap:7px;padding:10px 12px;background:#1c1c1c;color:#8a8a8a;font-size:12px}
.term-bar i{width:11px;height:11px;border-radius:50%;background:#3a3a3a;display:inline-block}
.term-bar span{margin-left:8px}
.term-body{height:var(--term-h,452px);overflow:hidden;padding:12px 16px 14px;display:flex;flex-direction:column;justify-content:flex-end;mask-image:linear-gradient(to bottom,transparent 0,#000 36px)}
.term-line{display:flex;flex:none;gap:14px;white-space:pre;min-height:1.65em;animation:dcIn .18s ease-out both}
.term-line .t{color:#7d7d7d;flex:none;width:4.2em;text-align:right}
.term-line .m{overflow:hidden;text-overflow:ellipsis}
.term-line.step .m{color:#fff;font-weight:600}
.term-line.dim .m{color:#9a9a9a}
.term-line.ok .m{color:#9fd39b;font-weight:600}
.term-line.prompt .m{color:#e6e6e6}
.term-line.prompt .m::before{content:'$ ';color:#7d7d7d}
.term-cursor{display:inline-block;width:.6em;height:1.1em;background:#e6e6e6;vertical-align:-.2em;animation:blink 1s steps(1) infinite}
.term-total{justify-content:space-between;gap:12px;color:#6b6b6b}
.term-total [data-total]{color:#000}

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

@media (max-width:600px){
  body{font-size:13px}
  main{margin:22px 0 0;grid-template-columns:minmax(0,1fr)}
  article>*,header>*,.next,h1,h2,h3,.facts dt,.facts dd{grid-column:1}
  .eyebrow{grid-row:2}
  .lede{margin-bottom:2.2em}
  .facts dd{margin-bottom:.7em}
  h2,h3{margin:2.2em 0 .5em;padding:0}
  h2+*,h3+*{margin-top:0}
  .combo{grid-template-columns:minmax(0,1fr)}
  .combo .phone{width:50%}
  .site-foot{margin-left:0}
  .dc{font-size:14px}
  .dc-log{--dc-h:400px}
  .dc-msg{grid-template-columns:32px minmax(0,1fr);column-gap:10px;padding:3px 10px}
  .dc-av{width:32px;height:32px;font-size:12px}
  .dc-compose{margin:0 10px 10px}
  .dc-fields{grid-template-columns:1fr 1fr}
  .dc-head .topic{display:none}
  .term{font-size:11.5px}
  .term-body{--term-h:504px}
  .term-line .t{width:3.6em}
  .term-line{gap:10px}
  .term-line:not(.dim),.term-line:not(.dim) .m{white-space:pre-wrap}
  .term-line .m{min-width:0;overflow-wrap:anywhere}
}
@media (max-width:340px){.term-body{--term-h:560px}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
