/* ============================================================
   nullsec.nl - style.css  (v2: graphite)
   Not black. Machined graphite, steel text, one crimson.
   The LED matrix under the logo is the thing; everything else is quiet.
   ============================================================ */

@font-face {
  font-family: "Pixel";
  /* PixelNES.otf is not in the repo, and listing a file that does not exist
     costs a failed request on every single page load. If you ever drop it into
     fonts/, add this line back above the woff2:
       url("fonts/PixelNES.otf") format("opentype"), */
  src: url("fonts/press-start-2p-latin-400-normal.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Term";
  src: url("fonts/vt323-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  --base:    #15171b;   /* lid graphite */
  --base-2:  #1c1f25;   /* panel face */
  --base-3:  #23272e;   /* raised */
  --edge:    #343941;   /* machined edge */
  --edge-hi: #4a515b;
  --steel:   #c3c9d2;   /* body text */
  --dim:     #737a85;
  --crimson: #e21b3c;
  --crimson-2: #ff5c73;

  --pixel: "Pixel", monospace;
  --term:  "Term", "Courier New", monospace;
  --gap: 14px;
  --cut: 10px;          /* corner chamfer */
}

* { box-sizing: border-box; }
html { background: var(--base); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--steel);
  font-family: var(--term);
  font-size: 19px;
  line-height: 1.25;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 1.5px 1.5px, #22262d 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(160deg, #1a1d22 0%, var(--base) 45%, #101216 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .7  0 0 0 0 .75  0 0 0 0 .85  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .06;
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 91;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.14) 3px 4px);
}

a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--edge-hi); }
a:hover { color: #fff; border-color: var(--crimson); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
::selection { background: var(--crimson); color: #fff; }

#fps {
  position: fixed; top: 8px; left: 10px; z-index: 95;
  font: 8px/1 var(--pixel); color: var(--dim); pointer-events: none;
}
#fps b { color: var(--crimson); font-weight: normal; }

.frame { width: min(1180px, 100% - 32px); margin: 34px auto 60px; }

/* ---------- hero: LED matrix logo ---------- */
.hero {
  position: relative;
  height: 150px;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #111317, #0d0f12);
  box-shadow: inset 0 0 0 1px var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.hero canvas { display: block; width: 100%; height: 100%; }
/* screen-reader / crawler only. Used by the hero link and by the <h1> on each
   subpage - the visible heading is the decorative C:\nullsec\... path, which
   tells a machine nothing, so the real title lives here instead. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The tag IS the home link, and the ONLY clickable thing on the banner. The rest
   of the hero stays free so the matrix keeps its mousedown / hold / click.
   4px padding grows the hit box; right/bottom drop by the same 4px so the text
   itself does not move a pixel. */
.hero .tag {
  position: absolute; right: 14px; bottom: 6px;
  padding: 4px;
  font: 7px/1 var(--pixel); color: var(--dim); letter-spacing: 2px;
  border: 0;
}
.hero .tag:hover { color: var(--crimson-2); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.col { display: grid; gap: var(--gap); }

/* ---------- panel ---------- */
.box {
  position: relative;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, var(--base-2), #191c21);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(255,255,255,.04);
}
.box > h2 {
  margin: -16px -16px 14px;
  padding: 9px 14px 8px 18px;
  font: 8px/1.5 var(--pixel);
  color: var(--steel);
  letter-spacing: .5px;
  background: var(--base-3);
  box-shadow: inset 0 -1px 0 var(--edge);
}
.box > h2::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 3px; height: 30px;
  background: var(--crimson);
}
.box p { margin: 0 0 10px; }
.box p:last-child { margin-bottom: 0; }
.box hr { border: 0; border-top: 1px solid var(--edge); margin: 12px 0; }

/* ---------- welcome ---------- */
.avatar {
  float: left;
  width: 140px; height: 140px;
  margin: 0 16px 6px 0;
  image-rendering: pixelated;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  background: repeating-conic-gradient(#2a2f37 0 25%, #14161a 0 50%) 0 0 / 4px 4px;
  box-shadow: inset 0 0 0 1px var(--edge-hi);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.welcome::after { content: ""; display: block; clear: both; }
.welcome h1 { margin: 0 0 12px; font: 12px/1.6 var(--pixel); color: #fff; }
.welcome h1 em { font-style: normal; color: var(--crimson); }
.quick-head { clear: both; padding-top: 4px; margin: 12px 0 4px; color: var(--steel); }
.quick { margin: 0; padding: 0 0 0 2px; list-style: none; color: var(--dim); }
.quick li { padding: 1px 0; }
.quick li::before { content: "> "; color: var(--crimson); }
.socials { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.socials a {
  padding: 2px 10px; border: 0; color: var(--steel); font-size: 17px;
  background: var(--base-3);
  box-shadow: inset 0 0 0 1px var(--edge-hi);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.socials a:hover { background: var(--crimson); color: #fff; }

/* ---------- now playing ---------- */
.np { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.np-art { width: 64px; height: 64px; background: var(--base-3); box-shadow: inset 0 0 0 1px var(--edge); background-size: cover; image-rendering: auto; filter: saturate(.85); }
.np-meta { min-width: 0; display: grid; gap: 2px; align-content: start; }
.np-track { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-track a { color: inherit; border: 0; }
.np-track a:hover { color: var(--crimson-2); }
.np-artist { color: var(--dim); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-time { display: flex; justify-content: space-between; color: var(--dim); font-size: 15px; margin-top: 4px; }
.np-bar { height: 3px; background: var(--edge); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0%; background: var(--crimson); }
.np.is-off .np-track { color: var(--dim); }
.np.is-off .np-time { display: none; }
.np.is-off .np-bar { display: none; }
.np.is-off .np-art:empty { display: none; }
.np.is-off { grid-template-columns: auto 1fr; }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj {
  display: block; min-width: 0; padding: 10px 12px; border: 0;
  background: var(--base);
  box-shadow: inset 0 0 0 1px var(--edge);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.proj:hover { box-shadow: inset 0 0 0 1px var(--crimson); color: inherit; }
.proj h3 { margin: 0 0 4px; font: 8px/1.6 var(--pixel); color: #fff; }
.proj h3 span { color: var(--crimson); }
.proj h3 a { color: #fff; border: 0; text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 3px; }
.proj h3 a:hover { color: var(--crimson-2); }
.page h3 a { color: #fff; border: 0; text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 3px; }
.page .gh-link { color: var(--dim); font-size: 16px; }
.page .gh-link a { color: var(--dim); }
#now .now-text { color: var(--steel); margin: 0 0 4px; }
#now .now-when { color: var(--dim); }
.proj p { color: var(--dim); margin: 0; }

/* ---------- experience: certs + github ---------- */
.xp-text p { color: var(--steel); }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; box-shadow: 0 -1px 0 var(--edge); }
.certs[hidden] { display: none; }
.cert {
  display: grid; gap: 6px; border: 0; color: var(--dim); font-size: 16px; text-align: center;
}
.cert img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--base); padding: 4px;
  box-shadow: inset 0 0 0 1px var(--edge-hi);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  filter: saturate(.6);
}
.cert:hover { color: #fff; }
.cert:hover img { filter: none; }
.gh-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.gh-head a { border: 0; color: var(--steel); }
.gh-head a::before { content: "> "; color: var(--crimson); }
.gh-head span { color: var(--dim); font-size: 17px; }
#gh-graph { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.gh-foot { display: flex; justify-content: space-between; margin-top: 6px; color: var(--dim); font-size: 16px; }
.gh-legend { display: inline-flex; align-items: center; gap: 3px; }
.gh-legend i { width: 9px; height: 9px; background: var(--base-3); box-shadow: inset 0 0 0 1px var(--edge); }
.gh-legend i:nth-child(2) { background: #4a2229; } .gh-legend i:nth-child(3) { background: #7a1a2c; }
.gh-legend i:nth-child(4) { background: #b3193a; } .gh-legend i:nth-child(5) { background: var(--crimson); box-shadow: 0 0 6px rgba(226,27,60,.5); }

/* ---------- button wall ---------- */
.wall { display: flex; flex-wrap: wrap; gap: 4px; }
.wall a, .wall span {
  display: inline-grid; place-items: center;
  width: 88px; height: 31px; border: 0;
  font: 7px/1 var(--pixel); color: var(--steel);
  background: var(--base-3);
  box-shadow: inset 0 0 0 1px var(--edge-hi);
  image-rendering: pixelated;
}
.wall a:hover { background: var(--crimson); color: #fff; }
.wall span { color: var(--dim); box-shadow: inset 0 0 0 1px var(--edge); }
.wall .mine { padding: 0; background: none; box-shadow: none; }
.wall .mine img { display: block; image-rendering: pixelated; }
.snip { margin: 6px 0 0; padding: 8px 10px; font: 15px/1.3 var(--term); color: var(--dim); background: var(--base); box-shadow: inset 0 0 0 1px var(--edge); white-space: pre-wrap; word-break: break-all; user-select: all; cursor: text; }
.snip:hover { color: var(--steel); }

/* ---------- sidebar: file tree ---------- */
.tree { margin: 0; padding: 0; list-style: none; font-size: 18px; }
.tree ul { margin: 0; padding-left: 18px; list-style: none; border-left: 1px dotted var(--edge-hi); }
.tree li { position: relative; padding: 1px 0; white-space: nowrap; }
.tree .dir > button { all: unset; cursor: pointer; color: var(--steel); display: inline-flex; align-items: center; gap: 6px; }
.tree .dir > button::before {
  content: "+";
  display: inline-grid; place-items: center;
  width: 11px; height: 11px;
  font: 10px/1 var(--term); color: var(--dim);
  background: var(--base); box-shadow: inset 0 0 0 1px var(--edge-hi);
}
.tree .dir.open > button::before { content: "−"; }
.tree .ico {
  display: inline-block; width: 14px; height: 11px; background: var(--dim);
  clip-path: polygon(0 15%, 40% 15%, 50% 0, 100% 0, 100% 100%, 0 100%);
}
.tree .dir.open > button .ico { background: var(--crimson); }
.tree .file a { color: var(--dim); border: 0; display: inline-flex; align-items: center; gap: 6px; padding-left: 17px; }
.tree .file a::before {
  content: ""; width: 9px; height: 11px;
  background: var(--base); box-shadow: inset 0 0 0 1px var(--dim);
  clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%);
}
.tree .file a:hover { color: #fff; }
.tree .file a:hover::before { box-shadow: inset 0 0 0 1px var(--crimson); }
.tree .dir > ul { display: none; }
.tree .dir.open > ul { display: block; }
.tree li[data-path="arg"] > button { color: var(--crimson); }

/* ---------- sidebar: status ---------- */
.status { display: flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; background: var(--dim); }
.status.on i { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.status.off i { background: var(--crimson); box-shadow: 0 0 8px var(--crimson); }
.status small { color: var(--dim); }

.links { display: grid; gap: 4px; }
.links a { color: var(--steel); border: 0; }
.links a::before { content: "> "; color: var(--crimson); }

.cats-note { color: var(--dim); font-size: 17px; }
.cats-note b { color: var(--steel); font-weight: normal; }

footer { margin-top: 40px; text-align: center; color: var(--dim); font-size: 16px; }
footer a { border: 0; }

/* ---------- cats ---------- */
.cat-heart {
  position: absolute; z-index: 96; pointer-events: none;
  font: 11px/1 var(--pixel); color: var(--crimson);
  text-shadow: 0 0 8px var(--crimson);
  animation: heart-up 1.1s ease-out forwards;
}
@keyframes heart-up {
  0%   { transform: translate(-50%, 0) scale(.6); opacity: 0; }
  20%  { transform: translate(-50%, -10px) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -48px) scale(1); opacity: 0; }
}

/* ---------- nullsh ---------- */
.term-out { min-height: 96px; max-height: 190px; overflow-y: auto; color: var(--dim); font-size: 17px; line-height: 1.2; scrollbar-width: thin; }
.term-out div { white-space: pre-wrap; word-break: break-word; }
.term-out .cmd { color: var(--steel); }
.term-out .cmd::before { content: "$ "; color: var(--crimson); }
.term-out .hi { color: #fff; }
.term-out .err { color: var(--crimson); }
.term-out a { color: var(--steel); }
.term-in { display: flex; gap: 6px; align-items: baseline; margin-top: 8px; padding-top: 8px; box-shadow: 0 -1px 0 var(--edge); }
.term-in label { color: var(--crimson); font-size: 17px; white-space: nowrap; }
.term-in input { all: unset; flex: 1; color: #fff; font: inherit; font-size: 17px; caret-color: var(--crimson); min-width: 0; }
.status small { display: block; margin-top: 4px; }

/* ---------- arg ---------- */
.arg-form { display: flex; gap: 6px; margin-top: 14px; }
.arg-form input { all: unset; flex: 1; min-width: 0; color: #fff; font: inherit; caret-color: var(--crimson); padding: 4px 8px; background: var(--base); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.arg-form input::placeholder { color: var(--dim); letter-spacing: 2px; }
.arg-form button { all: unset; cursor: pointer; padding: 4px 12px; color: var(--steel); background: var(--base-3); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.arg-form button:hover { background: var(--crimson); color: #fff; }
.arg-msg { margin: 8px 0 0; min-height: 1.3em; color: var(--dim); }
.arg-msg.err { color: var(--crimson); }
.arg-msg.ok { color: #3ddc84; }
.arg-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--dim); margin-bottom: 10px; }
.arg-head b { color: var(--steel); font-weight: normal; }
.arg-reset { all: unset; cursor: pointer; color: var(--dim); font-size: 15px; }
.arg-reset:hover { color: var(--crimson); }
.arg-ring { margin: 0 0 14px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; font-size: 18px; color: var(--dim); letter-spacing: 1px; }
.arg-ring .n { display: inline-block; width: 18px; color: var(--crimson); font: 7px/1 var(--pixel); }
.arg-ring .have { color: var(--steel); }
.arg-ring b { font-weight: normal; color: var(--crimson); text-shadow: 0 0 8px var(--crimson); }
.arg-clue { color: var(--steel); line-height: 1.35; }
.arg-clue .hi { color: #fff; }
.arg-end p { color: var(--steel); }
.arg-end .et { color: #fff; font-size: 20px; }

/* ---------- button strip ---------- */
.strip { margin: 22px 0 0; padding: 8px 0; overflow: hidden; box-shadow: inset 0 1px 0 var(--edge), inset 0 -1px 0 var(--edge); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 8px; width: max-content; animation: strip-scroll var(--dur, 40s) linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track a, .strip-track span { display: block; border: 0; flex: none; }
.strip-track img { display: block; width: 88px; height: 31px; image-rendering: pixelated; opacity: .85; }
.strip-track a:hover img { opacity: 1; box-shadow: 0 0 0 1px var(--crimson); }
@keyframes strip-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- album / lightbox ---------- */
.album { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 6px; }
.ph.wide { grid-column: span 2; }
.ph.tall { grid-row: span 2; }
.ph.pano { grid-column: span 3; }
.ph { display: block; border: 0; overflow: hidden; background: var(--base-3); box-shadow: inset 0 0 0 1px var(--edge); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8); transition: transform .25s; }
.ph:hover img { filter: none; transform: scale(1.04); }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8,9,11,.94); display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb img { max-width: min(92vw, 1400px); max-height: 86vh; box-shadow: 0 0 0 1px var(--edge), 0 20px 60px #000; }
.lb button { all: unset; cursor: pointer; position: absolute; font: 22px/1 var(--term); color: var(--steel); padding: 14px 18px; background: var(--base-3); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.lb button:hover { background: var(--crimson); color: #fff; }
.lb .lb-x { top: 14px; right: 14px; }
.lb .lb-p { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-cap { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: var(--dim); font: 8px/1 var(--pixel); }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  /* minmax(0,1fr), not 1fr: a grid item defaults to min-width:auto and refuses
     to shrink below its min-content, so #gh-graph's min-width:720px would blow
     the whole page out sideways (hidden by body's overflow-x, still broken). */
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col, .col > * { min-width: 0; }
  .hero { height: 110px; }
  .projects { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  #cat-layer { display: none; }
}
/* phones: portrait, narrow. tighter everything, sidebar becomes a strip of boxes */
@media (max-width: 600px), (max-aspect-ratio: 3/4) and (max-width: 900px) {
  body { font-size: 17px; }
  .frame { width: calc(100% - 20px); margin: 44px auto 40px; }
  .hero { height: 84px; margin-bottom: 12px; }
  .hero .tag { right: 6px; bottom: 2px; font-size: 6px; }   /* -4px each: padding compensates */
  :root { --gap: 10px; --cut: 8px; }
  .box { padding: 12px 12px 10px; }
  .box > h2 { margin: -12px -12px 10px; padding: 8px 10px 7px 14px; font-size: 7px; }
  .box > h2::before { height: 26px; }
  .avatar { width: 96px; height: 96px; margin-right: 12px; }
  .welcome h1 { font-size: 10px; }
  .socials a { font-size: 16px; }
  .np { grid-template-columns: 56px 1fr; }
  .np-art { width: 56px; height: 56px; }
  .gh { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #gh-graph { min-width: 720px; }
  .term-out { min-height: 60px; max-height: 140px; font-size: 16px; }
  .term-in label, .term-in input { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .album { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .ph.pano { grid-column: span 2; }
  .lb button { padding: 10px 12px; }
  .lb .lb-p, .lb .lb-n { top: auto; bottom: 40px; transform: none; }
  #fps { display: none; }
  .welcome .cats-note { display: none; }
  .wall a, .wall span { width: 72px; height: 26px; font-size: 6px; }
}
/* landscape phones: the banner is the only thing that needs to shrink */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { height: 70px; }
  .frame { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #cat-layer { display: none; }
}

/* ---------- stickers ----------
   Decorative cutouts. They live INSIDE .cols (not on body) so they sit on the
   page's own layer and scroll with it - no fixed background, no scroll handler.
   .cols stretches to the height of the taller column, so bottom:0 lands in the
   dead space under the sidebar (aside is align-items:start, so it stops short).
   Desktop only: below 1100px the grid collapses and there is no space to sit in. */
.cols { position: relative; }
.box  { z-index: 1; }              /* a box always paints over a sticker */

.sticker {
  position: absolute;
  z-index: 0;
  width: var(--w, 240px);
  opacity: var(--op, .92);
  pointer-events: none;
  user-select: none;
}
.sticker img { display: block; width: 100%; height: auto; }

/* Sam - bottom right, under the sidebar */
.st-ds1 { --w: 250px; right: 10px; bottom: 0; }

/* BT-7274 - bottom-right corner INSIDE the welcome box. z-index:-1 puts him
   above the box's gradient but behind the text, so copy always stays readable.
   The box's own clip-path trims his corner on the chamfer. */
.st-bt { --w: 160px; right: 15px; bottom: 0; z-index: -1; }
/* narrower window -> the copy wraps longer and reaches further right, so he
   steps down to stay clear of it. Measured, not guessed. */
@media (max-width: 1300px) { .st-bt { --w: 130px; } }

@media (max-width: 1150px) { .sticker { display: none; } }

/* ---------- phones: touch ergonomics ----------
   Same query as the phone layout block above, so it tracks whatever that
   matches. Nothing here changes type size or colour - only the size of the
   box your thumb has to hit. Tree rows go 23px -> 40px; the font is untouched. */
@media (max-width: 600px), (max-aspect-ratio: 3/4) and (max-width: 900px) {
  /* replace the OS's grey tap flash with the site's own crimson */
  a, button, input { -webkit-tap-highlight-color: rgba(226, 27, 60, .18); }

  /* the file tree is the site's primary nav on a phone - it has to be hittable */
  .tree li { padding: 0; }
  .tree .dir > button,
  .tree .file a { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }

  /* small text links: pad the hit box, leave the glyphs alone */
  .crumb a, footer a { display: inline-block; padding: 10px 6px; }
  .links a { min-height: 40px; display: flex; align-items: center; }
  .socials a { padding: 8px 14px; }
}
