:root {
  --paper: #f5f2eb;
  --ink: #1f1d1a;
  --muted: #6b665e;
  --rule: #d9d3c5;
  --red: #9b2c1f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--serif);
}

img { max-width: 100%; height: auto; display: block; }

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

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

/* header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 18px;
}
.brand { font-size: 21px; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-head nav { display: flex; gap: 20px; font: 15px/1.4 var(--sans); }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; }

/* intro */
.intro { padding: 56px 0 8px; }
.intro p { font-size: 23px; line-height: 1.45; margin: 0; max-width: 34em; }

/* games */
.game { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.game:last-of-type { border-bottom: 0; }

.game-top { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.game-art img { width: 180px; }
.game-art .icon { border-radius: 36px; }

.game h2 { font-size: 34px; line-height: 1.15; margin: 0 0 6px; }
.meta { font: 14px/1.5 var(--sans); color: var(--muted); margin: 0 0 18px; }
.game p { margin: 0 0 14px; }
.lead { font-style: italic; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px !important; font: 15px/1.4 var(--sans); }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 4px;
}
.btn:hover { background: var(--red); color: var(--paper); }
.note { font: 14px/1.5 var(--sans); color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.shots a { display: block; border: 1px solid var(--rule); background: #fff; }

/* screenshot lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 16px; border: 0; background: transparent; cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 18, 16, .92); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; background: none; color: #fff; font: 36px/1 var(--sans); cursor: pointer;
}

/* contact */
.contact { padding: 48px 0 64px; }
.contact h2 { font-size: 26px; margin: 0 0 8px; }
.contact p { margin: 0; }

/* text pages (privacy) */
.doc { padding: 48px 0 64px; max-width: 40em; overflow-wrap: break-word; }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); font: 14px/1.6 var(--sans); color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; }
.site-foot a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .intro { padding-top: 36px; }
  .intro p { font-size: 20px; }
  .game { padding: 40px 0; }
  .game-top { grid-template-columns: 1fr; gap: 20px; }
  .game-art img { width: 112px; }
  .game-art .icon { border-radius: 24px; }
  .game h2 { font-size: 28px; }
  .shots { grid-template-columns: 1fr; }
}
