:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  color: #203b31;
  background: #f6f4ec;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #205a42; text-underline-offset: .17em; }
a:focus-visible { outline: 3px solid #205a42; outline-offset: 4px; }

.site-header {
  padding: .8rem max(1.25rem, calc((100vw - 66rem) / 2));
  border-bottom: 1px solid #d6e0d2;
  background: #fffdf8;
}

.site-header a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; text-decoration: none; }
.site-header img { border-radius: 8px; }
main { max-width: 68.5rem; margin: auto; padding: 1.5rem 1.25rem 3rem; }
nav { margin-bottom: 1.25rem; }
nav span { margin-inline: .4rem; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.15; }
.intro { max-width: 55ch; font-size: 1.1rem; }
.duration { width: fit-content; padding: .3rem .75rem; border-radius: 2rem; background: #e2eedf; }

.game-list, .instructions {
  display: grid;
  gap: 1rem;
  padding: 0;
}

.game-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; }
.game-list a, .instructions {
  border: 1px solid #d6e0d2;
  border-radius: 1rem;
  background: #fffdf8;
}

.game-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  height: 100%;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
}
.game-list a:hover strong { text-decoration: underline; }
.game-list img { display: block; width: min(100%, 10.5rem); height: auto; aspect-ratio: 1; border-radius: 1.25rem; }
.game-list small { display: block; color: #41594d; }

.instructions { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); align-items: start; padding: clamp(1rem, 3vw, 2rem); }
.instructions h2 { margin-top: 0; }
.instructions ol { max-width: 64ch; padding-inline-start: 1.45rem; }
.instructions li + li { margin-top: .75rem; }
.instructions img { display: block; width: 100%; height: auto; border-radius: .75rem; }

@media (max-width: 42rem) {
  .instructions { grid-template-columns: 1fr; }
  .instructions img { max-width: 26rem; }
}
