/* SPDX-License-Identifier: Apache-2.0 */
/*
 * Atari8: the site design of atari8.com (THEME-SPEC THM-36).
 *
 * Colors, fonts, the radius, spacing, shadow, and width come from the
 * theme's tokens (the generated tokens stylesheet, linked first), so every
 * scheme (BASIC blue, Rainbow, Green phosphor, Amber) and every token edit
 * restyles the whole site. The token names are the standard component
 * properties of THM-31 where one exists (--color-bg, --color-surface, …).
 *
 * The theme runs no script (THM-INV-1): everything that moves is CSS.
 * Static styles come first and are the final state of every effect; all
 * motion lives in the prefers-reduced-motion: no-preference block at the
 * end, so visitors who ask for reduced motion get no animation at all.
 */

/* ---------------------------------------------------------------- fonts */

/* Jersey 15 and VT323: SIL Open Font License 1.1, see
   fonts/OFL-jersey-15.txt and fonts/OFL-vt323.txt. Latin subset. Jersey 15
   is the pixel heading font because its 8 never reads as an S (ATARI8);
   size-adjust gives it the cap height the sizes below were set for. */
@font-face {
  font-family: "Jersey 15";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  size-adjust: 190%;
  src: url("/_assets/atari8/244065acc0429b77/fonts/jersey-15-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/_assets/atari8/8ddbebcc10481541/fonts/vt323-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- derived values */

:root {
  --a8-pixel: "Jersey 15", "VT323", ui-monospace, monospace;
  --a8-r1: var(--color-raster-1, #ffa0a0);
  --a8-r2: var(--color-raster-2, #ffb877);
  --a8-r3: var(--color-raster-3, #ffd75e);
  --a8-r4: var(--color-raster-4, #7ee89a);
  --a8-r5: var(--color-raster-5, #6fdcff);
  --a8-r6: var(--color-raster-6, #b8beff);
  --a8-r7: var(--color-raster-7, #efb3ff);
  /* The GTIA rainbow as a band; it repeats its first color so that a
     scrolled copy loops without a seam. */
  --a8-rainbow: linear-gradient(90deg, var(--a8-r1), var(--a8-r2), var(--a8-r3), var(--a8-r4), var(--a8-r5), var(--a8-r6), var(--a8-r7), var(--a8-r1));
  --a8-max: var(--max-width, 75rem);
  --a8-radius: var(--radius, 4px);
  --a8-shadow: var(--shadow, 6px 6px 0 #00000080);
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--color-frame, #081638);
  color: var(--color-text, #dde9ff);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 0;
  background-color: var(--color-bg, #102a6b);
  /* A faint pixel grid, like the shadow mask of a monitor. */
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--color-border, #4c70cc) 9%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--color-border, #4c70cc) 9%, transparent) 1px, transparent 1px);
  background-size: 8px 8px;
  color: var(--color-text, #dde9ff);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

body > main,
body > .wrap { flex: 1 0 auto; }

img,
svg { max-width: 100%; }
img { height: auto; }

a { color: var(--color-primary, #ffd75e); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-on-primary, #1d1600); background: var(--color-primary, #ffd75e); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading, var(--a8-pixel));
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-heading, #ffffff);
  margin: 0 0 0.75em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.15rem, 1.6vw + 0.7rem, 1.9rem); }
h2 { font-size: clamp(0.95rem, 1vw + 0.6rem, 1.4rem); }
h3 { font-size: 0.875rem; }
h4 { font-size: 0.75rem; }

p { margin: 0 0 1em; }

::selection { background: var(--color-text, #dde9ff); color: var(--color-bg, #102a6b); }

:focus-visible { outline: 3px solid var(--color-focus, #7df9ff); outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-primary, #ffd75e); color: var(--color-on-primary, #1d1600);
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.75rem; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.preview-banner {
  padding: 0.6rem 1rem; text-align: center;
  background: var(--color-primary, #ffd75e); color: var(--color-on-primary, #1d1600);
  font-family: var(--font-mono, "VT323", monospace); font-size: 1.25rem;
}

.wrap { width: min(100% - 2rem, var(--a8-max)); margin-inline: auto; }

.unpublished { outline: 2px dashed var(--color-accent, #ffa3cf); outline-offset: 4px; }
.badge {
  display: inline-block; margin: 0 0 0.75rem; padding: 0.3rem 0.5rem;
  background: var(--color-accent, #ffa3cf); color: var(--color-bg, #102a6b);
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.625rem; text-transform: uppercase;
}

/* 8-bit icons (inline SVG, components/icon.html). */
.px-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.px-accent { fill: var(--a8-r1); }

/* Pixel-art machines (components/machine.html): every part reads a token. */
.px-machine { display: block; width: 100%; height: auto; }
.hw-a { fill: var(--color-label, #f5edd6); }
.hw-b { fill: var(--color-cart, #2a2a31); }
.hw-c { fill: var(--color-sleeve, #e2dccb); }
.hw-d { fill: var(--color-disk, #141418); }
.hw-m { fill: var(--color-muted, #adc6f2); }
.hw-e { fill: var(--color-primary, #ffd75e); }
.hw-r1 { fill: var(--a8-r1); }
.hw-r2 { fill: var(--a8-r2); }
.hw-r3 { fill: var(--a8-r3); }
.hw-r4 { fill: var(--a8-r4); }
.hw-r5 { fill: var(--a8-r5); }

/* ---------------------------------------------------------------- raster bars */

.raster { height: 6px; background: var(--a8-rainbow); background-size: 200% 100%; }
.raster--bottom { height: 4px; background-position: 100% 0; }

.raster-stack { display: grid; gap: 2px; padding-block: 2px; background: var(--color-frame, #081638); }
.raster-stack span { display: block; height: 3px; }
.raster-stack span:nth-child(1) { background: var(--a8-r1); }
.raster-stack span:nth-child(2) { background: var(--a8-r2); }
.raster-stack span:nth-child(3) { background: var(--a8-r3); }
.raster-stack span:nth-child(4) { background: var(--a8-r4); }
.raster-stack span:nth-child(5) { background: var(--a8-r5); }
.raster-stack span:nth-child(6) { background: var(--a8-r6); }
.raster-stack span:nth-child(7) { background: var(--a8-r7); }

/* ---------------------------------------------------------------- the CRT screen */

/* A screen: the BASIC blue panel with the terminal font. With the theme
   setting "CRT" on (html.a8--crt): scanlines, a vignette, and a glow. */
.screen,
.tape-card,
.dos,
.prose pre {
  position: relative;
  background-color: var(--color-screen, #1f41a6);
  color: var(--color-screen-text, #d2e4ff);
  font-family: var(--font-mono, "VT323", ui-monospace, monospace);
}
.a8--crt .screen,
.a8--crt .tape-card,
.a8--crt .dos,
.a8--crt .prose pre {
  text-shadow: 0 0 6px var(--color-glow, #6fa8ff59);
  box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.35), 0 0 2.5rem var(--color-glow, #6fa8ff59);
}
.a8--crt .screen::after,
.a8--crt .tape-card::after,
.a8--crt .dos::after,
.a8--crt .prose pre::after,
.a8--crt .masthead::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(180deg, transparent 0 2px, var(--color-scanline, #0000002e) 2px 3px);
}

.cursor {
  display: inline-block;
  width: 0.62em; height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.12em;
  background: currentColor;
}

.prompt { letter-spacing: 0.04em; }
/* The cursor that follows the typed command exists only while it types. */
.cursor--typing { display: none; }

/* ---------------------------------------------------------------- keys (buttons) */

.keys { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin: 1.5rem 0 0.5rem; }

.key,
.form__submit,
.view-filters button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.85rem 1.1rem 0.75rem;
  border: 0;
  border-radius: var(--a8-radius);
  background: var(--color-primary, #ffd75e);
  color: var(--color-on-primary, #1d1600);
  font-family: var(--font-heading, var(--a8-pixel));
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #000;
}
.key:hover,
.form__submit:hover,
.view-filters button:hover {
  background: var(--color-heading, #ffffff);
  color: var(--color-bg, #102a6b);
}
.key:active,
.form__submit:active,
.view-filters button:active {
  transform: translateY(3px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 1px 0 #000;
}
.key--option {
  background: transparent;
  color: var(--color-primary, #ffd75e);
  box-shadow: inset 0 0 0 2px var(--color-primary, #ffd75e), 0 4px 0 #000;
}
.screen .key--option { background: var(--color-frame, #081638); }
.key--option:hover { background: var(--color-primary, #ffd75e); color: var(--color-on-primary, #1d1600); }
.key--reset { background: var(--a8-r1); color: var(--color-label-text, #1c1b22); }

/* ---------------------------------------------------------------- header */

.site-header { position: relative; z-index: 2; background: var(--color-frame, #081638); }

.masthead {
  position: relative;
  display: flex; justify-content: center;
  padding: 1.25rem 1rem;
  background: var(--color-frame, #081638);
  overflow: hidden;
}
/* The Fuji pattern of the banner, continued in the theme's colors. */
.masthead::before {
  content: "";
  position: absolute; inset: 0;
  background-color: color-mix(in srgb, var(--color-border, #4c70cc) 30%, transparent);
  -webkit-mask: url("/_assets/atari8/25e7d916b3d19ebb/img/fuji-tile.svg") 0 0 / 50px 38px repeat;
  mask: url("/_assets/atari8/25e7d916b3d19ebb/img/fuji-tile.svg") 0 0 / 50px 38px repeat;
}
.masthead__link,
.hero__banner {
  position: relative; z-index: 1;
  display: block;
  width: fit-content; max-width: 100%;
  margin-inline: auto;
  padding: 3px;
  border-radius: 6px;
  background: var(--a8-rainbow);
  background-size: 200% 100%;
  box-shadow: 0 0 2rem var(--color-glow, #6fa8ff59), var(--a8-shadow);
  line-height: 0;
}
.masthead__link:hover { background: var(--a8-rainbow); background-size: 200% 100%; }
.masthead__banner,
.hero__banner-img { display: block; width: 960px; max-width: 100%; height: auto; border-radius: 4px; }

.menubar { background: var(--color-frame, #081638); border-top: 2px solid color-mix(in srgb, var(--color-border, #4c70cc) 45%, transparent); }
.menubar__inner {
  width: min(100% - 1rem, var(--a8-max));
  margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 1rem;
  min-height: 3.25rem;
}
.site-header--compact .menubar__inner { justify-content: space-between; }

.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 0.25rem;
  color: var(--color-heading, #ffffff);
  text-decoration: none;
}
.brand:hover { background: transparent; color: var(--color-heading, #ffffff); }
.brand__fuji img { display: block; width: 2.75rem; height: 2.75rem; }
.brand__text { display: flex; flex-direction: column; gap: 0.2rem; }
.brand__name { font-family: var(--font-heading, var(--a8-pixel)); font-size: 1rem; line-height: 1.3; }
.brand__slogan { font-family: var(--font-mono, "VT323", monospace); font-size: 1.125rem; line-height: 1; color: var(--color-muted, #adc6f2); }

.primary-menu .menu,
.menu-key__panel .menu,
.region--footer .block--menu .menu { list-style: none; margin: 0; padding: 0; }
.primary-menu .menu { display: flex; flex-wrap: wrap; justify-content: center; }
.primary-menu a,
.menu-key__panel a {
  position: relative;
  display: block;
  padding: 1.05rem 0.85rem 0.95rem;
  color: var(--color-text, #dde9ff);
  font-family: var(--font-heading, var(--a8-pixel));
  font-size: 0.6875rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
}
/* Inverse video, as the Atari key prints it. */
.primary-menu a:hover,
.menu-key__panel a:hover { background: var(--color-text, #dde9ff); color: var(--color-frame, #081638); }
.primary-menu a[aria-current],
.menu-key__panel a[aria-current] { color: var(--color-primary, #ffd75e); }
.primary-menu a[aria-current]::after {
  content: "";
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.45rem;
  height: 3px;
  background: var(--a8-rainbow); background-size: 200% 100%;
}
.primary-menu a[aria-current]:hover { color: var(--color-frame, #081638); }

/* Small screens: the menu sits behind a MENU key (details/summary). */
.menu-key { display: none; }
.menu-key__summary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; margin: 0.4rem 0;
  padding: 0.6rem 0.9rem;
  border-radius: var(--a8-radius);
  background: var(--color-primary, #ffd75e); color: var(--color-on-primary, #1d1600);
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.6875rem; text-transform: uppercase;
  list-style: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 3px 0 #000;
}
.menu-key__summary::-webkit-details-marker { display: none; }
.menu-key__summary::before {
  content: "";
  width: 14px; height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.menu-key[open] .menu-key__summary::before { width: 10px; height: 10px; box-shadow: none; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: rotate(90deg); }
.menu-key__panel { padding: 0.25rem 0 0.75rem; }
.menu-key__panel .menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
.menu-key__panel a { border: 2px solid color-mix(in srgb, var(--color-border, #4c70cc) 60%, transparent); }

.menubar__extra { display: flex; align-items: center; }

/* ---------------------------------------------------------------- breadcrumb */

.crumbs { background: color-mix(in srgb, var(--color-frame, #081638) 55%, var(--color-bg, #102a6b)); font-family: var(--font-mono, "VT323", monospace); font-size: 1.25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 0.5rem; list-style: none; margin: 0; padding: 0.4rem 0; }
.crumbs li + li::before { content: "▸"; content: "▸" / ""; margin-right: 0.5rem; color: var(--color-accent, #ffa3cf); }
.crumbs a { color: var(--color-text, #dde9ff); }
.crumbs [aria-current] { color: var(--color-muted, #adc6f2); }

/* ---------------------------------------------------------------- sections */

.section { position: relative; }
.page--landing > .region > .section:not(.section--ticker) { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.page--landing > .region + .region > .section:not(.section--ticker, .community, .board) { border-top: 2px dashed color-mix(in srgb, var(--color-border, #4c70cc) 55%, transparent); }

.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section__heading { max-width: 46rem; }
.section__title { margin-bottom: 0.6rem; }
.section__title::after {
  content: "";
  display: block;
  width: 5rem; height: 4px;
  margin-top: 0.85rem;
  background: var(--a8-rainbow); background-size: 200% 100%;
}
.section__title--center { text-align: center; }
.section__title--center::after { margin-inline: auto; }
.section__intro { margin: 0.75rem 0 0; color: var(--color-muted, #adc6f2); }

.eyebrow {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.6rem;
  color: var(--color-accent, #ffa3cf);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.375rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eyebrow .px-icon { width: 1.1em; height: 1.1em; }

.more-link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.6875rem; text-transform: uppercase;
  text-decoration: none;
}

/* ---------------------------------------------------------------- hero */

.hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.page--landing > .region > .hero { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.hero__banner { margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }

/* The TV: a plastic bezel around the screen, with a power light. */
.hero__tv {
  position: relative;
  padding: clamp(0.6rem, 1.6vw, 1.25rem);
  border-radius: clamp(1rem, 2.5vw, 2rem);
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-cart, #2a2a31) 80%, #ffffff), var(--color-cart, #2a2a31) 30%, color-mix(in srgb, var(--color-cart, #2a2a31) 70%, #000000));
  box-shadow: var(--a8-shadow), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
.hero__tv::after {
  content: "";
  position: absolute; right: clamp(1.25rem, 3vw, 2.25rem); bottom: clamp(0.2rem, 0.6vw, 0.45rem);
  width: 0.5rem; height: 0.5rem;
  background: var(--a8-r1);
  box-shadow: 0 0 0.6rem var(--a8-r1);
}
.hero__screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 3rem) clamp(1.1rem, 4vw, 3.5rem);
  border-radius: clamp(0.8rem, 2vw, 1.5rem) / clamp(0.7rem, 1.8vw, 1.3rem);
  overflow: hidden;
}
.screen__line { margin: 0; font-size: clamp(1.375rem, 0.6vw + 1.2rem, 1.75rem); line-height: 1.2; text-transform: uppercase; }
.screen__cmd { white-space: nowrap; overflow: hidden; }
.type { display: inline-block; vertical-align: bottom; white-space: pre; overflow: hidden; }
.screen__ready { margin-top: 1.25rem; }
.hero__title {
  margin: 1.1rem 0 1rem;
  font-size: clamp(1.15rem, 2vw + 0.6rem, 2.25rem);
  line-height: 1.55;
  color: var(--color-heading, #ffffff);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.hero__text {
  max-width: 40rem;
  margin: 0;
  font-size: clamp(1.375rem, 0.5vw + 1.2rem, 1.625rem);
  line-height: 1.25;
}
.hero .keys { margin-top: 1.75rem; }
.hero__art { display: grid; justify-items: center; align-content: center; }
.hero__fuji {
  position: relative;
  width: clamp(7.5rem, 22vw, 13.5rem);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a8-r5) 35%, transparent), transparent);
}
.hero__fuji img { display: block; width: 100%; height: 100%; }
/* A raster floor under the Fuji, in perspective. */
.hero__floor {
  width: clamp(9rem, 26vw, 16rem); height: 3.5rem;
  margin-top: -0.75rem;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--a8-r7) 70%, transparent) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(180deg, var(--a8-r5) 0 2px, transparent 2px 10px);
  transform: perspective(9rem) rotateX(58deg);
  transform-origin: 50% 0;
  -webkit-mask: linear-gradient(180deg, #000, transparent);
  mask: linear-gradient(180deg, #000, transparent);
}
.hero__art--image img { border-radius: var(--a8-radius); image-rendering: pixelated; }

.rainbow-text { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .rainbow-text {
    background: var(--a8-rainbow);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
  .hero__title { text-shadow: none; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5)); }
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  background: var(--color-frame, #081638);
  border-block: 2px solid color-mix(in srgb, var(--color-border, #4c70cc) 60%, transparent);
}
.ticker__inner { display: flex; flex-wrap: wrap; align-items: stretch; }
.ticker__label {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--color-primary, #ffd75e); color: var(--color-on-primary, #1d1600);
  font-size: 0.6875rem; line-height: 1.3; text-transform: uppercase;
}
.ticker__window { flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker__track { display: flex; flex-wrap: wrap; gap: 0.25rem 2.5rem; margin: 0; padding: 0.5rem 1rem; list-style: none; }
.ticker__item {
  display: flex; align-items: baseline; gap: 0.75rem;
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.375rem; line-height: 1.3;
  color: var(--color-text, #dde9ff);
}
.ticker__item::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; background: var(--a8-r3); transform: translateY(-0.1rem) rotate(45deg); }
.ticker__item:nth-child(3n+2)::before { background: var(--a8-r5); }
.ticker__item:nth-child(3n)::before { background: var(--a8-r1); }
.ticker__item--echo { display: none; }
.ticker__pause {
  display: none;
  min-height: 2.75rem; align-items: center; gap: 0.5rem;
  padding: 0 1rem;
  border-left: 2px solid color-mix(in srgb, var(--color-border, #4c70cc) 60%, transparent);
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.625rem; text-transform: uppercase;
  cursor: pointer;
}
.ticker__pause-box { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--color-primary, #ffd75e); }

/* ---------------------------------------------------------------- stats: chips on a board */

.board {
  background-color: color-mix(in srgb, var(--color-surface, #173584) 70%, var(--color-bg, #102a6b));
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--color-border, #4c70cc) 22%, transparent) 2px, transparent 2px),
    linear-gradient(180deg, color-mix(in srgb, var(--color-border, #4c70cc) 22%, transparent) 2px, transparent 2px);
  background-size: 48px 48px;
  background-position: 24px 12px;
}
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 2.75rem 1.5rem;
  margin: 0; padding: 1rem 0;
}
.chip {
  position: relative;
  display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 9rem;
  padding: 1.75rem 1rem 1.25rem;
  border-radius: 6px;
  background-color: var(--color-cart, #2a2a31);
  /* The notch on the left, as on every DIP package. */
  background-image: radial-gradient(circle at 0 50%, color-mix(in srgb, var(--color-surface, #173584) 70%, var(--color-bg, #102a6b)) 0 0.7rem, transparent 0.75rem);
  box-shadow: var(--a8-shadow), inset 0 2px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}
/* The pins, above and below. */
.chip::before,
.chip::after {
  content: "";
  position: absolute; left: 0.75rem; right: 0.75rem;
  height: 0.6rem;
  background: repeating-linear-gradient(90deg, var(--color-muted, #adc6f2) 0 0.5rem, transparent 0.5rem 1.1rem);
}
.chip::before { top: -0.6rem; }
.chip::after { bottom: -0.6rem; }
.chip__value {
  margin: 0;
  font-family: var(--font-heading, var(--a8-pixel));
  font-size: clamp(1.4rem, 2vw + 0.9rem, 2.1rem);
  line-height: 1.1;
  color: var(--a8-r3);
}
.chip:nth-child(4n+2) .chip__value { color: var(--a8-r5); }
.chip:nth-child(4n+3) .chip__value { color: var(--a8-r1); }
.chip:nth-child(4n+4) .chip__value { color: var(--a8-r4); }
.chip__label {
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.375rem; line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-cart-text, #e4e4ea);
}
.chip__name {
  position: absolute; top: 0.55rem; right: 0.75rem;
  font-family: var(--font-heading, var(--a8-pixel));
  font-size: 0.5625rem; letter-spacing: 0.08em;
  color: var(--color-cart-text, #e4e4ea);
}

/* ---------------------------------------------------------------- cartridges */

.cart-grid,
.view__rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 2.25rem 1.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.cart-grid__item,
.view__row { display: flex; min-width: 0; }
.cart-grid__item > *,
.view__row > * { flex: 1; min-width: 0; }

.cart { --cart-color: var(--a8-r1); position: relative; display: flex; flex-direction: column; }
.cart-grid__item:nth-child(5n+2) .cart, .view__row:nth-child(5n+2) .cart { --cart-color: var(--a8-r3); }
.cart-grid__item:nth-child(5n+3) .cart, .view__row:nth-child(5n+3) .cart { --cart-color: var(--a8-r5); }
.cart-grid__item:nth-child(5n+4) .cart, .view__row:nth-child(5n+4) .cart { --cart-color: var(--a8-r4); }
.cart-grid__item:nth-child(5n+5) .cart, .view__row:nth-child(5n+5) .cart { --cart-color: var(--a8-r7); }

.cart__shell {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  padding: 1.1rem 0.85rem 2.75rem;
  border-radius: 12px 12px 4px 4px;
  background-color: var(--color-cart, #2a2a31);
  /* Grip ridges along the top edge of the case. */
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 7px);
  background-size: 100% 0.6rem;
  background-repeat: no-repeat;
  background-position: 0 0.25rem;
  box-shadow: var(--a8-shadow), inset 0 2px 0 rgba(255, 255, 255, 0.1), inset 0 -4px 0 rgba(0, 0, 0, 0.35);
}
.cart__label {
  position: relative;
  flex: 1;
  padding: 0 0.95rem 1rem;
  border-radius: 3px;
  background: var(--color-label, #f5edd6);
  color: var(--color-label-text, #1c1b22);
  overflow: hidden;
}
/* The label art: a colored band with diagonal stripes. */
.cart__label::before {
  content: "";
  display: block;
  height: 1.35rem;
  margin: 0 -0.95rem 0.9rem;
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.16) 0 6px, transparent 6px 12px),
    var(--cart-color);
  border-bottom: 3px solid var(--color-label-text, #1c1b22);
}
.cart__tag {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.45rem 0.25rem;
  background: var(--color-label-text, #1c1b22);
  color: var(--color-label, #f5edd6);
  font-family: var(--font-heading, var(--a8-pixel));
  font-size: 0.5625rem; line-height: 1.3;
  text-transform: uppercase;
}
.cart__tag--draft { background: var(--color-accent, #ffa3cf); color: var(--color-label-text, #1c1b22); }
.cart__title {
  margin: 0 0 0.6rem;
  color: var(--color-label-text, #1c1b22);
  font-size: 0.8125rem; line-height: 1.6;
}
.cart__link { color: inherit; text-decoration: none; }
.cart__link:hover { color: inherit; background: none; text-decoration: underline; }
.cart__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cart__text { font-size: 0.9375rem; line-height: 1.5; color: var(--color-label-text, #1c1b22); }
.cart__text p { margin: 0 0 0.5em; }
/* A teaser shows its first lines of text only: no headings or listings. */
.cart__text :is(h2, h3, h4, h5, h6, pre, blockquote, ul, ol, table, img),
.sleeve__text :is(h2, h3, h4, h5, h6, pre, blockquote, ul, ol, table, img),
.machine-card__text :is(h2, h3, h4, h5, h6, pre, blockquote, ul, ol, table, img),
.tape-card__text :is(h2, h3, h4, h5, h6, pre, blockquote, ul, ol, table, img) { display: none; }
.cart__text .field__label { color: var(--color-label-muted, #5a5446); }
.cart__meta {
  margin: 0.4rem 0 0;
  color: var(--color-label-muted, #5a5446);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.25rem; line-height: 1;
}
.cart__brand {
  position: absolute; left: 0; right: 0; bottom: 0.55rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 0;
  color: var(--color-cart-text, #e4e4ea);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.25rem; line-height: 1; letter-spacing: 0.3em;
}
.cart__brand .px-icon { width: 1rem; height: 1rem; }
/* The edge connector with its gold contacts. */
.cart__pins {
  height: 0.9rem;
  margin: 0 17%;
  border-radius: 0 0 4px 4px;
  background-color: var(--color-cart, #2a2a31);
  background-image: repeating-linear-gradient(90deg, var(--a8-r3) 0 5px, transparent 5px 9px);
  background-size: calc(100% - 12px) 0.45rem;
  background-position: 6px 0.15rem;
  background-repeat: no-repeat;
}
.cart:focus-within { outline: 3px solid var(--color-focus, #7df9ff); outline-offset: 6px; border-radius: 12px; }
.cart__link:focus-visible { outline: none; }

/* ---------------------------------------------------------------- disk sleeves */

.sleeve-grid,
.view__rows:has(.sleeve) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: 4.5rem 1.75rem;
  margin: 0; padding: 3rem 0 0;
  list-style: none;
}
.sleeve-grid__item { display: flex; }
.sleeve-grid__item > * { flex: 1; min-width: 0; }

.sleeve { --cart-color: var(--a8-r5); --medium: var(--color-disk, #141418); position: relative; display: flex; flex-direction: column; }
.sleeve-grid__item:nth-child(4n+2) .sleeve, .view__row:nth-child(4n+2) .sleeve { --cart-color: var(--a8-r3); }
.sleeve-grid__item:nth-child(4n+3) .sleeve, .view__row:nth-child(4n+3) .sleeve { --cart-color: var(--a8-r1); }
.sleeve-grid__item:nth-child(4n+4) .sleeve, .view__row:nth-child(4n+4) .sleeve { --cart-color: var(--a8-r4); }
.sleeve--cartridge,
.sleeve--cassette { --medium: var(--color-cart, #2a2a31); }

/* The medium peeks out of the sleeve's opening. */
.sleeve__medium {
  position: absolute; z-index: 0;
  top: -2.75rem; left: 9%; right: 9%;
  height: 9rem;
  display: flex; justify-content: center;
}
.medium { position: relative; display: block; width: 100%; height: 100%; background: var(--medium); }
.medium--disk {
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 50%, var(--color-bg, #102a6b) 0 0.8rem, color-mix(in srgb, var(--color-disk, #141418) 70%, #ffffff) 0.8rem 1.1rem, transparent 1.15rem),
    var(--color-disk, #141418);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* The disk's label, with a colored stripe; the write-protect notch. */
.medium--disk::before {
  content: "";
  position: absolute; top: 0.6rem; left: 14%; right: 14%;
  height: 1.4rem;
  background: var(--color-label, #f5edd6);
  border-top: 5px solid var(--cart-color);
}
.medium--disk::after {
  content: "";
  position: absolute; top: 1.25rem; right: -1px;
  width: 0.45rem; height: 0.75rem;
  background: var(--color-bg, #102a6b);
}
.medium--cartridge {
  width: 64%;
  border-radius: 10px 10px 2px 2px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 3px, transparent 3px 7px);
  background-size: 100% 0.5rem; background-repeat: no-repeat; background-position: 0 0.2rem;
}
.medium--cartridge::before {
  content: "";
  position: absolute; top: 0.9rem; left: 12%; right: 12%; height: 2.6rem;
  background: var(--color-label, #f5edd6);
  border-top: 0.6rem solid var(--cart-color);
}
.medium--cassette {
  width: 92%; height: 5.5rem; margin-top: 1.25rem;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 58%, var(--color-label, #f5edd6) 0 0.55rem, var(--color-disk, #141418) 0.55rem 0.95rem, transparent 1rem),
    radial-gradient(circle at 70% 58%, var(--color-label, #f5edd6) 0 0.55rem, var(--color-disk, #141418) 0.55rem 0.95rem, transparent 1rem),
    var(--color-cart, #2a2a31);
}
.medium--cassette::before {
  content: "";
  position: absolute; top: 0.45rem; left: 10%; right: 10%; height: 0.9rem;
  background: var(--color-label, #f5edd6);
  border-left: 1.4rem solid var(--cart-color);
}

.sleeve__paper {
  position: relative; z-index: 1;
  flex: 1;
  min-height: 15rem;
  padding: 2.1rem 1rem 1.1rem;
  border-radius: 2px 2px 5px 5px;
  /* The thumb cut at the opening shows the medium inside. */
  background:
    radial-gradient(circle at 50% 0, var(--medium) 0 1.55rem, transparent 1.6rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 0.5rem),
    var(--color-sleeve, #e2dccb);
  color: var(--color-label-text, #1c1b22);
  box-shadow: var(--a8-shadow);
}
.sleeve__sticker {
  position: relative;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.8rem 0.75rem;
  background:
    repeating-linear-gradient(180deg, transparent 0 1.45rem, color-mix(in srgb, var(--color-label-muted, #5a5446) 22%, transparent) 1.45rem calc(1.45rem + 1px)),
    var(--color-label, #f5edd6);
  border-top: 6px solid var(--cart-color);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-1.25deg);
}
.sleeve__format {
  margin: 0 0 0.2rem;
  color: var(--color-label-muted, #5a5446);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.125rem; line-height: 1.25; text-transform: uppercase;
}
.sleeve__title {
  margin: 0 0 0.15rem;
  color: var(--color-label-text, #1c1b22);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.75rem; line-height: 1.05;
  text-transform: uppercase;
}
.sleeve__link { color: inherit; text-decoration: none; }
.sleeve__link:hover { color: inherit; background: none; text-decoration: underline; }
.sleeve__link::after { content: ""; position: absolute; inset: -3rem -1rem -1rem; z-index: 2; }
.sleeve__publisher { margin: 0; color: var(--color-label-text, #1c1b22); font-size: 0.875rem; font-weight: 600; }
.sleeve__text { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.sleeve__text p { margin: 0 0 0.5em; }
.sleeve:focus-within { outline: 3px solid var(--color-focus, #7df9ff); outline-offset: 6px; }
.sleeve__link:focus-visible { outline: none; }

/* ---------------------------------------------------------------- hardware */

.machine-grid,
.view__rows:has(.machine-card) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.machine-grid__item { display: flex; }
.machine-grid__item > * { flex: 1; min-width: 0; }
.machine-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 0.9rem 0.9rem 1.2rem;
  border: 2px solid var(--color-border, #4c70cc);
  border-radius: var(--a8-radius);
  background: var(--color-surface, #173584);
  box-shadow: var(--a8-shadow);
}
.machine-card__art,
.doc__art {
  position: relative;
  display: grid; place-items: center;
  padding: 0.75rem 0.5rem 0.25rem;
  border-radius: calc(var(--a8-radius) - 1px);
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 9px, color-mix(in srgb, var(--a8-r5) 22%, transparent) 9px 11px) 0 100% / 100% 30% no-repeat,
    linear-gradient(180deg, var(--color-screen, #1f41a6), var(--color-frame, #081638));
}
.machine-card__art { aspect-ratio: 2 / 1.15; }
.machine-card__plate {
  display: flex; align-items: center;
  padding: 0.55rem 0.7rem 0.5rem;
  border-left: 6px solid var(--a8-r1);
  background: var(--color-frame, #081638);
  box-shadow: inset 0 -3px 0 var(--a8-r3);
}
.machine-grid__item:nth-child(4n+2) .machine-card__plate, .view__row:nth-child(4n+2) .machine-card__plate { border-left-color: var(--a8-r3); box-shadow: inset 0 -3px 0 var(--a8-r4); }
.machine-grid__item:nth-child(4n+3) .machine-card__plate, .view__row:nth-child(4n+3) .machine-card__plate { border-left-color: var(--a8-r5); box-shadow: inset 0 -3px 0 var(--a8-r6); }
.machine-grid__item:nth-child(4n+4) .machine-card__plate, .view__row:nth-child(4n+4) .machine-card__plate { border-left-color: var(--a8-r7); box-shadow: inset 0 -3px 0 var(--a8-r1); }
.machine-card__name { margin: 0; font-size: 0.75rem; line-height: 1.5; }
.machine-card__link { color: var(--color-heading, #ffffff); text-decoration: none; }
.machine-card__link:hover { background: none; color: var(--color-primary, #ffd75e); }
.machine-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.machine-card:focus-within { outline: 3px solid var(--color-focus, #7df9ff); outline-offset: 4px; }
.machine-card__link:focus-visible { outline: none; }
.machine-card__text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--color-text, #dde9ff); }
.machine-card__text p { margin: 0; }

.specs { display: grid; gap: 0.15rem; margin: 0; font-family: var(--font-mono, "VT323", monospace); font-size: 1.25rem; line-height: 1.2; }
.specs__row { display: flex; align-items: baseline; gap: 0.5rem; }
.specs__row dt { display: flex; flex: 1; align-items: baseline; gap: 0.5rem; color: var(--color-muted, #adc6f2); text-transform: uppercase; }
.specs__row dt::after { content: ""; flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--color-muted, #adc6f2) 50%, transparent); }
.specs__row dd { margin: 0; color: var(--color-text, #dde9ff); text-align: right; }
.specs--sheet {
  max-width: 32rem;
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--color-border, #4c70cc);
  border-radius: var(--a8-radius);
  background: var(--color-surface, #173584);
}

/* ---------------------------------------------------------------- type-in listings */

.listing { max-width: 56rem; margin: 0; border-radius: var(--a8-radius); box-shadow: var(--a8-shadow); overflow: hidden; }
.listing__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem 0.65rem;
  background: var(--color-frame, #081638);
  border-bottom: 4px solid transparent;
  border-image: var(--a8-rainbow) 1;
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.6875rem; line-height: 1.4;
  text-transform: uppercase;
}
.listing__name { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-heading, #ffffff); }
.listing__count { color: var(--color-muted, #adc6f2); }
.listing__screen { padding: 1.25rem clamp(0.75rem, 3vw, 1.75rem) 1rem; }
.listing__pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono, "VT323", monospace);
  font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
  line-height: 1.3;
  background: none;
  color: inherit;
}
.listing__code { display: block; font: inherit; }
.ln {
  display: grid;
  grid-template-columns: 5ch minmax(0, 1fr) auto;
  column-gap: 1ch;
  align-items: baseline;
}
.ln:hover { background: color-mix(in srgb, var(--color-screen-text, #d2e4ff) 10%, transparent); }
/* Line numbers in inverse video. */
.ln__no {
  justify-self: end;
  padding: 0 0.3ch;
  background: var(--color-screen-text, #d2e4ff);
  color: var(--color-screen, #1f41a6);
  text-shadow: none;
}
.ln__code { white-space: pre-wrap; overflow-wrap: anywhere; }
.ln__chk {
  padding: 0 0.4ch;
  border: 1px dashed currentColor;
  color: var(--color-accent, #ffa3cf);
  font-size: 0.85em;
}
.listing__ready { margin: 0.75rem 0 0; font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem); line-height: 1.3; }

.howto { max-width: 56rem; margin-top: 1.25rem; }
.howto__summary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  color: var(--color-primary, #ffd75e);
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.6875rem; text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.howto__summary::-webkit-details-marker { display: none; }
.howto__summary::before { content: ""; width: 0.6rem; height: 0.7rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.howto[open] .howto__summary::before { transform: rotate(90deg); }
.howto__text {
  margin: 0.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-accent, #ffa3cf);
  background: var(--color-surface, #173584);
  white-space: pre-line;
}

/* Type-in teasers: a small screen per program. */
.tape-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1rem 1.2rem 1.1rem;
  border-radius: var(--a8-radius);
  box-shadow: var(--a8-shadow);
  font-size: 1.25rem; line-height: 1.25;
}
.tape-card__cmd { margin: 0; text-transform: uppercase; }
.tape-card__title { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--color-screen-text, #d2e4ff); }
.tape-card__link { color: inherit; text-decoration: none; }
.tape-card__link:hover { background: none; color: inherit; text-decoration: underline; }
.tape-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tape-card:focus-within { outline: 3px solid var(--color-focus, #7df9ff); outline-offset: 4px; }
.tape-card__link:focus-visible { outline: none; }
.tape-card__meta { margin: 0; text-transform: uppercase; }
.tape-card__text p { margin: 0; }
.tape-card__ready { margin: auto 0 0; }

/* ---------------------------------------------------------------- community */

.community--band {
  background:
    radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--a8-r7) 18%, transparent), transparent 60%),
    radial-gradient(ellipse at 0 100%, color-mix(in srgb, var(--a8-r5) 16%, transparent), transparent 55%),
    var(--color-frame, #081638);
  border-block: 4px solid transparent;
  border-image: var(--a8-rainbow) 1;
}
.community__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}
.community__port {
  display: grid; place-items: center;
  width: 7rem; height: 5.5rem;
  /* The DE-9 joystick port. */
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  background:
    radial-gradient(circle, var(--color-frame, #081638) 0 0.18rem, transparent 0.22rem) 0.6rem 0.75rem / 1.15rem 1.15rem,
    var(--color-screen, #1f41a6);
  color: var(--color-primary, #ffd75e);
}
.community__port .px-icon { width: 3.5rem; height: 3.5rem; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5)); }
.community__title { margin-bottom: 0.75rem; font-size: clamp(1rem, 1.5vw + 0.6rem, 1.6rem); }
.community__text { max-width: 38rem; margin: 0 auto; color: var(--color-text, #dde9ff); }
.community__keys { justify-content: center; margin: 0; }
.community--compact {
  padding: 1.5rem;
  border: 2px solid var(--color-border, #4c70cc);
  border-radius: var(--a8-radius);
  background: var(--color-surface, #173584);
  box-shadow: var(--a8-shadow);
}
.community--compact .wrap { width: auto; }
.community--compact .community__port { width: 5rem; height: 4rem; }
.community--compact .community__port .px-icon { width: 2.5rem; height: 2.5rem; }
.community--compact .community__title { font-size: 1rem; }

/* ---------------------------------------------------------------- DOS menu and panels */

.dos {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--a8-radius);
  font-size: 1.375rem; line-height: 1.2;
}
.dos__title {
  margin: 0 0 0.9rem;
  padding: 0.15rem 0.5rem;
  background: var(--color-screen-text, #d2e4ff);
  color: var(--color-screen, #1f41a6);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.375rem; line-height: 1.2;
  text-align: center;
  text-shadow: none;
}
.dos__list { margin: 0; padding: 0; list-style: none; counter-reset: dos; }
.dos__item { counter-increment: dos; }
.dos__link {
  display: flex; gap: 0.6ch;
  padding: 0.3rem 0.4rem;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
}
.dos__link::before { content: counter(dos, upper-alpha) "."; }
.dos__link:hover,
.dos__link:focus-visible { background: var(--color-screen-text, #d2e4ff); color: var(--color-screen, #1f41a6); text-shadow: none; }
.dos__prompt { margin: 0.9rem 0 0; text-transform: uppercase; }

.panel {
  padding: 1.25rem 1.25rem 1.4rem;
  border: 2px solid var(--color-border, #4c70cc);
  border-radius: var(--a8-radius);
  background: var(--color-surface, #173584);
  box-shadow: var(--a8-shadow);
}
.panel__icon { color: var(--color-accent, #ffa3cf); margin-bottom: 0.6rem; }
.panel__icon .px-icon { width: 2.25rem; height: 2.25rem; }
.panel__title { font-size: 0.8125rem; line-height: 1.6; }
.panel__body { font-size: 0.9375rem; }
.panel__action { margin: 1rem 0 0; }
.sidebar > .region { display: grid; gap: 1.75rem; align-content: start; }

/* ---------------------------------------------------------------- page layouts */

.page-head { margin: 0 0 2rem; }
.page-head__prompt { margin: 0 0 0.5rem; font-family: var(--font-mono, "VT323", monospace); font-size: 1.375rem; color: var(--color-muted, #adc6f2); }
.page-head__title { margin: 0; }
.page-head__title::after { content: ""; display: block; width: 6rem; height: 4px; margin-top: 1rem; background: var(--a8-rainbow); background-size: 200% 100%; }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-block: clamp(1.75rem, 4vw, 3rem) 3.5rem; }
.wrap--article { width: min(100% - 2rem, 48rem); padding-block: clamp(1.75rem, 4vw, 3rem) 3.5rem; }
.wrap--page { width: min(100% - 2rem, 52rem); padding-block: clamp(1.75rem, 4vw, 3rem) 3.5rem; }
.after-content { margin-top: 2.5rem; }
.after-content--wide { margin-bottom: 3rem; }

.end-ready { margin: 2.5rem 0 0; font-family: var(--font-mono, "VT323", monospace); font-size: 1.5rem; color: var(--color-text, #dde9ff); }

/* ---------------------------------------------------------------- documents */

.doc__header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 4px solid transparent; border-image: var(--a8-rainbow) 1; }
.doc__title { margin: 0; }
.doc__kind { margin-bottom: 0.9rem; }
.doc__meta { margin: 0.75rem 0 0; font-family: var(--font-mono, "VT323", monospace); font-size: 1.375rem; color: var(--color-muted, #adc6f2); }
.doc__art { max-width: 30rem; margin: 0 0 1.75rem; padding: 1.25rem 1rem 0.5rem; }
.doc__image { margin: 0 0 1.75rem; }
.doc__image img { display: block; width: 100%; border-radius: var(--a8-radius); image-rendering: pixelated; box-shadow: var(--a8-shadow); }

.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.25rem 0 0.9rem; font-size: clamp(0.9rem, 0.6vw + 0.7rem, 1.1rem); }
.prose h3 { margin: 1.75rem 0 0.75rem; font-size: 0.8125rem; }
.prose h2::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.6em; background: var(--a8-r3); }
.prose ul,
.prose ol { padding-left: 1.6rem; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; margin: 0.35rem 0; }
.prose ul > li::before {
  content: "";
  position: absolute; left: -1.3rem; top: 0.62em;
  width: 0.5rem; height: 0.5rem;
  background: var(--a8-r5);
}
.prose ul > li:nth-child(3n+2)::before { background: var(--a8-r3); }
.prose ul > li:nth-child(3n)::before { background: var(--a8-r1); }
.prose ol > li::marker { font-family: var(--font-mono, "VT323", monospace); color: var(--color-accent, #ffa3cf); }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 6px solid var(--color-accent, #ffa3cf);
  color: var(--color-heading, #ffffff);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.625rem; line-height: 1.25;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--font-mono, "VT323", monospace); font-size: 1.2em; padding: 0 0.25em; background: var(--color-frame, #081638); color: var(--color-text, #dde9ff); }
/* A listing in an article: a BASIC screen with a LIST header. */
.prose pre {
  margin: 1.75rem 0;
  padding: 2.75rem 1.25rem 1.1rem;
  border-radius: var(--a8-radius);
  overflow-x: auto;
  font-size: 1.375rem; line-height: 1.3;
  white-space: pre;
}
.prose pre::before {
  content: "LIST";
  position: absolute; left: 0; right: 0; top: 0;
  padding: 0.4rem 1.25rem 0.3rem;
  background: var(--color-frame, #081638);
  border-bottom: 3px solid transparent;
  border-image: var(--a8-rainbow) 1;
  color: var(--color-muted, #adc6f2);
  font-family: var(--font-heading, var(--a8-pixel));
  font-size: 0.625rem;
  text-shadow: none;
}
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose img { border-radius: var(--a8-radius); image-rendering: pixelated; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th,
.prose td { padding: 0.5rem 0.75rem; border: 1px solid var(--color-border, #4c70cc); text-align: left; }
.prose th { background: var(--color-frame, #081638); font-family: var(--font-mono, "VT323", monospace); font-size: 1.25rem; font-weight: 400; text-transform: uppercase; }
.prose hr { height: 4px; border: 0; margin: 2.5rem 0; background: var(--a8-rainbow); }

.field__label { font-family: var(--font-mono, "VT323", monospace); font-size: 1.25rem; color: var(--color-muted, #adc6f2); text-transform: uppercase; }

/* Error pages: a boot error on the BASIC screen. */
.boot-error { padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: clamp(0.8rem, 2vw, 1.5rem); }
.boot-error__code { color: var(--color-accent, #ffa3cf); }
.boot-error__title { margin: 1rem 0; color: var(--color-screen-text, #d2e4ff); }
.boot-error__text { font-size: 1.5rem; line-height: 1.25; }
.boot-error a { color: var(--color-primary, #ffd75e); }

/* ---------------------------------------------------------------- views */

.view__empty {
  padding: 1.25rem;
  border: 2px dashed var(--color-border, #4c70cc);
  border-radius: var(--a8-radius);
  font-family: var(--font-mono, "VT323", monospace); font-size: 1.375rem; line-height: 1.3;
}
.view__error { color: var(--a8-r1); }
.pager { display: flex; justify-content: center; margin-top: 3rem; }

/* ---------------------------------------------------------------- forms */

.form,
.view-filters { max-width: 40rem; }
.form__item { margin: 0 0 1.25rem; }
.form__item label,
.view-filters label,
.view-filters legend {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-heading, #ffffff);
  font-family: var(--font-heading, var(--a8-pixel));
  font-size: 0.6875rem; line-height: 1.5;
  text-transform: uppercase;
}
.form__item--checkbox label { display: inline; }
.form input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.form textarea,
.form select,
.view-filters input:not([type="checkbox"], [type="radio"]),
.view-filters select {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--color-border, #4c70cc);
  border-radius: var(--a8-radius);
  background: var(--color-frame, #081638);
  color: var(--color-text, #dde9ff);
  font-family: var(--font-mono, "VT323", monospace);
  font-size: 1.375rem; line-height: 1.2;
  caret-color: var(--color-primary, #ffd75e);
}
.form input:focus,
.form textarea:focus,
.form select:focus,
.view-filters input:focus,
.view-filters select:focus { outline: 3px solid var(--color-focus, #7df9ff); outline-offset: 1px; box-shadow: 0 0 1rem var(--color-glow, #6fa8ff59); }
.form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--color-primary, #ffd75e); }
.form__help { margin: 0 0 0.4rem; color: var(--color-muted, #adc6f2); font-size: 0.9375rem; }
.form__required { color: var(--color-accent, #ffa3cf); text-transform: none; }
.form__error,
.view-filters__error,
.view-filters__errors { color: var(--a8-r1); }
.form__errors { margin: 0 0 1.5rem; padding: 0.75rem 1rem; border: 2px solid var(--a8-r1); border-radius: var(--a8-radius); background: var(--color-frame, #081638); }
.form__errors h2 { font-size: 0.8125rem; color: var(--a8-r1); }
.form__notice { padding: 0.75rem 1rem; border: 2px solid var(--a8-r4); border-radius: var(--a8-radius); background: var(--color-frame, #081638); }
.form__item--error input,
.form__item--error textarea,
.form__item--error select { border-color: var(--a8-r1); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.view-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: 2rem; padding: 1rem; border: 2px solid var(--color-border, #4c70cc); border-radius: var(--a8-radius); background: var(--color-surface, #173584); }
.view-filters fieldset { border: 0; margin: 0; padding: 0; }
.view-filters__actions { display: flex; align-items: center; gap: 1rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: auto; background: var(--color-frame, #081638); color: var(--color-text, #dde9ff); }
.site-footer__inner { width: min(100% - 2rem, var(--a8-max)); margin-inline: auto; padding: 2.5rem 0 2rem; }
.site-footer__ready { margin: 0; font-family: var(--font-mono, "VT323", monospace); font-size: 1.5rem; }

.region--footer .block--menu { margin-bottom: 2rem; }
.region--footer .block--menu .menu { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.region--footer .block--menu a {
  display: inline-flex; align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.8rem 0.4rem;
  border-radius: var(--a8-radius);
  background: var(--color-surface, #173584);
  color: var(--color-text, #dde9ff);
  font-family: var(--font-heading, var(--a8-pixel)); font-size: 0.625rem; text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 3px 0 #000;
}
.region--footer .block--menu a:hover { background: var(--color-text, #dde9ff); color: var(--color-frame, #081638); }

.foot__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.foot__name { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.75rem; font-family: var(--font-heading, var(--a8-pixel)); font-size: 1rem; color: var(--color-heading, #ffffff); }
.foot__name .px-icon { width: 2rem; height: 2rem; color: var(--a8-r3); }
.foot__text { max-width: 26rem; color: var(--color-muted, #adc6f2); font-size: 0.9375rem; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.75rem; }
.foot__heading { margin: 0 0 0.75rem; color: var(--color-accent, #ffa3cf); font-size: 0.6875rem; text-transform: uppercase; }
.foot__links { margin: 0; padding: 0; list-style: none; }
.foot__links a { display: inline-block; padding: 0.3rem 0.2rem; color: var(--color-text, #dde9ff); text-decoration: none; }
.foot__links a:hover { background: var(--color-text, #dde9ff); color: var(--color-frame, #081638); }
.foot__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-border, #4c70cc) 60%, transparent);
}
.foot__love { margin: 0; font-family: var(--font-mono, "VT323", monospace); font-size: 1.375rem; line-height: 1.2; }
.heart { display: inline-flex; color: var(--a8-r1); vertical-align: -0.15em; }
.heart .px-icon { width: 1.1em; height: 1.1em; }
.foot__copy { margin: 0 0 0 auto; color: var(--color-muted, #adc6f2); font-size: 0.875rem; }
.foot__ready { margin: 1.5rem 0 0; font-family: var(--font-mono, "VT323", monospace); font-size: 1.5rem; line-height: 1.1; }

/* ---------------------------------------------------------------- schemes: the logo images */

/* The banner and the Fuji are full-color GIFs: monochrome schemes tint them
   to their phosphor (data-scheme on <html>, THM-16). */
[data-scheme="green_phosphor"] .masthead__banner,
[data-scheme="green_phosphor"] .hero__banner-img,
[data-scheme="green_phosphor"] .hero__fuji img,
[data-scheme="green_phosphor"] .brand__fuji img,
[data-scheme="green_phosphor"] .doc__image img { filter: grayscale(1) sepia(1) hue-rotate(72deg) saturate(3.2) brightness(1.08); }
[data-scheme="amber"] .masthead__banner,
[data-scheme="amber"] .hero__banner-img,
[data-scheme="amber"] .hero__fuji img,
[data-scheme="amber"] .brand__fuji img,
[data-scheme="amber"] .doc__image img { filter: grayscale(1) sepia(1) hue-rotate(-8deg) saturate(3.4) brightness(1.08); }

/* ---------------------------------------------------------------- larger screens */

@media (min-width: 40rem) {
  .community__inner { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; }
  .community__keys { grid-column: 2; justify-content: start; }
  .community__text { margin: 0; }
  .ticker__pause { display: flex; order: 2; }
}

@media (min-width: 48rem) {
  .hero__screen { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2.5rem; }
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

@media (min-width: 64rem) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 19rem; }
  .with-sidebar--none { grid-template-columns: minmax(0, 1fr); }
  .community--band .community__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .community--band .community__keys { grid-column: auto; }
}

@media (max-width: 47.99rem) {
  .primary-menu { display: none; }
  .menu-key { display: block; width: 100%; }
  .menubar__inner { justify-content: flex-start; }
  .site-header--compact .menu-key { width: auto; }
  .site-header--compact .menu-key[open] { width: 100%; }
  .masthead { padding: 0.75rem 0.5rem; }
  .hero__art { order: -1; }
  .hero__fuji { width: 7.5rem; }
  .hero__floor { width: 10rem; height: 2.5rem; }
  .ticker__label { flex: 1; justify-content: center; }
  .ticker__pause { display: flex; order: 1; }
  .ticker__window { order: 2; flex-basis: 100%; border-top: 2px solid color-mix(in srgb, var(--color-border, #4c70cc) 60%, transparent); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 1rem; }
  .chip { min-height: 8rem; padding-inline: 0.5rem; }
  .ln { grid-template-columns: 4.5ch minmax(0, 1fr) auto; }
  .foot__copy { margin-left: 0; }
}

/* ---------------------------------------------------------------- motion */

/* Everything that moves, only for visitors who did not ask for less. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Color cycling of the raster bars and the rainbow text. */
  .raster,
  .masthead__link,
  .hero__banner,
  .section__title::after,
  .page-head__title::after,
  .primary-menu a[aria-current]::after,
  .rainbow-text { animation: a8-cycle 4s linear infinite; }
  .raster--bottom { animation-direction: reverse; animation-duration: 3s; }
  .rainbow-text { animation-duration: 6s; }

  /* The raster stack cycles its colors, like a DLI color table. */
  .raster-stack span { animation: a8-hues-bg 2.8s steps(1) infinite; }
  .raster-stack span:nth-child(2) { animation-delay: -0.4s; }
  .raster-stack span:nth-child(3) { animation-delay: -0.8s; }
  .raster-stack span:nth-child(4) { animation-delay: -1.2s; }
  .raster-stack span:nth-child(5) { animation-delay: -1.6s; }
  .raster-stack span:nth-child(6) { animation-delay: -2s; }
  .raster-stack span:nth-child(7) { animation-delay: -2.4s; }

  /* The cursor blinks, as it does after READY. */
  .cursor { animation: a8-blink 1.06s steps(1) infinite; }

  /* The TV warms up; the command types itself; the output appears. */
  .hero__screen { animation: a8-power-on 0.7s ease-out both; }
  .a8--crt .hero__screen::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; z-index: 1;
    height: 18%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-screen-text, #d2e4ff) 7%, transparent), transparent);
    animation: a8-roll 7s linear infinite;
  }
  .type { max-width: 0; animation: a8-type 2s steps(32, end) 0.6s forwards; }
  .cursor--typing { display: inline-block; animation: a8-blink 0.5s steps(1) infinite, a8-vanish 0s 2.2s forwards; }
  .screen__cmd ~ .hero__output { animation: a8-appear 0.45s steps(3, end) 2.2s both; }

  /* The Fuji floor scrolls toward the viewer. */
  .hero__floor { animation: a8-floor 0.9s linear infinite; }

  /* The ticker scrolls like a demo's scroll text; hover, focus, or the
     Pause box stop it. */
  .ticker__window {
    -webkit-mask: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
    mask: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
  }
  .ticker__track { flex-wrap: nowrap; width: max-content; gap: 0; padding-inline: 0; animation: a8-marquee var(--a8-ticker, 70s) linear infinite; }
  .ticker--slow { --a8-ticker: 110s; }
  .ticker--fast { --a8-ticker: 40s; }
  .ticker__item { padding-inline: 1.25rem 2rem; white-space: nowrap; }
  .ticker__item--echo { display: flex; }
  .ticker:hover .ticker__track,
  .ticker:focus-within .ticker__track,
  .ticker:has(.ticker__pause-box:checked) .ticker__track { animation-play-state: paused; }

  /* Hover: keys and menu items glitch, cards slide in and out of the slot. */
  .key:hover,
  .primary-menu a:hover,
  .menu-key__panel a:hover,
  .dos__link:hover,
  .foot__links a:hover,
  .region--footer .block--menu a:hover { animation: a8-glitch 0.32s steps(2, end) 1; }
  .cart,
  .machine-card,
  .tape-card { transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1.3); }
  .cart:hover,
  .cart:focus-within { transform: translateY(-0.6rem); }
  .cart:hover .cart__shell,
  .cart:focus-within .cart__shell { animation: a8-glow 1.4s steps(1) infinite; }
  .sleeve__medium { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.25); }
  .sleeve:hover .sleeve__medium,
  .sleeve:focus-within .sleeve__medium { transform: translateY(-1.6rem) rotate(-2deg); }
  .machine-card:hover,
  .machine-card:focus-within,
  .tape-card:hover,
  .tape-card:focus-within { transform: translateY(-0.35rem); }
  .machine-card:hover .px-machine,
  .machine-card:focus-within .px-machine { animation: a8-hop 0.5s steps(4, end) 1; }
  .ln:hover .ln__no { animation: a8-hues-bg 0.7s steps(1) infinite; }

  /* The joystick waggles; the ATASCII heart beats; the footer Fuji cycles. */
  .community__port .px-icon { animation: a8-waggle 1.6s steps(1) infinite; transform-origin: 50% 85%; }
  .heart { animation: a8-beat 1.1s steps(1) infinite; }
  .foot__name .px-icon { animation: a8-hues-color 3.5s steps(1) infinite; }
}

/* A safety net: no motion at all for visitors who ask for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes a8-cycle { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes a8-blink { 50% { opacity: 0; } }
@keyframes a8-vanish { to { visibility: hidden; } }
@keyframes a8-type { to { max-width: 32ch; } }
@keyframes a8-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes a8-power-on {
  0% { transform: scale(1, 0.004); filter: brightness(3); }
  45% { transform: scale(1, 0.004); filter: brightness(3); }
  70% { transform: scale(1, 1.02); filter: brightness(1.6); }
  100% { transform: none; filter: none; }
}
@keyframes a8-roll { from { transform: translateY(-100%); } to { transform: translateY(600%); } }
@keyframes a8-floor { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 0 10px; } }
@keyframes a8-marquee { to { transform: translateX(-50%); } }
@keyframes a8-glitch {
  0% { transform: translate(0); text-shadow: none; }
  33% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--a8-r1), -2px 0 var(--a8-r5); }
  66% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--a8-r3), 2px 0 var(--a8-r6); }
  100% { transform: translate(0); text-shadow: none; }
}
@keyframes a8-glow {
  0%, 100% { box-shadow: 0 0 0 3px var(--a8-r1), var(--a8-shadow); }
  14% { box-shadow: 0 0 0 3px var(--a8-r2), var(--a8-shadow); }
  28% { box-shadow: 0 0 0 3px var(--a8-r3), var(--a8-shadow); }
  42% { box-shadow: 0 0 0 3px var(--a8-r4), var(--a8-shadow); }
  57% { box-shadow: 0 0 0 3px var(--a8-r5), var(--a8-shadow); }
  71% { box-shadow: 0 0 0 3px var(--a8-r6), var(--a8-shadow); }
  85% { box-shadow: 0 0 0 3px var(--a8-r7), var(--a8-shadow); }
}
@keyframes a8-hues-bg {
  0%, 100% { background-color: var(--a8-r1); }
  14% { background-color: var(--a8-r2); }
  28% { background-color: var(--a8-r3); }
  42% { background-color: var(--a8-r4); }
  57% { background-color: var(--a8-r5); }
  71% { background-color: var(--a8-r6); }
  85% { background-color: var(--a8-r7); }
}
@keyframes a8-hues-color {
  0%, 100% { color: var(--a8-r1); }
  14% { color: var(--a8-r2); }
  28% { color: var(--a8-r3); }
  42% { color: var(--a8-r4); }
  57% { color: var(--a8-r5); }
  71% { color: var(--a8-r6); }
  85% { color: var(--a8-r7); }
}
@keyframes a8-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes a8-waggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes a8-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

@media print {
  .site-header, .ticker, .site-footer, .raster, .keys { display: none; }
  body { background: #fff; color: #000; }
}
