/* mgbstuff.dev layout and components.
   Colors and textures only from tokens.css, type only from fonts.css: no hex values in this file.
   Bands: .band--iron (dark, iron texture) and .band--paper (light, ash texture); the title strip (.hero) has its own. Each band sets the
   local roles below (--ink, --soft, --rule, --title, --card, --accent-ink), and every component uses those,
   so a card or heading looks right on either band without extra classes. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h, 90px) + 8px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--iron-ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1;
  letter-spacing: .01em;
  margin: 0;
  color: var(--title);
}
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

:root { --wrap: 1400px; --gutter: clamp(16px, 4vw, 40px); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Icons: the sprite draws in currentColor; .ic must not inherit a fill */
.ic, .card-title svg { width: 1.25em; height: 1.25em; fill: none; flex: none; }

/* ---------- Bands ---------- */
.band { position: relative; isolation: isolate; }
.band::before, .band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-position: 0 0;
}
.band::before {   /* the texture: --t-* are set below from the tokens.css slot for this band and mode */
  background-image: var(--t);
  background-size: var(--t-size);
  background-position: var(--t-x) var(--t-y);
  mix-blend-mode: var(--t-blend);
  opacity: var(--t-strength);
}
.band::after { background-image: var(--grain); opacity: var(--t-grain); }   /* fine noise, its own layer so the texture blend can't hide it */
@media (max-width: 600px) {   /* phones: each texture's own phone zoom (tokens.css -size-phone / -x-phone / -y-phone; same as a computer unless set) */
  .band::before { background-size: var(--t-size-phone, var(--t-size)); background-position: var(--t-x-phone, var(--t-x)) var(--t-y-phone, var(--t-y)); }
}
@media (min-width: 601px) {   /* computers: each texture's wide-screen setting, chosen in mgb-tune's Widths preview (tokens.css -size-wide / -x-wide / -y-wide / -repeat-wide / -mask-wide).
                                 Repeat = same as the plain settings. Fade and Scaled only start changing past the width the picture was tuned for, so smaller screens look the same. */
  .band::before {
    background-size: var(--t-size-wide, var(--t-size)); background-position: var(--t-x-wide, var(--t-x)) var(--t-y-wide, var(--t-y));
    background-repeat: var(--t-repeat-wide, repeat); -webkit-mask-image: var(--t-mask-wide, none); mask-image: var(--t-mask-wide, none);
  }
}
.band--iron {
  --ink: var(--iron-ink); --soft: var(--iron-soft); --rule: var(--iron-rule); --title: var(--iron-title);
  --card: var(--iron-card); --accent-ink: var(--iron-accent);
  background: var(--iron-bg); color: var(--ink);
}
.band--iron.band--alt { background: var(--iron-bg-alt); }
.band--iron.band--alt::before { background-position: calc(var(--t-x) - 500px) calc(var(--t-y) - 300px); }   /* a different patch of the texture */
.band--paper {
  --ink: var(--paper-ink); --soft: var(--paper-soft); --rule: var(--paper-rule); --title: var(--paper-title);
  --card: var(--paper-card); --accent-ink: var(--paper-accent);
  background: var(--paper-bg); color: var(--ink);
}
.band--paper::after { mix-blend-mode: multiply; }

/* Which texture settings each band uses, in dark mode (the default) and light mode. The title strip (.hero)
   comes last and is more specific, so it wins over the plain iron band it also is. It has no grain setting: its
   ::after is the edge shading (see .hero::after), not grain. */
.band--iron {
  --t: var(--tex-iron-dark); --t-strength: var(--tex-iron-dark-strength); --t-blend: var(--tex-iron-dark-blend);
  --t-size: var(--tex-iron-dark-size); --t-size-phone: var(--tex-iron-dark-size-phone); --t-x: var(--tex-iron-dark-x); --t-y: var(--tex-iron-dark-y); --t-x-phone: var(--tex-iron-dark-x-phone); --t-y-phone: var(--tex-iron-dark-y-phone); --t-size-wide: var(--tex-iron-dark-size-wide); --t-x-wide: var(--tex-iron-dark-x-wide); --t-y-wide: var(--tex-iron-dark-y-wide); --t-repeat-wide: var(--tex-iron-dark-repeat-wide); --t-mask-wide: var(--tex-iron-dark-mask-wide); --t-grain: var(--tex-iron-dark-grain);
}
[data-theme="light"] .band--iron {
  --t: var(--tex-iron-light); --t-strength: var(--tex-iron-light-strength); --t-blend: var(--tex-iron-light-blend);
  --t-size: var(--tex-iron-light-size); --t-size-phone: var(--tex-iron-light-size-phone); --t-x: var(--tex-iron-light-x); --t-y: var(--tex-iron-light-y); --t-x-phone: var(--tex-iron-light-x-phone); --t-y-phone: var(--tex-iron-light-y-phone); --t-size-wide: var(--tex-iron-light-size-wide); --t-x-wide: var(--tex-iron-light-x-wide); --t-y-wide: var(--tex-iron-light-y-wide); --t-repeat-wide: var(--tex-iron-light-repeat-wide); --t-mask-wide: var(--tex-iron-light-mask-wide); --t-grain: var(--tex-iron-light-grain);
}
.band--paper {
  --t: var(--tex-paper-dark); --t-strength: var(--tex-paper-dark-strength); --t-blend: var(--tex-paper-dark-blend);
  --t-size: var(--tex-paper-dark-size); --t-size-phone: var(--tex-paper-dark-size-phone); --t-x: var(--tex-paper-dark-x); --t-y: var(--tex-paper-dark-y); --t-x-phone: var(--tex-paper-dark-x-phone); --t-y-phone: var(--tex-paper-dark-y-phone); --t-size-wide: var(--tex-paper-dark-size-wide); --t-x-wide: var(--tex-paper-dark-x-wide); --t-y-wide: var(--tex-paper-dark-y-wide); --t-repeat-wide: var(--tex-paper-dark-repeat-wide); --t-mask-wide: var(--tex-paper-dark-mask-wide); --t-grain: var(--tex-paper-dark-grain);
}
[data-theme="light"] .band--paper {
  --t: var(--tex-paper-light); --t-strength: var(--tex-paper-light-strength); --t-blend: var(--tex-paper-light-blend);
  --t-size: var(--tex-paper-light-size); --t-size-phone: var(--tex-paper-light-size-phone); --t-x: var(--tex-paper-light-x); --t-y: var(--tex-paper-light-y); --t-x-phone: var(--tex-paper-light-x-phone); --t-y-phone: var(--tex-paper-light-y-phone); --t-size-wide: var(--tex-paper-light-size-wide); --t-x-wide: var(--tex-paper-light-x-wide); --t-y-wide: var(--tex-paper-light-y-wide); --t-repeat-wide: var(--tex-paper-light-repeat-wide); --t-mask-wide: var(--tex-paper-light-mask-wide); --t-grain: var(--tex-paper-light-grain);
}
.band.hero {
  --t: var(--tex-hero-dark); --t-strength: var(--tex-hero-dark-strength); --t-blend: var(--tex-hero-dark-blend);
  --t-size: var(--tex-hero-dark-size); --t-size-phone: var(--tex-hero-dark-size-phone); --t-x: var(--tex-hero-dark-x); --t-y: var(--tex-hero-dark-y); --t-x-phone: var(--tex-hero-dark-x-phone); --t-y-phone: var(--tex-hero-dark-y-phone); --t-size-wide: var(--tex-hero-dark-size-wide); --t-x-wide: var(--tex-hero-dark-x-wide); --t-y-wide: var(--tex-hero-dark-y-wide); --t-repeat-wide: var(--tex-hero-dark-repeat-wide); --t-mask-wide: var(--tex-hero-dark-mask-wide);
}
[data-theme="light"] .band.hero {
  --t: var(--tex-hero-light); --t-strength: var(--tex-hero-light-strength); --t-blend: var(--tex-hero-light-blend);
  --t-size: var(--tex-hero-light-size); --t-size-phone: var(--tex-hero-light-size-phone); --t-x: var(--tex-hero-light-x); --t-y: var(--tex-hero-light-y); --t-x-phone: var(--tex-hero-light-x-phone); --t-y-phone: var(--tex-hero-light-y-phone); --t-size-wide: var(--tex-hero-light-size-wide); --t-x-wide: var(--tex-hero-light-x-wide); --t-y-wide: var(--tex-hero-light-y-wide); --t-repeat-wide: var(--tex-hero-light-repeat-wide); --t-mask-wide: var(--tex-hero-light-mask-wide);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.5em;
  font: 700 1rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ember); color: var(--on-ember); }
.btn--primary:hover { background: var(--ember-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn .ic { width: 22px; height: 22px; }

.kicker { font: 400 .85rem/1.4 var(--font-accent); color: var(--soft); letter-spacing: .02em; }
.kicker::before { content: "// "; color: var(--accent-ink); }

/* ---------- Header (fixed) ----------
   Two rows like the current homepage: the logo centered on top, the section strip below.
   Once you scroll, the icon rows fold away (.is-folded, set by the page script) and a slim logo row stays.
   The page script measures the header: --head-full pads the top of the page, --nav-h is where jump links land. */
body { padding-top: var(--head-full, 172px); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--head-bg); color: var(--head-ink);
  border-bottom: 3px solid var(--ember);
  box-shadow: 0 6px 18px color-mix(in oklab, black 45%, transparent);
}
.head-top {
  position: relative; display: flex; justify-content: center; align-items: center;
  max-height: 100px; padding: 14px var(--gutter) 6px; overflow: hidden;
  transition: max-height .25s ease, padding .25s ease, opacity .2s ease;
}
.is-folded .head-top { max-height: 0; padding-block: 0; opacity: 0; }
/* Every page folds the other way: the icon rows fold away and a slimmer logo row stays.
   (Oct 2026; tried before it: the header sliding away with the title strip pinned.) The one exception is a
   Crossword Combat game in progress (body.cc[data-view="play"]): it keeps the icons, since its board is placed
   under them; its start and loading screens fold like every other page. */
.mark { transition: font-size .25s ease; }
.nav { max-height: 260px; transition: max-height .25s ease, opacity .2s ease; }
body:not(.cc[data-view="play"]) .is-folded .head-top { max-height: 100px; padding: 8px var(--gutter); opacity: 1; }
body:not(.cc[data-view="play"]) .is-folded .mark { font-size: clamp(1.4rem, 4vw, 1.9rem); }
body:not(.cc[data-view="play"]) .is-folded .nav { max-height: 0; opacity: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .head-top, .mark, .nav { transition: none; } }
.mark {
  display: flex; align-items: baseline; gap: .3em; text-decoration: none; color: var(--head-ink);
  font: var(--font-heading-weight) clamp(1.9rem, 6vw, 3rem)/1 var(--font-heading); letter-spacing: .02em;
}
/* The skull logo (assets/images/mgb-skull.svg) sits on the wordmark's baseline, a little taller than its letters.
   Change the size of both with the font-size above. */
.mark__skull { height: .9em; width: auto; flex: none; align-self: center; }
/* "Skull looks at you" (assets/js/skull-look.js, on trial on the homepage): the logo split into layers.
   The script sets --t (turn, -1 left .. 1 right; --ta = its size without the sign) and --u (tip, -1 down .. 1 up); each layer slides a different
   distance (glasses most, head a little, shadow the other way), which reads as depth. Flat slides on purpose:
   real 3D transforms (preserve-3d) made the logo blurry. */
.skull-look { --t: 0; --u: 0; --ta: 0; display: block; position: relative; aspect-ratio: 1560 / 1712; }
.skull-look__rig { position: absolute; inset: 0; }
.skull-look__rig > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.skull-look__shadow {
  transform: translate(calc(var(--t) * -.03em), calc(.04em + var(--u) * .02em));
  filter: brightness(0) blur(.04em); opacity: .35;
}
.skull-look__head {
  transform: translate(calc(var(--t) * .025em), calc(var(--u) * -.02em)) scaleX(calc(1 - var(--ta) * .04));
}
.skull-look__glasses, .skull-look__shine {
  transform: translate(calc(var(--t) * .075em), calc(var(--u) * -.055em)) scaleX(calc(1 - var(--ta) * .03));
}
.skull-look__shine {
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .6) 50%, transparent 58%) var(--shine, 0%) 0 / 300% 100% no-repeat;
  -webkit-mask: url(/assets/images/skull-look/lenses.svg) center / 100% 100% no-repeat;
          mask: url(/assets/images/skull-look/lenses.svg) center / 100% 100% no-repeat;
}
.mark__word span { color: var(--ember); }

.theme-btn {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -40%;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid color-mix(in oklab, var(--head-ink) 30%, transparent); border-radius: 3px;
  color: var(--head-ink); cursor: pointer;
}
.theme-btn:hover { color: var(--ember); border-color: var(--ember); }
.theme-btn .ic { width: 24px; height: 24px; }
.ic--sun { display: none; }
[data-theme="light"] .ic--sun { display: block; }
[data-theme="light"] .ic--moon { display: none; }

/* phones: logo on the left, the light/dark button on the right, so they never overlap */
@media (max-width: 600px) {
  .head-top { justify-content: space-between; }
  .theme-btn { position: static; translate: none; }
}

/* the section strip: icon in a slot, label below */
.nav { overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul {
  list-style: none; margin: 0 auto; padding: 12px var(--gutter) 10px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 4px;
  width: max-content;
}
.nav a {
  display: grid; justify-items: center; gap: 7px; padding: 4px 0;
  text-decoration: none; color: var(--head-ink);
}
.slot {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--char-950); border: 2px solid var(--char-700); color: var(--head-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));   /* the icons' cut corner */
  transition: border-color .15s, color .15s, background-color .15s;
}
[data-theme="light"] .slot { background: var(--color-deep); border-color: var(--char-500); }
.slot .ic { width: 26px; height: 26px; }
.nl { font: 400 .68rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; color: var(--color-border); }
.nav a:hover .slot { border-color: var(--ember); color: var(--ember); }
.nav a:hover .nl { color: var(--head-ink); }
/* the section you're on: ember slot with corner brackets */
.nav a[aria-current] .slot { border-color: var(--ember); color: var(--ember); background: color-mix(in oklab, var(--ember) 16%, var(--char-950)); }
.nav a[aria-current] .nl { color: var(--ember); }
.nav a { position: relative; }
.nav a[aria-current]::before {
  content: ""; position: absolute; left: 50%; top: -2px; width: 58px; height: 58px; translate: -50% 0; pointer-events: none;
  --b: linear-gradient(var(--ember), var(--ember));
  background:
    var(--b) left top / 10px 2px, var(--b) left top / 2px 10px,
    var(--b) right top / 10px 2px, var(--b) right top / 2px 10px,
    var(--b) left bottom / 10px 2px, var(--b) left bottom / 2px 10px,
    var(--b) right bottom / 10px 2px, var(--b) right bottom / 2px 10px;
  background-repeat: no-repeat;
}
/* phones and small tablets: all ten sections in two rows of five instead of a sideways-scrolling strip */
@media (max-width: 760px) {
  .nav ul { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; width: auto; max-width: 480px; row-gap: 6px; padding-block: 10px 8px; }
  .nl { font-size: .62rem; letter-spacing: .03em; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--iron-bg-alt);
  min-height: min(86svh, 780px);
  display: grid; place-items: center;
  padding: 72px var(--gutter) 128px;
  text-align: center; overflow: hidden;
}
.hero::after {   /* darkens the edges so the title sits in a pool of light */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, transparent 0 40%, var(--char-950) 100%);
}
[data-theme="light"] .hero::after { background: radial-gradient(ellipse 70% 60% at 50% 42%, transparent 0 45%, var(--color-border) 100%); }
.hero__inner { max-width: 960px; display: grid; justify-items: center; }
.hero__title {
  font-size: clamp(2.6rem, 10vw, 6.6rem);
  line-height: .98; letter-spacing: .02em; text-wrap: balance;
  text-shadow: 0 .06em 0 var(--char-950), 0 .02em .25em color-mix(in oklab, black 60%, transparent);
}
[data-theme="light"] .hero__title { text-shadow: 0 .05em 0 var(--color-border); }
.hero__title span { color: var(--ember); }
[data-theme="light"] .hero__title span { color: var(--title); }
.hero__sub { margin-top: 1.3rem; font: 400 clamp(.9rem, 2vw, 1.05rem)/1.3 var(--font-accent); text-transform: uppercase; letter-spacing: .18em; color: var(--soft); }
.hero__lede { max-width: 36ch; margin-top: 1.4rem; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.2rem; }

/* topic pages (music.html ...): a slim strip, not a big hero. Icon + title + tagline on the left, jump links to
   the page's sections on the right (site.js builds them from its .sec-head headings). Crossword Combat keeps its
   own big title. (Oct 2026: "right now" tiles were tried here and dropped: on phones they buried the page.) */
.hero__icon { width: clamp(56px, 9vw, 80px); height: clamp(56px, 9vw, 80px); object-fit: contain; margin-bottom: 1.1rem; color: var(--accent-ink); }
.hero--page { min-height: 0; padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(56px, 9vw, 100px); }
.hero--page .hero__title { font-size: clamp(2.6rem, 9vw, 5.4rem); }
.hero--page:not(.cc-hero) { padding: clamp(18px, 3vw, 28px) 0; text-align: left; place-items: stretch; }
.hero--page:not(.cc-hero)::after { background: linear-gradient(90deg, transparent 40%, color-mix(in oklab, var(--char-950) 45%, transparent)); }
[data-theme="light"] .hero--page:not(.cc-hero)::after { opacity: .35; }
.hero--page:not(.cc-hero) .hero__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); max-width: none; margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: .2rem 1rem;
}
.hero--page:not(.cc-hero) .hero__inner > * { grid-column: 1 / -1; }   /* anything extra (News: the updated line, its filters) */
.hero--page:not(.cc-hero) .hero__icon { grid-column: 1; grid-row: 1 / 3; width: clamp(40px, 5vw, 52px); height: clamp(40px, 5vw, 52px); margin: 0; }
.hero--page:not(.cc-hero) .hero__title { grid-column: 2; grid-row: 1; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1; }
.hero--page:not(.cc-hero) .hero__sub { grid-column: 2; grid-row: 2; margin: 0; font-size: .78rem; letter-spacing: .14em; }
/* a page's own description in the title strip (Nov 2026: Mark's sentences replaced the short ALL-CAPS taglines),
   sentence case in the body font so a few sentences stay easy to read */
.hero--page:not(.cc-hero) .hero__sub--text { margin-top: .45rem; max-width: 62ch; font: 400 clamp(.92rem, 1.6vw, 1.02rem)/1.45 var(--font-body);
  text-transform: none; letter-spacing: 0; color: var(--soft); }
.hero--page:not(.cc-hero) .hero__inner > :nth-child(n+4):not(.strip__tools) { margin-top: .6rem; }

/* Title-strip menus: "On this page" (built by site.js from the page's sections) and News's Filter. A button that
   opens a list. Wide screens: right of the title, and the list drops down over the page. Phones: full width, and the
   list opens below the button, pushing the page down. site.js opens and closes them. */
.hero--page:not(.cc-hero) { z-index: 5; overflow: visible; }   /* above the sections, and not clipped, so a drop-down shows over them */
.strip__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .9rem; }
.strip-menu { position: relative; }
.strip-menu__btn {
  display: inline-flex; align-items: center; gap: .7em; min-height: 44px; padding: 0 1em; cursor: pointer;
  border: 1px solid var(--rule); background: var(--card); color: var(--ink);
  font: 400 .78rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .12em;
}
.strip-menu__btn .ic { width: 16px; height: 16px; flex: none; }
.strip-menu__btn:hover, .strip-menu__btn[aria-expanded="true"] { border-color: var(--line); }
.strip-menu__arrow { transition: transform .15s; }
.strip-menu__btn[aria-expanded="true"] .strip-menu__arrow { transform: rotate(180deg); }
.strip-menu__v { font: 700 .8rem/1 var(--font-body); letter-spacing: .05em; }   /* News: the filter in use */
.strip-menu.is-filtered .strip-menu__btn { border-color: var(--line); box-shadow: inset 3px 0 0 var(--line); }
.strip-menu__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 260px; max-height: min(70vh, 520px); overflow-y: auto;
  display: grid; padding: 6px; background: var(--iron-bg); border: 1px solid var(--rule);
  box-shadow: 0 14px 30px color-mix(in oklab, black 45%, transparent);
}
.strip-menu__list[hidden] { display: none; }
.strip-menu__list a, .strip-menu__list button {
  display: flex; align-items: center; gap: .7em; min-height: 42px; padding: 0 .8em; cursor: pointer; text-align: left;
  color: var(--ink); background: none; border: 0; border-left: 3px solid transparent; text-decoration: none;
  font: 700 .82rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .04em;
}
.strip-menu__list a:hover, .strip-menu__list button:hover { background: var(--card); border-left-color: var(--line); }
.strip-menu__list button[aria-pressed="true"] { background: var(--card); border-left-color: var(--line); }   /* the filter in use */
.strip-menu__list .ic { width: 18px; height: 18px; flex: none; color: var(--accent-ink); }
@media (max-width: 899px) {
  .strip__tools { display: grid; justify-self: stretch; }
  .strip-menu__btn { width: 100%; }
  .strip-menu__btn > span:not(.strip-menu__v) { flex: 1; text-align: left; }
  .strip-menu__list { position: static; margin-top: 6px; min-width: 0; max-height: none; box-shadow: none; }
}
@media (min-width: 900px) {   /* wide screens: the menus sit to the right of the title */
  .hero--page:not(.cc-hero) .hero__inner:has(.strip__tools) { grid-template-columns: auto auto 1fr; }
  .hero--page:not(.cc-hero) .strip__tools { grid-column: 3; grid-row: 1 / 3; justify-self: end; align-self: center; margin: 0; }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(32px, 4.5vw, 52px) 0; }   /* Oct 2026: halved (was 64-104px): the gaps between sections felt wasted */
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.1rem; align-items: center; margin-bottom: 2rem; }
.sec-head .ic { width: clamp(44px, 6vw, 60px); height: clamp(44px, 6vw, 60px); color: var(--accent-ink); grid-row: span 2; }
.sec-head h2 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.sec-head p { max-width: 60ch; color: var(--soft); font-size: 1.05rem; grid-column: 2; }
@media (max-width: 600px) {
  .sec-head .ic { grid-row: auto; }
  .sec-head p { grid-column: 1 / -1; }
}
.sub { margin: 2.2rem 0 .9rem; font: 400 .8rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--soft); display: flex; align-items: center; gap: .8rem; }
.sub::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- Cards ----------
   The same classes are used by news-widget.js for the "Latest" cards (.card.news-card, .card-title, .card-text, .card-tag).
   Signature: a notched corner, top right, gray on plain cards and ember on live ones. */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card {
  position: relative; display: grid; align-content: start; gap: .55rem;
  padding: 1.3rem 1.3rem 1.2rem;
  background: var(--card); border: 1px solid var(--rule); color: var(--ink);
  text-decoration: none; min-width: 0;
  transition: border-color .2s, transform .2s;
}
.card::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px;
  background: var(--rule); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.card-title { display: flex; align-items: flex-start; gap: .55rem; font: 700 1.08rem/1.3 var(--font-body); color: var(--title); }
.card-title svg { width: 24px; height: 24px; margin-top: -.05em; color: var(--accent-ink); }
.card-title img { width: 28px; height: 28px; margin-top: -.15em; border-radius: 22%; flex: none; } /* an app icon in place of a sprite icon */
.card-title img.card-thumb { width: 56px; height: 56px; margin: 0 .3rem 0 0; border-radius: 4px; object-fit: cover; border: 1px solid var(--rule); }   /* album art, a game's picture */
.cards-slot { display: contents; }   /* a box filled by a script (news, Spotify) whose cards sit in the surrounding .cards grid */
.card-text { color: var(--soft); font-size: .97rem; line-height: 1.5; }
.card-tag { font: 400 .72rem/1.3 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-top: .2rem; }

/* live cards from the news feed: they open the article on another site */
.news-card::after { background: var(--ember); }
a.card:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
.news-card .card-title { font-size: 1rem; }
.news-card .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-tag { color: var(--soft); }
.section-note { color: var(--soft); font: 400 .85rem/1.4 var(--font-accent); }
.more { margin-top: 1.8rem; }   /* homepage: "View full ... page" under a section */

/* Meter (volleyball cards): five segments, filled ones in the accent */
.meter { display: flex; align-items: center; gap: 4px; margin-top: .2rem; }
.meter b { font: 400 .7rem/1 var(--font-accent); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-right: .5rem; min-width: 4.5em; }
.meter i { width: 18px; height: 8px; background: var(--accent-ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 3px 100%, 0 calc(100% - 3px)); }
.meter i.off { background: var(--rule); }

/* ---------- Today strip (filled by news-widget.js) ---------- */
#today .sec-head { margin-bottom: 1.6rem; }
.td-strip { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .td-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .td-strip { grid-template-columns: 1fr; } }
.td-tile {
  position: relative; display: flex; gap: 12px; align-items: flex-start; min-width: 0;
  padding: 1rem 1.1rem; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); transition: border-color .2s;
}
a.td-tile[href]:hover { border-color: var(--accent-ink); }
.td-tile img { width: 54px; height: 54px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--rule); background: var(--rule); }
.td-tile img.td-poster { width: 46px; height: 69px; }
.td-tile img.td-logo { object-fit: contain; border: 0; background: none; width: 46px; height: 46px; }
.td-body { min-width: 0; flex: 1; }
.td-k { font: 400 .7rem/1.3 var(--font-accent); letter-spacing: .08em; color: var(--soft); margin-bottom: .45rem; }
.td-k.live { color: var(--accent-ink); }
.td-v { font: 700 1rem/1.3 var(--font-body); color: var(--title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-s { font: 400 .75rem/1.4 var(--font-accent); color: var(--soft); margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Topic-page pieces (used on two or more pages) ---------- */
/* Shelf: cards with a colored spine (games, sports, books, workout). The spine color rotates. */
.shelf { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.book {
  position: relative; display: grid; align-content: start; gap: .4rem; min-width: 0;
  padding: 1.1rem 1.2rem 1.1rem 1.55rem; background: var(--card); border: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s;
}
.book::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 6px; background: var(--spine, var(--accent-ink)); }
.book:nth-child(3n+2) { --spine: var(--soft); }
.book:nth-child(3n) { --spine: color-mix(in oklab, var(--accent-ink) 45%, var(--rule)); }
a.book:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
.book-title { font: 700 1.02rem/1.3 var(--font-body); color: var(--title); }
.book-title a { color: inherit; text-decoration: none; }
.book-title a:hover, a.book:hover .book-title { color: var(--accent-ink); }
.book-author { font: 400 .72rem/1.4 var(--font-accent); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.book-note { color: var(--soft); font-size: .94rem; line-height: 1.5; }
.rating { display: flex; gap: 2px; color: var(--accent-ink); }
.rating .ic { width: 16px; height: 16px; }
.rating .ic.off { opacity: .28; }

/* Chips: small mono labels (project tags, league types). --fill and --accent mark a status. */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; width: max-content; padding: .45em .7em;
  font: 400 .68rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .08em;
  color: var(--soft); border: 1px solid var(--rule);
}
.chip--fill { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.chip--accent { border-color: var(--accent-ink); color: var(--accent-ink); }

/* Rows: a list of links or items, one per line (AI resources, volleyball game log, Riley's apps) */
.rows { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule); }
.rows > * + * { border-top: 1px solid var(--rule); }
.row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: .9rem 1.2rem; color: var(--ink); text-decoration: none; }
a.row { transition: background-color .15s; }
a.row:hover { background: color-mix(in oklab, var(--accent-ink) 9%, transparent); }
.row > .ic { width: 26px; height: 26px; color: var(--accent-ink); }
.row-body { flex: 1; min-width: 0; }
.row-title { display: block; font: 700 1.04rem/1.3 var(--font-body); color: var(--title); }
a.row:hover .row-title { color: var(--accent-ink); }
.row-sub { display: block; margin-top: .2rem; color: var(--soft); font-size: .94rem; line-height: 1.45; }
.row-tag { font: 400 .7rem/1.3 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--soft); text-align: right; }

/* Feature card: one big link with an art block (the arcade game, the novel) */
.feature {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; align-items: center;
  padding: 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--accent-ink);
  color: var(--ink); text-decoration: none; transition: transform .2s;
}
.feature::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px;
  background: var(--ember); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
a.feature:hover { transform: translateY(-2px); }
.feature__art {
  display: grid; place-items: center; width: 104px; height: 132px; color: var(--accent-ink);
  background: color-mix(in oklab, var(--accent-ink) 12%, transparent); border: 1px solid var(--rule);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.feature__art .ic { width: 56px; height: 56px; }
.feature__body { display: grid; gap: .5rem; min-width: 0; }
.feature__kicker { font: 400 .72rem/1.3 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.feature__title { font: var(--font-heading-weight) clamp(1.5rem, 4vw, 2.1rem)/1.1 var(--font-heading); color: var(--title); }
.feature__text { color: var(--soft); line-height: 1.55; max-width: 60ch; }
.feature__go { margin-top: .3rem; font: 400 .8rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
@media (max-width: 520px) {
  .feature { grid-template-columns: 1fr; }
  .feature__art { width: 100%; height: 96px; }
}

/* ---------- Live boxes on the topic pages (filled by news-widget.js) ----------
   The widget only sets layout; everything here uses the band's roles, so a box works on iron or paper. */
.nw-empty { color: var(--soft); font: 400 .85rem/1.5 var(--font-accent); }
* + p.nw-empty { margin-top: .8rem; }

/* news list: data-news */
.nw-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr)); overflow: hidden; list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--rule); }   /* also on the news page, where the widget adds no CSS */
.nw-list li { min-width: 0; margin: 0 -1px -1px 0; padding: 1rem 1.2rem calc(1rem + 1px); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }   /* two columns once there's room; the -1px hides the outer lines, and the extra 1px of padding keeps one column the same height */
.nw-list li:last-child { padding-bottom: 1rem; }
.nw-list a { font: 700 1.05rem/1.35 var(--font-body); color: var(--title); text-decoration: none; }
.nw-list a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.nw-sum { margin-top: .4rem; color: var(--soft); font-size: .97rem; line-height: 1.5; }
.nw-meta { margin-top: .55rem; font: 400 .72rem/1.3 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }

/* concerts (data-concerts) and team scores (data-scores): cards with the notched corner */
.nw-show, .nw-team { position: relative; min-width: 0; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--rule); color: var(--ink); }
.nw-show::after, .nw-team::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px;
  background: var(--rule); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.nw-show.fav, .nw-show.heard { border-color: var(--accent-ink); }
.nw-show.fav::after, .nw-show.heard::after { background: var(--ember); }
.nw-fav, .nw-heard { display: inline-block; margin: 0 6px .6rem 0; padding: .35em .6em; font: 400 .66rem/1 var(--font-accent); letter-spacing: .08em; }
.nw-heard { background: var(--ember); color: var(--on-ember); }
.nw-fav { border: 1px solid var(--accent-ink); color: var(--accent-ink); }
.nw-date { margin-bottom: .45rem; font: 400 .72rem/1.3 var(--font-accent); letter-spacing: .08em; color: var(--soft); }
.nw-show a { font: 700 1.02rem/1.35 var(--font-body); color: var(--title); text-decoration: none; }
.nw-show a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.nw-venue { margin-top: .35rem; color: var(--soft); font-size: .92rem; line-height: 1.45; }
.nw-team-head { margin-bottom: .7rem; }
.nw-team-name { font: 700 1.02rem/1.3 var(--font-body); color: var(--title); }
.nw-record { margin-bottom: .3rem; font: var(--font-heading-weight) 1.6rem/1.1 var(--font-heading); color: var(--accent-ink); }
.nw-stand { margin-bottom: .7rem; font: 400 .7rem/1.4 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.nw-line { font: 400 .8rem/1.8 var(--font-accent); color: var(--ink); }
.nw-line b { font-weight: 400; color: var(--soft); }
.nw-line.nw-live, .nw-line.nw-live b { color: var(--accent-ink); }

/* Spotify (data-spotify): track lists, artist grid */
.sp-list { background: var(--card); border: 1px solid var(--rule); }
.sp-list li { border-bottom: 1px solid var(--rule); }
.sp-list li:last-child { border-bottom: 0; }
.sp-link:hover .sp-name { color: var(--accent-ink); }
.sp-ranked .sp-row::before { font: 400 .8rem/1 var(--font-accent); color: var(--soft); }
.sp-art { background: var(--rule); border: 1px solid var(--rule); }
.sp-name { font: 700 1rem/1.3 var(--font-body); color: var(--title); }
.sp-sub, .sp-when { font: 400 .75rem/1.35 var(--font-accent); color: var(--soft); }
.sp-live { color: var(--accent-ink); }
.sp-compact .sp-name { font-size: .92rem; }
.sp-compact .sp-sub, .sp-compact .sp-when { font-size: .7rem; }
@media (min-width: 701px) {
  .sp-compact li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .sp-compact li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }   /* both cells of the last row */
}
.sp-artist { position: relative; height: 100%; background: var(--card); border: 1px solid var(--rule); transition: border-color .2s; }
.sp-link:hover .sp-artist { border-color: var(--accent-ink); }
.sp-artist .sp-name { font-size: .95rem; }

/* My Wrapped (data-spotify="wrapped"): period tabs, stat tiles, two ranked columns */
.wr-tab {
  min-height: 40px; padding: .7em 1em;
  font: 400 .72rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 2px;
}
.wr-tab:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.wr-tab[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.wr-stat { padding: .9rem 1rem; background: var(--card); border: 1px solid var(--rule); }
.wr-num { font: var(--font-heading-weight) 1.9rem/1.1 var(--font-heading); color: var(--accent-ink); }
.wr-lbl { margin-top: .35rem; font: 400 .7rem/1.3 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.wr-h { margin: 0 0 .8rem; font: 400 .8rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--soft); }
.wr-plays { font: 400 .75rem/1 var(--font-accent); color: var(--accent-ink); }

/* streaming posters (data-streaming) */
.tv-service { margin: 1.8rem 0 .8rem; font: 400 .8rem/1 var(--font-accent); text-transform: uppercase; letter-spacing: .1em; color: var(--soft); }
.tv-service:first-child { margin-top: 0; }
.tv-poster { background: var(--rule); border: 1px solid var(--rule); transition: border-color .2s; }
.tv-poster.none {
  font: 400 .75rem/1.5 var(--font-accent); color: var(--soft);
  background: repeating-linear-gradient(45deg, var(--card) 0 8px, var(--rule) 8px 16px);
}
.tv-card:hover .tv-poster { border-color: var(--accent-ink); }
.tv-badge { font: 400 .62rem/1 var(--font-accent); letter-spacing: .08em; background: var(--ember); color: var(--on-ember); }
.tv-title { margin-top: .5rem; font: 700 .95rem/1.3 var(--font-body); color: var(--title); }
.tv-meta { margin-top: .25rem; font: 400 .7rem/1.4 var(--font-accent); color: var(--soft); }
.tv-act {   /* sits on top of a poster, so it is always dark */
  color: var(--color-bg); background: color-mix(in oklab, var(--char-950) 88%, transparent); border: 1px solid var(--char-500);
}
.tv-act:hover, .tv-act.on { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }

/* owner-only vote buttons and the Sources shortcut (only when signed in) */
.nw-thumb { border-color: var(--rule); border-radius: 2px; }
.nw-thumb.on { border-color: var(--ember); background: color-mix(in oklab, var(--ember) 15%, transparent); }
.nw-fab {
  font: 700 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em;
  background: var(--ember); color: var(--on-ember); border-radius: 3px;
  box-shadow: 0 6px 18px color-mix(in oklab, black 45%, transparent);
}
.nw-fab:hover { background: var(--ember-hover); }

/* ---------- Footer ---------- */
.site-footer { background: var(--foot-bg); color: var(--color-border); padding: 44px 0 52px; }
.footer__inner { display: grid; gap: 1.2rem; }
.footer__tag { display: flex; align-items: center; gap: .7rem; font: 400 .9rem/1.3 var(--font-accent); }
.footer__tag img { width: auto; height: 44px; flex: none; }
.footer__tag small { opacity: .6; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.blink { color: var(--ember); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; }
.footer__links a, .linklike {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  color: var(--color-bg); text-decoration: none; font: inherit;
}
.footer__links .ic { width: 22px; height: 22px; color: var(--ember); }
.footer__links a:hover, .linklike:hover { color: var(--ember); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Red Flare details (Oct 31 2026, from home-lab/07, "Signal 2") ----------
   Red is never text on a dark background: wherever the accent ("ember" = the red) would be text on dark,
   it becomes a red block with light text, or a red border or line. --line = the red line color for each band. */
.band--iron { --line: var(--iron-line); }
.band--paper { --line: var(--paper-line); }
a.card:hover, a.td-tile[href]:hover, a.book:hover { border-color: var(--line); }
.sub::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--line); }   /* red square before "Latest news" */
.btn--ghost:hover { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }

/* header: ".dev" is a red tag, the current section a red slot with a light icon */
.site-header { border-bottom-width: 4px; }

/* Living lines (assets/js/living-line.js draws them; settings in tokens.css section 6). The taper is a fade on
   each end, --line-taper of 1 fading the outer 20%. */
.living-line {
  display: block; pointer-events: none;
  --line-t: calc(var(--line-taper, 0) * 20%);
  -webkit-mask-image: linear-gradient(to right, transparent, black var(--line-t), black calc(100% - var(--line-t)), transparent);
          mask-image: linear-gradient(to right, transparent, black var(--line-t), black calc(100% - var(--line-t)), transparent);
}
.living-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.living-line__glow { stroke: var(--line-glow-color); }
.living-line__body { stroke: var(--line-body-color); }
.living-line__core, .living-line__spark { stroke: var(--line-core-color); }
/* the menu line: centered on the header's 4px bottom border (top: 100% is the inside edge of the border, so +2px), which turns see-through once the line is drawn
   (if the script never runs, the old flat red border stays) */
.living-line--menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); height: var(--line-menu-height); transform: translateY(-50%);
  --line-style: var(--line-menu-style); --line-motion: var(--line-menu-motion); --line-thick: var(--line-menu-thick);
  --line-glow: var(--line-menu-glow); --line-taper: var(--line-menu-taper);
  --line-glow-color: var(--line-menu-glow-color); --line-body-color: var(--line-menu-body-color); --line-core-color: var(--line-menu-core-color);
}
.site-header:has(.living-line--menu svg) { border-bottom-color: transparent; }
.mark__word span {
  display: inline-block; margin-left: .12em; padding: .14em .3em .1em;
  background: var(--ember); color: var(--on-ember);
  font-size: .5em; letter-spacing: .06em; vertical-align: .55em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, .35em 100%, 0 calc(100% - .35em));
}
.theme-btn:hover { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.nav a:hover .slot { color: var(--head-ink); }
.nav a[aria-current] .slot, [data-theme="light"] .nav a[aria-current] .slot { background: var(--flare); border-color: var(--flare); color: var(--on-flare); --ember: var(--on-flare); }   /* --ember here = the icon's spark, light on red */
.nav a[aria-current] .nl { color: var(--head-ink); }

/* section icons take the heading's color: black on light bands, white on dark (no red) */
.sec-head .ic { color: var(--title); --ember: var(--title); }

/* title strip: the highlighted word gets a red underline, and a faint red flare off the top right */
.hero__title span, [data-theme="light"] .hero__title span { color: var(--title); box-shadow: inset 0 -.12em 0 var(--ember); }
/* In a slim strip the underline sits just under the letters, with room before the subtitle, so it never crosses it */
.hero--page:not(.cc-hero) .hero__title span { box-shadow: none; text-decoration: underline var(--ember) .09em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.hero--page:not(.cc-hero) .hero__title:has(span) + .hero__sub { margin-top: .75rem; }
.hero__icon { filter: drop-shadow(0 0 16px color-mix(in oklab, var(--ember) 35%, transparent)); }
/* Games show their own icon in the strip (Nov 27 2026), the same art as their cartridge: a little bigger, rounded,
   cropped square (Moto-X's is a screenshot), with a plain shadow instead of the red glow */
/* Crossword Combat and Tap Out icons are drawn as pixels in the site's colors (Nov 4 2026, Mark: the accent instead of
   grey; their favicon files keep the old orange). Used on their Games-page cartridges and in their title strips. */
.px-bg { fill: var(--accent-ink); }
.px-on { fill: var(--card); }
.px-off { fill: color-mix(in oklab, var(--accent-ink) 55%, var(--card)); }
.px-hot { fill: var(--flare); }
.px-warm { fill: color-mix(in oklab, var(--flare) 45%, var(--card)); }
svg.hero__icon--game { --card: var(--paper-card); --accent-ink: var(--color-primary); }   /* the cartridge's own colors (games.html .cart) */
.hero--page:not(.cc-hero) .hero__icon--game {
  width: clamp(48px, 6vw, 64px); height: clamp(48px, 6vw, 64px); object-fit: cover; border-radius: 22%;
  filter: drop-shadow(0 2px 6px color-mix(in oklab, var(--char-950) 60%, transparent));
}
.hero--page:not(.cc-hero) {   /* painted on the strip itself, under the texture (its ::after is switched off by .band--iron) */
  background-image: radial-gradient(ellipse 40% 170% at 95% 0%, color-mix(in oklab, var(--ember) 26%, transparent), transparent 70%);
  background-repeat: no-repeat;
}

/* footer: the cursor is a red block; links stay light with a red underline on hover */
.site-footer { border-top: 3px solid var(--ember); }
.blink { display: inline-block; width: .6em; height: 1em; vertical-align: -.15em; color: transparent; background: var(--ember); }
.footer__links .ic { color: var(--color-bg); }
.footer__links a:hover, .linklike:hover { color: var(--color-bg); text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 900px) {
  .nav ul { grid-auto-columns: 92px; gap: 8px; }
  .slot { width: 52px; height: 52px; }
  .slot .ic { width: 28px; height: 28px; }
  .nav a[aria-current]::before { width: 66px; height: 66px; top: -3px; }
  .nl { font-size: .72rem; }
}

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

/* ---------- One surface (trial, Nov 1 2026) ----------
   Below the title strip the page is one surface instead of alternating dark and light bands: in dark mode the darker
   band (iron) all the way to the footer, in light mode the lighter one (paper). One texture runs behind the whole page
   (on <main>), so it never restarts at a section edge. It uses the iron dark and paper light texture settings
   (tokens.css section 3); while this is on, "Iron light" and "Paper dark" aren't used.
   TO GO BACK to alternating bands: delete this whole block, down to "end of One surface". */
main { position: relative; isolation: isolate; background: var(--iron-bg); }
main::before, main::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
main::before {
  background-image: var(--tex-iron-dark); background-size: var(--tex-iron-dark-size);
  background-position: var(--tex-iron-dark-x) var(--tex-iron-dark-y);
  mix-blend-mode: var(--tex-iron-dark-blend); opacity: var(--tex-iron-dark-strength);
}
main::after { background-image: var(--grain); opacity: var(--tex-iron-dark-grain); }
[data-theme="light"] main { background: var(--paper-bg); }
[data-theme="light"] main::before {
  background-image: var(--tex-paper-light); background-size: var(--tex-paper-light-size);
  background-position: var(--tex-paper-light-x) var(--tex-paper-light-y);
  mix-blend-mode: var(--tex-paper-light-blend); opacity: var(--tex-paper-light-strength);
}
[data-theme="light"] main::after { opacity: var(--tex-paper-light-grain); mix-blend-mode: multiply; }
@media (min-width: 601px) {   /* wide-screen settings, as for .band::before above */
  main::before {
    background-size: var(--tex-iron-dark-size-wide); background-position: var(--tex-iron-dark-x-wide) var(--tex-iron-dark-y-wide);
    background-repeat: var(--tex-iron-dark-repeat-wide); -webkit-mask-image: var(--tex-iron-dark-mask-wide); mask-image: var(--tex-iron-dark-mask-wide);
  }
  [data-theme="light"] main::before {
    background-size: var(--tex-paper-light-size-wide); background-position: var(--tex-paper-light-x-wide) var(--tex-paper-light-y-wide);
    background-repeat: var(--tex-paper-light-repeat-wide); -webkit-mask-image: var(--tex-paper-light-mask-wide); mask-image: var(--tex-paper-light-mask-wide);
  }
}
@media (max-width: 600px) {
  main::before { background-size: var(--tex-iron-dark-size-phone); background-position: var(--tex-iron-dark-x-phone) var(--tex-iron-dark-y-phone); }
  [data-theme="light"] main::before { background-size: var(--tex-paper-light-size-phone); background-position: var(--tex-paper-light-x-phone) var(--tex-paper-light-y-phone); }
}
/* every section below the title strip: see-through, with the same colors */
main .band:not(.hero) { background: transparent; }
main .band:not(.hero)::before, main .band:not(.hero)::after { content: none; }
:root:not([data-theme="light"]) main .band:not(.hero) {
  --ink: var(--iron-ink); --soft: var(--iron-soft); --rule: var(--iron-rule); --title: var(--iron-title);
  --card: var(--iron-card); --accent-ink: var(--iron-accent); --line: var(--iron-line); color: var(--ink);
}
[data-theme="light"] main .band:not(.hero) {
  --ink: var(--paper-ink); --soft: var(--paper-soft); --rule: var(--paper-rule); --title: var(--paper-title);
  --card: var(--paper-card); --accent-ink: var(--paper-accent); --line: var(--paper-line); color: var(--ink);
}
/* ---------- end of One surface ---------- */
