/* KaiserGames: a plain studio site. The studio stays neutral so the
   later games each bring their own colour; Otherworldly Hero's band is
   the only dark, painted part of the front page. */

:root {
  --ink: #17171a;
  --ink-soft: #55555c;
  --line: #e4e2dd;
  --paper: #fbfaf7;
  --card: #ffffff;
  --gold: #c8962e;
  --gold-deep: #9a6f17;
  --night: #121018;
  --radius: 10px;
  --wrap: 1100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.pixel { image-rendering: pixelated; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* Studio intro */
.intro { padding: 72px 0 56px; text-align: center; }
.intro img { width: min(300px, 70vw); margin: 0 auto 28px; }
.intro p { color: var(--ink-soft); font-size: 1.15rem; max-width: 36em; margin: 0 auto; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: #d9a73c; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-plain { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-plain:hover { border-color: var(--ink-soft); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
/* A link button waits hidden until site.js finds its address filled in. */
[data-link] { display: none; }
[data-link].ready { display: inline-flex; }
[data-link="steam"].ready + .steam-wait { display: none; }
[data-needs] { display: none; }
[data-needs].ready { display: block; }

/* The game's band */
.game { position: relative; color: #f4efe6; background: var(--night); overflow: hidden; }
.game-art { position: absolute; inset: 0; background: url("../img/oh-painting.jpg") center / cover no-repeat; }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,16,24,.92) 0%, rgba(18,16,24,.72) 45%, rgba(18,16,24,.15) 100%); }
.game .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; }
.game-copy { max-width: 520px; }
.game-copy .logo { width: min(440px, 100%); margin-bottom: 18px; }
.tag { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #e7c77c; border: 1px solid rgba(231,199,124,.5); border-radius: 99px; padding: 4px 12px; margin-bottom: 18px; }
.game-copy p { font-size: 1.1rem; color: #e6dfd2; margin: 0 0 26px; }

/* Features */
.section { padding: 64px 0; }
.section h2 { font-size: 1.6rem; }
.lede { color: var(--ink-soft); max-width: 40em; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Community strip */
.community { border-top: 1px solid var(--line); }
.community .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.community p { margin: 0; color: var(--ink-soft); }

/* Press kit */
.page-head { padding: 56px 0 8px; }
.page-head p { color: var(--ink-soft); max-width: 40em; }
.kit { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding-bottom: 64px; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts dl { margin: 0; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.kit h2 { font-size: 1.3rem; margin-top: 36px; }
.kit h2:first-child { margin-top: 0; }
.kit ul { padding-left: 1.2em; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.file { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.file:hover { border-color: var(--ink-soft); }
.file .thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; background: #2a2630; padding: 12px; }
.file .thumb.light { background: #f1efe9; }
.file .thumb img { max-height: 100%; object-fit: contain; }
.file .thumb:has(img.cover) { padding: 0; }
.file .thumb img.cover { width: 100%; height: 100%; object-fit: cover; }
.file span { display: block; padding: 10px 12px; font-size: .88rem; }
.file small { color: var(--ink-soft); }
.note { color: var(--ink-soft); font-style: italic; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: .9rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); }

@media (max-width: 760px) {
  .nav { gap: 14px; }
  .brand { font-size: 1rem; }
  .intro { padding: 48px 0 40px; }
  /* A phone shows the painting as a clear strip (the hero and the Tree)
     with the logo rising out of its lower edge. */
  .game .wrap { padding-top: 190px; padding-bottom: 52px; }
  .game-art { bottom: auto; height: 300px; background-position: 97% 30%; }
  .game-art::after { background: linear-gradient(180deg, rgba(18,16,24,0) 0%, rgba(18,16,24,.25) 45%, var(--night) 100%); }
  .kit { grid-template-columns: 1fr; gap: 28px; }
}
