body {
  font: 1.25rem/1 "JetBrains Mono", var(--font-family);
  transition: opacity .2s ease-in;
}
body, a {
  color: var(--color);
}

img.loading {
  transition: none;
}

#background {
  position: fixed;
  inset: 0;
  opacity: .25;
  z-index: -1;
  pointer-events: none;
}
#background img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: opacity 5s ease-in;
}

#page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-inline: max(1rem, 2vw);
  padding: 2rem;
  min-height: 100dvh;
  mix-blend-mode: multiply;
}

header {
  display: flex;
  align-items: end;
  font-family: "Major Mono Display", "JetBrains Mono", var(--font-family);
  letter-spacing: -1px;
}
header p:first-of-type {
  margin: 0 0 0 4rem;
  padding: .375rem 0 .125rem;
  border-top: 1px solid #0006;
}
header p:first-of-type::first-letter {
  color: var(--theme);
}
header p:last-of-type {
  flex: 1;
  padding: .375rem 0 .125rem 2rem;
  text-align: right;
  border-top: 1px solid #0006;
}
h1 {
  font-size: 2rem;
}
h1 span {
  color: var(--theme);
}

main {
  margin: 4rem 0 2rem;
  text-transform: uppercase;
  counter-reset: counter;
}
h2 {
  margin: 3rem 0 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--theme);
}
ol {
  list-style: none;
  padding: 0;
}
ol li {
  display: grid;
  grid-template-columns: 2fr 3fr 4fr 2rem;
  margin-block: .75em;
  line-height: 1.5;
  counter-increment: counter;
}
ol li::after {
  content: counter(counter, decimal-leading-zero);
}
ol a {
  padding: 0 1rem 0 0;
}

.word {
  white-space: nowrap;
}
.word .char {
  position: relative;
  --opacity: 0;
}
.word .char::after {
  content: "";
  width: 1ch;
  top: 0;
  left: 0;
  position: absolute;
  opacity: var(--opacity);
}
.word .char::after {
  background: currentColor;
  height: 100%;
}

@media (max-width: 80rem) {
  body {
    font-size: 1rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: .75rem;
  }
}

@media (max-width: 60rem) {
  #page {
    padding: 1.5rem;
  }
  ol li {
    grid-template-columns: 2fr 3fr 3.5fr;
  }
  ol li::after {
    content: none;
  }
  ol a:last-child {
    padding: 0;
  }
}

@media (max-width: 48rem) {
  #page {
    margin-inline: 0;
  }
  header {
    flex-wrap: wrap;
    line-height: 1.5;
  }
  header p:first-of-type {
    margin: 0;
    padding: 0;
    border: none;
  }
  header p:last-of-type {
    flex: 1 1 50%;
    padding: 0;
    border: none;
  }
  h1 {
    flex: 1 0 90%;
    order: 9;
    margin: 0 -.0625rem;
  }
  ol li {
    display: block;
    margin-block: 1em;
  }
  ol a {
    padding: 0;
  }
  ol a::after {
    content: "\A";
    white-space: pre;
  }
  ol a:first-child {
    font-size: 1.125rem;
  }
  ol a:not(:first-child) {
    font-size: .875rem;
    color: #0008;
    pointer-events: none;
  }
}

@media (max-width: 30rem) {
  header p:first-of-type {
    order: 9;
  }
  header p:last-of-type {
    flex: 1 1 100%;
    text-align: left;
  }
  header p:last-of-type::after {
    content: " by "
  }
  h1 {
    margin: 0 -.125rem;
    flex: 1 1 100%;
    order: 0;
  }
  ol a:first-child {
    font-size: 1rem;
  }
}

:root {
  --width: 1rem;
  --theme: #c66;
  --color: #233;
}

article {
  font-family: "JetBrains Mono", var(--font-family);
}
article h2 {
  font-size: 4rem;
  margin: 4rem 0 1rem;
}
article p {
  font-size: 1.125rem;
}
article span {
  font-family: "Arial", sans-serif;
}
article a {
  color: var(--theme);
  transition: .2s color ease-in;
}
article a::before {
  content: "";
  margin-inline-start: 2rem;
}
article a:hover {
  color: var(--color);
}
section {
  position: relative;
  display: flex;
  gap: var(--width);
  margin-block: var(--width);
  overflow: hidden;
  user-select: none;
  mask: linear-gradient(to right, transparent, #fff 15%, #fff 85%, transparent );
}
section div {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--width);
  pointer-events: none;
  animation: scroll 200s linear infinite;
}
section:hover div {
  animation-play-state: paused;
}
section + section {
  transition-delay: .8s;
}
section + section div {
  animation-direction: reverse;
}
section img {
  flex-shrink: 0;
  width: auto;
  height: calc(50vh - 12.5rem);
  border-radius: .25rem;
}
@media (max-width: 48rem) {
  article h2 {
    font-size: 3rem;
  }
  article p {
    font-size: 1rem;
    line-height: 1.5;
  }
  article a {
    font-size: .875rem;
  }
  article a::before {
    display: block;
    margin: 0;
    pointer-events: none;
  }
  section img {
    height: calc(50vh - 15rem);
  }
}

@font-face {
  font-family: "Major Mono Display";
  font-style: normal;
  font-weight: 400;
  src: url("https://fonts.gstatic.com/s/majormonodisplay/v18/RWmVoLyb5fEqtsfBX9PDZIGr2tFubRh7DXeR.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;
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - var(--width))); }
}