:root {
  color-scheme: dark;
}

html {
  background: #000;
  overflow-x: hidden;
}

body {
  margin: 20px auto;
  padding: 0 20px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.5;
}

a {
  color: #fff;
}

a:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

::selection {
  background: #fff;
  color: #000;
}

.top {
  display: flex;
  gap: 3ch;
  margin-bottom: 3ch;
  font-size: min(11px, calc((100vw - 40px) / 50.4));
}

.stream {
  position: relative;
  font-size: min(5.5px, calc((100vw - 40px) / 100.8));
}

.idx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.idx a {
  pointer-events: auto;
}

.stream pre {
  margin: 0;
  width: 168ch;
  max-width: 100%;
  font-size: inherit;
  line-height: 1;
  white-space: pre;
  overflow: hidden;
}

.fr {
  position: relative;
}

.fr + .fr {
  margin-top: 2em;
}

.wv {
  position: absolute;
  font-size: 2em;
  line-height: 1;
  white-space: nowrap;
}

main {
  width: 84ch;
  max-width: 100%;
}

.home {
  display: inline-block;
  margin-bottom: 3ch;
}

.flat div {
  margin: 0.25rem 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  margin: 1.5rem 0 0.5rem;
}

h1,
.home + h2 {
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

pre {
  margin: 0 0 1rem;
  font-family: monospace;
  font-size: inherit;
  overflow-x: auto;
}

mark {
  background: #fff;
  color: #000;
  padding: 0 0.2em;
}

dt {
  margin-top: 1rem;
}

dd {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 1.5rem 0;
}

figcaption {
  font-style: italic;
  margin-top: 0.4rem;
}

aside {
  font-style: italic;
  margin: 1rem 0;
}

hr {
  border: 0;
  border-top: 1px solid #fff;
  margin: 2rem 0;
}
