/* Layout only: every decoration on the page is one of the game's own pictures. */
@font-face {
  font-family: 'Fredoka';
  src: url('fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { background: #6b3a2a; }
body { margin: 0; font-family: 'Fredoka', system-ui, sans-serif; color: #4a2410; text-align: center; }
h1, h2, p, ul { margin: 0; }

.backdrop img {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 16px 32px;
}

.intro { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 460px; }
h1 { width: 100%; line-height: 0; }
.logo { width: min(100%, 420px); height: auto; }

/* the game's parchment panel, as a nine-slice */
.card {
  width: 100%;
  border: 20px solid transparent;
  border-image: url('art/panel.png') 42 fill / 20px stretch;
  padding: 2px 6px;
}
h2 { font-size: 34px; line-height: 1.15; color: #7d1428; }
.card p, .card ul { margin-top: 8px; font-size: 16px; line-height: 1.35; }
.card .tagline { font-size: 20px; font-weight: 600; }
.tagline span { display: inline-block; }
.card ul { padding: 0; list-style: none; font-weight: 600; }
footer { margin-top: 12px; font-size: 13px; }
footer a { color: #7d1428; overflow-wrap: anywhere; }

.shots { display: grid; grid-template-columns: minmax(0, 290px); justify-content: center; gap: 16px; width: 100%; }
.shots img { display: block; width: 100%; height: auto; }

@media (min-width: 600px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 290px)); }
}

/* wide screens: text on the left, the two screens beside it, all in one view */
@media (min-width: 1000px) and (min-height: 600px) {
  main { flex-direction: row; justify-content: center; gap: 32px; min-height: 100vh; padding: 20px 32px; }
  .intro { flex: 0 0 410px; }
  .logo { width: auto; max-width: 100%; max-height: 38vh; }
  .shots { flex: 0 1 auto; grid-template-columns: repeat(2, minmax(0, calc((100vh - 80px) * 580 / 1259))); }
}
