/* Colours in one place: change them here and the whole page follows. */
:root {
  --background: #221d19;
  --card: #f0e6d2;
  --historical: #8a5a2b;
  --mythical: #4b3f8f;
  --text: #2a241e;
  --text-light: #f0e6d2;
}

body {
  background: var(--background);
  color: var(--text-light);
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 auto;
  max-width: 70rem;
  padding: 1rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.card {
  background: var(--card);
  border: 0.4rem solid;
  border-radius: 0.8rem;
  color: var(--text);
  overflow: hidden;
}

.card.historical { border-color: var(--historical); }
.card.mythical { border-color: var(--mythical); }

.card img {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  width: 100%;
}

.card h2 {
  font-size: 1.2rem;
  margin: 0.8rem 0.8rem 0;
}

.card p {
  margin: 0.3rem 0.8rem 0.8rem;
}

.card .kind {
  font-size: 0.85rem;
  font-style: italic;
}

.problem {
  white-space: pre-line;
}
