@font-face {
  font-family: "Geist Pixel";
  src: url("public/fonts/GeistPixel-Square.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #101211;
  --text: #ebe9e4;
  --theme-accent: #929892;
  --theme-line: #353a36;
  --theme-muted: #1b1e1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: #101211;
  color: var(--text);
  font-family: "Geist Pixel", ui-monospace, monospace;
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

.site-shell {
  align-items: center;
  background: #101211;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
}

.download-card {
  align-items: center;
  display: grid;
  gap: 34px;
  justify-items: center;
  text-align: center;
}

.actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

h1 {
  font-size: clamp(22px, 5vw, 46px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.attune-word {
  --wave-a: #929892;
  --wave-b: #d8c88f;
  --wave-c: #70ad87;
  --wave-d: #d65c43;
  border-bottom: 2px solid transparent;
  display: inline-block;
  padding-bottom: 2px;
  position: relative;
}

.attune-word::after {
  animation: underline-wave 1.55s linear infinite;
  background: linear-gradient(
    90deg,
    var(--wave-a),
    var(--wave-b),
    var(--wave-c),
    var(--wave-d),
    var(--wave-a)
  );
  background-size: 240% 100%;
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

@keyframes underline-wave {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 240% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .attune-word::after {
    animation: none;
  }
}

.download-button {
  align-items: center;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.3);
  color: #fff;
  display: inline-flex;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  justify-content: center;
  letter-spacing: 0;
  min-height: 50px;
  padding: 0 26px;
  transition:
    background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.apple-logo {
  background: currentColor;
  flex: 0 0 auto;
  height: 22px;
  mask: url("public/apple-logo.png") center / contain no-repeat;
  -webkit-mask: url("public/apple-logo.png") center / contain no-repeat;
  width: 18px;
}

.download-button:hover,
.download-button:focus-visible {
  background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
  border-color: rgb(255 255 255 / 0.22);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.4);
  outline: none;
  transform: translateY(-2px);
}

.github-button {
  align-items: center;
  background: var(--theme-muted);
  border: 1px solid var(--theme-line);
  border-radius: 100px;
  color: var(--text);
  display: inline-flex;
  height: 50px;
  justify-content: center;
  transition:
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  width: 50px;
}

.github-button:hover,
.github-button:focus-visible {
  border-color: var(--theme-accent);
  color: var(--text);
  outline: none;
  transform: translateY(-2px);
}

.github-logo {
  background: currentColor;
  height: 22px;
  mask: url("public/github-mark.svg") center / contain no-repeat;
  -webkit-mask: url("public/github-mark.svg") center / contain no-repeat;
  width: 22px;
}

@media (max-width: 520px) {
  .site-shell {
    padding: 20px;
  }

  .actions {
    gap: 10px;
  }

  .download-button {
    font-size: 14px;
    min-height: 48px;
    padding: 0 18px;
  }

  .github-button {
    height: 48px;
    width: 48px;
  }
}
