/* Wrenworks Arcade — shell styles.
   Simple monochrome light palette: warm off-white page, ink text,
   hairlines and whitespace instead of boxes. No accent colour in the
   shell at all — the only colour on a page lives inside the game art.
   The games keep their own art direction in their own stylesheets. */
:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --soft: #f2f1ec;
  --line: #e4e2da;
  --ink: #141310;
  --muted: #6d6a61;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem 4rem; }

/* Header — slim, quiet, consistent on every page */
header.site {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
header.site .brand {
  font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
header.site .brand span { color: var(--ink); }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.35rem; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
header.site nav a:hover { color: var(--ink); text-decoration: none; }
header.site nav a.here { color: var(--ink); }

/* Type scale */
h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 0.4rem 0 0.8rem; }
h2 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 650; margin: 2.4rem 0 0.55rem; }
h3 { font-size: 1.02rem; margin: 1.4rem 0 0.4rem; }
p { margin: 0.55rem 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.14em; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.kicker {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  font-weight: 600; color: var(--ink); margin: 0;
}

/* Open sections: whitespace and a hairline, never a box */
.section { border-top: 1px solid var(--line); margin-top: 3.4rem; padding-top: 2.1rem; }
.section h2 { margin-top: 0; }
.section > p { max-width: 40rem; }

/* Hero — this week's game owns the home page */
.hero { padding-top: 3rem; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 4.6rem); margin: 0.5rem 0 0.7rem; }
.hero-pitch { font-size: 1.24rem; line-height: 1.5; max-width: 36rem; margin: 0.4rem 0; }
.hero-meta { color: var(--muted); font-size: 0.98rem; margin: 0.7rem 0 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.5rem; }
.hero-shot {
  display: block; width: 100%; height: auto; margin-top: 2.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(20, 19, 16, 0.10), 0 2px 8px rgba(20, 19, 16, 0.05);
}
/* The hero game mount keeps the screenshot slot's top margin; the
   game frame inside centres itself at its natural width. */
.hero #game { margin-top: 2.4rem; }

/* Buttons — ink on paper, pill shape */
.btn {
  display: inline-block; padding: 0.62rem 1.45rem; border-radius: 999px;
  background: var(--ink); color: #ffffff; font-weight: 650; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer; font-size: 1rem; line-height: 1.35;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn.large { padding: 0.95rem 2.3rem; font-size: 1.1rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 550; }
.btn.ghost:hover { opacity: 0.7; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* Boards — bare tables, hairline rows */
table.board { width: 100%; border-collapse: collapse; margin: 0.8rem 0; }
table.board th, table.board td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); }
table.board th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
table.board td.num, table.board th.num { text-align: right; }

/* Signup — a slim strip, input and button as pills */
.signup { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0 0.4rem; max-width: 40rem; }
.signup input[type="email"], .signup input[type="text"] {
  flex: 1 1 16rem; padding: 0.62rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--soft); color: var(--ink);
  font-size: 1rem;
}
.signup input::placeholder { color: var(--muted); }

/* Likes — a quiet pill */
.like-row { display: flex; align-items: center; gap: 0.7rem; margin: 1.1rem 0; }
.like-btn {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.95rem; cursor: pointer; font-size: 0.92rem;
}
.like-btn:hover { color: var(--ink); }
.like-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }

/* Game page screenshots — borderless, rounded, quiet captions */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; margin: 1.6rem 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: var(--radius); display: block; border: 1px solid var(--line); }
.shots figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

footer.site {
  border-top: 1px solid var(--line); margin-top: 4.5rem; padding-top: 1.2rem;
  color: var(--muted); font-size: 0.92rem;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1rem 3rem; }
  .hero { padding-top: 2rem; }
  header.site nav { gap: 0.2rem 1rem; }
  .section { margin-top: 2.6rem; padding-top: 1.7rem; }
}
