:root {
  --ink: #e9e0cc;
  --dim: #9c9482;
  --night: #0d0f0f;
  color-scheme: dark;
}

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

@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/imfell-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "IM Fell English", "Iowan Old Style", Palatino, Georgia, serif;
  font-style: italic;
  line-height: 1.5;
}

.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background:
    linear-gradient(to bottom, rgb(13 15 15 / 0.15), rgb(13 15 15 / 0.35) 60%, var(--night)),
    url("/img/woods.png") center 35% / cover no-repeat;
  image-rendering: pixelated;
}

h1 {
  margin: 0;
  font-family: "Jacquard 24", "UnifrakturMaguntia", serif;
  font-style: normal;
  font-weight: 400;
  /* The face is drawn on a 24 px grid: whole multiples stay crisp. */
  font-size: 48px;
  line-height: 1;
  color: #e6dcc2;
  text-shadow:
    4px 4px 0 #050707,
    0 0 18px rgb(120 200 150 / 0.35),
    0 0 48px rgb(60 140 100 / 0.3);
  animation: flicker 7s steps(1) infinite;
}

@media (min-width: 560px) { h1 { font-size: 72px; } }
@media (min-width: 900px) { h1 { font-size: 120px; } }

/* A guttering lamp: mostly steady, now and then a dip. */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41%      { opacity: 0.86; }
  42%      { opacity: 1; }
  43%      { opacity: 0.7; }
  44%      { opacity: 1; }
  78%      { opacity: 0.9; }
  79%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) { h1 { animation: none; } }

.tag {
  max-width: 27em;
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  color: var(--ink);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.9);
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.clips {
  display: grid;
  gap: 3rem;
  justify-items: center;
}

/* The clips are the game's 480x270 at exactly 2x. */
figure { margin: 0; width: 100%; max-width: 960px; }

figure video,
figure img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border: 1px solid #262a29;
}

figure .still { display: none; }

@media (prefers-reduced-motion: reduce) {
  figure video { display: none; }
  figure .still { display: block; }
}

figcaption {
  margin-top: 0.6rem;
  font-size: 1.3rem;
  color: var(--dim);
}

.status {
  margin: 3rem 0 0;
  text-align: center;
  font-family: "Jacquard 24", serif;
  font-style: normal;
  font-size: 48px;
  line-height: 1;
  color: #7f8f84;
  text-shadow: 3px 3px 0 #050707;
}

footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }
