/* ── THE HUB AS A MASTHEAD (2026-10-15, James: "everything is taking up too much space, just design a sensible hub
   that works for this use case") ──────────────────────────────────────────────────────────────────────────────
   The series page is the feed. The hub above it is a masthead, not a screen: the home sticker and the mail sticker
   in the corners, the name (the paint, a size down), one row with THE PILE (the eight as small overlapping rounds)
   that opens the Characters pane, one quiet line (start from the top · the premise), and the feed begins inside the
   first phone screen. Loaded by /good-boy/ only, after style.css + feed.css. ── */

/* the hub is as tall as its content, not the screen */
.hub {
  min-height: 0; align-content: start;
  padding: calc(max(12px, env(safe-area-inset-top)) + 64px) var(--gutter) var(--space-lg);
}
.hub-in { gap: var(--space-md); }
.series-hub { --name-gap: 0px; }
.hub-name { gap: 0; }
.hub-kicker { font-size: 0.6875rem; }
.hub-title { width: 78%; max-width: 400px; margin-top: 4px; }
.hub-tag { width: 46%; max-width: 230px; margin: 8px 0 0 3px; }

/* THE PILE + MEET THE HOUSE: one row, the Characters door. The eight overlap like a group chat's faces; the words
   in the display face; a tap lifts the pile */
.hub-cast {
  display: inline-flex; align-items: center; gap: var(--space-md); justify-self: start;
  margin-top: var(--space-sm); color: var(--cream); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.hub-pile { display: flex; align-items: center; padding-left: 2px; }
.hub-pile img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  border: 2px solid var(--cream); box-shadow: 2px 2px 0 var(--ink); background: var(--navy);
  margin-left: -11px; transition: transform 200ms var(--ease-out);
}
.hub-pile img:first-child { margin-left: 0; }
.hub-cast-k {
  font-family: var(--display); font-size: 1rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--ink); white-space: nowrap;
}
.hub-cast-n { color: var(--yellow); }
@media (hover: hover) {
  .hub-cast:hover .hub-pile img { transform: translateY(-3px); }
  .hub-cast:hover .hub-cast-k { color: var(--yellow); }
}
.hub-cast:active .hub-pile img { transform: translateY(1px); }
.hub-cast:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

/* THE LINE: start from the top · the premise, small and quiet */
.hub-line { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--navy-dim); text-shadow: 1px 1px 0 var(--ink); }
.hub-line a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: oklch(0.97 0.03 95 / 0.45); }
.hub-line-dot { margin: 0 2px; }
@media (hover: hover) { .hub-line a:hover { color: var(--yellow); text-decoration-color: currentColor; } }
.hub-line a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* THE MAIL STICKER: a white envelope in the top right corner (the home sticker holds the left); open = yellow */
.hub-mail {
  position: absolute; z-index: 3; top: max(12px, env(safe-area-inset-top)); right: var(--gutter);
  width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer;
  color: oklch(0.985 0.01 95); filter: drop-shadow(3px 3px 0 var(--ink)); -webkit-tap-highlight-color: transparent;
  transition: transform 180ms var(--ease-out), color 180ms var(--ease-out);
}
/* the 3D envelope (James, 10-15: "like a 3d art style email letter"): Fluent's 3D emoji, img/mail-3d.png, with the
   sticker shadow; open = a little lift and tilt */
.hub-mail-img { display: block; width: 50px; height: 50px; filter: drop-shadow(3px 3px 0 var(--ink)); transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .hub-mail:hover .hub-mail-img { transform: translate(-1px, -2px) rotate(-6deg); } }
.hub-mail:active .hub-mail-img { transform: translate(2px, 2px); }
.hub-mail.is-open .hub-mail-img { transform: translateY(-2px) rotate(-8deg) scale(1.06); }
.hub-mail:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
/* the form drops down under the sticker, on the feed's own mask (James, 10-15: "use the feed background mask i hate
   that ink color"): one plain line, the field, the button; no frame, no shadow */
.hub-list[hidden] { display: none; }
.hub-list {
  position: absolute; z-index: 4; top: calc(max(12px, env(safe-area-inset-top)) + 58px); right: var(--gutter);
  width: min(340px, calc(100vw - 2 * var(--gutter)));
  gap: var(--space-sm); padding: var(--space-md) var(--space-md) var(--space-md);
  border: 0; box-shadow: none;
  background: oklch(0.13 0.035 262 / 0.76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hub-list-l {
  font-family: var(--body); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; letter-spacing: 0;
  text-transform: none; color: var(--cream); text-shadow: none;
}
.hub-list-in { min-height: 44px; }
.btn.hub-list-go { min-height: 44px; font-size: 0.9375rem; }
@media (prefers-reduced-motion: no-preference) {
  .hub-list { animation: hub-list-in 220ms var(--ease-out) backwards; }
  @keyframes hub-list-in { from { opacity: 0; transform: translateY(-8px); } }
}

/* the feed follows at once */
.feed-sec { padding-top: var(--space-lg); }

/* THE BAND'S FADE, ON THE PHONE TOO (James, 10-16: "that fade you put on it, i would actually do that for the phone version
   as well"): one even tint over the campus, heaviest on the left behind the name, lighter through the middle, a little
   back up on the right — in place of the phone's old bottom-up shade. On a phone the loop is fixed behind the whole
   page, so the fade is too; the feed keeps its own mask on top. */
.series-hub { --band-fade: linear-gradient(90deg, oklch(0.16 0.045 262 / 0.82) 0%, oklch(0.16 0.045 262 / 0.55) 55%, oklch(0.16 0.045 262 / 0.7) 100%); }
.series-hub .hub-loop::after { background: var(--band-fade); }

/* ON A DESK = THE PHONE, BIGGER AND WIDER (James, 10-16: "why not just make an enlarged version of whats on the phone, but
   its wider"; before that the sticky left rail of 10-15/16 — "constrained to this super tine section" — is gone). One
   wide column centred on the blurred campus still (to 1760 px, 28 px off the edges): THE MASTHEAD as a band — the home
   sticker and the envelope in its corners as on a phone, the name big on the left, and on the right THE PILE + MEET THE
   HOUSE over the line — then THE FEED under it on the same mask, its posts a grid of portrait stickers, as many across
   as fit at ~240 px (3 at 1440, 4 at 1920, 6 at 2480). The envelope still drops the list form down under it. The loop
   plays behind the band, a slice of the quad under a tint. */
@media (min-width: 700px) and (min-aspect-ratio: 1 / 1) {
  .series-hub { --wrap: min(1760px, calc(100vw - 56px)); --band-pad: clamp(28px, 3vw, 56px); }
  main.hub-page { display: block; padding: var(--space-2xl) 0 var(--space-5xl); }

  /* the masthead band */
  .hub {
    position: relative; width: var(--wrap); margin: 0 auto; min-height: 0; overflow: visible;
    display: block; padding: calc(var(--band-pad) + 72px) var(--band-pad) var(--band-pad);
    isolation: isolate; background: none;
  }
  /* the campus behind the band (James, 10-16: "can we have that college backgroudn art even if its just the top of it
     showing behind the top banner"): the phone's own loop, cover-cropped to the band, a slice of the quad under a tint
     that is heaviest behind the name so the paint reads */
  .hub-loop {
    position: absolute; inset: 0; z-index: -1; width: auto; aspect-ratio: auto; overflow: hidden;
    border: 0; box-shadow: none; transform: none; background: var(--navy);
  }
  .hub-loop video { transform: scale(1.02);   /* the loop carries a thin dark edge in its frames */
    object-position: 50% var(--band-crop, 50%);   /* the hall and the quad; 30 % = the cupola in the trees, 15 % = canopy only */ }
  .hub-loop::after {
    display: block; content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--band-fade);
  }
  .hub-in {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3xl); row-gap: var(--space-lg);
    align-items: end;
  }
  .hub-home { position: absolute; top: var(--band-pad); left: var(--band-pad); margin: 0; }
  .hub-home img { width: 56px; height: 56px; }
  .hub-home span { font-size: 1.25rem; }
  .hub-mail { top: calc(var(--band-pad) - 4px); right: var(--band-pad); left: auto; width: 64px; height: 64px; }
  .hub-mail-img { width: 64px; height: 64px; }
  .hub-name { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .hub-kicker { font-size: 0.875rem; color: var(--navy-dim); text-shadow: none; }
  .hub-title { width: min(720px, 100%); max-width: none; margin-top: var(--space-sm); }
  .hub-tag { width: min(340px, 46%); max-width: none; margin: var(--space-md) 0 0 6px; }
  .hub-cast { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; gap: var(--space-lg); }
  .hub-pile img { width: 60px; height: 60px; margin-left: -16px; border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
  .hub-pile img:first-child { margin-left: 0; }
  .hub-cast-k { font-size: 1.5rem; }
  .hub-line { grid-column: 2; grid-row: 2; justify-self: end; font-size: 1.0625rem; }
  .hub-list { top: calc(var(--band-pad) + 72px); right: var(--band-pad); width: 400px; }

  /* the feed, under it on the same width */
  .feed-sec {
    display: block; width: var(--wrap); margin: 0 auto; padding: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .feed-in {
    grid-column: auto; width: 100%; max-width: none; box-sizing: border-box;
    padding: var(--space-2xl) var(--band-pad) var(--space-3xl);
    background: oklch(0.13 0.035 262 / 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .feed-name { font-size: 2.75rem; }
  .fd-chips { top: 0; margin: 0 0 var(--space-xl); padding: var(--space-md) 0; flex-wrap: wrap; overflow: visible; row-gap: var(--space-sm); }
  .fd-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: var(--space-xl); row-gap: var(--space-3xl); align-items: start; }
  .fd-title { font-size: 1.375rem; }
  .fd-line { font-size: 0.9375rem; }

  /* THE LATEST + SHOW MORE (James, 10-16: "is it best to display so many entries like this?" → "try that"; feed-desk.js
     picks the hero and cuts the list): the first post showing is a full-width card — the poster (playing the teaser) at
     up to 560 px tall, the caption big beside it with a Watch button; the grid stops after three rows over a Show more. */
  .fd-cut { display: none; }
  .fd-hero {
    grid-column: 1 / -1; position: relative; isolation: isolate; overflow: hidden;
    padding: var(--space-2xl) var(--space-3xl); margin-bottom: var(--space-md);
  }
  .fd-hero::before {      /* the poster again, blurred and darkened to the hero's edges (the player page's ground) */
    content: ""; position: absolute; inset: -40px; z-index: -1;
    background: var(--hero-bg, none) center 30% / cover no-repeat, var(--navy);
    filter: blur(36px) saturate(1.2) brightness(0.42);
  }
  .fd-hero .fd-post { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3xl); align-items: center; }
  .fd-hero .fd-pic, .fd-hero .fd-car { height: min(560px, 64vh); width: auto; margin: 4px 10px 10px 0; }
  .fd-hero .fd-teaser { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
  .fd-hero .fd-body { row-gap: var(--space-md); max-width: 40rem; }
  .fd-hero .fd-kicker { font-size: 0.9375rem; }
  .fd-hero .fd-title { font-size: clamp(2.5rem, 3.6vw, 4.5rem); line-height: 0.95; text-shadow: 3px 3px 0 var(--ink); }
  .fd-hero .fd-line { font-size: 1.25rem; max-width: 34ch; }
  .btn.fd-watch, .fd-hero .btn.fd-join { margin-top: var(--space-md); font-size: 1.375rem; padding: 0.55em 1.4em; }
  .btn.fd-watch::before { content: ""; border-style: solid; border-width: 0.42em 0 0.42em 0.7em; border-color: transparent transparent transparent currentColor; }
  /* a COMIC as the hero (James, 10-16: "on dekstop the comic looks awful when its featured at the top of the feed"): feed.css
     draws its stack of pages behind as ::before/::after at the POST's width, which in the full-width hero became a giant
     cream sheet over the words — pin the stack to the cover's own size */
  .fd-hero[data-kind="comic"] .fd-post::before, .fd-hero[data-kind="comic"] .fd-post::after {
    width: calc(min(560px, 64vh) * 3 / 4); height: min(560px, 64vh); aspect-ratio: auto;   /* the 3:4 cover (below) */
  }
  .btn.fd-more { display: flex; margin: var(--space-4xl) auto var(--space-md); font-size: 1.25rem; }

  /* the Premise / Characters panes: a drawer from the right, up to 760 px */
  .pane-panel { left: max(0px, calc(100vw - 760px)); }
}

/* THE FILTERS AS A SHELF OF STICKERS (James, 10-16: "im also not crazy about the filter tray and buttons there, anyway to
   do that better on phone and desktop, stylize it differently? maybe custom icons liek the email letter object?"): the
   boxed chips are gone. Each filter is its 3D object (deploy/nb_chip_icons.py, the envelope's style: the jester cap = All,
   the clapperboard = Episodes, the tennis ball = Extras, the comic = Comics, the instant camera = Photos, the padlock =
   Sub Level) over its name, the count a small yellow badge on the object's shoulder. Resting: the objects a little
   dimmed. The one picked: full colour, lifted and tilted, its name in yellow with a yellow bar under it. On a phone the
   six share the row edge to edge; on a desk they sit bigger, left-aligned. CSS only — the markup is feed.js's / the
   generator's: the icon is the chip's ::before, keyed by data-kind. */
.fd-chips .fd-chip { --chip-img: url("/img/chip-all.png"); }
.fd-chips .fd-chip[data-kind="ep"] { --chip-img: url("/img/chip-ep.png"); }
.fd-chips .fd-chip[data-kind="extra"] { --chip-img: url("/img/chip-extra-popcorn.png"); }   /* round 2; the tennis ball (chip-extra.png) and the VHS tape (chip-extra-vhs.png) stay on file */
.fd-chips .fd-chip[data-kind="comic"] { --chip-img: url("/img/chip-comic.png"); }
.fd-chips .fd-chip[data-kind="carousel"] { --chip-img: url("/img/chip-carousel.png"); }
.fd-chips .fd-chip[data-kind="drop"] { --chip-img: url("/img/chip-drop.png"); }
.fd-chips .fd-chip[data-kind="drop"] { display: none; }   /* James, 10-16: "lets exclude sublevel as a category for now" — the tab only; the locked posts stay in the feed */
.fd-chips { gap: 2px; padding-block: var(--space-sm) var(--space-xs); }
.fd-chips .fd-chip {
  --chip-icon: 44px;
  position: relative; flex: 1 1 0; min-width: 56px; max-width: 84px; min-height: 0;   /* max: a short shelf (Afterglow) sits left, not spread */
  display: flex; flex-wrap: wrap; justify-content: center; align-content: start; gap: 0;
  padding: 2px 2px 8px; border: 0; background: none; box-shadow: none; border-radius: 0;
  font-family: var(--display); font-size: 0.6875rem; letter-spacing: 0.01em; line-height: 1.1; color: var(--navy-cream);
  white-space: nowrap;
}
.fd-chips .fd-chip::before {
  content: ""; flex: 0 0 100%; height: var(--chip-icon); margin-bottom: 5px;
  background: var(--chip-img) center / contain no-repeat;
  filter: drop-shadow(2px 3px 0 oklch(0.08 0.02 262 / 0.7)) saturate(0.7) brightness(0.88);
  transition: transform 220ms var(--ease-out), filter 220ms var(--ease-out);
}
.fd-chips .fd-chip::after {          /* the yellow bar under the picked one's name */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 1px; height: 3px; background: var(--yellow);
  transform: scaleX(0); transition: transform 220ms var(--ease-out);
}
.fd-chips .fd-chip .fd-n {
  position: absolute; top: 0; left: calc(50% + var(--chip-icon) * 0.28); z-index: 1;
  min-width: 1.7em; padding: 0.25em 0.35em 0.2em; box-sizing: border-box; text-align: center;
  font-family: var(--body); font-weight: 800; font-size: 0.625rem; line-height: 1; opacity: 1;
  color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px;
  transform: scale(0.9); transition: transform 220ms var(--ease-out);
}
.fd-chips .fd-chip[aria-pressed="true"] { color: var(--yellow); background: none; box-shadow: none; border: 0; }
.fd-chips .fd-chip[aria-pressed="true"]::before {
  filter: drop-shadow(3px 4px 0 var(--ink)) saturate(1) brightness(1);
  transform: translateY(-3px) rotate(-7deg) scale(1.08);
}
.fd-chips .fd-chip[aria-pressed="true"]::after { transform: scaleX(1); }
.fd-chips .fd-chip[aria-pressed="true"] .fd-n { transform: scale(1) rotate(6deg); }
@media (hover: hover) {
  .fd-chips .fd-chip:hover { color: var(--cream); }
  .fd-chips .fd-chip:hover::before { filter: drop-shadow(3px 4px 0 var(--ink)) saturate(1) brightness(1); transform: translateY(-2px) rotate(-3deg); }
  .fd-chips .fd-chip[aria-pressed="true"]:hover { color: var(--yellow); }
  .fd-chips .fd-chip[aria-pressed="true"]:hover::before { transform: translateY(-3px) rotate(-7deg) scale(1.08); }
}
.fd-chips .fd-chip:active::before { transform: translateY(1px) scale(0.96); }
.fd-chips .fd-chip:focus-visible { outline: 3px solid var(--cyan); outline-offset: 0; }
@media (max-width: 359px) {
  .fd-chips .fd-chip { --chip-icon: 38px; min-width: 46px; font-size: 0.5625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-chips .fd-chip::before, .fd-chips .fd-chip::after, .fd-chips .fd-chip .fd-n { transition: none; }
}
@media (min-width: 700px) and (min-aspect-ratio: 1 / 1) {
  /* no tray on a desk: the shelf sits on the feed's own mask; once it sticks over the posts (feed-desk.js sets .is-stuck), a
     tint + blur keeps the names legible */
  .fd-chips {
    gap: var(--space-md); flex-wrap: nowrap; padding-block: var(--space-md) var(--space-sm);
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: background 200ms var(--ease-out);
  }
  .fd-chips.is-stuck { background: oklch(0.13 0.035 262 / 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .fd-chips .fd-chip { --chip-icon: 64px; flex: 0 0 auto; min-width: 96px; font-size: 0.9375rem; padding-bottom: 10px; }
  .fd-chips .fd-chip::before { margin-bottom: 7px; }
  .fd-chips .fd-chip .fd-n { font-size: 0.75rem; }
}

/* THE COUNTS UNDER EVERY POST (James, 10-16: "the feed should also have the likes, views and share somewhere as well, for
   all content"; feed-stats.js writes the row): the player's rail in small — heart + likes (a tap likes, red when liked,
   the player's pop), views, Share — in the caption's quiet cream, yellow on hover. A comic or a carousel (no player page,
   so no counts yet) carries Share alone. Phone and desk. */
.fd-stats { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-lg); row-gap: 0; margin-top: 2px; }
.fd-stat {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0;
  background: none; border: 0; border-radius: 0; color: var(--navy-cream); cursor: pointer;
  font-family: var(--body); font-weight: 800; font-size: 0.875rem; line-height: 1; font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px 0 var(--ink); -webkit-tap-highlight-color: transparent;
}
.fd-stat svg { width: 20px; height: 20px; fill: currentColor; flex: none; filter: drop-shadow(1px 1px 0 var(--ink)); transition: transform 160ms var(--ease-out); }
.fd-views { cursor: default; }
.fd-views svg { width: 17px; height: 17px; }
.fd-stat-w { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.fd-like[aria-pressed="true"] svg { fill: var(--red); }
.fd-like.pop svg { animation: pop 420ms var(--ease-out); }
@media (hover: hover) {
  .fd-like:hover, .fd-share:hover { color: var(--yellow); }
  .fd-like:hover svg, .fd-share:hover svg { transform: translateY(-1px); }
  .fd-like[aria-pressed="true"]:hover svg { fill: var(--red); }
}
.fd-stat:active svg { transform: scale(0.9); }
.fd-stat:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.fd-hero .fd-stats { column-gap: var(--space-xl); }
.fd-hero .fd-stat { font-size: 1rem; }
.fd-hero .fd-stat svg { width: 24px; height: 24px; }

/* THE TRAILER IN THE PREMISE (James, 10-16: "we should have that coming up extra on here instead of the pic"; deploy/
   premise_v2.py writes it into the pane): the Coming Up extra as a 9:16 sticker with native controls, its name under it
   linking to its own page. The desk's Premise pane and the phone sheet both carry it. */
.house-trailer { display: grid; row-gap: var(--space-sm); justify-items: start; }
.house-trailer video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--navy);
  border: 4px solid var(--cream); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1.2deg);
}
.house-trailer-k {
  font-family: var(--display); font-size: 0.875rem; line-height: 1.1; text-transform: uppercase; color: var(--cream);
  text-decoration: none; text-shadow: 1px 1px 0 var(--ink);
}
@media (hover: hover) { .house-trailer-k:hover { color: var(--yellow); } }
#premise .house-trailer { width: min(100%, 300px); }
#premise .house-top { align-items: start; }
#premise .house-copy { display: grid; row-gap: var(--space-md); align-self: start; }
#premise .house-copy p { margin: 0; font-size: 1.1875rem; line-height: 1.45; color: var(--cream); }

/* NO "THE FEED" HEADING (James, 10-16: "do we need THE FEED title like that? do we need it at all?" → "do it"): the
   filter shelf says what this is. The h2 stays for screen readers, visually hidden; phone and desk, both series. */
.feed-name { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.feed-in { position: relative; }
.feed-sec { padding-top: var(--space-md); }
@media (min-width: 700px) and (min-aspect-ratio: 1 / 1) { .feed-in { padding-top: var(--space-md); } }

/* THE SERIES PAGE BEHIND THE FEED (phone; James, 10-16: "the banner on the series page is a bit busy, id rather just have an
   icon next to email to go to a seperate series hub page which can totally just be the feed sliding down to reveal a full
   series page"; series-sheet.js builds it). With the script running (html.has-sheet) the phone masthead is the home sticker,
   the name and two icons top right — THE INFO ICON (img/icon-info.png, one for every series) beside the envelope; the pile and the
   line move into the sheet. A tap slides the page down until the feed's heading peeks at the foot (--sh-peek) and the
   sheet is above it on the panes' see-through ground: the name, Start from the top, the premise, the house. */
.hub-series, .sh, .sh-peek { display: none; }
@media all {                 /* phone AND desk since 10-16 ("we should do the same thing on the desktop version"); desk overrides below */
  :root { --sh-peek: 92px; }
  .has-sheet .hub-cast, .has-sheet .hub-line { display: none; }
  .hub-series {
    display: block; position: absolute; z-index: 3; top: max(12px, env(safe-area-inset-top)); right: calc(var(--gutter) + 58px);
    width: 48px; height: 48px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .hub-series img { display: block; width: 48px; height: 48px; filter: drop-shadow(3px 3px 0 var(--ink)); transition: transform 200ms var(--ease-out); }
  .hub-series:active img { transform: translate(2px, 2px); }
  .hub-series:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

  main.hub-page { transition: transform 440ms var(--ease-out); }
  .sh-open, .sh-open body { overflow: hidden; }
  .sh-open main.hub-page { transform: translateY(var(--sh-shift, 80svh)); }
  .sh-open .hub { opacity: 0; transition: opacity 200ms; }

  .sh {
    display: block; position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: calc(100svh - var(--sh-peek));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; isolation: isolate;
    background: var(--navy);
    opacity: 0; transform: translateY(-32px); transition: opacity 320ms var(--ease-out), transform 440ms var(--ease-out);
  }
  .sh[hidden] { display: none; }
  /* the series' own ground under the band fade (James, 10-16: "lets keep the series page backgroudn tho witht he fade"):
     series-sheet.js clones the masthead's loop in; it stays put while the sheet scrolls over it */
  .sh-ground { position: fixed; z-index: -1; top: 0; left: 0; right: 0; height: calc(100svh - var(--sh-peek)); overflow: hidden; pointer-events: none; }
  .sh-ground video, .sh-ground img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 35%; }
  .afterglow .sh-ground img { object-position: 38% 40%; }
  .sh-ground::after { content: ""; position: absolute; inset: 0; background: var(--band-fade); }
  .sh::-webkit-scrollbar { display: none; }
  .sh-open .sh { opacity: 1; transform: none; }
  .sh-close {
    position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); right: calc(var(--gutter) + 58px);
    width: 48px; height: 48px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .sh-close img { display: block; width: 48px; height: 48px; filter: drop-shadow(3px 3px 0 var(--ink)); transform: rotate(-14deg) scale(1.08); }
  .sh-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
  .sh-in { display: grid; row-gap: var(--space-2xl); padding: calc(max(12px, env(safe-area-inset-top)) + 64px) var(--gutter) var(--space-3xl); }
  .sh-name { display: grid; justify-items: start; row-gap: 10px; }
  .sh-name .hub-title-img { width: 82%; max-width: 420px; }
  .sh-name .sh-tag { width: 50%; max-width: 240px; margin: 0 0 0 3px; transform: none; }
  .sh-name .sh-tag.ag-tag { width: auto; max-width: none; }
  .btn.sh-start { justify-self: start; margin-top: calc(-1 * var(--space-sm)); font-size: 1.25rem; padding: 0.55em 1.2em; }
  .btn.sh-start::before { content: ""; border-style: solid; border-width: 0.42em 0 0.42em 0.7em; border-color: transparent transparent transparent currentColor; }
  .sh-sec { display: grid; row-gap: var(--space-md); }
  .sh-k {
    margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.625rem; line-height: 1; text-transform: uppercase;
    color: var(--cream); text-shadow: 0.06em 0.06em 0 var(--ink);
  }
  .sh-k .sec-count { text-shadow: none; }
  /* THE PREMISE, RESTYLED (James, 10-16: "premise needs to be rewritten to not sound like ai slop, and restylized"): a small
     yellow kicker instead of a big heading, the two plain paragraphs a size up in cream, the trailer (Good Boy) or the
     banner (Afterglow) under them */
  .sh-premise { row-gap: var(--space-sm); }
  .sh-premise .sh-k {
    font-family: var(--body); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--yellow);
    text-shadow: 1px 1px 0 var(--ink);
  }
  .sh-premise .house-top { display: grid; row-gap: var(--space-lg); }
  .sh-premise .house-copy { display: grid; row-gap: var(--space-sm); }
  .sh-premise .house-copy h3 { display: none; }
  .sh-premise .house-copy > p:not(.kicker) { margin: 0; font-size: 1.1875rem; font-weight: 500; line-height: 1.42; color: var(--cream); text-shadow: 1px 1px 0 oklch(0.08 0.02 262 / 0.6); }
  .sh-premise .house-art img { display: block; width: 100%; height: auto; border: 4px solid var(--cream); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1deg); }
  .sh-premise .house-trailer { width: min(64%, 260px); }
  .sh-house { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md) 10px; }
  .sh-member { display: grid; row-gap: 3px; text-decoration: none; color: var(--cream); -webkit-tap-highlight-color: transparent; }
  .sh-member img {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%;
    border: 3px solid var(--cream); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg); margin-bottom: 4px;
  }
  .sh-house li:nth-child(even) .sh-member img { transform: rotate(1.5deg); }
  .sh-house.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; }
  .sh-member-name { font-family: var(--display); font-size: 0.875rem; line-height: 1; text-transform: uppercase; }
  .sh-member-office { font-size: 0.6875rem; font-weight: 700; line-height: 1.15; color: var(--navy-dim); }
  .sh-member:active img { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

  .sh-peek {
    display: block; position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; height: var(--sh-peek);
    margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .sh-peek[hidden] { display: none; }
  .sh-peek::before {        /* the grabber: pull the feed back up */
    content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px;
    background: oklch(0.97 0.03 95 / 0.7);
  }
}
/* THE ABOUT PAGE ON A DESK (James, 10-16: "i think we should do the same thing on the desktop version, the about page icon and
   all that"): the i beside the envelope in the band, the band losing its pile and line; the sheet at the band's width
   (--wrap), the name + Start from the top on the left, the premise + trailer on the right, the house eight across under
   them; the peek = the filter shelf. */
@media (min-width: 700px) and (min-aspect-ratio: 1 / 1) {
  :root { --sh-peek: 136px; }
  .hub-series { top: calc(var(--band-pad) - 4px); right: calc(var(--band-pad) + 80px); width: 64px; height: 64px; }
  .hub-series img { width: 64px; height: 64px; }
  @media (hover: hover) { .hub-series:hover img { transform: translateY(-2px) rotate(-6deg); } }
  .sh-close {
    top: calc(var(--space-2xl) + var(--band-pad) - 4px); right: calc((100vw - var(--wrap)) / 2 + var(--band-pad) + 80px);
    width: 64px; height: 64px;
  }
  .sh-close img { width: 64px; height: 64px; }
  .sh-in {
    width: var(--wrap); box-sizing: border-box; margin: 0 auto;
    padding: calc(var(--space-2xl) + var(--band-pad) + 80px) var(--band-pad) var(--space-4xl);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: var(--space-4xl); row-gap: var(--space-2xl); align-items: start;
  }
  .sh-name { grid-column: 1; grid-row: 1; }
  .sh-name .hub-title-img { width: min(600px, 100%); max-width: none; }
  .sh-name .sh-tag { width: min(300px, 50%); max-width: none; }
  .btn.sh-start { grid-column: 1; grid-row: 2; margin-top: 0; font-size: 1.5rem; }
  .sh-premise { grid-column: 2; grid-row: 1 / span 2; }
  .sh-premise .house-top:has(.house-trailer) { grid-template-columns: minmax(0, 1fr) 240px; column-gap: var(--space-2xl); align-items: start; }
  .sh-premise .house-trailer { width: 100%; }
  .sh-premise .house-copy > p:not(.kicker) { font-size: clamp(1.25rem, 1.15vw, 1.75rem); max-width: 40ch; }
  .sh-cast { grid-column: 1 / -1; }
  .sh-k { font-size: 2rem; }
  .sh-house { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-lg) var(--space-lg); }
  .sh-house.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
  .sh-member-name { font-size: 1.0625rem; }
  .sh-member-office { font-size: 0.8125rem; }
  @media (hover: hover) {
    .sh-member:hover img { transform: rotate(0deg) translateY(-3px); box-shadow: 5px 5px 0 var(--ink); }
    .sh-member:hover .sh-member-name { color: var(--yellow); }
  }
}
@media (prefers-reduced-motion: reduce) {
  main.hub-page, .sh { transition: none; }
}

/* EVERY POST IN 3:4 (James, 10-16: "id like to make everything on the feed portrait sized like the carousel post we have so
   that the user can see the title and the like buttons and stuff"): the frames go from full 9:16 to Twink Jail's 3:4, so
   on a phone the picture, the title and the counts fit one screen. The posters are 9:16 and object-fit: cover crops them
   top and bottom; a carousel keeps its own shape (--ar), 3:4 when it names none; the comic's stack of pages behind the
   cover follows (feed.css draws it at 9:16). Phone, desk grid and the desk's Latest (the hero above). */
.fd-pic { aspect-ratio: 3 / 4; }
.fd-car { aspect-ratio: var(--ar, 3 / 4); }
.fd-item[data-kind="comic"] .fd-post::before, .fd-item[data-kind="comic"] .fd-post::after { aspect-ratio: 3 / 4; }
