/* Stanktown Games — one stylesheet, no framework.
   Readability rules apply sitewide: 16px+ body text, AA contrast,
   nothing lives only in a hover, everything works at 380px wide. */

:root {
  --bg: #0a0d0b;
  --bg-raise: #101612;
  --line: #223226;
  --ink: #d9e4da;
  --ink-dim: #93a596;
  --stank: #7ee083;        /* swamp neon */
  --stank-deep: #2e5c36;
  --brass: #e8b45a;        /* marquee amber */
  --danger: #e07a5f;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}
/* faint CRT wash — decorative only, text never sits under it at low contrast */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px);
}
main, header, footer { position: relative; z-index: 1; }

a { color: var(--stank); }
a:hover, a:focus-visible { color: #a9f0ac; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.hero pre.skyline {
  color: var(--stank-deep); margin: 0 0 10px; font-size: clamp(6px, 1.2vw, 12px);
  line-height: 1.15; overflow-x: hidden; user-select: none;
}
.hero h1 {
  margin: 0; font-size: clamp(34px, 6vw, 64px); letter-spacing: .08em;
  color: var(--stank); text-shadow: 0 0 22px rgba(126,224,131,.35);
}
.hero h1 .games { color: var(--brass); text-shadow: 0 0 22px rgba(232,180,90,.3); }
.hero .tag { margin: 10px 0 0; color: var(--ink-dim); font-size: 18px; max-width: 62ch; }
.hero nav { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hero nav a {
  text-decoration: none; border: 1px solid var(--line); padding: 8px 14px;
  border-radius: 4px; background: var(--bg-raise);
}
.hero nav a:hover { border-color: var(--stank-deep); }

/* ---------- sections ---------- */
section { padding: 44px 0 12px; }
section > .wrap > h2 {
  font-size: 24px; letter-spacing: .12em; color: var(--brass); margin: 0 0 6px;
  padding-left: 4ch; text-indent: -4ch; /* wrapped lines align under the text, not the glyph */
}
section > .wrap > h2::before { content: "░▒▓ " / ""; color: var(--stank-deep); }
section > .wrap > .sub { margin: 0 0 24px; color: var(--ink-dim); max-width: 70ch; }

/* ---------- game grid ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  padding-bottom: 24px;
}
.card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--stank-deep); transform: translateY(-2px); }
.card .shot { position: relative; aspect-ratio: 16 / 10; background: #000; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .shot .badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 14px; letter-spacing: .08em; padding: 3px 9px; border-radius: 3px;
  background: #000c; border: 1px solid var(--line); color: var(--ink);
}
.badge.live { color: #9df3a1; border-color: var(--stank-deep); }
.badge.playtest { color: var(--brass); border-color: #6b5426; }
.badge.proto { color: var(--ink-dim); }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; color: var(--ink); letter-spacing: .04em; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card .chip {
  font-size: 14px; color: var(--ink-dim); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.card .tagline { margin: 0; color: var(--stank); font-size: 15px; }
.card .pitch { margin: 0; color: var(--ink-dim); font-size: 14.5px; flex: 1; }
.card .actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-family: inherit; font-size: 15px;
  padding: 10px 18px; border-radius: 4px; border: 1px solid var(--stank-deep);
  background: linear-gradient(180deg, #14301a, #0e2113); color: #c9f5cc;
  letter-spacing: .06em; min-height: 44px; line-height: 24px;
}
.btn:hover { background: linear-gradient(180deg, #1a3f22, #123018); color: #eafff0; }
.btn.alt { border-color: var(--line); background: transparent; color: var(--ink-dim); }
.btn.alt:hover { color: var(--ink); border-color: var(--stank-deep); }
.card .sidelink { font-size: 14.5px; padding: 8px 0; }
/* imageless cards: keep the button right under the text instead of bottom-anchoring */
.card.noshot .pitch { flex: 0 0 auto; }

/* concept strip (no build yet — text only) */
.brewing {
  border: 1px dashed var(--line); border-radius: 6px; padding: 14px 18px;
  color: var(--ink-dim); font-size: 14.5px; margin-bottom: 24px;
}
.brewing strong { color: var(--ink); }

/* ---------- books ---------- */
.shelf { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-bottom: 24px; }
.book {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.book img.cover { width: 100%; max-width: 220px; height: auto; border: 1px solid var(--line); border-radius: 3px; align-self: center; }
.book h3 { margin: 0; font-size: 18px; }
.book p { margin: 0; color: var(--ink-dim); font-size: 14.5px; flex: 1; }

/* ---------- about / footer ---------- */
.about p { max-width: 72ch; color: var(--ink-dim); }
.about p strong { color: var(--ink); }
footer {
  margin-top: 40px; border-top: 1px solid var(--line); padding: 26px 0 40px;
  color: var(--ink-dim); font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 420px) {
  .grid, .shelf { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
}
