.colophon {
  --foot-bg: #080e24;
  --foot-ink: #9aa9bd;
  --foot-title: #e7eefb;
  --foot-line: #253046;
  --foot-hover: #4ac5b1;
  --foot-max: 1200px;
  --foot-pad: 38px;
}

.colophon {
  position: relative;
  clear: both;
  margin: 0;
  padding: var(--foot-pad, 32px) max(16px, env(safe-area-inset-right)) var(--foot-pad, 32px) max(16px, env(safe-area-inset-left));
  color: var(--foot-ink);
  background: var(--foot-bg);
  border-top: 1px solid var(--foot-line);
  font-size: 14px;
  line-height: 1.6;
}
.colophon-inner { max-width: var(--foot-max, 1200px); margin-inline: auto; min-width: 0; }
.colophon h2, .colophon .colophon-name { color: var(--foot-title); font-size: 16px; line-height: 1.4; margin: 0 0 12px; font-weight: 650; }
.colophon p { margin: 8px 0; max-width: 28ch; }
.colophon section, .colophon section > * { min-width: 0; }
.colophon a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.colophon a:hover, .colophon summary:hover { color: var(--foot-hover); }
.colophon small { font-size: 13px; overflow-wrap: anywhere; }
.colophon .colophon-columns { display: grid; gap: 20px 36px; }
.colophon section > a { display: block; width: fit-content; }
.colophon .colophon-line, .colophon .colophon-rule, .colophon .colophon-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.colophon .colophon-rule { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--foot-line); }
.colophon .colophon-code { box-sizing: content-box; background: white; padding: 6px; width: 76px; height: 76px; border-radius: 3px; }
.colophon-code > img, .colophon-code > canvas { width: 100%; height: 100%; max-width: none; image-rendering: pixelated; }
.colophon-scan { position: relative; }
.colophon-scan summary { cursor: pointer; width: fit-content; }
.colophon-scan[open] .colophon-code { margin-top: 8px; }
@media(max-width: 640px) {
  .colophon .colophon-columns { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 16px; }
  .colophon .colophon-links, .colophon .colophon-line { gap: 6px 12px; }
}
.colophon-columns { grid-template-columns: 1.5fr 1fr 1fr 1.2fr .8fr; }
.colophon-columns section .colophon-links { display: grid; gap: 2px; }
.colophon-columns section:nth-last-child(2) .colophon-links { display: flex; gap: 14px; }
.colophon .colophon-rule { justify-content: center; }
