@font-face {
  font-family: "Minecraft";
  src: url("assets/Minecraft.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Minecraft", sans-serif;
  background: #111016;
  color: #e8e0ea;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: #111016;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 56px;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.hero::before {
  background-image: url("assets/home_bg.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  background: rgba(17, 16, 22, 0.28);
}

.brand {
  text-align: center;
}

.brand h1 {
  margin: 0;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 0 18px rgba(193, 124, 255, 0.75),
    4px 4px 0 #000;
}

.brand-accent {
  color: #c17cff;
}

.brand p {
  margin: 16px 0 0;
  color: #d0c3d4;
  font-size: 18px;
  line-height: 1.4;
  text-shadow: 2px 2px 0 #000;
}

.download-area {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(720px, 100%);
  min-height: 96px;
  padding: 20px 32px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #c17cff;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(193, 124, 255, 0.22);
  color: #26003d;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.download-button:hover {
  background: #d3a2ff;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.5),
    0 0 38px rgba(193, 124, 255, 0.34);
  transform: translateY(-2px);
}

.download-button:active {
  transform: translateY(0);
}

.download-button:focus-visible {
  border-color: #89f2d2;
  outline: 3px solid rgba(137, 242, 210, 0.38);
  outline-offset: 4px;
}

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

.source-link {
  position: absolute;
  right: 24px;
  bottom: 16px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(232, 224, 234, 0.58);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  text-shadow: 1px 1px 2px #000;
  transition: color 160ms ease;
}

.source-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.source-link:hover {
  color: #e8e0ea;
}

.source-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid #89f2d2;
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .hero {
    padding: 32px 24px 56px;
  }

  .brand h1 {
    font-size: 46px;
  }

  .brand p {
    margin-top: 12px;
    font-size: 15px;
  }

  .download-button {
    min-height: 80px;
    padding: 16px 20px;
    font-size: 20px;
  }

  .source-link {
    right: 16px;
    bottom: 14px;
  }
}

@media (max-width: 400px) {
  .brand h1 {
    font-size: 30px;
  }

  .download-button {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .download-button,
  .source-link {
    transition: none;
  }
}
