@font-face {
  font-family: "Michroma";
  src: url("fonts/michroma.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #f2f2f2;
  --muted: #8c8c8c;
  --line: #1f1f1f;
  --card: #0a0a0a;
  --red: #da0909;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--fg);
  text-decoration: underline 1px #3a3a3a;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: var(--red);
}

header,
main,
footer {
  width: min(960px, 100% - 32px);
  margin: 0 auto;
}

header {
  padding-top: 40px;
  text-align: center;
}

.logo {
  width: min(320px, 70vw);
  height: auto;
}

section {
  margin-top: 64px;
}

h2 {
  margin: 0 0 24px;
  font: 1.1rem "Michroma", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--red);
}

.soon {
  color: var(--red);
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Background eyes */

.eyes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.eye {
  position: absolute;
  translate: -50% -50%;
  overflow: visible;
}

.eye path {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.25px;
  /* Same line weight at every eye size. */
  vector-effect: non-scaling-stroke;
}

.eye circle {
  fill: var(--red);
}

.eye .iris {
  transition: transform 0.2s ease-out;
}

.eye .lid {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.1s;
}

.eye.blink .lid,
.eye.shut .lid {
  transform: scaleY(0);
}

/* Services */

.services li {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4px 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.services li:last-child {
  border-bottom: 1px solid var(--line);
}

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

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

/* Mods */

.mods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mods li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}

.mods li:hover {
  border-color: #3a3a3a;
}

.mods img {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}

.mods img.pixel {
  image-rendering: pixelated;
}

.mods h3 {
  font-size: 1.15rem;
}

.mods p {
  color: var(--muted);
  font-size: 0.95rem;
}

.mods .meta {
  font-size: 0.8rem;
}

.mods nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
}

.more {
  margin-top: 32px;
  color: var(--muted);
  text-align: center;
}

/* Stats */

.logo.small {
  width: 160px;
}

.total {
  font: 3rem/1.2 "Michroma", sans-serif;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
}

.platforms div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.platforms dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.platforms dd {
  margin: 0;
  font: 1.5rem/1.4 "Michroma", sans-serif;
}

.scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  padding-left: 0;
  text-align: left;
  white-space: normal;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: normal;
}

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

td:first-child,
td:last-child {
  color: var(--fg);
}

.updated {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Shop */

.product {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: 48px;
}

.product img {
  width: 100%;
  height: auto;
}

h1 {
  margin: 0 0 16px;
  font: 1.6rem/1.3 "Michroma", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.buy {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 24px;
  border: 1px solid var(--red);
  font: 0.8rem "Michroma", sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s;
}

a.buy:hover {
  background: var(--red);
}

/* Not on sale yet, so not a link. */
p.buy {
  border-color: var(--line);
}

.notify {
  margin-top: 40px;
}

.notify label {
  display: block;
  margin-bottom: 8px;
}

.notify div {
  display: flex;
  gap: 8px;
}

.notify input {
  flex: 1;
  /* Lets the field shrink below its default 20 character width on phones. */
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font: inherit;
}

.notify input:focus {
  border-color: #3a3a3a;
  outline: none;
}

.notify button {
  padding: 10px 18px;
  border: 1px solid var(--red);
  background: none;
  color: var(--fg);
  font: 0.8rem "Michroma", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.notify button:hover {
  background: var(--red);
}

.notify small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.notify .nonce {
  display: none;
}

.mockups {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: 16px;
}

.mockups img {
  display: block;
  width: 100%;
  height: auto;
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 96px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: inherit;
}

@media (max-width: 720px) {
  section {
    margin-top: 48px;
  }

  .services li {
    grid-template-columns: 1fr;
  }

  .mods,
  .product,
  .mockups {
    grid-template-columns: 1fr;
  }

  .total {
    font-size: 2rem;
  }

  .platforms {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .platforms div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
  }

  .platforms dd {
    font-size: 1.1rem;
  }

  /* Platform totals are listed above, keep only mod and total. */
  th:not(:first-child, :last-child),
  td:not(:first-child, :last-child) {
    display: none;
  }
}
