/* SOULCODE
   white screen. black lines. 1-bit photos. silver glitter. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;700;800;900&family=Chicle&display=swap');

:root {
  --ink: #000;
  --paper: #fff;
  --gray: #8c8c8c;
  --line: 2px solid #000;
  --side: 270px;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --rainbow: linear-gradient(90deg, #ff5ea8, #ffb03a, #e8e600, #3ddc84, #3aa0ff, #a26bff);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #000; color: #fff; }

/* ---------- type ---------- */

.lbl {
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.h1 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0;
}
.h2 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: .92;
  letter-spacing: -.03em;
  margin: 0;
}
.h3 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; font-weight: 500; max-width: 32em; margin: 0; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-weight: 800; text-transform: uppercase; font-size: 17px; margin: 2.2em 0 .5em; }
.prose strong, .prose b { font-weight: 800; }
.gray { color: var(--gray); }
.rainbow-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- logo: bubble letters in an oval ---------- */

.logo {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 222px; height: 96px;
  text-decoration: none;
}
.logo::before, .logo::after {
  content: ''; position: absolute; border: 3px solid #000; border-radius: 50%;
}
.logo::before { inset: 0; transform: rotate(-4deg); }
.logo::after { inset: 7px 5px 6px 9px; transform: rotate(-2deg); border-width: 2px; }
.logo span {
  position: relative; z-index: 1;
  font-family: 'Chicle', cursive;
  font-size: 40px; line-height: 1;
  color: #fff;
  -webkit-text-stroke: 2.2px #000;
  paint-order: stroke fill;
  display: inline-block;
  margin: 0 -.5px;
}
.logo span:nth-child(odd) { transform: translateY(-2px) rotate(-6deg); }
.logo span:nth-child(even) { transform: translateY(3px) rotate(5deg) scale(1.08); }
.logo span:nth-child(4) { transform: translateY(-4px) rotate(-10deg) scale(1.15); }
.logo span:nth-child(7) { transform: translateY(4px) rotate(8deg) scale(.95); }

/* ---------- sidebar (the control panel) ---------- */

.sc-side {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--side);
  padding: 26px 30px 26px 22px;
  background: #fff;
  z-index: 40;
  overflow-y: auto;
  scrollbar-width: none;
}
.sc-side::-webkit-scrollbar { display: none; }
.sc-side .name { margin: 14px 0 18px 4px; }
.sc-track {
  position: fixed; top: 22px; bottom: 22px; left: calc(var(--side) - 12px);
  width: 4px; background: #000; z-index: 41;
}
.sc-track::before, .sc-track::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.sc-track::before { top: -10px; border-bottom: 7px solid #000; }
.sc-track::after { bottom: -10px; border-top: 7px solid #000; }
.sc-track i { position: absolute; left: -3px; width: 10px; height: 60px; background: #000; border-radius: 2px; }

.pills { display: flex; gap: 8px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 8px;
  border: 2px solid #000; border-radius: 5px;
  font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: -.01em;
  background: #fff; color: #000; text-decoration: none; cursor: pointer;
  font-family: var(--font);
}
.pill.on { background: #000; color: #fff; }
.pill.split { padding: 0; overflow: hidden; }
.pill.split b { height: 100%; display: flex; align-items: center; padding: 0 7px; font-weight: 800; }
.pill.split b:first-child { background: #000; color: #fff; }
.pill.rb { border-image: none; position: relative; }
.pill.rb span { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

.field { margin-bottom: 13px; }
.field .lbl { display: block; margin: 0 0 5px 1px; }
.box {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 30px; padding: 0 10px 0 12px;
  border: 2px solid #000; border-radius: 6px;
  font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: -.01em;
  text-decoration: none; color: #000; background: #fff;
  transition: background .12s, color .12s;
}
.box:hover, .box[aria-current] { background: #000; color: #fff; }
.box .ic { font-size: 10px; }
.box.dark { background: #000; color: #fff; }
.sub-links { margin: 6px 0 0 10px; padding-left: 10px; border-left: 2px solid #000; display: none; }
.sub-links.open { display: block; }
.sub-links a { display: block; font-weight: 700; font-size: 11px; text-transform: uppercase; text-decoration: none; padding: 3px 0; }
.sub-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.sub-links a[aria-current] { background: #000; color: #fff; margin-left: -10px; padding-left: 10px; }
.sub-links .act { display: block; margin: 12px 0 3px; font-weight: 900; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.sub-links .act:first-child { margin-top: 4px; }

.slider { margin-bottom: 14px; }
.slider .lbl { display: block; margin: 0 0 5px 1px; }
.slider .row { display: flex; align-items: center; gap: 10px; }
.slider .rail { position: relative; flex: 1; height: 2px; background: #000; }
.slider .knob { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #000; }
.slider .val {
  min-width: 70px; height: 24px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: flex-end;
  border: 2px solid #000; border-radius: 5px;
  font-weight: 800; font-size: 10.5px; text-transform: uppercase; white-space: nowrap;
}

.sc-side .foot { margin-top: 22px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sc-side .foot a { text-decoration: underline; }

/* ---------- main area ---------- */

.sc-main { margin-left: var(--side); min-height: 100vh; position: relative; overflow-x: clip; }
.pad { padding: 40px 44px; }
.block { padding: 70px 44px; position: relative; }
.divider { border: 0; border-top: 2px solid #000; margin: 0 44px; }

/* museum pieces sit inside the words; the text wraps around them so there is no empty column */
.chapter { display: flow-root; }
.chapter > .side { float: right; position: relative !important; top: auto !important; right: auto !important; width: 200px !important; margin: 18px 4px 30px 46px !important; z-index: 1; }
@media (max-width: 700px) { .chapter > .side { width: 42% !important; margin: 14px 4px 26px 24px !important; } .chapter > .side .cap { font-size: 8.5px; } }
.intro-block .fig, .head .fig { position: relative !important; float: right; top: auto !important; right: auto !important; width: min(34%, 220px) !important; margin: 10px 0 30px 44px; z-index: 1; }

/* 1-bit photos */
.bit { image-rendering: pixelated; }
.print {
  position: absolute;
  background: #fff;
  padding: 10px 10px 12px;
  box-shadow: 0 2px 3px rgba(0,0,0,.15), 0 18px 40px -12px rgba(0,0,0,.35);
  z-index: 5;
}
.print img { display: block; width: 100%; }
.print .cap { margin-top: 6px; font-weight: 700; font-size: 9px; text-transform: uppercase; }

/* glitter stars */
.star {
  position: absolute; z-index: 30; pointer-events: none;
  width: 44px; height: 44px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.star.s { width: 30px; height: 30px; }
.star.l { width: 60px; height: 60px; }
.star.xs { width: 22px; height: 22px; }

/* bordered info boxes */
.card {
  border: 2px solid #000; border-radius: 10px;
  padding: 20px 22px 22px; background: #fff;
}
.card .lbl { margin-bottom: 10px; display: block; }
.card p { margin: 0; }
.card.dark { background: #000; color: #fff; }

/* list of links, each one a row */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rows a {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 4px 16px; align-items: center;
  border: 2px solid #000; border-radius: 10px;
  padding: 14px 16px; text-decoration: none; background: #fff;
  transition: background .12s, color .12s;
}
.rows a:hover { background: #000; color: #fff; }
.rows .n { font-weight: 900; font-size: 13px; }
.rows .t { font-weight: 900; font-size: clamp(17px, 1.8vw, 22px); text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
.rows .d { grid-column: 2 / 4; font-size: 13.5px; line-height: 1.45; }
.rows .ic { font-weight: 800; font-size: 13px; }
@media (min-width: 1100px) {
  .rows a { grid-template-columns: 54px minmax(220px, 1fr) 1.4fr 20px; }
  .rows .d { grid-column: 3; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  border: 2px solid #000; border-radius: 8px;
  font-family: var(--font); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: -.01em;
  text-decoration: none; color: #000; background: #fff; cursor: pointer;
}
.btn:hover { background: #000; color: #fff; }
.btn.dark { background: #000; color: #fff; }
.btn.dark:hover { background: #fff; color: #000; }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }

/* dictionary words: hover or tap for the plain meaning */
.term { border-bottom: 2px dotted #000; cursor: help; position: relative; }
.term .def {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 60;
  width: min(290px, 76vw); padding: 10px 12px;
  background: #fff; color: #000; border: 2px solid #000; border-radius: 8px;
  font-size: 12.5px; line-height: 1.45; font-weight: 500; text-transform: none; letter-spacing: 0;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.term:hover .def, .term.show .def { opacity: 1; }

.sc-foot { margin: 60px 44px 0; padding: 18px 0 28px; border-top: 2px solid #000; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- phone ---------- */

.sc-top { display: none; }
@media (max-width: 860px) {
  .sc-side { position: static; width: auto; padding: 18px 16px 8px; overflow: visible; }
  .sc-side .logo { transform: scale(.82); transform-origin: left center; }
  .sc-side .rest { display: none; }
  .sc-side.open .rest { display: block; }
  .sc-track { display: none; }
  .sc-top { display: flex; position: absolute; top: 34px; right: 16px; z-index: 45; }
  .sc-main { margin-left: 0; }
  .pad, .block { padding-left: 16px; padding-right: 16px; }
  .block { padding-top: 50px; padding-bottom: 50px; }
  .divider, .sc-foot { margin-left: 16px; margin-right: 16px; }
}

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

/* ---------- vellum: a photo cut out and laid on frosted, crinkled plastic ---------- */
.vellum {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 24px 50px -22px rgba(0,0,0,.45);
}
.vellum .haze {
  position: absolute; inset: -8%; z-index: 0;
  background: var(--haze, #dfe2e7) center / cover no-repeat;
  filter: grayscale(1) blur(2px) contrast(.9) brightness(1.06);
  transform: scale(1.04);
}
.vellum .sheet {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(118deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 42%, rgba(255,255,255,0) 50%),
    linear-gradient(200deg, rgba(255,255,255,0) 55%, rgba(255,255,255,.35) 62%, rgba(255,255,255,0) 70%),
    rgba(244,246,250,.52);
  -webkit-backdrop-filter: blur(6px) saturate(.6); backdrop-filter: blur(6px) saturate(.6);
}
.vellum .sheet::after {
  content: ''; position: absolute; inset: 0; opacity: .55; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='.011 .018' numOctaves='3' seed='4'/><feDiffuseLighting lighting-color='white' surfaceScale='6'><feDistantLight azimuth='225' elevation='38'/></feDiffuseLighting><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.4 0 0 0 -1.35'/></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>");
  background-size: cover;
}
.vellum .cut {
  position: absolute; z-index: 2; left: 50%; bottom: 0;
  height: 94%; width: auto; max-width: 110%;
  transform: translateX(-50%);
  image-rendering: pixelated;
}
.vellum.wide { aspect-ratio: 3 / 2; }
.vellum.wide .cut { height: 96%; }
.vellum .stamp {
  position: absolute; z-index: 3; left: 10px; top: 10px;
  font-weight: 800; font-size: 9px; text-transform: uppercase; letter-spacing: .02em;
  background: rgba(255,255,255,.8); padding: 3px 6px; border-radius: 3px;
}

/* ---------- scene: blurry backdrop under crinkled plastic, glitter stars, crisp prints on top ---------- */
.scene { position: relative; margin: 0; aspect-ratio: 4 / 5; isolation: isolate; }
.scene .panel {
  position: absolute; inset: 6% 4% 8% 6%; z-index: 0;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.scene .panel .bg { position: absolute; inset: -6%; background-position: center; background-size: cover; filter: grayscale(.8) brightness(.58) contrast(1.15); }
.scene .panel .ghost {
  position: absolute; left: 50%; bottom: 0; height: 88%; transform: translateX(-46%);
  opacity: .28; filter: blur(.6px) invert(1);
}
.scene .panel .wrap {
  position: absolute; inset: 0;
  background: url(../images/plastic.png) center / cover, url(../images/plastic.png) 30% 70% / 140%, linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
}
.scene .pr {
  position: absolute; z-index: 3;
  background: #fff; padding: 8px 8px 10px;
  box-shadow: 0 2px 3px rgba(0,0,0,.18), 0 20px 34px -14px rgba(0,0,0,.5);
}
.scene .pr img { display: block; width: 100%; image-rendering: pixelated; }
.scene .pr.a { width: 64%; left: 0; bottom: 4%; transform: rotate(-4deg); }
.scene .pr.b { width: 46%; right: -2%; top: 12%; transform: rotate(5deg); }
.scene .star { z-index: 4; }
.scene .tag { position: absolute; z-index: 5; left: 8%; top: 2%; font-weight: 800; font-size: 9.5px; text-transform: uppercase; background: #fff; padding: 3px 7px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* =====================================================================
   THE STAGE: the whole page is a blurry street under crinkled plastic,
   with glitter stars. The website lives inside a plain white square.
   ===================================================================== */
html.staged, html.staged body { height: 100%; overflow: hidden; }
html.staged body { background: #3a3b3e; }
:root { --edge-x: max(28px, 5vw); --edge-t: 34px; --edge-b: 34px; }
@media (min-width: 1101px) { :root { --edge-x: 11.5vw; } }
.sc-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sc-backdrop .photo { position: absolute; inset: -40px; background: url(../images/backdrop.jpg) center / cover; filter: blur(6px) saturate(.7) brightness(.85); }
.sc-backdrop .plastic { position: absolute; inset: 0; background: url(../images/plastic.png) 0 0 / 1100px, url(../images/plastic.png) 340px 220px / 1600px; opacity: .55; }
.sc-backdrop .shine { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.14) 45%, rgba(255,255,255,0) 55%); }
.sc-backdrop .star { position: absolute; }

.sc-url {
  position: fixed; z-index: 60; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(520px, 70vw); height: 38px; border-radius: 11px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: rgba(246,246,248,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 22px -10px rgba(0,0,0,.45);
  font: 400 15px -apple-system, 'Helvetica Neue', Arial, sans-serif; color: #111;
}
.sc-url .aa { font-size: 12px; color: #555; letter-spacing: -.02em; }
.sc-url .addr { flex: 1; text-align: center; }
.sc-url .addr::before { content: '\1F512\FE0E'; font-size: 11px; margin-right: 6px; color: #444; }
.sc-url .rl { color: #555; font-size: 15px; }

.sc-screen {
  position: fixed; z-index: 10;
  top: var(--edge-t); bottom: var(--edge-b); left: var(--edge-x); right: var(--edge-x);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 40px 80px -30px rgba(0,0,0,.7);
  border-radius: 20px;
  overflow: hidden; overflow: clip;
}
.sc-screen .sc-side { position: absolute; top: 0; bottom: 0; left: 0; }
.sc-screen .sc-track { position: absolute; top: 18px; bottom: 18px; }
.sc-screen .sc-main { position: absolute; top: 0; bottom: 0; right: 0; left: var(--side); margin-left: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.sc-screen .sc-main .hero { min-height: calc(100vh - 68px); }

/* Kathleen, cut out of her photos: two tidy columns in the margins, evenly spaced, never over the page */
.sc-rail { position: fixed; z-index: 20; top: calc(var(--edge-t) + 10px); bottom: calc(var(--edge-b) + 6px); width: var(--edge-x);
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; pointer-events: none; }
.sc-rail.l { left: 0; }
.sc-rail.r { right: 0; }
.sc-float { position: relative; width: min(calc(var(--edge-x) - 30px), 190px); filter: drop-shadow(0 14px 16px rgba(0,0,0,.5)); }
.sc-float img { display: block; width: 100%; height: auto; max-height: 30vh; object-fit: contain; }
.sc-rail .sc-float:nth-child(odd) { transform: rotate(-3deg); }
.sc-rail .sc-float:nth-child(even) { transform: rotate(3deg); }
@media (max-width: 1100px) { .sc-rail { display: none; } }
@media (max-height: 760px) { .sc-rail.r .sc-float:nth-child(2) { display: none; } }
@media (max-width: 860px) {
  .sc-screen { border-radius: 16px; }
  html.staged, html.staged body { height: auto; overflow: visible; }
  .sc-url { top: 10px; height: 34px; font-size: 13px; width: calc(100vw - 32px); }
  .sc-screen { position: relative; top: auto; bottom: auto; left: auto; right: auto; margin: 16px 10px 20px; }
  .sc-screen .sc-side { position: static; }
  .sc-screen .sc-main { position: static; overflow: visible; }
  .sc-float { display: none; }
}

.kat-fig { display: block; width: 100%; height: auto; image-rendering: pixelated; mix-blend-mode: multiply; }

/* Kathleen's portraits: the same object as the museum prints, so they belong on the page */
.print.kat { position: relative; background: #fff; padding: 10px 10px 12px; }
.print.kat img { display: block; width: 100%; height: auto; }
.pair { position: relative; }
.pair .print.kat { width: 78%; transform: rotate(-2.5deg); z-index: 2; }
.pair .print.art { position: absolute; width: 52%; right: -4%; bottom: -14%; transform: rotate(4deg); z-index: 3; }

/* Kathleen's prints hung on the edges of the square: mostly in the margin, tucked only over the square's empty border */
.sc-rail { position: fixed; z-index: 30; top: calc(var(--edge-t) + 4vh); bottom: calc(var(--edge-b) + 4vh);
  display: flex; flex-direction: column; justify-content: space-around; pointer-events: none; }
.sc-rail.l { left: 0; width: calc(var(--edge-x) + 12px); align-items: flex-end; }
.sc-rail.r { right: 0; width: calc(var(--edge-x) + 22px); align-items: flex-start; }
.sc-hang { border-radius: 3px; position: relative; width: min(calc(var(--edge-x) - 6px), 200px); background: #fff; padding: 7px 7px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 18px 30px -12px rgba(0,0,0,.6); }
.sc-hang img { display: block; width: 100%; height: auto; max-height: 30vh; object-fit: cover; }
.sc-hang .cap { position: absolute; left: 8px; bottom: 5px; font-weight: 800; font-size: 8px; letter-spacing: .03em; text-transform: uppercase; color: #000; }
.sc-hang::before { content: ''; position: absolute; top: -9px; left: 50%; width: 58px; height: 18px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(236,238,242,.78); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 1px 2px rgba(0,0,0,.15); }
.sc-rail.l .sc-hang:nth-child(1) { transform: rotate(-3deg); }
.sc-rail.l .sc-hang:nth-child(2) { transform: rotate(2deg); }
.sc-rail.r .sc-hang:nth-child(1) { transform: rotate(3deg); }
.sc-rail.r .sc-hang:nth-child(2) { transform: rotate(-2deg); }
@media (max-width: 1100px) { .sc-rail { display: none; } }
@media (max-height: 700px) { .sc-hang:nth-child(2) { display: none; } }

/* phones and tablets: the prints hang in a fanned row at the top of the page */
.sc-strip { display: none; }
@media (max-width: 1100px) {
  .sc-strip { display: flex; justify-content: center; align-items: flex-start; padding: 26px 10px 30px; overflow: hidden; }
  .sc-strip .sc-hang { width: 25%; max-width: 170px; flex: none; margin: 0 -1.5% !important; padding: 5px 5px 16px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
  .sc-strip .sc-hang img { aspect-ratio: 4 / 5; max-height: none; object-fit: cover; }
  .sc-strip .sc-hang .cap { font-size: 6.5px; left: 6px; bottom: 4px; }
  .sc-strip .sc-hang::before { width: 38px; height: 12px; top: -6px; }
  .sc-strip .sc-hang:nth-child(1) { transform: rotate(-5deg) translateY(4px); z-index: 1; }
  .sc-strip .sc-hang:nth-child(2) { transform: rotate(3deg); z-index: 2; }
  .sc-strip .sc-hang:nth-child(3) { transform: rotate(-2deg) translateY(6px); z-index: 3; }
  .sc-strip .sc-hang:nth-child(4) { transform: rotate(5deg) translateY(1px); z-index: 4; }
}

/* the smaller rows sit on the line between chapters */
@media (max-width: 1100px) {
  .chapter.has-strip { padding-top: 78px !important; }
  .sc-strip.mini { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); padding: 0; overflow: visible; z-index: 5; pointer-events: none; }
  .sc-strip.mini .sc-hang { width: 58px; max-width: none; margin: 0 -4px !important; padding: 3px 3px 9px; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
  .sc-strip.mini .sc-hang::before { width: 24px; height: 8px; top: -4px; }
}

/* silver stars in the blank space on phones and tablets */
.m-star { display: none; }
@media (max-width: 1100px) {
  .m-star { display: block; position: absolute !important; z-index: 6; pointer-events: none; }
  .sc-strip:not(.mini) { position: relative; padding-top: 40px; }
}

/* phones: the main sections as tabs under the logo */
.sc-tabs { display: none; }
@media (max-width: 860px) {
  .sc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
  .sc-tabs a { display: flex; align-items: center; justify-content: center; height: 38px; border: 2px solid #000; border-radius: 8px; background: #fff;
    font-weight: 800; font-size: 10.5px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: #000; white-space: nowrap; }
  .sc-tabs a[aria-current="page"] { background: #000; color: #fff; }
  .sc-side.open .sc-tabs { display: none; }
}
@media (max-width: 360px) { .sc-tabs a { font-size: 9.5px; } }

/* phones: the desktop stars placed inside pages would land on words, so only the phone stars show */
@media (max-width: 860px) { .sc-main i.star:not(.m-star) { display: none !important; } }
