/* total-mayhem.com rebuild - Phase 1 homepage mock.
   The approved book-true skin, site-wide: ink on paper, Roboto Mono (the
   books' own face), black label blocks, one print red, hard shadows.
   Local fonts only, zero external requests. */

:root {
  --paper: #FBF7EE;
  --ink: #161513;
  --card: #FFFFFF;
  --red: #E0301E;
  --yellow: #FFD23F;
  --muted: #6E675C;
  --shadow: #161513;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --ink: #F2EDE4;
    --card: #211F1C;
    --red: #FF6A5A;
    --yellow: #E8B915;
    --muted: #A79E8F;
    --shadow: #00000000;
  }
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  line-height: 1.55;
}
main { max-width: 68rem; margin: 0 auto; padding: 1.2rem 1.1rem 4rem; }
a { color: inherit; }
img { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* header */
header.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
  padding: 0.65rem 1rem;
  border-bottom: 3px solid var(--ink);
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
}
.brand {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; font-size: 1rem;
  background: var(--ink); color: var(--paper);
  padding: 0.24rem 0.6rem;
  white-space: nowrap;
  transform: rotate(-0.6deg);
}
header.top nav { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; margin-left: auto; }
header.top nav a {
  text-decoration: none; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.12rem 0.05rem;
  border-bottom: 3px solid transparent;
}
header.top nav a:hover { border-bottom-color: var(--ink); }
header.top nav a.on { border-bottom-color: var(--red); color: var(--red); }

/* label-block headings */
h1, h2 {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  display: inline-block;
  background: var(--ink); color: var(--paper);
}
h1 { font-size: 1.6rem; line-height: 1.25; padding: 0.35rem 0.8rem; margin: 1rem 0 0.7rem; transform: rotate(-0.6deg); }
h2 { font-size: 1rem; padding: 0.2rem 0.6rem; margin: 2.1rem 0 0.8rem; }

p.lede { font-size: 1.12rem; max-width: 32rem; }
.btnrow { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.2rem 0 0.4rem; }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  border: 2.5px solid var(--ink);
  background: var(--card); color: var(--ink);
  padding: 0.55rem 1rem;
  box-shadow: 5px 5px 0 var(--shadow);
}
.btn.primary { background: var(--red); color: #FFF; border-color: var(--ink); }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--shadow); }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { box-shadow: none; } }

/* cover wall */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.booktile {
  text-decoration: none; text-align: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: 4px;
  padding: 0.42rem; box-shadow: 4px 4px 0 var(--shadow);
}
.booktile:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--shadow); }
.booktile img { width: 100%; border: 1.5px solid var(--ink); display: block; }
.booktile b { display: block; margin-top: 0.3rem; font-size: 0.72rem; text-transform: uppercase; }
.booktile .n { display: block; color: var(--muted); font-size: 0.63rem; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { .booktile, .booktile:hover, .door, .door:hover, .funcard, .funcard:hover { box-shadow: none; } }

/* doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; margin: 1rem 0; }
.door {
  display: block; text-decoration: none;
  background: var(--card); border: 3px solid var(--ink); border-radius: 10px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 6px 6px 0 var(--shadow);
}
.door:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--shadow); }
.door b {
  display: inline-block; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--ink); color: var(--paper); padding: 0.14rem 0.5rem;
}
.door span { display: block; margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted); }
.door .tag { display: inline-block; margin-top: 0.55rem; font-size: 0.7rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }

/* fun grid */
.fungrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.funcard {
  text-decoration: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px;
  padding: 0.5rem; box-shadow: 4px 4px 0 var(--shadow);
  text-align: center;
}
.funcard:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--shadow); }
.funcard img { width: 100%; height: 9.5rem; object-fit: cover; object-position: top; border: 1.5px solid var(--ink); display: block; }
.funcard b { display: block; margin: 0.45rem 0 0.1rem; font-size: 0.8rem; text-transform: uppercase; }
.funcard span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.funcard .ph {
  height: 8.8rem; margin: 0.35rem;
  border: 2px solid var(--ink);
  background: var(--yellow); color: #161513;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 700; letter-spacing: 0.04em;
  transform: rotate(-2deg);
}

/* who's who - portraits from Ralph's characters pages, his art verbatim */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.6rem, 1fr)); gap: 0.9rem; margin: 1rem 0; }
.castcard {
  text-decoration: none; text-align: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px;
  padding: 0.45rem 0.45rem 0.5rem; box-shadow: 4px 4px 0 var(--shadow);
}
.castcard img { width: 100%; height: 7.2rem; object-fit: contain; display: block; background: #fff; border-radius: 4px; }
.castcard b { display: block; margin-top: 0.35rem; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; }
@media (prefers-color-scheme: dark) { .castcard, .castcard:hover { box-shadow: none; } }

/* hover (or tap) a character or book tile: a speech-bubble blurb */
.castcard, .booktile { position: relative; cursor: help; }
.tipbooks {
  display: block; margin-top: 0.45rem;
  color: var(--muted); font-size: 0.64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.castcard .tip, .booktile .tip {
  position: absolute; left: 50%; bottom: calc(100% + 0.7rem);
  transform: translateX(-50%);
  width: max-content; max-width: 15rem;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem; font-weight: 400; text-transform: none;
  letter-spacing: 0; text-align: left; line-height: 1.45;
  visibility: hidden; opacity: 0; z-index: 40;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: opacity 0.12s;
}
.castcard .tip::after, .booktile .tip::after {
  content: ""; position: absolute; left: 50%; bottom: -0.55rem; margin-left: -0.4rem;
  width: 0.8rem; height: 0.8rem; background: var(--card);
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.castcard:hover .tip, .castcard:focus .tip, .castcard.show .tip,
.booktile:hover .tip, .booktile:focus .tip, .booktile.show .tip { visibility: visible; opacity: 1; }

/* hand-placed tilt, straighten on hover - the books' pinboard look */
.wall .booktile:nth-child(odd), .cast .castcard:nth-child(even), .fungrid .funcard:nth-child(odd) { transform: rotate(-0.6deg); }
.wall .booktile:nth-child(even), .cast .castcard:nth-child(odd), .fungrid .funcard:nth-child(even) { transform: rotate(0.5deg); }
.wall .booktile:hover, .cast .castcard:hover, .fungrid .funcard:hover { transform: translate(-2px,-2px) rotate(0deg); box-shadow: 6px 6px 0 var(--shadow); }
main > h2:nth-of-type(odd) { transform: rotate(-0.7deg); }
main > h2:nth-of-type(even) { transform: rotate(0.5deg); }

/* grown-ups strip */
.grownups {
  margin-top: 3rem; border-top: 1px solid var(--muted);
  padding-top: 0.6rem;
  font-size: 0.72rem; color: var(--muted);
}
.grownups b { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.66rem; }
.grownups a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--muted); margin-right: 0.9rem; }
.grownups a:hover { color: var(--ink); }

p.count { color: var(--muted); font-size: 0.82rem; margin: 0.1rem 0 0.8rem; }

/* ---------- imported page content (verbatim from the WordPress site; our
   chrome wraps it, these styles just make his markup sit well) ---------- */
.imported { max-width: 46rem; }
.imported img { max-width: 100%; height: auto; }
.imported p { margin: 0.8rem 0; }
.imported a { color: var(--red); text-decoration: none; border-bottom: 2px solid var(--red); }
.imported a:hover { background: var(--yellow); color: #161513; }
.imported h2, .imported h3 {
  background: none; color: var(--ink); transform: none; padding: 0;
  border-bottom: 2px solid var(--ink); display: inline-block;
}
.imported figure { margin: 1rem 0; }
.imported blockquote {
  border-left: 4px solid var(--ink); margin: 0.9rem 0; padding: 0.3rem 0.9rem;
  background: var(--card);
}
/* slideshows from the old site: a stacked strip by default (the no-JS
   fallback), upgraded by site.js into a click-through slideshow - Ralph
   2026-07-11 "can the candoodles all be clickable slideshows?" */
.strip img { display: block; margin: 0.35rem auto; max-width: 100%; }
.strip.slides { text-align: center; }
.strip.slides .slideframe { position: relative; display: inline-block; max-width: 100%; }
.strip.slides img { display: none; margin: 0 auto; }
.strip.slides img.on { display: block; cursor: pointer; }
.strip.slides .slidebtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.7rem; height: 2.7rem; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 1.25rem; font-weight: 700; line-height: 1;
  border: 2.5px solid var(--ink); background: var(--card); color: var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
}
.strip.slides .slidebtn:hover { transform: translateY(-50%) translate(-2px,-2px); box-shadow: 6px 6px 0 var(--shadow); }
.strip.slides .slidebtn.prev { left: 0.3rem; }
.strip.slides .slidebtn.next { right: 0.3rem; }
.strip.slides .slidecount {
  margin: 0.55rem auto 0; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}
@media (prefers-color-scheme: dark) {
  .strip.slides .slidebtn, .strip.slides .slidebtn:hover { box-shadow: none; }
}

/* activity thumbnails on /fun/ */
.funcard .thumb { width: 100%; height: 9.5rem; object-fit: cover; object-position: top; border: 1.5px solid var(--ink); display: block; }

/* book door pages */
.doorhero { display: flex; gap: 1.4rem; align-items: flex-start; flex-wrap: wrap; margin-top: 0.6rem; }
.doorcover {
  flex: 0 0 12rem; max-width: 12rem;
  border: 2px solid var(--ink); border-radius: 4px;
  background: var(--card); padding: 0.35rem;
  box-shadow: 5px 5px 0 var(--shadow);
  transform: rotate(-0.8deg);
}
.doormeta { flex: 1 1 18rem; }
@media (prefers-color-scheme: dark) { .doorcover { box-shadow: none; } }
ol.mayhemlist { max-width: 44rem; }
ol.mayhemlist li { margin: 0.4rem 0; }
a.castcard { text-decoration: none; }
.namechips { margin: 0.8rem 0; max-width: 46rem; }
.namechip {
  display: inline-block; text-decoration: none;
  border: 1.5px solid var(--ink); background: var(--card);
  padding: 0.05rem 0.5rem; margin: 0.18rem 0.25rem 0 0;
  font-weight: 700; font-size: 0.8rem;
}
.namechip:hover { background: var(--yellow); color: #161513; }
.namechip.more { border-style: dashed; color: var(--muted); }
.buylist { max-width: 46rem; }
.buylist .buy {
  display: inline-block; text-decoration: none;
  border: 2px solid var(--ink); background: var(--card);
  padding: 0.25rem 0.7rem; margin: 0.25rem 0.35rem 0 0;
  font-weight: 700; font-size: 0.8rem;
  box-shadow: 3px 3px 0 var(--shadow);
}
.buylist .buy:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--shadow); }
@media (prefers-color-scheme: dark) { .buylist .buy, .buylist .buy:hover { box-shadow: none; } }

/* books page: series in order, country filter, BR editions alongside */
.countrypick {
  border: 2px dashed var(--muted); border-radius: 8px;
  padding: 0.55rem 0.8rem; margin: 1rem 0; max-width: 46rem;
}
.countrypick b { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--muted); margin-right: 0.5rem; }
.countrypick .chips button {
  cursor: pointer; font: inherit; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  padding: 0.1rem 0.5rem; margin: 0.15rem 0.3rem 0.15rem 0; border-radius: 0;
}
.countrypick .chips button.on { background: var(--ink); color: var(--paper); }
.countrypick .chips button:hover { background: var(--yellow); color: #161513; }

/* guidance for readers with no local Amazon ("Somewhere else") */
.elsewherenote {
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 0.7rem 0.9rem; margin: 0.8rem 0; max-width: 46rem;
  font-size: 0.88rem;
}
.elsewherenote b { display: block; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
@media (prefers-color-scheme: dark) { .elsewherenote { box-shadow: none; } }

.volcard {
  display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap;
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 0.9rem 1rem; margin: 1rem 0; max-width: 46rem;
}
@media (prefers-color-scheme: dark) { .volcard { box-shadow: none; } }
.volcard .coverpair { flex: 0 0 auto; display: flex; gap: 0.5rem; align-items: flex-start; }
.volcard .coverpair img { width: 7.2rem; border: 1.5px solid var(--ink); display: block; }
/* the Brazilian edition (cover + title line) shows only when the reader
   picks Brazil in the country filter (Ralph 2026-07-09) */
.volcard .coverpair .brcov { width: 6.1rem; margin-top: 0.55rem; transform: rotate(1.2deg); display: none; }
.volcard .brtitle { display: none; }
body[data-country="Brazil"] .volcard .coverpair .brcov { display: block; }
body[data-country="Brazil"] .volcard .brtitle { display: block; }
.volcard .volmeta { flex: 1 1 14rem; }
.volcard .volmeta > b { display: block; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.volcard .volmeta > b a { text-decoration: none; border-bottom: 2px solid var(--red); }
.volcard .volmeta > b a:hover { background: var(--yellow); color: #161513; }
.volcard .voltitle { display: block; margin: 0.15rem 0 0.1rem; font-weight: 700; }
.volcard .brtitle { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.2rem; }
.volcard .buylist { margin-top: 0.5rem; }
.volcard.also .coverpair img { width: 6.2rem; }

/* grown-ups hub */
ul.hub { list-style: none; padding: 0; }
ul.hub li { margin: 0.7rem 0; }
ul.hub a { text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--red); }
ul.hub a:hover { background: var(--yellow); color: #161513; }
ul.hub .note { display: block; font-size: 0.8rem; color: var(--muted); }

/* ---------- homepage: the show, not the index (Ralph 2026-07-10) --------
   hero crowd, four art doors, almanac feed strip, Book 1 + shelf,
   cast mosaic, trust line ---------- */

/* hero: huge label-block title, his lede, stat stamps, a pile of his
   character portraits (his art verbatim, hand-scattered) */
.bighero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.8rem; align-items: center; margin-top: 1rem; }
@media (max-width: 700px) { .bighero { grid-template-columns: 1fr; } }
h1.mega { background: none; color: inherit; transform: none; padding: 0; margin: 0.5rem 0 0.7rem; display: block; }
h1.mega .eyebrow { display: inline-block; background: var(--ink); color: var(--paper); font-size: 0.8rem; letter-spacing: 0.18em; padding: 0.16rem 0.55rem; transform: rotate(-1.4deg); }
h1.mega .big { display: block; width: max-content; max-width: 100%; background: var(--ink); color: var(--paper); font-size: clamp(2.5rem, 7vw, 4.3rem); line-height: 1; padding: 0.06em 0.18em; margin-top: 0.14em; transform: rotate(-1deg); }
h1.mega .big.red { background: var(--red); color: #FFF; transform: rotate(0.9deg); margin-left: 0.7em; }
.stamps { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.stamps span { background: var(--yellow); color: #161513; border: 2px solid var(--ink); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.14rem 0.55rem; transform: rotate(-1.6deg); }
.stamps span:nth-child(even) { transform: rotate(1.3deg); }

.crowd { position: relative; aspect-ratio: 1 / 1.04; max-width: 26rem; width: 100%; margin: 0 auto; }
.crowd img { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 0.3rem; box-shadow: 4px 4px 0 var(--shadow); transform: rotate(var(--r)); transition: transform 0.15s; }
.crowd img:hover { transform: rotate(0deg) scale(1.07); z-index: 9 !important; }
@media (prefers-color-scheme: dark) { .crowd img { box-shadow: none; } }

/* the four doors: art band on top, label + blurb + red tag below */
.bigdoors { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; margin: 2rem 0 0.6rem; }
.bigdoor { display: block; text-decoration: none; background: var(--card); border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 6px 6px 0 var(--shadow); }
.bigdoor:nth-child(odd) { transform: rotate(-0.5deg); }
.bigdoor:nth-child(even) { transform: rotate(0.45deg); }
.bigdoor:hover { transform: translate(-2px,-2px) rotate(0deg); box-shadow: 8px 8px 0 var(--shadow); }
.bigdoor .doorart { display: flex; align-items: center; justify-content: center; gap: 0.4rem; height: 10rem; background: #fff; border-bottom: 3px solid var(--ink); overflow: hidden; padding: 0.55rem; }
.bigdoor .doorart img { max-height: 100%; max-width: 100%; }
.bigdoor .doorart.fan img { width: 34%; max-height: 96%; object-fit: contain; }
.bigdoor .doorart.fan img:nth-child(1) { transform: rotate(-7deg) translateY(5%); }
.bigdoor .doorart.fan img:nth-child(3) { transform: rotate(7deg) translateY(5%); }
.bigdoor > b { display: inline-block; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--ink); color: var(--paper); padding: 0.14rem 0.5rem; margin: 0.85rem 1rem 0; }
.bigdoor .blurb { display: block; margin: 0.5rem 1rem 0; font-size: 0.84rem; color: var(--muted); }
.bigdoor .tag { display: inline-block; margin: 0.55rem 1rem 1rem; font-size: 0.72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
@media (prefers-color-scheme: dark) { .bigdoor, .bigdoor:hover { box-shadow: none; } }

/* a taste of the Almanac: swipeable feed cards (his approved picks) */
.feedstrip { display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.5rem 0.15rem 1.1rem; }
.feedcard { flex: 0 0 11.6rem; scroll-snap-align: start; text-decoration: none; background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 0.45rem 0.45rem 0.6rem; box-shadow: 4px 4px 0 var(--shadow); }
.feedcard:nth-child(odd) { transform: rotate(-0.5deg); }
.feedcard:nth-child(even) { transform: rotate(0.45deg); }
.feedcard:hover { transform: translate(-2px,-2px) rotate(0deg); box-shadow: 6px 6px 0 var(--shadow); }
.feedcard .cardart { display: flex; align-items: center; justify-content: center; height: 9.2rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; }
.feedcard .cardart img { max-height: 100%; max-width: 100%; }
.feedcard b { display: block; margin-top: 0.4rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }
.feedcard .tz { display: block; margin-top: 0.2rem; font-size: 0.68rem; color: var(--muted); line-height: 1.4; }
.feedcard.more { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--red); color: #FFF; }
.feedcard.more b { font-size: 0.9rem; }
.feedcard.more .tag { color: #FFF; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.4rem; }
@media (prefers-color-scheme: dark) { .feedcard, .feedcard:hover { box-shadow: none; } }
.feedstrip::-webkit-scrollbar { height: 0.55rem; }
.feedstrip::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 0.3rem; }
.feedstrip::-webkit-scrollbar-track { background: transparent; }

/* the way in: Book 1 big with a red flag, the shelf beside it */
.startrow { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: flex-start; margin: 1rem 0; }
.booktile.startcover { flex: 0 0 14.5rem; position: relative; padding: 0.6rem; }
.startflag { position: absolute; top: -0.85rem; left: -0.95rem; z-index: 3; background: var(--red); color: #FFF; border: 2px solid var(--ink); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.18rem 0.55rem; transform: rotate(-5deg); }
.startrow .shelf { flex: 1 1 24rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: 0.6rem; }
.shelf .booktile { padding: 0.28rem; border-width: 1.5px; }
.shelf .booktile b { font-size: 0.55rem; margin-top: 0.2rem; }
.shelf .booktile .n { display: none; }

/* who's who as a compact mosaic + the Surprise button */
.rowhead { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.rowhead h2 { margin: 0.7rem 0 0; }
.btn.surprise { background: var(--yellow); color: #161513; font-size: 0.78rem; padding: 0.4rem 0.8rem; border-radius: 0; cursor: pointer; font-family: inherit; transform: rotate(-1.2deg); margin-top: 0.7rem; }
.btn.surprise:hover { transform: translate(-2px,-2px) rotate(0deg); }
.cast.mosaic { grid-template-columns: repeat(auto-fill, minmax(5.9rem, 1fr)); gap: 0.6rem; }
.cast.mosaic .castcard { padding: 0.3rem 0.3rem 0.4rem; border-width: 1.5px; }
.cast.mosaic .castcard img { height: 5.4rem; }
.cast.mosaic .castcard b { font-size: 0.56rem; }

/* who's who expansion: the Almanac link inside each speech bubble, and
   the name chips for people whose entries have no artwork yet */
.tip .tipmore { display: block; width: max-content; margin-top: 0.5rem; color: var(--red); font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; border-bottom: 2px solid var(--red); }
.tip .tipmore:hover { background: var(--yellow); color: #161513; }
.whochips { margin: 1rem 0 0; max-width: none; }

/* the trust line */
.trust { margin-top: 2.8rem; text-align: center; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.03em; }
.trust a { color: var(--red); text-decoration: none; border-bottom: 2px solid var(--red); }
.trust a:hover { background: var(--yellow); color: #161513; }

/* /fun/ activity pages: back/fwd within the page's own section, top right
   (Ralph 2026-07-10, MAYHEM #11 - the almanac entry-card arrow idiom) */
.funnav { float: right; display: flex; gap: 0.5rem; margin: 1.15rem 0 0 1rem; }
.funnav a {
  display: inline-block; text-decoration: none;
  width: 2.1rem; height: 2.1rem; line-height: 1.95rem; text-align: center;
  font-weight: 700; font-size: 1.05rem;
  border: 2px solid var(--ink); border-radius: 8px;
  background: var(--card); color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}
.funnav a:hover { background: var(--yellow); color: #161513; transform: translate(-1px,-1px); }
@media (prefers-color-scheme: dark) { .funnav a, .funnav a:hover { box-shadow: none; } }

/* approved coloring sheets on /color-your-own-pictures/ (MAYHEM #10) -
   sheets stay white in dark mode too: they are paper to print */
.colorsheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.colorsheets .sheet { margin: 0; border: 3px solid var(--ink); border-radius: 10px; background: #fff; padding: 0.4rem; box-shadow: 4px 4px 0 var(--shadow); }
.colorsheets img { width: 100%; height: 16rem; object-fit: contain; display: block; background: #fff; }
.colorsheets figcaption { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; text-align: center; color: var(--ink); }
@media (prefers-color-scheme: dark) { .colorsheets .sheet { box-shadow: none; } }
