/*
  aipple.net - shared site styles
  Two pages for now: a black landing page with the Aipple logo (index.html),
  and an apps listing page (apps.html) that the logo links through to.
*/

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
}

/* ---------- Landing page ---------- */

.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing a.logo-link {
  display: block;
  line-height: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.landing a.logo-link:hover,
.landing a.logo-link:focus-visible {
  transform: scale(1.03);
  opacity: 0.9;
}

.landing img.logo {
  width: min(80vw, 640px);
  height: auto;
  display: block;
}

/* ---------- Apps page ---------- */

.apps-page {
  min-height: 100vh;
  padding: 64px 24px 80px;
}

.apps-page header {
  text-align: center;
  margin-bottom: 48px;
}

.apps-page header a.back {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apps-page header a.back:hover {
  color: #ccc;
}

.apps-page h1 {
  margin: 18px 0 0;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.app-tile {
  width: 180px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.app-tile img {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  display: block;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.app-tile:hover img,
.app-tile:focus-visible img {
  transform: translateY(-4px);
}

.app-tile .app-name {
  font-size: 15px;
  font-weight: 600;
}

.app-tile .app-status {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
