/* Jupy Games studio pages: white with a dark orange accent. Game pages use their own theme. */
:root {
  --bg: #ffffff;
  --soft: #faf7f4;
  --line: #ece6df;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav.site a:first-child { margin-left: 0; }
nav.site a:hover { color: var(--accent); }

main { padding: 56px 0 64px; }

h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 16px; }
h1 span { color: var(--accent); }
h2 { font-size: 22px; letter-spacing: -0.3px; margin: 56px 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0; }
.rule { width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin: 26px 0 0; }

/* A game card: each game keeps its own look inside it */
.game {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.game:hover { color: var(--text); box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12); transform: translateY(-2px); }
.game .art { background: #0d0b24; display: flex; align-items: center; justify-content: center; padding: 22px; }
.game .art img { width: 110px; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.game .info { padding: 22px 24px; }
.game h3 { font-size: 22px; margin: 0 0 6px; }
.game p { margin: 0 0 12px; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: #fff1e8;
  border-radius: 999px;
  padding: 4px 12px;
}
.more { display: inline-block; margin-left: 10px; font-size: 15px; font-weight: 600; color: var(--accent); }

.contact { background: var(--soft); border-radius: 16px; padding: 22px 24px; }
.contact p { margin: 0; }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }

.center { text-align: center; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 18px;
  margin: 6px;
}
.button:hover { background: var(--accent-dark); color: #fff; }

@media (max-width: 560px) {
  main { padding: 40px 0 48px; }
  .game { grid-template-columns: 1fr; }
  .game .art img { width: 96px; }
  nav.site a { margin-left: 14px; }
}
