/* Colours are the night palette of the Pallas key art. */
:root {
  color-scheme: dark;
  --bg: #101426;        /* sky, top band */
  --surface: #161e34;   /* sky, middle band */
  --line: #3a3a50;      /* slate outline */
  --ink: #e8e2cc;       /* moon */
  --muted: #a7a9bd;
  --accent: #f2b22b;    /* lamp */
  --accent-ink: #28283a;
  --forest: #0a1a22;    /* near trees */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

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

/* Pixel art is scaled by whole steps where possible and never smoothed. */
.pixel { image-rendering: pixelated; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand .mark { width: 32px; height: 32px; }
.brand .word { width: auto; height: 26px; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--ink); }

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* Lead band: the camp from the key art, with the page title over the sky. */

.band {
  background: var(--forest) url("img/hero-camp.png") center bottom / cover no-repeat;
  image-rendering: pixelated;
  border-bottom: 2px solid var(--line);
  padding: 44px 0 250px;
}

.band.small { padding: 40px 0 150px; }

.band .wrap { image-rendering: auto; }

.band .eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #28283a;
}

.band h1 img {
  display: block;
  width: min(484px, 100%);
}

.band p {
  max-width: 32em;
  margin: 0;
  font-size: 1.08rem;
  text-shadow: 0 1px 0 var(--bg), 0 0 12px var(--bg);
}

/* The store key art, shown whole on the game page. */

.keyart {
  background: var(--forest);
  border-bottom: 2px solid var(--line);
  text-align: center;
}

.keyart img {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* The tag from the key art: lamp yellow with a slate edge. */

.tag,
.button {
  display: inline-block;
  border: 2px solid var(--line);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 3px 3px 0 #28283a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.tag { padding: 2px 10px; font-size: 0.8rem; }

.button {
  margin-top: 24px;
  padding: 9px 18px;
  font-size: 0.92rem;
}

.button:hover { background: #ffe28c; }

/* Content */

main .wrap { padding-top: 44px; padding-bottom: 64px; }

h2 {
  margin: 46px 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent);
}

main .wrap > h2:first-child { margin-top: 0; }

h3 { margin: 28px 0 6px; font-size: 1.05rem; }

p, ul, dl { margin: 0 0 16px; }

ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }

.muted { color: var(--muted); }

.lede { font-size: 1.15rem; }

.card {
  margin: 24px 0;
  padding: 22px 24px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: 4px 4px 0 #0a0d1a;
}

.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }

.card.game {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.card.game img {
  flex: none;
  width: 96px;
  height: 96px;
  border: 2px solid var(--line);
}

.card.game > div > :last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
}

.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .card.game { flex-direction: column; }
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.shots li { margin: 0; }

.shots a {
  display: block;
  border: 2px solid var(--line);
  line-height: 0;
}

.shots a:hover,
.shots a:focus-visible { border-color: var(--accent); }

.shots img { display: block; width: 100%; }

/* Footer */

.site-footer {
  background: var(--forest);
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 30px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer a { color: var(--muted); }
