/* Palette sampled from Echo. --void must stay her backdrop or the sprite crops
   show as rectangles. */
:root {
  --void: #071904;
  --panel: #0d2a08;
  --panel-hi: #143b0c;
  --outline: #041002;
  --moss: #93ba39;
  --moss-lo: #5e7f22;
  --glow: #d2e360;
  --cream: #fdff8c;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 3rem 1rem 2rem;
  min-height: 100vh;
  background: var(--void);
  color: var(--glow);
  font-family: var(--mono);
  overflow-x: hidden;
}

/* Echo drifting past, behind everything. One pose, so she flies rather than
   flaps: steps() keeps the motion pixel-art rather than smooth. */
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.flyer {
  position: absolute;
  width: 4rem;
  opacity: 0.22;
  image-rendering: pixelated;
  will-change: transform;
  animation:
    drift linear infinite,
    bob ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateX(-8rem);
  }
  to {
    transform: translateX(calc(100vw + 8rem));
  }
}

@keyframes bob {
  from {
    margin-top: -0.5rem;
    rotate: -4deg;
  }
  to {
    margin-top: 0.75rem;
    rotate: 3deg;
  }
}

.f1 {
  top: 12%;
  animation-duration: 44s, 3.1s;
  animation-delay: -6s, 0s;
}
.f2 {
  top: 38%;
  width: 2.8rem;
  opacity: 0.16;
  animation-duration: 63s, 2.4s;
  animation-delay: -31s, -1s;
}
.f3 {
  top: 64%;
  width: 5rem;
  animation-duration: 52s, 3.7s;
  animation-delay: -18s, -2s;
}
.f4 {
  top: 84%;
  width: 2.4rem;
  opacity: 0.14;
  animation-duration: 71s, 2.1s;
  animation-delay: -49s, -0.5s;
}

main {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero {
  width: 13rem;
  max-width: 60%;
  image-rendering: pixelated;
}

h1 {
  margin: 0.3rem 0 0;
}

h1 img {
  width: 15rem;
  max-width: 70%;
  image-rendering: pixelated;
}

.tagline {
  margin: 0.6rem 0 0;
  color: var(--moss);
  font-size: 0.9rem;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--panel);
  border: 3px solid var(--outline);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card img {
  width: 9rem;
  align-self: center;
  image-rendering: pixelated;
}

.card h2 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.card p {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--moss);
}

.install code {
  background: var(--void);
  border: 2px solid var(--outline);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  display: inline-block;
  color: var(--glow);
  font-size: 0.8rem;
}

.links {
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding-top: 0.6rem;
}

.links a {
  color: var(--glow);
  text-decoration: none;
  border: 2px solid var(--outline);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  background: var(--panel-hi);
  font-size: 0.8rem;
}

.links a:hover {
  background: var(--moss-lo);
}

.links a.primary {
  flex-basis: 100%;
  background: var(--moss);
  color: var(--outline);
  font-weight: 700;
  box-shadow: 0 4px 0 var(--moss-lo);
}

.links a.primary:hover {
  background: var(--glow);
}

.links a.primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--moss-lo);
}

footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--moss);
  line-height: 1.8;
}

footer a {
  color: var(--cream);
}

.fine {
  color: var(--moss-lo);
}

@media (prefers-reduced-motion: reduce) {
  .sky {
    display: none;
  }
}
