:root {
  color-scheme: dark;
  --base: #443330;
  --cream: #f5f0df;
  font-family: "Silkscreen", monospace;
  color: var(--cream);
  background: var(--base);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 6px;
}

p,
h1 {
  margin: 0;
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100svh;
  padding: 2rem 1.25rem;
  isolation: isolate;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-art {
  display: block;
  width: min(22rem, 100%);
  min-width: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.hero-content {
  position: relative;
  width: min(22rem, 100%);
  min-width: 0;
  padding: 1.5rem 1rem;
  text-align: center;
}

.tagline,
.introduction {
  font-size: 0.875rem;
}

.introduction {
  text-align: left;
}

.introduction ul {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.5em;
}

.introduction li + li {
  margin-top: 0.5em;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(29rem, 100%);
  margin: 1.5rem auto 2rem;
}

.button {
  --button-pixel: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--button-pixel) * 4);
  min-height: calc(var(--button-pixel) * 24);
  padding: calc(var(--button-pixel) * 2);
  color: var(--cream);
  border: calc(var(--button-pixel) * 6) solid transparent;
  border-image: url("./assets/images/button-frame.png") 6 fill stretch;
  image-rendering: pixelated;
  /* Silkscreen uses an eight-pixel em and a two-pixel letter gap. */
  font-size: calc(var(--button-pixel) * 8);
  font-weight: 400;
  letter-spacing: calc(var(--button-pixel) * -1);
  line-height: 1.5;
}

.button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.button img {
  flex: none;
  width: calc(var(--button-pixel) * 8);
  height: calc(var(--button-pixel) * 8);
  filter: brightness(0) invert(1);
}

.button:hover {
  filter: brightness(1.2);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem 1rem 2rem;
}

.footer-logos {
  --footer-pixel: 1px;
  display: flex;
  flex-basis: 100%;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1.5rem;
}

.site-footer img {
  display: block;
  flex: none;
  height: auto;
  image-rendering: pixelated;
}

.footer-sunbittern {
  width: calc(var(--footer-pixel) * 42);
}

.footer-godot {
  width: calc(var(--footer-pixel) * 55);
}

.footer-text {
  flex-basis: 100%;
  min-width: 0;
  font-size: 0.875rem;
  text-align: left;
}

@media (min-width: 280px) {
  .footer-logos {
    --footer-pixel: 2px;
  }
}

@media (min-width: 375px) {
  .footer-logos {
    --footer-pixel: 3px;
  }
}

@media (min-width: 640px) {
  .hero-art {
    width: min(52rem, 100%);
  }

  .hero-content {
    width: min(32rem, 100%);
    padding: 1.5rem;
  }

  .social-links {
    flex-direction: row;
  }

  .social-links .button {
    flex: 1;
  }

  .site-footer {
    justify-content: space-between;
  }

  .footer-logos {
    flex-basis: auto;
    margin-inline-start: auto;
  }

  .footer-text {
    order: -1;
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    width: min(52rem, 100%);
  }

  .tagline {
    font-size: 1.75rem;
  }

  .introduction {
    width: min(29rem, 100%);
    margin-inline: auto;
  }
}
