On a scorching summer afternoon, the sand at the water's edge might feel pleasant, while just a few steps away, the dry part of the beach turns unbearably hot. The difference isn't random — it's physics.

"Dark sands absorb more solar radiation and can become much hotter than whiter ones," says Shu Yang, a materials scientist at the University of Pennsylvania. When the air temperature sits around 75 degrees Fahrenheit, sand can climb above 100 degrees Fahrenheit. On a truly hot day — 90 degrees Fahrenheit — it can top 120 degrees Fahrenheit, which is hot enough to burn skin.

There's actually a name for the blistered soles that follow: "beach feet." Yang says the standard advice to walk along the wet sand near the waterline holds up to science. Wet sand stays cooler because water conducts heat well and carries it away as it evaporates.

But here is something that might change how people see that annoying grit: sand is one of the most important materials on Earth. After water, it is the second-most-used natural resource on the planet. The world goes through roughly 50 billion tons a year — enough to build a nine-story wall around the entire globe.

"We're pulling it from rivers, coasts and seabeds faster than the hundreds of thousands of years Earth took to make it," Yang says.

Yet not all sand is created equal. Deserts are full of it, but that wind-smoothed dune sand is nearly useless for construction. The grains that work best come from places beaten by waves over thousands of years, ground down into shapes that lock together better.

That same history explains why beaches look so different. Hawaiʻi's Papakōlea Beach appears green because of olivine crystals in the sand. The black sands of Iceland and parts of Hawaiʻi are made of crushed volcanic rock. Bermuda's famous pink sands get their color from the red shells of tiny sea creatures called foraminifera.

For anyone building sandcastles, the magic ingredient is water — not too much, just enough. Dry sand is governed only by friction, so it won't hold a shape. But a little moisture creates tiny liquid bridges between grains that pull them together and make structures possible. Once skin dries, those bridges vanish and sand brushes right off.

Sand shows up in more places than most people realize. Every computer chip contains silicon refined from beach sand to extraordinary purity — about 99.9999999 percent pure, meaning just one stray atom for every billion atoms of silicon. That same sand becomes the glass in windows, the filters in water systems and, increasingly, the raw material for more sustainable building projects that scientists like Yang are developing.

So the next time grit finds its way into a sandwich or a shoe, it might help to remember: that humble, ubiquitous material is quietly holding together the modern world.