:root {
  --bg: #000;
  --fg: #fff;
  --dim: #7a7a7a;
  --line: #1e1e1e;
  --bar-h: 4.5rem;
  --foot-h: 3.5rem;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --font: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---- top bar ---- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
}

.nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--fg);
}

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 6px;
}

/* ---- bottom bar ---- */

.foot {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--foot-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 2.5rem);
  padding: 0 var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.copy {
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}


/* the bar is fixed, so it must stay one row — tighten instead of wrapping */
@media (max-width: 30rem) {
  .foot { gap: 0.75rem; }
  .copy { font-size: 0.6875rem; letter-spacing: 0.08em; }
}

/* ---- page body ---- */

.page {
  min-height: 100vh;
  padding: var(--bar-h) var(--pad) var(--foot-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  margin: 0;
  line-height: 0;
}

/* the PNG carries ~19% transparent margin of its own, so the drawn mark
   ends up noticeably smaller than this box — sized with that in mind */
.logo img {
  display: block;
  width: clamp(12rem, 34vmin, 22rem);
  height: auto;
  user-select: none;
}

.about-copy {
  max-width: 34rem;
  text-align: center;
}

.about-copy p {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.65;
}

.about-copy p + p {
  margin-top: 1.25rem;
}

.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  width: 100%;
}

/* portrait store art, 2:3 — the game's name is part of the artwork,
   so the cards carry no caption of their own */
.card {
  display: block;
  text-decoration: none;
  width: clamp(8.5rem, 21vw, 15rem);
  filter: brightness(0.88);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.card:hover,
.card:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-6px);
}

.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  color: var(--dim);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.os {
  width: 0.8125rem;
  height: 0.8125rem;
  fill: currentColor;
  flex: none;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: filter 0.2s ease; }
  .card:hover, .card:focus-visible { transform: none; }
}

@supports (min-height: 100svh) {
  body, .page { min-height: 100svh; }
}
