/* Fonts of the author's own website for the credit band (Archivo, JetBrains Mono), SIL Open Font License 1.1. Fetched only when the band is near the viewport. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 125%;
  font-display: swap;
  src:url(/fonts/archivo-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 125%;
  font-display: swap;
  src:url(/fonts/archivo-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:url(/fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:url(/fonts/jetbrains-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:url(/fonts/jetbrains-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:url(/fonts/jetbrains-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Small credit strip in the style of the author's own website: near-black, ivory, hairline, mono prompt with a blinking cursor. Fixed colours on purpose (same in day and night mode). */
.wm{background:#2a2825;color:#f2efe9;border-top:1px solid #f2efe9;margin-top:60px}
.wm *{font-family:ui-monospace,Consolas,"Courier New",monospace}
.wm.is-near .wm__logo,.wm.is-near .wm__s,.wm.is-near .wm__b{font-family:"JetBrains Mono",ui-monospace,Consolas,monospace}
.wm__in{width:min(1140px,100% - 40px);margin:0 auto;min-height:52px;padding:10px 0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px}
.wm__logo{margin:0;display:flex;align-items:center;gap:.5ch;font-weight:600;font-size:.9rem;letter-spacing:.02em}
.wm__g{color:#b5b1a8}
.wm__c{display:inline-block;width:.6em;height:1.05em;margin-left:2px;background:#f2efe9;animation:wm-blink 1.05s steps(1) infinite}
@keyframes wm-blink{50%{opacity:0}}
.wm__s{color:#b5b1a8;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase}
.wm__b{margin-left:auto;display:inline-flex;align-items:center;gap:10px;min-height:34px;padding:0 14px;border:1px solid #f2efe9;border-radius:0;background:transparent;color:#f2efe9;font-weight:600;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;transition:background .25s,color .25s}
.wm__b b{font-weight:400;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.wm__b:hover,.wm__b:focus-visible{background:#f2efe9;color:#2a2825}
.wm__b:hover b,.wm__b:focus-visible b{transform:translate(3px,-3px)}
.wm__b:focus-visible{outline:2px solid #f2efe9;outline-offset:3px}
@media(max-width:700px){.wm__in{padding:12px 0}.wm__b{margin-left:0;width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.wm__c{animation:none}}
body.train .wm{display:none}
@media print{.wm{display:none!important}}

/* The footer joins the strip: same near-black, mono type, hairlines (fixed colours, same in day and night mode) */
.wm+.foot,.foot{margin-top:0;background:#2a2825;border-top:1px solid #413e3a;color:#b5b1a8;font:400 .76rem/1.7 ui-monospace,Consolas,"Courier New",monospace;letter-spacing:.05em;padding-top:22px;padding-bottom:26px;gap:8px 28px}
.wm.is-near~.foot{font-family:"JetBrains Mono",ui-monospace,Consolas,monospace}
.foot span:first-child{color:#f2efe9;font-weight:600;letter-spacing:.02em}
.foot span:first-child::before{content:"> ";color:#b5b1a8;font-weight:400}
.foot a{color:#f2efe9;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:#b5b1a8;transition:background .2s,color .2s}
.foot a:hover,.foot a:focus-visible{background:#f2efe9;color:#2a2825;text-decoration-color:transparent}
.foot a:focus-visible{outline:2px solid #f2efe9;outline-offset:3px}
@media(max-width:700px){.foot{padding-top:18px}}

/* Compact version: the strip and the footer together are about 70px tall on a desktop */
.wm{margin-top:36px}
.wm__in{min-height:0;padding:7px 0;gap:4px 16px}
.wm__logo{font-size:.8rem}
.wm__s{font-size:.66rem}
.wm__b{min-height:28px;padding:0 10px;gap:8px;font-size:.64rem}
.wm+.foot,.foot{padding-top:7px;padding-bottom:9px;font-size:.68rem;line-height:1.5;gap:2px 20px}
@media(max-width:700px){
  .wm__in{padding:8px 0;gap:6px 12px}
  .wm__s{display:none}
  .wm__b{width:auto;margin-left:auto;justify-content:flex-start}
  .foot span:first-child{display:none}
  .wm+.foot,.foot{padding-top:8px;padding-bottom:10px}
}
@media(max-width:700px){.foot span:nth-child(2){display:none}.foot{justify-content:space-between}}

/* Blend: the page fades into the black strip instead of ending at a hard edge */
.wm{position:relative;border-top:0;margin-top:70px}
.wm::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:clamp(56px,9vw,110px);background:linear-gradient(to bottom,rgba(42,40,37,0) 0%,rgba(42,40,37,.12) 35%,rgba(42,40,37,.5) 70%,#2a2825 100%);pointer-events:none}
.wm+.foot,.foot{border-top:1px solid rgba(242,239,233,.09)}

/* Smoother blend: a longer, eased fade that lies over empty page background only (never over content or sticky side panels) */
.wm{--fade:clamp(110px,15vw,180px);margin-top:calc(var(--fade) + 12px)}
.wm::before{height:var(--fade);background:linear-gradient(to bottom,rgba(42,40,37,0) 0%,rgba(42,40,37,.003) 8%,rgba(42,40,37,.02) 16%,rgba(42,40,37,.06) 24%,rgba(42,40,37,.12) 32%,rgba(42,40,37,.2) 40%,rgba(42,40,37,.3) 48%,rgba(42,40,37,.42) 56%,rgba(42,40,37,.55) 64%,rgba(42,40,37,.68) 72%,rgba(42,40,37,.8) 80%,rgba(42,40,37,.9) 88%,rgba(42,40,37,.97) 96%,#2a2825 100%)}

/* Shorter fade; on short pages the strip is pushed down so the black footer always touches the bottom edge of the window */
.wm{--fade:clamp(60px,7vw,84px);margin-top:calc(var(--fade) + 8px + var(--wm-extra,0px))}
