/* Message pages (the 404 page, site/templates/error.php) and empty states.
   The 404 sits on the map's yellow, like the start of the intro; its way
   back looks like a place on the map: a red dot with a label. */

.page-message-body {
  background: var(--color-map-land);
}

.page-message {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
  color: var(--color-text-primary);
}

.page-message__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  /* Mammane only has capitals (its lowercase glyphs are empty). */
  text-transform: uppercase;
}

/* Roboto Mono, not Mammane: Mammane has no digits either. */
.page-message__code {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(6rem, 24vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.page-message__text {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.1;
}

/* ---------- The way back: a "place" on the map ---------- */

.page-message__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.page-message__dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-text-primary);
}

/* Same look as the map labels (components/map.css), a bit larger. */
.page-message__label {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-text-primary);
  background: #fff;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-message__back:hover .page-message__label,
.page-message__back:focus-visible .page-message__label {
  background: var(--color-text-primary);
  color: #fff;
}

/* "No images yet" in a place's photo area. Light grey: it sits on the
   black photo background (a darker grey would fail text contrast there). */
.detail-panel__empty {
  font-size: 0.9rem;
  font-style: italic;
  color: #c7c7c7;
}
