/* Hobo Nonsense — one page, papered in its own name. */

:root {
  --bg: #0c1012;
  --wall: #46535a;      /* the lettering */
  --light: #e6efee;     /* from the Flatblock logo */
  --orange: #f5b478;
  --teal: #70dfd0;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  /* set by js/main.js */
  --wall-size: 1.5vw;
  --bindle-height: 62vw;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--light);
  font-family: var(--mono);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- the wallpaper ---------- */

.wall {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--wall);
  font-family: var(--mono);
  font-size: var(--wall-size);
  line-height: 1.2;
  letter-spacing: 0;
  font-variant-ligatures: none;
  white-space: pre;
  user-select: none;
  pointer-events: none;
}

/* ---------- the game ---------- */

main {
  position: relative;
  padding: calc(var(--bindle-height) + clamp(24px, 5vw, 64px)) 16px clamp(64px, 12vw, 160px);
}

.game {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px);
  background: var(--bg);   /* a second hole in the lettering */
}

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

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 18px);
  margin: clamp(18px, 4vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.downloads a {
  display: block;
  padding: 16px 8px 15px;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.downloads a:hover { background: var(--orange); color: var(--bg); }
.downloads a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.downloads a:disabled {
  border-color: var(--wall);
  color: var(--wall);
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .downloads { grid-template-columns: 1fr; }
}
