A versatile preposition built around the core idea of being "in" something
Encoding Strategies:
linguistic

in
in / inside
En means in and is a direct cognate of the English word. Nearly every way it's used connects back to being inside something0.
en
in, inside (enclosed space)
Being inside a physical space or container.
Hay leche en el refrigeradorThere is milk in the refrigerator
Estamos en la casaWe are in the house
on (surface)
Something resting on a surface is 'in' the space of that surface.
Los platos están en la mesaThe plates are on the table (the plates are in the table)
Hay una mancha en tu camisaThere's a stain on your shirt (there's a stain in your shirt)
at (location / institution)
Where English says "at" for places and institutions, Spanish just says "in."
Los niños están en la escuelaThe kids are at school (the kids are in the school)
Te veo en la fiestaI'll see you at the party (I'll see you in the party)
in (period or year)
Something happening in a period of time is 'inside' that stretch of time.
En 1969 llegamos a la lunaIn 1969 we reached the moon
En verano hace mucho calorIn summer it's very hot
in (manner or way)
When you do something a certain way, you are operating 'inside' that style or form.
Háblame en españolTalk to me in Spanish
Lo dijo en voz bajaHe said it in a low voice
by, in, on (vehicle or transport)
When you travel using a vehicle, you are literally 'inside' it.
Fui en aviónI went by plane (I went in a plane)
Prefiero ir en trenI prefer to go by train (I prefer to go in a train)
about, in (topic of thought)
When you're deep in thought 'about' something, your mind is 'in' that topic.
¿En qué piensas?What are you thinking about? (in what are you thinking)
Siempre piensa en el trabajoHe always thinks about work (he always thinks in work)