* {
  margin: 0;
  padding: 0;
}

:root {
  --max-width: 58rem;

  --color-black:        #181a1c;
  --color-bg-dim:       #24272e;
  --color-bg0:          #2a2f38;
  --color-bg1:          #333846;
  --color-bg2:          #373c4b;
  --color-bg3:          #3d4455;
  --color-bg4:          #424b5b;
  --color-bg-red:       #55393d;
  --color-bg-yellow:    #4e432f;
  --color-bg-green:     #394634;
  --color-bg-blue:      #354157;
  --color-bg-purple:    #434058;
  --color-filled-red:   #ff6d7e;
  --color-filled-green: #a5e179;
  --color-filled-blue:  #7ad5f1;
  --color-fg:           #e1e3e4;
  --color-red:          #ff6578;
  --color-orange:       #f69c5e;
  --color-yellow:       #eacb64;
  --color-green:        #9dd274;
  --color-blue:         #72cce8;
  --color-purple:       #ba9cf3;
  --color-grey:         #828a9a;
  --color-grey_dim:     #5a6477;

  --color-primary: var(--color-green);
  --color-secondary: var(--color-orange);
  --color-link: var(--color-blue);
  --color-link-visited: var(--color-purple);
}

body {
  font-family: sans-serif;
  color: var(--color-fg);
  background-color: var(--color-bg0);
}


a:link,
a:active {
  color: var(--color-link);
  text-decoration: none;
}

a:visited {
  color: var(--color-link-visited);
  text-decoration: none;
}

header {
  padding: 20px 0 0 0;
}

.page-header img {
  height: 40px;
  image-rendering: crisp-edges;
}

.page-header > a:link,
.page-header > a:visited,
.page-header > a:active {
  font-size: 50px;
  font-weight: normal;
  line-height: 50px;
  color: var(--color-primary);
}

.page-header, main, nav {
  width: var(--max-width);
  margin: 0 auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto;
  max-width: var(--max-width);
  background-color: var(--color-bg-dim);
  padding: 10px 20px;
  box-sizing: border-box;
}

nav a:link,
nav a:visited,
nav a:active {
  color: var(--color-primary);
}

nav ul {
  list-style: none;
  margin: 0;
  line-height: 1.5;
}

nav ul li {
  display: inline;
  font-size: 120%;
  margin-right: 1.5em;
}

nav .active {
  color: var(--color-secondary);
}

article h1 {
  font-size: 40px;
  font-weight: normal;
  line-height: 45px;
  padding: 10px 0;
}

article h2 {
  font-size: 30px;
  font-weight: normal;
  padding: 10px 0;
}

.main-text p {
  margin: 20px 0;
  font-size: 15px;
  line-height: 20px;
}

.main-text ul, .main-text ol {
  margin: 20px;
}

.main-text li {
  font-size: 15px;
  line-height: 20px;
}

.game-header {
  background-color: var(--color-bg-dim);
  padding: 20px;
}

.game-header {
  display: flex;
  margin: 20px 0;
}

.game-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  padding-left: 20px;
}

.game-meta ul {
  list-style: none;
}

.game-meta dd {
  min-width: 0;
  overflow-wrap: anywhere;
  padding-left: 2rem;
}

.game-meta dt::after {
  content: ": ";
}

.screenshots figure {
  display: flex;
  flex-flow: column;
  max-width: 320px;
}

.screenshots figcaption {
  font-style: italic;
  text-align: center;
  padding: 0 10px;
}

.screenshots ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.screenshots ul li {
  display: inline;
}

.quotes figure {
  background-color: var(--color-bg-dim);
  padding: 5px;
  margin: 10px 0;
}

.quotes figcaption {
  margin-top: 10px;
}

.quotes figcaption::before {
  content: "\2014";
}

.quotes blockquote p::before {
  content: "\201E";
}

.quotes blockquote p::after {
  content: "\201C";
}

.games {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.game-card {
  background-color: var(--color-bg-dim);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  padding: 10px;
}

.game-card h1 {
  font-size: 25px;
  line-height: 25px;
  color: var(--color-fg);
  text-align: center;
}

.game-card img {
  max-width: 100%;

  width: auto;
  height: auto;

  margin: 0 auto;
  display: block;
}

.game-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
}

.game-card dd {
  min-width: 0;
  overflow-wrap: anywhere;
  justify-self: end;
}

.game-card dt::after {
  content: ": ";
}

footer {
  margin: 2em 0;
  text-align: center;
}

.footer-profiles {
  list-style: none;
}

.footer-profiles li {
  display: inline;
}

.footer-profiles li:not(:last-child)::after {
  content: " ";
  display: inline-block;
  text-align: center;
  width: 20px;
  margin: 0 10px;
  color: #999;
}
