@font-face {
  font-family: "CoralByte Blocks";
  src: url("blocks.woff2") format("woff2");
  font-display: block;
}

:root {
  color-scheme: dark;
  background: #0a0f14;
  color: #bdcbd4;
  font-family: ui-monospace, "Cascadia Code", "DejaVu Sans Mono", monospace;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.dashboard {
  width: 40vw;
  max-width: 880px;
  min-width: 480px;
}

.art {
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 72 / 40;
  overflow: hidden;
}

.art-characters {
  font-family: "CoralByte Blocks", monospace;
  font-size: calc(40vw / 36);
  font-size: calc(100cqw / 36);
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
}

.art-row { display: grid; grid-template-columns: repeat(72, minmax(0, 1fr)); }
.art-row > span {
  display: block;
  height: 1em;
  color: var(--top);
  /* Paint beneath the glyph as well: fractional font rasterization otherwise
     lets the lower color show through along the upper block's edges. */
  background: linear-gradient(to bottom, var(--top) 50%, var(--bottom) 50%);
}

.caption { margin-top: clamp(28px, 3vw, 44px); }

h1 {
  margin: 0;
  color: #e5bc68;
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-line { display: block; }
.quote-soft { color: #bdcbd4; }
.cursor { margin-left: 0.4em; color: #e5bc68; letter-spacing: 0; }

footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  color: #83929b;
  font-size: 11px;
  line-height: 1.6;
}

.mode { letter-spacing: 0.06em; white-space: nowrap; }

@media (max-width: 720px) {
  .dashboard { width: 100%; min-width: 0; max-width: 520px; }
  .art-characters { font-size: calc((100vw - 48px) / 36); font-size: calc(100cqw / 36); }
  h1 { font-size: clamp(12px, 3.5vw, 18px); }
  footer { margin-top: 28px; font-size: 10px; }
}

@media (max-width: 340px) {
  main { padding-inline: 16px; }
  footer { gap: 8px; font-size: 9px; }
}
