@font-face {
  font-family: 'Druk Wide';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/druk-wide_bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-mono_regular.woff2') format('woff2');
}

:root {
  color-scheme: dark;
}

html {
  color: #fff;
  background-color: #000;
  font: 18px/1.55 'Roboto Mono', monospace;
  letter-spacing: -0.6px;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #000;
  background-color: #45ff00;
}

body {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  overflow: hidden;
}

.header,
.content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1248px;
  padding: 15px 40px;
}

.header {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  height: 56px;
}

.link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 44px;
  height: 44px;
  color: #fff;
}

.link:hover,
.link:focus-visible {
  color: #45ff00;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  margin: 0 0 25px;
  font: 700 48px/1.33 'Druk Wide', sans-serif;
  letter-spacing: -0.4px;
  text-wrap: balance;
}

.text {
  max-width: 720px;
  margin: 0;
  text-wrap: balance;
}

/* the artwork is cropped at its bottom edge, so it must touch the bottom of the screen */
.roach {
  align-self: end;
  display: block;
  width: auto;
  max-width: 100%;
  height: 260px;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 900px) {
  .title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .header,
  .content {
    padding: 8px 20px;
  }

  .logo {
    height: 44px;
  }

  .title {
    margin-bottom: 15px;
    font-size: 28px;
    letter-spacing: 1px;
  }

  .roach {
    height: 220px;
  }
}
