body {
  margin: 0;
  background: #1c2226;
  color: #e4e0d6;
  font: 1rem/1.5 system-ui, sans-serif;
}

header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem max(1.5rem, calc((100% - 60rem) / 2));
  border-bottom: 4px solid #d4a24c;
  background: #12171a;
}

header img {
  image-rendering: pixelated;
}

h1, h2 {
  font-family: ui-monospace, Consolas, monospace;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

a {
  color: #d4a24c;
}

header a {
  margin-left: auto;
  font-weight: 600;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

article {
  padding: 1rem;
  border: 2px solid #4a555c;
  background: #2a3238;
}

article img {
  display: block;
  width: 100%;
  height: auto;
}

article h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.125rem;
}

article p {
  margin: 0.5rem 0 0;
}

@media (pointer: coarse) {
  body > :not(#gate-notice) { display: none !important; }
  #gate-notice {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: #fff;
    color: #111;
    font: 1.125rem/1.5 system-ui, sans-serif;
    text-align: center;
  }
}
