/* ---------- Fonte ---------- */
/* Manrope variável (subconjunto latino), servida pelo próprio site. Licença em fonts/LICENSE. */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fafafa;
  --text: #111113;
  --muted: #6f6f78;
  --faint: #d9d9de;
  --tile: #ffffff;
  --accent: #e5484d;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 14px 32px -12px rgb(0 0 0 / 0.16);
  --font: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}

/* O tema acompanha o do sistema. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --text: #ededef;
    --muted: #8b8b94;
    --faint: #2e2e34;
    --tile: #18181b;
    --accent: #ff6369;
    --shadow: 0 0 0 1px #26262b;
  }
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.4 var(--font);
}

main {
  max-width: 880px;
  padding: 48px 24px 120px;
  text-align: center;
}

/* ---------- Título ---------- */
h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 64px;
  font-size: 17px;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.domain {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Apps ---------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid li {
  width: 156px;
}

.app {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.icon {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: 30px;
  background: var(--tile);
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.icon img {
  width: 60%;
  height: 60%;
}

.name {
  font-size: 17px;
  font-weight: 800;
}

.description {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

@media (hover: hover) {
  .app:hover .icon {
    transform: translateY(-6px) scale(1.06);
  }
}

.app:active .icon {
  transform: scale(0.95);
}

.app:focus-visible .icon {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

/* Espaço reservado para o próximo app. */
.soon .icon {
  border: 2px dashed var(--faint);
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 40px;
}

.soon .name {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Celular ---------- */
@media (max-width: 480px) {
  .grid {
    gap: 32px 16px;
  }

  .grid li {
    width: 148px;
  }

  .icon {
    width: 104px;
    height: 104px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon {
    transition: none;
  }
}
