/* =========================================================================
   frank.petril.li tactical print system
   Monochrome, halftone, registration-red. Everything is a printed sheet.
   ========================================================================= */

:root {
  --bg: #0a0a0b;
  --fg: #ece9e3;
  --acc: #ff3b1f;
  --dim: color-mix(in srgb, var(--fg) 70%, transparent);
  --faint: color-mix(in srgb, var(--fg) 48%, transparent);
  --line: color-mix(in srgb, var(--fg) 27%, transparent);
  --panel: color-mix(in srgb, var(--fg) 6%, transparent);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --disp: "Anton", "Arial Narrow", Impact, sans-serif;

  --gut: clamp(18px, 4.2vw, 56px);
  --rail: 30px;
  --maxw: 1560px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

html[data-theme="light"] {
  --bg: #e9e6e0;
  --fg: #0c0c0d;
  --acc: #d61f00;
  --dim: color-mix(in srgb, var(--fg) 74%, transparent);
  --faint: color-mix(in srgb, var(--fg) 54%, transparent);
  --line: color-mix(in srgb, var(--fg) 30%, transparent);
  --panel: color-mix(in srgb, var(--fg) 6%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* the right rail is the scrollbar; hide the real one but keep wheel and keys */
@media (min-width: 1200px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { width: 0; height: 0; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}

body::before { /* halftone paper */
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(currentColor .7px, transparent .8px);
  background-size: 4px 4px;
  opacity: .05;
  pointer-events: none; z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--acc); color: #fff; }

.skip { position: fixed; left: -9999px; }
.skip:focus { left: 8px; bottom: 8px; z-index: 999; background: var(--acc); color: #fff; padding: 6px 10px; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ---------- shared label type ---------- */
.lbl, .hero__kicker, .top__status, .nav__a, .card__meta, .specs, .chip, .more, .code__bar,
.post__meta, .post__code, .shead__code, .shead__note, .shead__sub, .foot__stampline, .palette__head {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
}
.lbl { color: var(--dim); }
.lbl--hd { color: var(--fg); letter-spacing: .18em; }

/* rough, over-inked edges on the display type */
.shead__t, .band__big, .card__t, .boot__mark, .band__b, .post__navi span,
.scale__ends b, .legend__row b {
  filter: url(#grit);
}
.wordmark, .post__t, .nf__code { filter: url(#gritBig); }

/* =========================================================================
   FX overlays
   ========================================================================= */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
/* Film grain as one composited layer that only ever moves. Painting noise per
   frame on a canvas forced a full-page recomposite and cost ~48fps at 1080p. */
.fx__grain {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: var(--grain); background-repeat: repeat;
  opacity: .05; will-change: transform;
  animation: grain 1.1s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  10%  { transform: translate3d(-4%, -3%, 0); }
  20%  { transform: translate3d(-8%, 2%, 0); }
  30%  { transform: translate3d(3%, -6%, 0); }
  40%  { transform: translate3d(-3%, 6%, 0); }
  50%  { transform: translate3d(-8%, 4%, 0); }
  60%  { transform: translate3d(5%, 0, 0); }
  70%  { transform: translate3d(-2%, 5%, 0); }
  80%  { transform: translate3d(6%, -4%, 0); }
  90%  { transform: translate3d(-5%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.fx__scan {
  position: absolute; inset: 0;
  /* blend modes here cost ~20fps at 1080p, so the alpha is baked into the stripe */
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.30) 2px 3px);
  opacity: .34;
}
html[data-theme="light"] .fx__scan { opacity: .14; }
html[data-theme="light"] .fx__grain { opacity: .07; }
.fx__vig { position: absolute; inset: 0; box-shadow: inset 0 0 220px 40px rgba(0,0,0,.45); }
html[data-theme="light"] .fx__vig { box-shadow: inset 0 0 200px 30px rgba(0,0,0,.12); }

/* crop marks */
.marks { position: fixed; inset: 10px; pointer-events: none; z-index: 61; }
.marks i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--faint); }
.marks .tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.marks .tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.marks .bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.marks .br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* side rails */
.rail { position: fixed; top: 0; bottom: 0; width: var(--rail); z-index: 40; display: none; pointer-events: none; }
.rail--r { pointer-events: auto; cursor: ns-resize; }
.rail--l { left: 0; border-right: 1px solid var(--line); }
.rail--r { right: 0; border-left: 1px solid var(--line); }
.rail__txt {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono); font-size: 9px; letter-spacing: .26em;
  color: var(--faint); white-space: nowrap; text-transform: uppercase;
}
.rail--r .rail__txt { transform: translate(-50%, -50%); }

/* right rail: scroll instrument */
.rail--r { flex-direction: column; align-items: center; gap: 14px; padding: 26px 0; }
/* beats the generic `.rail { display: block }` in the same media query */
@media (min-width: 1200px) { .rail.rail--r { display: flex; } }
.rail__pct, .rail__code {
  writing-mode: vertical-rl;
  font-family: var(--mono); font-size: 9px; letter-spacing: .26em; text-transform: uppercase;
}
.rail__pct { color: var(--dim); }
.rail__code { color: var(--acc); }
.rail__track {
  flex: 1; width: 1px; background: var(--line); position: relative; min-height: 80px;
}
.rail__track i {
  position: absolute; top: 0; left: -1px; width: 3px; height: 0;
  background: var(--acc); transition: height .12s linear;
}
.rail__track::after {
  content: ""; position: absolute; left: -3px; width: 7px; height: 7px;
  background: var(--bg); border: 1px solid var(--fg);
  top: var(--at, 0%); transform: translateY(-50%) rotate(45deg);
  transition: top .12s linear;
}
@media (min-width: 1200px) { .rail { display: block; } body { padding: 0 var(--rail); } }

/* =========================================================================
   Boot sequence
   ========================================================================= */
.boot { display: none; }
html.js .boot {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .35s var(--ease), visibility .35s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
html.no-boot .boot, html.js.no-boot .boot { display: none; }
.boot__inner { width: min(420px, 78vw); }
.boot__mark { font-family: var(--disp); font-size: 64px; line-height: 1; letter-spacing: .02em; }
.boot__log {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim);
  min-height: 74px; margin: 14px 0 10px; text-transform: uppercase;
}
.boot__bar { height: 2px; background: var(--line); }
.boot__bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .12s linear; }

/* =========================================================================
   Header
   ========================================================================= */
.top { position: relative; z-index: 50; background: var(--bg); }
.top__bar {
  display: flex; align-items: center; gap: 18px;
  padding: 10px var(--gut);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand__x { color: var(--acc); display: inline-flex; align-self: center; }
.brand__x svg { width: 11px; height: 10px; display: block; fill: currentColor; }
.brand__id { font-family: var(--disp); font-size: 19px; letter-spacing: .04em; }
.brand__sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; }
.brand:hover .brand__sub { color: var(--fg); }

.top__status { margin-left: auto; color: var(--dim); display: none; white-space: nowrap; }
.top__status em { color: var(--acc); font-style: normal; margin: 0 8px; }
@media (min-width: 980px) { .top__status { display: block; } }

.top__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 980px) { .top__tools { margin-left: 18px; } }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); padding: 5px 9px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); transition: .2s var(--ease);
}
.btn:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.btn__k { display: inline-flex; }
.btn__k svg { width: 13px; height: 13px; display: block; }
.btn__t { display: none; }
@media (min-width: 620px) { .btn__t { display: inline; } }

.nav__toggle { display: grid; gap: 4px; padding: 7px 4px; }
.nav__toggle i { display: block; width: 20px; height: 1.5px; background: var(--fg); transition: .25s var(--ease); }
.nav__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (min-width: 760px) { .nav__toggle { display: none; } }

.nav {
  display: grid; grid-auto-flow: row;
  border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
}
.nav.is-open { max-height: 420px; }
.nav__a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px var(--gut); text-decoration: none; color: var(--dim);
  border-top: 1px solid var(--line); position: relative; transition: color .2s;
}
.nav__a:first-child { border-top: 0; }
.nav__a:hover, .nav__a.is-on { color: var(--fg); }
.nav__a.is-on::after { content: ""; position: absolute; left: var(--gut); bottom: 6px; width: 16px; height: 2px; background: var(--acc); }

@media (min-width: 760px) {
  .nav { grid-auto-flow: column; justify-content: start; max-height: none; overflow: visible; }
  .nav__a { border-top: 0; border-right: 1px solid var(--line); padding: 11px 26px; z-index: 0; isolation: isolate; }
  .nav__a::before {
    content: ""; position: absolute; inset: 0; background: var(--fg);
    transform: scaleY(0); transform-origin: bottom; transition: transform .28s var(--ease); z-index: -1;
  }
  .nav__a:hover { color: var(--bg); }
  .nav__a:hover::before { transform: scaleY(1); }
  .nav__a.is-on::after { left: 26px; bottom: 5px; }
}

/* ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--fg); color: var(--bg); }
.ticker__run {
  display: flex; gap: 22px; align-items: center; white-space: nowrap;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  padding: 6px 0; width: max-content;
  animation: slide 46s linear infinite;
}
.ticker__run b { color: var(--acc); }
@keyframes slide { to { transform: translateX(-25%); } }
.ticker:hover .ticker__run { animation-play-state: paused; }

/* =========================================================================
   Hero
   ========================================================================= */
.main { position: relative; z-index: 2; }

.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 0 clamp(30px, 6vw, 70px); overflow: hidden; }
.hero__facets {
  position: absolute; inset: 0 0 auto 0; width: 100%; height: min(100%, 1150px);
  pointer-events: none; display: block;
  mask-image: radial-gradient(ellipse 92% 78% at 50% 44%, #000 25%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 92% 78% at 50% 44%, #000 25%, transparent 88%);
}

.hero__head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 11px var(--gut); border-bottom: 1px solid var(--line);
  position: relative;
}
.hero__kicker { color: var(--dim); }
.hero__ver { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--faint); }

.hero__type { position: relative; padding: clamp(20px, 3.4vw, 40px) var(--gut) 0; }

.wordmark {
  position: relative; margin: 0;
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(30px, 15.9vw, 262px);
  line-height: .9; letter-spacing: -.012em;
  text-transform: uppercase; white-space: nowrap;
}
.wordmark span {
  display: block;
  background-color: var(--fg);
  background-image: var(--noise);
  background-blend-mode: screen;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
html[data-theme="light"] .wordmark span { background-blend-mode: multiply; }

.wordmark::before, .wordmark::after {
  content: attr(data-glitch);
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
}
.wordmark::before { color: var(--acc); }
.wordmark::after { color: var(--fg); }
.wordmark.is-glitch::before { animation: tear-a .15s steps(2) 1; }
.wordmark.is-glitch::after  { animation: tear-b .15s steps(2) 1; }
.wordmark.is-glitch span    { animation: slip .15s steps(3) 1; }

/* Two thin bands slip sideways for a couple of frames, like a sync tear. JS
   randomises --t1/--t2/--d so it never repeats the same way twice. */
@keyframes tear-a {
  0%, 100% { opacity: 0; transform: none; }
  15% {
    opacity: .95; transform: translateX(var(--d, 3px));
    clip-path: inset(var(--t1, 28%) 0 calc(94% - var(--t1, 28%)) 0);
  }
  55% {
    opacity: .8; transform: translateX(calc(var(--d, 3px) * -0.7));
    clip-path: inset(var(--t2, 62%) 0 calc(96% - var(--t2, 62%)) 0);
  }
}
@keyframes tear-b {
  0%, 100% { opacity: 0; transform: none; }
  30% {
    opacity: .7; transform: translateX(calc(var(--d, 3px) * -1));
    clip-path: inset(var(--t2, 62%) 0 calc(95% - var(--t2, 62%)) 0);
  }
  70% {
    opacity: .5; transform: translateX(calc(var(--d, 3px) * 0.5));
    clip-path: inset(var(--t1, 28%) 0 calc(97% - var(--t1, 28%)) 0);
  }
}
@keyframes slip {
  0%, 100% { transform: none; }
  40% { transform: translateX(calc(var(--d, 3px) * 0.35)); }
}

.wordmark__sub { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.wordmark__role {
  font-family: var(--mono); font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: .22em; text-transform: uppercase; color: var(--fg); white-space: nowrap;
}
.wordmark__rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- memory map ---------- */
.scale { position: relative; padding: clamp(40px, 6vw, 80px) var(--gut) 0; }
.scale__track { border-top: 1px solid var(--line); }
/* three stagger rows: the kB-to-MB end has five marks packed close together */
.scale__track { position: relative; height: 285px; margin-top: 0; padding-top: 8px; }
.scale__axis { position: absolute; left: 0; right: 0; top: 66%; height: 1px; background: var(--fg); opacity: .6; }

.scale__tick { position: absolute; left: var(--p); top: 66%; }
.scale__tick::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 9px; background: var(--line); }
.scale__tick b {
  position: absolute; top: 16px; left: 0; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--faint); white-space: nowrap;
}
.scale__ticks i:first-child b { transform: translateX(0); }
.scale__ticks i:last-child b { transform: translateX(-100%); }

.scale__pin {
  position: absolute; left: var(--p); bottom: 34%;
  height: calc(30px + var(--row) * 44px);
  transition: color .25s var(--ease);
}
.scale__pin::before { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 100%; background: var(--line); }
.scale__pin::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 6px; height: 6px;
  background: var(--faint); transform: translateX(-50%); transition: background .25s, transform .25s;
}
.scale__pin b, .scale__pin i {
  position: absolute; left: 0; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--mono); font-style: normal;
}
.scale__pin b { bottom: calc(100% + 15px); font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.scale__pin i { bottom: calc(100% + 2px); font-size: 9px; letter-spacing: .1em; color: var(--faint); }
.scale__pin.is-start b, .scale__pin.is-start i { transform: translateX(0); }
.scale__pin.is-end b, .scale__pin.is-end i { transform: translateX(-100%); }
.scale__pin.is-hot::before { background: var(--acc); }
.scale__pin.is-hot::after { background: var(--acc); transform: translateX(-50%) scale(1.5); }
.scale__pin.is-hot b { color: var(--fg); }
.scale__pin.is-hot i { color: var(--acc); }


.scale__ends {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px;
}
.scale__ends b { font-family: var(--disp); font-size: clamp(20px, 2.6vw, 30px); line-height: 1; letter-spacing: .04em; }

@media (max-width: 900px) {
  .scale__track { height: 170px; }
  .scale__pin b, .scale__pin i { display: none; }
  .scale__pin { height: calc(22px + var(--row) * 20px); }
  .scale__ticks i:nth-child(even) b { display: none; }
}

/* ---------- the hero statement ---------- */
.say { position: relative; margin-top: clamp(20px, 2.8vw, 34px); display: grid; gap: clamp(14px, 1.8vw, 22px); }
.say__big, .say__sub, .say__body, .say__key { margin: 0; }
.say__big b {
  display: block; font-family: var(--disp); font-weight: 400;
  font-size: clamp(19px, 3vw, 40px); line-height: 1.14; letter-spacing: .005em;
  filter: url(#grit);
}
.say__sub b {
  display: block; font-family: var(--disp); font-weight: 400;
  font-size: clamp(15px, 1.9vw, 25px); line-height: 1.2; letter-spacing: .02em;
  color: var(--dim); filter: url(#grit);
}
.say__body { max-width: 62ch; color: var(--dim); font-size: 15px; line-height: 1.75; }
.term {
  text-decoration: none; cursor: help; outline: none;
  border-bottom: 2px solid color-mix(in srgb, var(--fg) 30%, transparent);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.term:hover, .term:focus-visible, .term.is-on { color: var(--acc); border-bottom-color: var(--acc); }

.tip {
  position: absolute; z-index: 20; pointer-events: none;
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--fg);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--acc) 85%, transparent);
  padding: 8px 11px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  animation: tip .16s var(--ease);
}
.tip[hidden] { display: none; }
@keyframes tip { from { opacity: 0; transform: translateY(4px); } }
.tip b { color: var(--acc); font-weight: 400; }
.tip span { color: var(--fg); }
.tip em { font-style: normal; color: var(--faint); }
.tip::after {
  content: ""; position: absolute; left: var(--nx, 20px); bottom: -5px;
  width: 8px; height: 8px; background: var(--bg);
  border-right: 1px solid var(--fg); border-bottom: 1px solid var(--fg);
  transform: rotate(45deg);
}

/* ---------- work dial ---------- */
.work { padding: clamp(36px, 5vw, 70px) var(--gut) 0; position: relative; }
.work__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: clamp(22px, 3vw, 36px);
}
.work__readout {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--acc);
  text-transform: uppercase; white-space: nowrap;
}
.work__grid { display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (min-width: 980px) { .work__grid { grid-template-columns: minmax(320px, 480px) 1fr; } }

.radar { position: relative; aspect-ratio: 144 / 124; width: 100%; max-width: 500px; justify-self: center; }
.radar svg { width: 100%; height: 100%; display: block; }
.r-ring { fill: none; stroke: var(--line); stroke-width: .2; }
.r-ring--out { stroke: var(--dim); stroke-width: .3; }
.r-spoke { stroke: var(--line); stroke-width: .2; }
.r-shape {
  fill: url(#rfill);
  stroke: var(--acc); stroke-width: .55; stroke-linejoin: round;
}
.r-dot { fill: var(--acc); }
.r-ax {
  fill: var(--faint); font-family: var(--mono); font-size: 3.3px; letter-spacing: .14em;
  transition: fill .25s var(--ease);
}
.r-ax.is-hot { fill: var(--fg); }

/* project list */
.legend { display: grid; gap: clamp(20px, 2.6vw, 30px); align-content: start; }
.legend__gh {
  margin: 0 0 6px; display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .28em; font-weight: 400;
  text-transform: uppercase; color: var(--acc);
}
.legend__gh::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 1; }
.legend__gh i {
  order: 2; font-style: normal; font-size: 8.5px; letter-spacing: .2em; color: var(--faint);
}
.legend__l { list-style: none; margin: 0; padding: 0; }

.legend__i { border-top: 1px solid var(--line); }
.legend__i:last-child { border-bottom: 1px solid var(--line); }
.legend__row {
  width: 100%; text-align: left; font: inherit;
  display: grid; grid-template-columns: 34px 1fr auto auto; gap: 4px 12px;
  grid-template-areas: "num name role go" ".   note note go";
  align-items: baseline; padding: 11px 4px 11px 0;
  position: relative; text-decoration: none; color: inherit; cursor: pointer; outline: none;
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.legend__row::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--acc); transform: scaleY(0); transform-origin: top; transition: transform .25s var(--ease);
}
.legend__i.is-on .legend__row { background: var(--panel); padding-left: 10px; }
.legend__i.is-on .legend__row::before { transform: scaleY(1); }
.legend__row:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.legend__row > * { min-width: 0; }
@media (max-width: 680px) {
  .legend__row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas: "num name go" ".   role go" ".   note note";
    row-gap: 7px;
  }
  .legend__row > i { justify-self: start; }
}
.legend__row em { grid-area: num; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--acc); }
.legend__row b {
  grid-area: name; overflow-wrap: anywhere; font-family: var(--disp); font-weight: 400;
  font-size: clamp(17px, 2vw, 24px); line-height: 1; letter-spacing: .01em;
  color: var(--dim); transition: color .2s;
}
.legend__i.is-on .legend__row b { color: var(--fg); }
.legend__org {
  text-decoration: none; color: var(--faint); white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; vertical-align: .12em;
}
.legend__i.is-on .legend__org { color: var(--acc); }
.legend__row i u { text-decoration: none; }
.legend__row > i {
  grid-area: role; font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  color: var(--faint); border: 1px solid var(--line); padding: 3px 7px; white-space: nowrap;
}
.legend__i.is-on .legend__row > i { color: var(--acc); border-color: var(--acc); }
.legend__n { grid-area: note; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--faint); line-height: 1.6; }
.legend__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.legend__i.is-open .legend__body { grid-template-rows: 1fr; }
.legend__body > p {
  overflow: hidden; margin: 0;
  font-size: 14px; line-height: 1.7; color: var(--dim);
  max-width: 68ch; padding-left: 46px;
}
.legend__i.is-open .legend__body > p { padding-bottom: 16px; }
/* a real button-looking affordance, not a lone plus sign */
.legend__go--x {
  position: relative; width: 22px; height: 22px; align-self: center;
  border: 1px solid var(--line); display: block;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .25s var(--ease);
}
.legend__go--x i {
  position: absolute; left: 50%; top: 50%; background: var(--dim);
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.legend__go--x i:nth-child(1) { width: 9px; height: 1.5px; transform: translate(-50%, -50%); }
.legend__go--x i:nth-child(2) { width: 1.5px; height: 9px; transform: translate(-50%, -50%); }
.legend__row:hover .legend__go--x { border-color: var(--fg); }
.legend__row:hover .legend__go--x i { background: var(--fg); }
.legend__i.is-open .legend__go--x { border-color: var(--acc); transform: rotate(45deg); }
.legend__i.is-open .legend__go--x i { background: var(--acc); }
@media (max-width: 680px) { .legend__body > p { padding-left: 28px; } }

.legend__go { grid-area: go; align-self: center; color: var(--faint); font-size: 13px; transition: color .2s, transform .2s var(--ease); }
.legend__i.is-on .legend__go { color: var(--acc); transform: translate(2px, -2px); }

/* ---------- the band ---------- */
.hero__band {
  margin: clamp(38px, 6vw, 78px) var(--gut) 0;
  background: var(--fg); color: var(--bg);
  padding: clamp(24px, 3.6vw, 48px) clamp(26px, 4vw, 58px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.band__big {
  font-family: var(--disp); font-weight: 400; margin: 0; max-width: 100%;
  font-size: clamp(28px, 5.8vw, 70px); line-height: .98; letter-spacing: -.005em; text-transform: uppercase;
}
.band__sub { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; margin: 0; opacity: .72; line-height: 2.1; text-transform: uppercase; }

/* =========================================================================
   Sections
   ========================================================================= */
.sec { padding: clamp(42px, 6.2vw, 84px) var(--gut); position: relative; max-width: var(--maxw); margin: 0 auto; }
.sec--top { padding-top: clamp(30px, 5vw, 56px); }

.shead { position: relative; margin-bottom: clamp(22px, 3vw, 38px); }
.shead__code {
  display: inline-block; color: var(--acc);
  border: 1px solid var(--acc); padding: 3px 8px; margin-bottom: 12px;
}
.shead__t {
  font-family: var(--disp); font-weight: 400; margin: 0;
  font-size: clamp(30px, 6.4vw, 78px); line-height: .92; letter-spacing: -.01em; text-transform: uppercase;
}
.shead__sub { color: var(--dim); margin-top: 10px; }
.shead__note { position: absolute; top: 4px; right: 0; color: var(--faint); }
.shead__rule { margin-top: 16px; height: 1px; background: var(--line); position: relative; }
.shead__rule i { position: absolute; left: 0; top: -1px; height: 3px; width: 64px; background: var(--acc); }

/* cards */
.cards { display: grid; }
.card {
  position: relative; display: grid; grid-template-columns: 52px 1fr 40px; gap: 14px; align-items: start;
  padding: clamp(18px, 2.4vw, 26px) 0; border-top: 1px solid var(--line);
  text-decoration: none; isolation: isolate; transition: color .3s var(--ease), padding .3s var(--ease);
}
.card:last-child { border-bottom: 1px solid var(--line); }
.card::before {
  content: ""; position: absolute; inset: 0 calc(var(--gut) * -0.5); background: var(--fg); z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform .38s var(--ease);
}
.card:hover { color: var(--bg); padding-left: 12px; }
.card:hover::before { transform: scaleX(1); }
.card__n { font-family: var(--disp); font-size: 24px; line-height: 1; color: var(--acc); padding-top: 2px; }
.card__main { display: grid; gap: 7px; }
.card__meta { color: var(--dim); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.card:hover .card__meta { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.card__meta em { color: var(--acc); font-style: normal; }
.card__meta i { font-style: normal; }
.card__t {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(21px, 3.3vw, 40px); line-height: 1.02; letter-spacing: .005em; text-transform: uppercase;
}
.card__d { font-size: 14px; color: var(--dim); max-width: 74ch; line-height: 1.65; }
.card:hover .card__d { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.card__tags { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.card:hover .card__tags { color: color-mix(in srgb, var(--bg) 50%, transparent); }
.card__go { font-size: 20px; justify-self: end; align-self: center; transform: translateX(-6px); opacity: 0; transition: .32s var(--ease); }
.card:hover .card__go { transform: translateX(0); opacity: 1; }
.card.is-hidden { display: none; }

/* tiles */
.tiles { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg); padding: 22px 20px; text-decoration: none;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tile:hover { background: var(--fg); color: var(--bg); }
.tile__n { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--acc); }
.tile__t { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tile__go { opacity: .45; }

/* bands (station) */
.bands { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.band { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); padding: 24px 20px; display: grid; gap: 6px; transition: background .25s, color .25s; }
.band:hover { background: var(--fg); color: var(--bg); }
.band__b { font-family: var(--disp); font-size: 26px; line-height: 1; letter-spacing: .02em; }
.band__f { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.band__m { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.band:hover .band__m { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.band__bar { display: block; height: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.band__bar i { display: block; height: 100%; width: 30%; background: var(--acc); animation: sweepbar 3.4s var(--ease) infinite alternate; }
@keyframes sweepbar { from { transform: translateX(-60%); } to { transform: translateX(260%); } }

/* more link */
.more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  border: 1px solid var(--line); padding: 11px 16px; text-decoration: none; color: var(--dim);
  transition: .25s var(--ease);
}
.more b { color: var(--acc); transition: transform .25s var(--ease); }
.more:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.more:hover b { color: var(--bg); transform: translateX(5px); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); padding: 6px 10px; color: var(--dim); transition: .2s var(--ease); }
.chip i { font-style: normal; color: var(--acc); margin-left: 4px; }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.is-on i { color: var(--bg); }

/* barcode */
.barcode { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 22px; }
.barcode i { display: block; width: calc(var(--w) * 1px); height: 100%; background: var(--fg); opacity: .8; }
.barcode i:nth-child(3n) { height: 70%; }
.barcode i:nth-child(5n) { height: 86%; opacity: .5; }

/* =========================================================================
   Post
   ========================================================================= */
.post { max-width: var(--maxw); margin: 0 auto; padding: clamp(26px, 4vw, 54px) var(--gut) clamp(50px, 8vw, 110px); }
.post__head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: clamp(28px, 4vw, 48px); }
.post__code { color: var(--acc); border: 1px solid var(--acc); display: inline-block; padding: 3px 8px; margin-bottom: 14px; }
.post__t {
  position: relative; margin: 0;
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(30px, 6.6vw, 82px); line-height: .96; letter-spacing: -.005em; text-transform: uppercase;
  max-width: 20ch;
}
.post__t span { display: block; background-color: var(--fg); background-image: var(--noise); background-blend-mode: screen; -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .post__t span { background-blend-mode: multiply; }
.post__t::before, .post__t::after { content: attr(data-glitch); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.post__t::before { color: var(--acc); }
.post__t::after { color: var(--fg); }
.post__t.is-glitch::before { animation: tear-a .15s steps(2) 1; }
.post__t.is-glitch::after { animation: tear-b .15s steps(2) 1; }
.post__t.is-glitch span { animation: slip .15s steps(3) 1; }

.post__meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; color: var(--fg); }
.post__meta b { color: var(--acc); font-weight: 400; margin-right: 8px; }
.post__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.post__tags a {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 4px 8px; text-decoration: none; color: var(--dim); transition: .2s;
}
.post__tags a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.post__rule { margin-top: 20px; opacity: .55; }

.post__nav { display: grid; grid-template-columns: 1fr; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 700px) { .post__nav { grid-template-columns: 1fr 1fr; } }
.post__navi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); padding: 22px 20px; text-decoration: none; display: grid; gap: 8px; transition: background .25s, color .25s; }
.post__navi:hover { background: var(--fg); color: var(--bg); }
.post__navi b { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--acc); font-weight: 400; }
.post__navi span { font-family: var(--disp); font-size: 19px; line-height: 1.1; text-transform: uppercase; }
.post__navi--n { text-align: right; }

.reading { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; }
.reading i { display: block; height: 100%; width: 0; background: var(--acc); }

/* article body + contents rail */
.post__body { display: grid; gap: clamp(26px, 4vw, 56px); align-items: start; }
@media (min-width: 1160px) {
  .post__body { grid-template-columns: minmax(0, 74ch) minmax(200px, 300px); justify-content: space-between; }
}
.toc { display: none; }
@media (min-width: 1160px) {
  .toc {
    display: block; position: sticky; top: 24px; max-height: calc(100vh - 60px); overflow-y: auto;
    border-left: 1px solid var(--line); padding-left: 18px;
  }
}
.toc__head { font-family: var(--mono); font-size: 9px; letter-spacing: .24em; color: var(--dim); margin-bottom: 12px; text-transform: uppercase; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 1px; }
.toc__list li a {
  display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: baseline;
  padding: 6px 0; text-decoration: none; color: var(--faint);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; line-height: 1.5;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.toc__list li a::before { content: counter(toc, decimal-leading-zero); counter-increment: toc; color: var(--acc); opacity: .7; font-size: 9px; }
.toc__list li.li--sub a { padding-left: 14px; font-size: 10px; }
.toc__list li.li--sub a::before { content: "·"; counter-increment: none; }
.toc__list li a:hover { color: var(--fg); }
.toc__list li.is-on a { color: var(--fg); }
.toc__list li.is-on a::before { opacity: 1; }
.toc__foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.toc__top { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--dim); text-decoration: none; }
.toc__top:hover { color: var(--acc); }

/* =========================================================================
   Prose
   ========================================================================= */
.prose { max-width: 74ch; font-size: 16.5px; line-height: 1.78; }
.prose > * { margin: 0 0 1.25em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
  line-height: 1.08; margin: 2.2em 0 .7em; position: relative;
}
.prose h2 { font-size: clamp(22px, 3.2vw, 34px); padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: clamp(18px, 2.4vw, 24px); color: var(--fg); }
.prose h4 { font-size: 15px; letter-spacing: .1em; font-family: var(--mono); font-weight: 600; }
.anchor { position: absolute; left: -1.1em; color: var(--acc); text-decoration: none; opacity: 0; transition: opacity .2s; font-family: var(--mono); font-size: .6em; top: .9em; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { opacity: 1; }
@media (max-width: 720px) { .anchor { display: none; } }

.prose a { color: var(--fg); text-decoration: none; background-image: linear-gradient(var(--acc), var(--acc)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 1px; transition: background-size .25s var(--ease), color .2s; }
.prose a:hover { color: var(--acc); background-size: 100% 2px; }
.prose a.ext::after { content: "↗"; font-size: .75em; margin-left: .25em; color: var(--acc); vertical-align: super; }

.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose ul { list-style: none; padding-left: 1.1em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: "▪"; position: absolute; left: -1.1em; color: var(--acc); font-size: .8em; top: .1em; }
.prose ul ul { margin-top: .4em; }

.prose strong { font-weight: 600; }
.prose em { font-style: normal; background: color-mix(in srgb, var(--acc) 26%, transparent); padding: 0 .22em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; position: relative; }
.prose hr::after { content: "✳"; position: absolute; left: 50%; top: -.75em; transform: translateX(-50%); background: var(--bg); padding: 0 .6em; color: var(--acc); font-size: 11px; }

.prose blockquote {
  border-left: 2px solid var(--acc); padding: .2em 0 .2em 1.2em; margin-left: 0;
  font-size: 1.02em; color: var(--dim);
}

.prose code { font-family: var(--mono); font-size: .86em; background: var(--panel); border: 1px solid var(--line); padding: .1em .35em; }
.code { margin: 1.8em 0; border: 1px solid var(--line); background: var(--panel); position: relative; max-width: min(100%, 86ch); }
.code__bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--dim); }
.code__copy { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--dim); transition: color .2s; }
.code__copy:hover { color: var(--acc); }
.code pre { margin: 0; padding: 14px; overflow-x: auto; }
.code pre code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.7; }
.code::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 3px, color-mix(in srgb, var(--fg) 4%, transparent) 3px 4px); }

.tbl { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); max-width: min(100%, 90ch); }
.tbl table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 12px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; }
.tbl th { background: var(--panel); text-transform: uppercase; letter-spacing: .12em; font-size: 9.5px; font-weight: 600; color: var(--acc); }
.tbl tr:hover td { background: var(--panel); }

.plate { margin: 2.4em 0; position: relative; padding: 14px; border: 1px solid var(--line); max-width: min(100%, 90ch); }
.plate__mark { position: absolute; color: var(--acc); font-size: 12px; line-height: 1; }
.plate__mark--tl { top: 4px; left: 4px; }
.plate__mark--br { bottom: 4px; right: 4px; }
.plate__wrap { display: block; overflow: hidden; }
.plate img {
  width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto;
  filter: grayscale(1) contrast(1.06); transition: filter .5s var(--ease), transform .7s var(--ease);
}
.plate--color img { filter: none; }
.plate:hover img { filter: grayscale(0) contrast(1); transform: scale(1.015); }
.plate figcaption { display: flex; gap: 12px; margin-top: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.plate figcaption b { color: var(--acc); font-weight: 400; }

.yt { position: relative; aspect-ratio: 16/9; margin: 2.4em 0; border: 1px solid var(--line); background: var(--panel); max-width: min(100%, 90ch); }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt__play { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center; color: var(--dim); transition: background .3s; }
.yt__play:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); }
.yt__play span { font-size: 28px; color: var(--acc); }
.yt__play em { font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: .2em; }

.fiber-swatch { display: inline-block; width: 1em; height: 1em; border: 1px solid var(--line); vertical-align: middle; margin-right: .4em; }

/* =========================================================================
   404
   ========================================================================= */
.nf { min-height: 62vh; display: grid; align-content: center; gap: 18px; padding: 10vh var(--gut); max-width: var(--maxw); margin: 0 auto; }
.nf__code { position: relative; font-family: var(--disp); font-size: clamp(90px, 26vw, 300px); line-height: .8; margin: 0; }
.nf__code span { display: block; background-color: var(--fg); background-image: var(--noise); background-blend-mode: screen; -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .nf__code span { background-blend-mode: multiply; }
.nf__code::before, .nf__code::after { content: attr(data-glitch); position: absolute; inset: 0; opacity: 0; }
.nf__code::before { color: var(--acc); }
.nf__code::after { color: var(--fg); }
.nf__code.is-glitch::before { animation: tear-a .15s steps(2) 1; }
.nf__code.is-glitch::after { animation: tear-b .15s steps(2) 1; }
.nf__code.is-glitch span { animation: slip .15s steps(3) 1; }
.nf__big { font-family: var(--disp); font-weight: 400; font-size: clamp(24px, 4.6vw, 52px); margin: 0; line-height: 1.05; text-transform: uppercase; }
.nf__sub { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); line-height: 2.2; margin: 0; text-transform: uppercase; }
.nf__links { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================================
   Footer
   ========================================================================= */
.foot { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); position: relative; z-index: 2; background: var(--bg); }
.foot__grid { display: grid; gap: 30px; padding: clamp(30px, 5vw, 56px) var(--gut); max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: minmax(0, 1fr) auto; } }
.foot__blurb { color: var(--dim); font-size: 14px; line-height: 1.75; margin: 12px 0 0; max-width: 46ch; }
.linklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 1px; }
.linklist a { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: .2s var(--ease); }
.linklist a i { font-style: normal; color: var(--faint); }
.linklist a:hover { color: var(--fg); padding-left: 6px; }
.linklist a:hover i { color: var(--acc); }
.foot__col--mark { display: grid; gap: 14px; align-content: start; justify-items: start; }
@media (min-width: 800px) { .foot__col--mark { justify-items: end; text-align: right; } }
.foot__stamp { border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 4px; }
.foot__stampline { color: var(--dim); }
.foot__rule { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px var(--gut); font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; max-width: var(--maxw); margin: 0 auto; }

/* =========================================================================
   Command palette
   ========================================================================= */
.palette { position: fixed; inset: 0; z-index: 150; display: grid; align-items: start; justify-items: center; padding: 10vh 16px; }
.palette[hidden] { display: none; }
.palette__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px); }
.palette__box { position: relative; width: min(660px, 100%); background: var(--bg); border: 1px solid var(--fg); box-shadow: 10px 10px 0 color-mix(in srgb, var(--acc) 85%, transparent); animation: pop .22s var(--ease); }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } }
.palette__head { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--dim); }
.palette__hint { color: var(--faint); }
.palette__input { width: 100%; background: none; border: 0; padding: 16px 14px; color: var(--fg); font-family: var(--mono); font-size: 15px; letter-spacing: .04em; }
.palette__input:focus { outline: none; }
.palette__list { list-style: none; margin: 0; padding: 0; max-height: 48vh; overflow-y: auto; border-top: 1px solid var(--line); }
.palette__list li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .15s, color .15s; }
.palette__list li a em { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--acc); }
.palette__list li a span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.palette__list li a i { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .1em; }
.palette__list li.is-sel a, .palette__list li a:hover { background: var(--fg); color: var(--bg); }
.palette__list li.is-sel a em, .palette__list li a:hover em, .palette__list li.is-sel a i, .palette__list li a:hover i { color: var(--bg); }
.palette__empty { padding: 20px 14px; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; }

/* =========================================================================
   Motion
   ========================================================================= */
html.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .fx__scan { display: none; }
  .fx__grain { animation: none; }
  html.js .boot { display: none; }
}

@media print {
  .fx, .marks, .rail, .ticker, .top__tools, .boot, .palette, .reading { display: none !important; }
  body { background: #fff; color: #000; }
}
