@font-face {
  font-family: Oranienbaum;
  src: url("fonts/oranienbaum.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Oswald;
  src: url("fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  color: #f8e8c9;
  background: #1c1511;
  font: 1rem/1.48 Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0, #433024 0, #231912 55%, #1c1511 85%);
}

.programme {
  width: min(76rem, calc(100% - 3rem));
  margin: auto;
  padding: clamp(2rem, 5vw, 4.75rem) 0 4rem;
}

.masthead {
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #8e693d;
  text-align: center;
}

.wordmark {
  margin: 0;
  color: #efc789;
  font: 500 1rem/1.4 Oswald, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1, h2 { font-family: Oranienbaum, Georgia, serif; font-weight: 400; }

h1 {
  margin: .3rem 0 0;
  font-size: clamp(3.5rem, 8vw, 6.25rem);
  line-height: 1;
}

.games {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.games li { grid-column: span 2; }
.games li:nth-child(n + 4) { grid-column: span 3; }

.game {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #9a7346;
  border-radius: .25rem;
  box-shadow: 0 .45rem 1.2rem #0f090680;
  background: var(--panel, #2c221a);
  color: inherit;
  text-decoration: none;
}

.game:hover { border-color: #f2c788; }
.game:focus-visible { outline: 3px solid #ffdf97; outline-offset: 4px; }

.game--murdoku { --panel: #28261f; }
.game--matinee { --panel: #392019; }
.game--lights { --panel: #252a29; }
.game--watch { --panel: #292722; }
.game--doors { --panel: #39261b; }

.scene {
  display: block;
  width: 100%;
  height: clamp(11rem, 20vw, 16rem);
  object-fit: cover;
  border-bottom: 1px solid #a07a4b;
}

.game--lights .scene, .game--doors .scene { object-position: 50% 45%; }
.game--watch .scene { object-position: 50% 42%; }

.game-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 2.4vw, 1.65rem);
}

.genre {
  margin: 0;
  color: #edbf80;
  font: 500 .82rem/1.4 Oswald, sans-serif;
  letter-spacing: .085em;
  text-transform: uppercase;
}

h2 {
  margin: .25rem 0 .45rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.07;
}

.description { margin: 0 0 1.2rem; color: #efdcbf; }

.action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  align-self: start;
  min-width: 7rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding: .4rem .75rem;
  border: 1px solid #ad8452;
  border-radius: .15rem;
  color: #f8e7c6;
  font: 500 1rem/1.2 Oswald, sans-serif;
}

.action span { color: #edbf80; }
.game:hover .action, .game:focus-visible .action { background: #734024; }

@media (max-width: 56rem) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games li, .games li:nth-child(n + 4) { grid-column: auto; }
}

@media (max-width: 34rem) {
  .programme { width: calc(100% - 2rem); }
  .games { grid-template-columns: minmax(0, 1fr); }
  .scene { height: auto; aspect-ratio: 16 / 9; }
}
