/* The place pages (worker/places.ts) and the 404 page: the map's haze, the
   HUD's ink boxes with a paper border and a hard shadow, the pixel fonts. */
:root {
  --haze: #ccd6e3;
  --ink: #1b2230;
  --paper: #e9e4d6;
  --muted: #4a5568;
  --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--haze); color: var(--ink); }
body {
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

.bar {
  background: var(--ink);
  color: #fff;
  border-bottom: 2px solid var(--paper);
  padding: 12px max(16px, calc((100vw - 1040px) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}
.brand { font-family: "Silkscreen", monospace; font-size: 20px; letter-spacing: 1px; text-decoration: none; }
.bar nav { display: flex; gap: 20px; font-family: "Pixelify Sans", system-ui, sans-serif; font-size: 16px; }
.bar nav a { text-decoration: none; opacity: 0.9; }
.bar nav a:hover, .bar nav a:focus-visible { opacity: 1; text-decoration: underline; }

main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 16px 48px; flex: 1; }
.place { max-width: 800px; }
h1, h2 { font-family: "Pixelify Sans", system-ui, sans-serif; font-weight: 500; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 46px); margin: 4px 0 18px; }
h2 { font-size: 24px; margin: 32px 0 10px; }
.kicker { margin: 0; font-family: "Pixelify Sans", system-ui, sans-serif; color: var(--muted); font-size: 16px; }
.lede { max-width: 64ch; }

.shot, .grid img {
  display: block;
  border: 2px solid var(--paper);
  box-shadow: 4px 4px 0 var(--shadow);
  background: var(--ink);
}
/* the pictures are the share links' (1,200 x 630, the map over the
   TINY.LONDON band): here only the map part shows, the bar above names the site */
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 470; object-fit: cover; object-position: top; image-rendering: pixelated; }
.open {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--paper);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 10px 16px;
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-size: 18px;
  text-decoration: none;
}
.open:hover, .open:focus-visible { background: #2a3448; }
.near { padding-left: 1.2em; }
.near li { margin: 4px 0; }
.near span { color: var(--muted); font-size: 15px; }
.more { margin-top: 32px; color: var(--muted); }

.grid {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 22px;
}
.grid a { display: grid; gap: 4px; text-decoration: none; }
.grid img { width: 100%; height: auto; aspect-ratio: 1200 / 470; object-fit: cover; object-position: top; image-rendering: pixelated; }
.grid .n { font-family: "Pixelify Sans", system-ui, sans-serif; font-size: 18px; margin-top: 6px; }
.grid .b { color: var(--muted); font-size: 14px; }
.grid a:hover .n, .grid a:focus-visible .n { text-decoration: underline; }

footer { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

.missing { max-width: 640px; }
