@font-face {
  font-family: Barlow;
  src: url('../fonts/barlow-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #edf0f4;
  color: #202435;
  font: 1rem/1.35 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2 { margin: 0; }
a { color: inherit; }
.arcade {
  width: min(76rem, calc(100% - clamp(2rem, 10vw, 11rem)));
  margin-inline: auto;
  padding-bottom: 2rem;
}
.arcade-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(2.1rem, 10vh, 6.65rem) 0 clamp(1.25rem, 4vw, 3.4rem);
}
h1 {
  font: 600 clamp(3.75rem, 9vw, 8.3rem)/.84 Barlow, system-ui, sans-serif;
  letter-spacing: -.063em;
}
.hangar-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  font-size: .9rem;
  text-decoration: none;
}
.hangar-link::before {
  content: '';
  width: .5rem;
  height: .5rem;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  rotate: 45deg;
}
.hangar-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .26em; }
.games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 28px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.game { --accent: #2651a5; position: relative; min-width: 0; }
.game.light { --accent: #644293; }
.game.ridge { --accent: #9b3f29; }
.game.polaris { --accent: #245879; }
.game h2 { font: 600 clamp(1.3rem, 2.5vw, 2.1rem)/1.1 Barlow, system-ui, sans-serif; letter-spacing: -.015em; }
.game img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.2;
  object-fit: cover;
}
.play {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .25rem;
  text-decoration: none;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.play::before { content: ''; position: absolute; inset: 0; }
.play::after {
  content: '';
  flex: none;
  border-block: 5px solid transparent;
  border-left: 8px solid var(--accent);
  margin-inline-end: .2rem;
}
.play:hover { color: var(--accent); text-decoration: underline; }
.play:focus-visible { outline: none; text-decoration: underline; }
.game:has(.play:focus-visible), .hangar-link:focus-visible { outline: 2px solid #324aa4; outline-offset: 4px; }
@media (max-width: 960px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .arcade { width: calc(100% - 36px); }
  .arcade-header { padding-top: 2rem; }
  .games { grid-template-columns: 1fr; gap: 12px; }
  .game {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    align-items: center;
    background: #e1e6ee;
  }
  .game h2 { padding-inline: clamp(.6rem, 3vw, 1.25rem); }
  .game img { aspect-ratio: 1.36; }
  .game.light { background: #e8e0f0; }
  .game.ridge { background: #f0e1d9; }
  .game.polaris { background: #dce5ec; }
}
