/* principalaiengineering.com's one sheet, before a page's own (watch.css): the theme (theme.css, its tokens, pools,
   split line, button, ring and fall) and its motion, then what every page draws alike: the nav, the footer, the tiles,
   the lists, and the front page, About, the books and the legal pages. Ported from EC's site sheets (its nav, footer,
   tiles and front page), 2026-11-11, and made for one kind of thing, a video. Every colour is a theme token:
   .system/tests/test_palette.py fails one of its own. No page carries a style of its own (its policy allows none), so
   everything a page wears is here. */
@import "theme.css";
@import "motion.css";

/* Page transitions (motion.css's): each page opts in here, its one sheet, since its policy keeps <style> out. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* ── The nav: the logo home, whole and small (Joe, 2026-11-12: the "AI" icon it replaced was "missing the P"), then the
   places, the one you're in lit by the split line under its word. Laid out as EC's bar is: from 760px the logo
   108 tall at the left, centred on the places spread across the rest; on a phone the logo 96 tall beside the places
   stacked in one column, the two centred as a pair. The front page's has the places alone, under its own logo. ── */
.crumbs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 6px;
  margin-bottom: 36px; font: 600 13px/normal var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.crumbs .home { display: block; line-height: 0; border-radius: 12px; outline: none; }
/* As the front page's logo: its black screened into the page's, so no square shows over a pool, and its left edge faded,
   where the shirt stops in a hard line. Pointed at or focused, it grows a little and brightens. */
.crumbs .home img { display: block; height: 108px; width: auto; aspect-ratio: 1; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--ground) 8%);
          mask-image: linear-gradient(to right, transparent, var(--ground) 8%);
  transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s; }
.crumbs .home:focus-visible { outline: var(--focus); outline-offset: 3px; }
.crumbs .home:focus-visible img { transform: scale(1.06); filter: brightness(1.15); }
@media (hover: hover) { .crumbs .home:hover img { transform: scale(1.06); filter: brightness(1.15); } }
.crumbs ul { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 36px;
  margin: 0; padding: 0; list-style: none; }
.crumbs .home + ul { padding-left: clamp(24px, 4vw, 56px); }
@media (min-width: 760px) { .crumbs:has(> .home) { display: grid; grid-template-columns: auto 1fr; align-items: center; } }
.crumbs ul a { position: relative; display: inline-flex; padding: 12px 0; font-size: 15px; letter-spacing: .28em;
  color: var(--white); text-decoration: none; outline: none;
  transition: color .2s, letter-spacing .8s cubic-bezier(.2,.8,.2,1); }
.crumbs ul a::after { content: ""; position: absolute; left: 0; right: .28em; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--split-gradient); box-shadow: 0 0 10px color-mix(in srgb, var(--volt) 60%, transparent);
  opacity: 0; transition: opacity .35s; }
.crumbs ul a[aria-current]::after, .crumbs ul a:focus-visible::after { opacity: 1; }
.crumbs ul a:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .crumbs ul a:hover::after { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) and (hover: hover) {
  .crumbs ul a:hover { letter-spacing: .4em; }
}
/* Skip to content, the first stop: out of sight until the keyboard reaches it, then a white pill at the top left. */
.skip { position: absolute; z-index: 20; top: 8px; left: 0; padding: 12px 20px; border-radius: 999px; background: var(--white);
  color: var(--ground); font: 600 13px/normal var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; clip-path: inset(50%); }
.skip:focus-visible { clip-path: none; outline: var(--focus); outline-offset: 2px; }
body > .skip { top: 16px; left: var(--gutter-l); }
@media (max-width: 759px) {
  .crumbs { gap: 10px 20px; margin-bottom: 28px; }
  .crumbs ul { flex-basis: 100%; justify-content: space-between; gap: 0 12px; }
  .crumbs ul a { font-size: 13px; letter-spacing: .18em; padding: 12px 0; }
  .crumbs:has(> .home) { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center;
    gap: 18px 36px; }
  .crumbs .home img { height: 96px; transform-origin: 50% 50%; }
  .crumbs .home + ul { display: grid; grid-template-columns: max-content; justify-items: start; gap: 0; padding: 0; }
}

/* ── The footer, last on every page (pages.py writes it from the words): the channels, each in its palette colour
   (palette.json's channels: test_site.py holds these to it), the places, the email and the copyright line ── */
.foot { position: relative; display: grid; justify-items: center; gap: 22px; width: 100%; margin: 0; text-align: center;
  padding: 50px max(var(--gutter-r), calc((100% - 1148px) / 2)) calc(30px + env(safe-area-inset-bottom, 0px))
           max(var(--gutter-l), calc((100% - 1148px) / 2));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; margin: 0; padding: 0; list-style: none; }
.foot a { color: inherit; text-decoration: none; outline: none; transition: color .2s; }
.foot a:focus-visible { color: var(--white); outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .foot a:hover { color: var(--white); } }
.foot .channels a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--silver);
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.foot .ch svg { width: 20px; height: 20px; flex: none; color: var(--c, currentColor); transition: transform .2s; }
.ch[data-key="site"] { --c: var(--blue); }
.ch[data-key="youtube"] { --c: var(--red); }
.ch[data-key="tiktok"] { --c: var(--cyan); }
.ch[data-key="discord"] { --c: var(--volt); }
.ch[data-key="linkedin"] { --c: var(--silver); }
@media (hover: hover) { .foot .ch:hover svg { transform: translateY(-1px); } }
.foot .places a { display: inline-block; padding: 6px 0; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.foot .mail { margin: 0; color: var(--steel); }
.foot .mail a { color: var(--silver); font-family: var(--mono); }
.foot .own { margin: 0; max-width: 60ch; font-size: 11.5px; letter-spacing: .02em; color: var(--muted); }
@media (pointer: coarse) { .foot .places a, .foot .channels a { padding-block: 12px; } }

/* ── A video's card, in a grid of tiles (a list, a topic): its picture, its length over the corner, its title and its
   day. Its ring (theme.css's) waits dark and still, and turns while the card is pointed at or reached ── */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tiles > li > a { position: relative; isolation: isolate; display: grid; gap: 10px; margin: -10px; padding: 10px;
  border-radius: 20px; text-decoration: none; outline: none;
  --ring-turn: 3s; --ring-play: paused; --rim-o: 0; --glow: 10% 5%; --glow-blur: 30px; --glow-o: 0; }
.tiles > li > a:focus-visible { --ring-play: running; --rim-o: 1; --glow-o: .32; }
@media (hover: hover) { .tiles > li > a:hover { --ring-play: running; --rim-o: 1; --glow-o: .32; } }
.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--panel); box-shadow: var(--card-shadow); }
.thumb img, .stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-thumb img { transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover > .video-thumb img, a.video-thumb:hover img { transform: scale(1.035); filter: brightness(1.08); }
}
.thumb .when { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 1px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, .82); color: var(--white); font: 600 12.5px/1.6 var(--mono); }
.card-title { font: 700 18px/1.3 var(--display); color: var(--white); text-wrap: balance; }
.card-meta { margin-top: -4px; font-size: 13px; font-weight: 500; color: var(--steel); }

/* The play mark over a picture that stands for the video itself (the front page's newest): a dark disc ringed in white
   with the theme's volt glow, YouTube's red when pointed at. */
.video-player::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 3; width: clamp(52px, 13%, 84px);
  aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 7.2v9.6l7.6-4.8z' fill='%23ffffff'/%3E%3C/svg%3E") center / 46% no-repeat,
              rgba(0, 0, 0, .6);
  box-shadow: 0 0 0 2px var(--white), 0 0 34px color-mix(in srgb, var(--volt) 70%, transparent);
  transition: background-color .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
.video-player:focus-visible::after { background-color: var(--red); transform: scale(1.08); }
@media (hover: hover) { .video-player:hover::after { background-color: var(--red); transform: scale(1.08); } }

/* ── A list's own: the topics, each with how many videos it holds ── */
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.topic-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px;
  border-radius: 14px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; outline: none;
  transition: background .2s, box-shadow .2s; }
.topic-list a:focus-visible { outline: var(--focus); outline-offset: -2px; background: var(--fill-2); }
@media (hover: hover) { .topic-list a:hover { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--warm); } }
.topic-list .n { font: 700 17px/1.3 var(--display); color: var(--white); }
.topic-list .n::before, .chips a::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px .15em 0;
  border-radius: 50%; background: var(--warm); box-shadow: 0 0 8px var(--warm); }
.topic-list .k { flex: none; font-size: 12px; }

/* ── The front page, laid out as a channel's home tab (2026-11-12; Joe: "The full height logo is odd because you can't
   tell if you need to scroll"): the logo small and centred at the top, about a quarter of the screen's height at most;
   the places across the column under it; then at once the top row, a picture beside its words, so the page is under
   way above the fold and the next card shows under it. --logo-h is the logo's height and --pad the air over it, both
   by the screen's height. Nothing here is as tall as the screen. ── */
.front { --logo-h: clamp(150px, 30vh, 300px); --pad: clamp(16px, 3vh, 40px); }
.front .wrap { padding-top: var(--pad); }
.front .hero { margin: 0; line-height: 0; display: flex; justify-content: center; }
.logo-link { display: block; line-height: 0; border-radius: 16px; outline: none; }
.logo-link:focus-visible { outline: var(--focus); outline-offset: 4px; }
/* Its ground screened into the page's, so no square shows over a pool; its left edge faded, where the shirt would stop
   in a hard line. Pointed at, it grows a little and brightens. */
.front .logo { display: block; height: var(--logo-h); width: auto; aspect-ratio: 1; max-width: 84vw; object-fit: contain;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--ground) 8%, var(--ground) 97%, transparent);
          mask-image: linear-gradient(to right, transparent, var(--ground) 8%, var(--ground) 97%, transparent);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s; }
.logo-link:focus-visible .logo { transform: scale(1.04); filter: brightness(1.12); }
@media (hover: hover) { .logo-link:hover .logo { transform: scale(1.04); filter: brightness(1.12); } }
/* The places spread across the column, as wide as the page under them. */
.front .crumbs { margin: clamp(8px, 2vh, 24px) 0 clamp(14px, 2.6vh, 30px); }
.front .crumbs ul { justify-content: space-between; }
.home { display: flex; flex-direction: column; gap: 34px; }
.home > * { min-width: 0; }

/* The top row: the newest video and its words (pages.py's .featured), then what it is, in a box under it; with no video
   yet, the honest panel where its picture will be and what it is beside it, the one row. Under 1000px, one column, and
   the panel goes under the words it would stand beside. */
.top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
@media (min-width: 1000px) {
  .top { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 24px 34px; align-items: start; }
  .top > .featured:not(.none), .featured:not(.none) + .intro { grid-column: 1 / -1; }
}
@media (max-width: 999px) { .featured.none { order: 1; } }

/* The newest video: its picture, which plays on its page, and its words beside it, the row lit whole as its picture is
   (sparkle.js); its padding given back by its margin, so at rest it sits where it would without it. */
.featured { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 20px 30px; align-items: start;
  padding: 12px; margin: -12px; border-radius: 20px; }
@media (min-width: 1220px) { .featured { padding: 20px; margin: -20px; } }
@media (max-width: 999px) { .featured { grid-template-columns: minmax(0, 1fr); } }
.stage { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--panel);
  box-shadow: var(--card-shadow), 0 0 60px color-mix(in srgb, var(--volt) 18%, transparent); outline: none; }
.stage:focus-visible { outline: var(--focus); outline-offset: -2px; }
/* The split line along a stage's foot, as along every page's top. */
:is(.stage, .featured.none)::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px;
  background: var(--split-gradient); box-shadow: 0 0 12px color-mix(in srgb, var(--volt) 55%, transparent); pointer-events: none; }
.feat-info { display: grid; gap: 8px; justify-items: start; min-width: 0; padding-top: 2px; }
.featured h2 { margin: 0; font: 800 clamp(20px, 2vw, 26px)/1.28 var(--display); letter-spacing: .02em; text-transform: uppercase;
  text-wrap: balance; color: var(--white); }
.featured h2 a { color: inherit; text-decoration: none; outline: none; }
.featured h2 a:focus-visible { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (hover: hover) { .featured h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; } }
.feat-meta { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--white); }
.feat-desc { margin: 0 0 6px; max-width: 62ch; font-size: 14.5px; line-height: 1.62; color: var(--silver); }

/* With no video yet: a quiet stage, the fall coming down it, its honest line in the middle. */
.featured.none { isolation: isolate; overflow: hidden; display: grid; grid-template-columns: none; place-content: center;
  justify-items: center; gap: 12px;
  aspect-ratio: 16 / 9; margin: 0; padding: 28px; border-radius: 12px; text-align: center;
  background: radial-gradient(70% 60% at 50% 100%, color-mix(in srgb, var(--volt) 14%, transparent), transparent 70%), var(--panel);
  box-shadow: var(--card-shadow), 0 0 60px color-mix(in srgb, var(--volt) 14%, transparent); }
.featured.none > :not(.fall) { position: relative; }
.featured.none h2 { font-size: clamp(21px, 2.3vw, 32px); letter-spacing: .01em; text-transform: none;
  background: var(--metal-gradient); background-size: 100% 1lh; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.featured.none .fall > span:nth-child(1) { --x: 6%; --t: 17s; --d: -3s; }
.featured.none .fall > span:nth-child(2) { --x: 20%; --t: 23s; --d: -12s; }
.featured.none .fall > span:nth-child(3) { --x: 74%; --t: 20s; --d: -7s; }
.featured.none .fall > span:nth-child(4) { --x: 88%; --t: 26s; --d: -17s; }
.featured.none .fall > span:nth-child(5) { --x: 50%; --t: 29s; --d: -22s; }

/* What it is, in his words: the quote on the theme's rule, the line it is for, and Subscribe. Beside the panel it stands
   on the page; under a video it is a box, its quote at the left and the rest at the right. */
.intro { display: grid; gap: 16px; justify-items: start; align-content: start; min-width: 0; }
.intro .said blockquote p { font-size: clamp(20px, 1.85vw, 25px); }
.featured:not(.none) + .intro { padding: 22px 26px 24px; border-radius: 16px; background: var(--fill); }
@media (min-width: 1000px) {
  .featured:not(.none) + .intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 40px; }
  .featured:not(.none) + .intro > .eyebrow { grid-area: 1 / 1; }
  .featured:not(.none) + .intro > .said { grid-area: 2 / 1 / 4 / 2; }
  .featured:not(.none) + .intro > .lede { grid-area: 2 / 2; }
  .featured:not(.none) + .intro > .go { grid-area: 3 / 2; }
}
.said { position: relative; display: grid; gap: 14px; margin: 0; padding: 4px 0 4px 28px; }
.said::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px;
  background: var(--rule-gradient); box-shadow: 0 0 14px color-mix(in srgb, var(--volt) 55%, transparent); }
.said blockquote { margin: 0; }
.said blockquote p { margin: 0; font: 600 clamp(22px, 2.7vw, 34px)/1.32 var(--display); color: var(--white); text-wrap: pretty; }
.said figcaption { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.intro .lede { font-size: clamp(16px, 1.4vw, 18px); }
.go { display: flex; flex-wrap: wrap; gap: 12px; }
.go > .white { --c: var(--white); --hover: color-mix(in srgb, var(--cyan) 28%, var(--white)); }
.go > .white svg { color: var(--red); }

/* A shelf (the front page's topics): a hairline over it, its title and All topics in a pill; the topics as chips, each
   with the warm dot of the human half (palette.json's kind for a topic). */
.shelf { display: grid; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); }
.shelf-head { display: flex; align-items: center; gap: 12px; }
.shelf-head h2 { margin: 0; font: 800 20px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.shelf-head .more { flex: none; display: inline-flex; align-items: center; height: 40px; margin-left: auto; padding: 0 18px;
  border-radius: 999px; background: var(--fill); color: var(--white); font-size: 12px; text-decoration: none; outline: none;
  transition: background .2s; }
.shelf-head .more:focus-visible { background: var(--fill-2); outline: var(--focus); outline-offset: -2px; }
@media (hover: hover) { .shelf-head .more:hover { background: var(--fill-2); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 14.5px; font-weight: 500; text-decoration: none;
  outline: none; transition: background .2s, color .2s, box-shadow .2s; }
.chips a::before { margin: 0 10px 0 0; }
.chips a:focus-visible { outline: var(--focus); outline-offset: -2px; color: var(--white); background: var(--fill-2); }
@media (hover: hover) { .chips a:hover { color: var(--white); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--warm); } }

/* Joseph Malicke's card: the face at its left (the logo's, cut to it), his name and his words at its right, the whole
   card one link to About, a layer under its button; pointed at, it rises and the theme's ring turns round it. Under
   760px the face goes on top. */
.lead { position: relative; width: 100%; border-radius: 18px; transition: transform .45s cubic-bezier(.2,.8,.2,1);
  --ring-turn: 4s; --ring-play: paused; --rim: 2px; --rim-o: 0; --glow: 2% 1%; --glow-blur: 48px; --glow-o: .22; }
.lead::before { z-index: 0; border-radius: 28px; }
.lead::before, .lead::after { transition-duration: .45s; }
.feature { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 440px; border-radius: 18px;
  background: var(--panel); container-type: inline-size; box-shadow: var(--card-shadow); transition: box-shadow .45s; }
.feature .whole { position: absolute; inset: 0; z-index: 1; border-radius: inherit; outline: none; }
.feature .whole:focus-visible { outline: var(--focus); outline-offset: -2px; }
.lead:has(.whole:focus-visible) .feature { z-index: 4; }
/* The face is the logo's, cut to it: the picture twice the art's width or so, its lettering masked off past the face's
   right edge (47% of the logo), its black ground screened into the panel so no edge shows, from the hair to the beard. */
.feature .art { position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 46%; overflow: hidden;
  border-radius: 18px 0 0 18px; background: var(--panel); }
.feature .art img { position: absolute; left: 0; top: 0; width: 132%; max-width: none; height: auto; translate: 6% -7%;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, var(--ground) 45%, transparent 48%);
          mask-image: linear-gradient(90deg, var(--ground) 45%, transparent 48%);
  transform-origin: 27% 38%; transition: scale .8s cubic-bezier(.2,.8,.2,1), filter .8s; }
.feature .art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, color-mix(in srgb, var(--panel) 70%, transparent) 82%, var(--panel)); }
.feature .body { display: grid; align-content: center; justify-items: start; gap: 14px; flex: 1; margin-left: 46%;
  padding: 48px 56px 48px 22px; }
.feature .eyebrow { margin-bottom: 2px; }
.feature .n { margin: 0; font: 800 clamp(32px, 6cqi, 58px)/1.04 var(--display); letter-spacing: -.01em; color: var(--white);
  background: var(--metal-gradient); background-size: 100% 1lh; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-wrap: balance; padding-bottom: .06em; }
.feature .d { margin: 0; font-size: clamp(16px, 1.8cqi, 18px); font-weight: 500; line-height: 1.45; color: var(--silver); }
.feature .said { margin-top: 6px; }
.feature .said blockquote p { font-size: clamp(19px, 2.4cqi, 24px); }
.feature .go { margin-top: 10px; }
.feature .go > a { position: relative; z-index: 2; }
.feature .body > * { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: no-preference) { .feature .go > a:focus-visible svg { transform: translateX(4px); } }
@media (prefers-reduced-motion: no-preference) and (hover: hover) { .feature .go > a:hover svg { transform: translateX(4px); } }
.lead:has(.whole:focus-visible) { transform: translateY(-5px); --glow-o: .6; --rim-o: 1; --ring-play: running; }
.lead:has(.whole:focus-visible) .art img { scale: 1.04; filter: brightness(1.1); }
@media (hover: hover) {
  .lead:hover { transform: translateY(-5px); --glow-o: .6; --rim-o: 1; --ring-play: running; }
  .lead:hover .art img { scale: 1.04; filter: brightness(1.1); }
}

/* The books' card, last: the first book's name large in the metal, glowing a little as the logo's lettering does, the
   fall coming down its right side; the whole card one link to the books, the theme's ring turning round it when pointed at. */
.made { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 12px; justify-items: start;
  padding: 34px 36px 36px; border-radius: 18px; background: var(--panel); box-shadow: var(--card-shadow);
  --ring-turn: 4s; --ring-play: paused; --rim: 1.5px; --rim-o: .35; --glow-o: 0; --glow-blur: 44px; }
.made > :not(.fall, .whole) { position: relative; }
.made .whole { position: absolute; inset: 0; z-index: 1; border-radius: inherit; outline: none; }
.made .whole:focus-visible { outline: var(--focus); outline-offset: -2px; }
.made:has(.whole:focus-visible) { --ring-play: running; --rim-o: 1; --glow-o: .28; }
@media (hover: hover) { .made:hover { --ring-play: running; --rim-o: 1; --glow-o: .28; } }
.made h2 { margin: 2px 0 0; padding: 0 clamp(0px, 16vw, 230px) .06em 0;
  font: 800 clamp(28px, 5vw, 56px)/1.06 var(--display); letter-spacing: .02em; text-transform: uppercase; text-wrap: balance;
  color: var(--white); background: var(--metal-gradient); background-size: 100% 1lh; -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1px color-mix(in srgb, var(--cyan) 60%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--volt) 40%, transparent)); }
.made .d { margin: 0; max-width: 44ch; font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; line-height: 1.45; color: var(--silver); }
.made .by { margin: 0; color: var(--steel); }
.made .status { margin-top: 8px; }
.made .fall { left: 60%; }
.made .fall > span:nth-child(1) { --x: 14%; --t: 18s; --d: -5s; }
.made .fall > span:nth-child(2) { --x: 36%; --t: 23s; --d: -14s; }
.made .fall > span:nth-child(3) { --x: 58%; --t: 20s; --d: -9s; }
.made .fall > span:nth-child(4) { --x: 78%; --t: 26s; --d: -20s; }
.made .fall > span:nth-child(5) { --x: 92%; --t: 21s; --d: -1s; }

@media (max-width: 759px) {
  .front .crumbs { margin-bottom: 18px; }
  .feature { min-height: 0; }
  .feature .art { position: relative; inset: auto; width: auto; aspect-ratio: 4 / 3; border-radius: 18px 18px 0 0; }
  .feature .art img { translate: 11% -7%; }
  .feature .art::after { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--panel) 75%, transparent) 82%, var(--panel)); }
  .feature .body { margin: -48px 0 0; padding: 0 24px 28px; }
  .made { padding: 26px 22px 28px; }
  .made h2 { padding-right: 0; }
  .made .fall { display: none; }     /* a phone's words fill the width: nothing falls through them */
}
@media (max-width: 599px) {
  .home { gap: 28px; }
  .shelf { padding-top: 22px; }
  .featured:not(.none) + .intro { padding: 18px 18px 20px; }
  :is(.intro, .feature) .go > a { flex: 1 1 auto; }
  .feature .go { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .front .logo, .lead, .feature .art img, .feature .body > * { transition: none; }
  .logo-link:focus-visible .logo, .lead:has(.whole:focus-visible), .lead:has(.whole:focus-visible) .art img { transform: none; scale: none; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .logo-link:hover .logo, .lead:hover, .lead:hover .art img { transform: none; scale: none; }
}

/* ── About and the legal pages ── */
.about, .prose { display: grid; gap: 26px; justify-items: start; max-width: 780px; }
.sign { margin: 0; color: var(--silver); }
.write h2 { margin: 0 0 8px; font: 700 21px/1.2 var(--display); color: var(--white); }
.mail { margin: 0; }
.about .mail a { font: 600 clamp(17px, 2.2vw, 22px)/1.4 var(--mono); color: var(--link); text-decoration: none; overflow-wrap: anywhere; outline: none; }
.about .mail a:focus-visible { text-decoration: underline; text-underline-offset: 5px; outline: none; }
@media (hover: hover) { .about .mail a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.prose a { color: var(--link); text-underline-offset: 3px; }
.status { margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.status .k { color: var(--amber); }
.facts { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 24px; color: var(--text); }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.facts b { color: var(--white); }

/* ── The books (/book/), laid out as a bookshop lays out a book (Joe, 2026-11-12: "a standard buy-a-book"): its cover,
   then beside it its status, its name, the author, its words, one button and its details, ruled as a shop's are; under
   the first, what's inside, numbered. Under 760px the cover stands on top, centred. The covers are drawn in CSS alone,
   no picture: the panel's dark lit blue from its top corner, a spine's fold down the left, the split line across the
   top, the name in the metal and the fall behind it. ── */
.books { display: grid; gap: 64px; }
.books > .title + .title { padding-top: 64px; border-top: 1px solid var(--line); }
.title-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 64px);
  align-items: start; }
.cover { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; aspect-ratio: 2 / 3;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 14% 9% 11% 15%; border-radius: 3px 10px 10px 3px;
  background: radial-gradient(130% 75% at 90% 0%, color-mix(in srgb, var(--volt) 24%, transparent), transparent 62%),
              linear-gradient(172deg, var(--panel), var(--ground));
  box-shadow: var(--card-shadow), 0 0 44px color-mix(in srgb, var(--volt) 16%, transparent); }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 2; width: 6%;
  background: linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(255, 255, 255, .07) 62%, rgba(0, 0, 0, .4)); }
.cover::after { content: ""; position: absolute; inset: 0 0 auto; z-index: 2; height: 3px; background: var(--split-gradient);
  box-shadow: 0 0 12px color-mix(in srgb, var(--volt) 55%, transparent); }
.cover > :not(.fall) { position: relative; z-index: 1; }
.cover .ct { align-self: center; display: grid; justify-items: start; gap: 3cqi; }
.cover b { font-weight: 800; font-family: var(--display); color: var(--white); background: var(--metal-gradient);
  background-size: 100% 1lh; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1px color-mix(in srgb, var(--cyan) 60%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--volt) 45%, transparent)); }
.cover .ca { font: 600 4.4cqi/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--steel); }
.c49 b { font-size: 52cqi; line-height: .9; letter-spacing: -.02em; padding-bottom: .04em; }
.c49 .ct > span { font: 700 10cqi/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
.csr .ct { gap: 3.4cqi; }
.csr .ct > span { font: 700 9.6cqi/1 var(--display); color: var(--silver); }
.csr i { display: block; width: 46%; height: 2px; border-radius: 2px; background: var(--split-gradient);
  box-shadow: 0 0 10px color-mix(in srgb, var(--volt) 60%, transparent); }
.csr b { font-size: 13.4cqi; line-height: 1.04; letter-spacing: .01em; text-transform: uppercase; }
.csr small { margin-top: 2cqi; font: 500 5.2cqi/1.35 var(--sans); color: var(--steel); text-wrap: balance; }
.cover .fall > span:nth-child(1) { --x: 52%; --t: 17s; --d: -6s; }
.cover .fall > span:nth-child(2) { --x: 74%; --t: 22s; --d: -15s; }
.cover .fall > span:nth-child(3) { --x: 90%; --t: 19s; --d: -2s; }
.info { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.info h2 { margin: 4px 0 0; font: 800 clamp(32px, 4.6vw, 54px)/1.06 var(--display); letter-spacing: -.005em; color: var(--white);
  background: var(--metal-gradient); background-size: 100% 1lh; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-wrap: balance; padding-bottom: .06em; }
.info .sub { margin: -8px 0 0; font-size: clamp(17px, 1.8vw, 20px); font-weight: 500; line-height: 1.4; color: var(--silver); }
.info .by { margin: 0; font-size: 16px; color: var(--steel); }
.info .by a { color: var(--link); text-underline-offset: 3px; }
.info .blurb { margin: 0; max-width: 64ch; font-size: 16.5px; color: var(--text); }
.info .go { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .info .go > a:focus-visible svg { transform: translateY(3px); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) { .info .go > a:hover svg { transform: translateY(3px); } }
.details { width: 100%; max-width: 560px; margin: 10px 0 0; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--line); }
.details dt { padding-top: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.details dd { margin: 0; color: var(--silver); }
.inside { margin-top: 44px; padding: 30px 34px 32px; border-radius: 18px; background: var(--panel); box-shadow: var(--card-shadow);
  scroll-margin-top: 24px; }
.inside h3 { margin: 0; font: 700 clamp(21px, 2.4vw, 26px)/1.2 var(--display); color: var(--white); }
.inside .note { margin: 6px 0 0; color: var(--steel); }
.inside h4 { margin: 28px 0 6px; }
.toc { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.toc.two { columns: 2 320px; column-gap: 44px; }
.toc li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; padding: 11px 0;
  border-bottom: 1px solid var(--line); counter-increment: n; break-inside: avoid; }
.toc li::before { content: counter(n, decimal-leading-zero); font: 600 13px/1 var(--mono); color: var(--cyan); }
.toc .pn { font-weight: 500; color: var(--white); }
.toc .gloss { grid-column: 2; font-size: 13.5px; line-height: 1.5; color: var(--steel); }
@media (max-width: 759px) {
  .books { gap: 48px; }
  .books > .title + .title { padding-top: 48px; }
  .title-card { grid-template-columns: minmax(0, 1fr); }
  .cover { justify-self: center; width: min(260px, 72%); }
  .info .go { justify-self: stretch; }
  .info .go > a { flex: 1 1 auto; }
  .details > div { grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 12px; }
  .inside { margin-top: 36px; padding: 22px 18px 24px; }
}
