  From the onset of the subject, granular media have been defying the toolkit
of statistical mechanics thus preventing from understanding their
thermodynamical and rheological properties and making them one of the key
remaining mysteries in science. In the present work, we offer a resolution to
this problem in the case of static granular media by considering a collective
behavior of 2D identical balls forming a granular pile in the gravity field,
which allows us to develop its thermodynamics and rheology from the first
principles. Besides the uncertainty due to rough substrate on which the pile is
built, we uncover another one due to ambiguities occurring in the positions of
some interior balls. Both are responsible for the thermodynamic description of
the granular pile, which proves to be anything but ordinary. In particular, we
show that a pile is characterized by three temperatures: one is infinite, the
other is negative, and the third is of higher-order. Also, considering the
fields of ball displacements $\boldsymbol{\xi}$ and the normal force deviations
$\delta\boldsymbol{N}$ from the ideal isosceles triangular structure of a
regular pile reveals the hyperbolic nature of the $\boldsymbol{\xi}$-field and
ability of the $\delta\boldsymbol{N}$-field to change the characteristic type
from hyperbolic to elliptic. The latter property not only explains the origin
of force chains and provides an adequate description of the rheology of static
granular media, but turned out to be instrumental for understanding of granular
media thermodynamics. Our model should provide a basis for further grasping of
granular media properties, in general.
