/**
 * The ground, the type scale, and the pieces every view shares.
 */

* {
  box-sizing: border-box;
  border-radius: 0;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
}

/* Two voices, and the split is the rule. Archivo is the site talking to a
   reader; Silkscreen is the product talking, and it only ever appears on an
   instrument — a readout, a tagline sitting on the artwork, a frame caption.
   Nothing that has to be *read* is set in a bitmap face any more, and nothing
   is rendered without antialiasing except the bitmap faces themselves. */
body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* The pixel art still wants nearest-neighbour; the text does not. */
canvas,
img {
  image-rendering: pixelated;
}
.tagline,
.frame-cap,
.brand,
.lcd,
.lcd b,
.lcd span {
  -webkit-font-smoothing: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.17) 0px,
    rgba(0, 0, 0, 0.17) 1px,
    transparent 1px,
    transparent 3px
  );
}
[data-scheme="blueprint"] body::after {
  opacity: 0.45;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

h1,
h2,
h3,
h4,
.lbl,
.btn,
th,
.cue,
.nav-link {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
}
.tagline,
.brand {
  font-family: "Silkscreen", monospace;
  font-weight: 700;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  text-wrap: balance;
  line-height: 1.35;
}
.panel h3 {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.panel > p {
  font-size: 18px;
  color: var(--ink-dim);
  line-height: 1.55;
}
p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
a:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hot {
  color: var(--accent);
}
.lbl {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.lbl::before {
  content: "▚ ";
  color: var(--accent);
}

.panel {
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  padding: 22px;
  clip-path: polygon(
    6px 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 6px) 100%,
    6px 100%,
    0 calc(100% - 6px),
    0 6px
  );
}
.panel.lit {
  border-color: var(--accent);
  box-shadow: 5px 5px 0 var(--accent);
}
.panel.flat {
  box-shadow: none;
}

.aside {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 62ch;
  line-height: 1.6;
  margin: 16px 0 0;
  padding-left: 13px;
  border-left: 3px solid var(--line);
}
.aside b {
  color: var(--ink);
  font-weight: 700;
}
