@font-face {
  font-family: "JetBrains Mono Regular";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"),
    url("/fonts/JetBrainsMono-Regular.woff") format("woff"),
    url("/fonts/JetBrainsMono-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "JetBrains Mono Medium";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2"),
    url("/fonts/JetBrainsMono-Medium.woff") format("woff"),
    url("/fonts/JetBrainsMono-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "JetBrains Mono ExtraBold";
  src: url("/fonts/JetBrainsMono-ExtraBold.woff2") format("woff2"),
    url("/fonts/JetBrainsMono-ExtraBold.woff") format("woff"),
    url("/fonts/JetBrainsMono-ExtraBold.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
}

* {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  color: currentColor;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-moz-selection {
  /* Code for Firefox */
  color: black;
  background: white;
}

::selection {
  color: black;
  background: white;
}

html,
body {
  font-family: "JetBrains Mono Regular", monospace;
  font-weight: 400;
  font-size: 16px;
  color: white;
  background-color: black;
}

body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to bottom, black, transparent);
}

header,
main,
footer {
  padding: 4rem;
  max-width: 480px;
}

main {
  padding: 0 4rem;
}

header ul {
  margin-top: 1.5rem;
}

.qr-code {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  display: block;
  width: 2.5rem;
}

.qr-code svg {
  width: 100%;
  height: auto;
}

.qr-code p {
  display: none;
}

ul {
  list-style-type: none;
}

ul li {
  display: inline;
}

footer nav ul li:not(:last-child):after {
  content: "/";
  font-size: 0.75rem;
  line-height: 1.5rem;
}

footer nav ul li a {
  font-size: 0.75rem;
  line-height: 1.5rem;
  text-decoration: none;
}

footer nav ul li a:hover {
  text-decoration: underline;
}

section + * {
  margin-top: 4rem;
}

.subsection + * {
  margin-top: 1.5rem;
}

a {
  font-size: 1em;
}

a:hover,
a:focus {
  text-decoration: none;
}

h1,
h2,
h3 {
  margin-bottom: 0.5rem;
  font-family: "JetBrains Mono ExtraBold", monospace;
  font-weight: 800;
  text-transform: lowercase;
}

h2 {
  padding-left: 0.25rem;
  margin-bottom: 1rem;
  color: black;
  background-color: white;
}

p+p {
  margin-top: 0.5rem;
}

hr {
  margin-top: 1rem;
  border-style: dashed;
}

hr + * {
  margin-top: 1rem;
}

mark {
  background: transparent;
  text-transform: uppercase;
}

small,
mark {
  font-size: 0.75rem;
  line-height: 1.5rem;
}

sup {
  font-size: 0.75em;
}

abbr {
  font-size: 1em;
  text-decoration: underline dashed;
}

address {
  font-style: normal;
}

@media (prefers-color-scheme: light) {
  ::-moz-selection {
    /* Code for Firefox */
    color: white;
    background: black;
  }

  ::selection {
    color: white;
    background: black;
  }

  body::before {
    background: linear-gradient(to bottom, white, transparent);
  }

  html,
  body {
    color: black;
    background-color: white;
  }

  h2 {
    color: white;
    background-color: black;
  }
}

@media only screen and (max-width: 600px) {
  body::before {
    height: 2rem;
  }

  .qr-code {
    display: none;
  }

  main {
    padding: 0 1.5rem;
  }

  header,
  footer {
    padding: 2rem 1.5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


@media only print {
  @page {
    margin: 0;
  }

  * {
    line-height: 1.4rem;
  }

  html,
  body {
    font-size: 9.5pt;
    color: black;
    background-color: unset;
  }

  body::before {
    display: none;
  }

  header,
  main,
  footer {
    padding: 15mm;
    max-width: unset;
  }

  header {
    max-width: 14cm;
    padding-bottom: 10mm;
  }

  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
    padding-top: 0;
  }

  footer {
    display: none;
  }

  header mark {
    font-size: 1rem;
  }

  header ul {
    display: none;
  }

  .qr-code {
    position: absolute;
    top: 15mm;
    right: 15mm;
    width: 2.2cm;
  }

  .qr-code p {
    display: block;
    font-size: 8pt;
    text-align: center;
    line-height: 1;
    margin-top: 0.5rem;
  }

  section + * {
    margin-top: 0;
  }

  .subsection + * {
    margin-top: 2rem;
  }

  a,
  abbr {
    text-decoration: none;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    padding-left: 0;
    color: black;
    background-color: unset;
    font-size: 1.25rem;
  }

  p+p:has(mark:only-child) {
    margin-top: 0.25rem;
    line-height: 1.25;
  }

  hr {
    margin-top: 0rem;
    max-width: 5mm;
  }

  hr + * {
    margin-top: 2rem;
  }

  mark {
    font-size: 0.75rem;
    line-height: 1;
  }
}
