@font-face {
  font-family: Inter;
  src: url("/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

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

@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f2e6d5;
  --muted: #ccc1bf;
  --ground: #191d2b;
  --rule: #68505a;
  --amber: #f4cb92;
  --terminal: #9bdef0;
  --mono: "IBM Plex Mono", monospace;
  --display: Righteous, system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--amber);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 4rem), 74rem);
  margin-inline: auto;
}

.masthead {
  border-bottom: 1px solid #665057;
  background: radial-gradient(ellipse at 12% 110%, #3b2b35 0%, #262735 57%, #212432 100%);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 7rem;
}

.studio-logo {
  display: block;
  flex: 0 1 auto;
  width: clamp(10rem, 54vw, 19.375rem);
  min-width: 0;
  height: auto;
}

.logo-fire {
  transform-origin: 45px 69px;
}

.masthead a {
  flex-shrink: 0;
  color: var(--muted);
  font: 0.8125rem var(--mono);
}

.hero {
  border-top: 0.5rem solid #1b1e2b;
  background: #262839;
  box-shadow: inset 0 3px #393443;
}

@media (width > 56rem) {
  .hero {
    /* The wall panels match the uprights at the top of the wide illustration. */
    background: linear-gradient(to right,
      #222535 16.84%, #1c202e 16.84% 17.71%, #303345 17.71% 18.23%,
      #262839 18.23% 85.42%,
      #1c202e 85.42% 86.29%, #303345 86.29% 86.81%, #222535 86.81%);
  }
}

.hero-copy {
  padding-block: clamp(3.5rem, 6.5vw, 6.5rem) clamp(2rem, 4vw, 3.75rem);
}

.intro {
  display: grid;
  justify-items: center;
  gap: clamp(1.75rem, 2.7vw, 2.5rem);
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--amber);
  font: 400 clamp(2.625rem, 10vw, 5.75rem)/1 var(--display);
  letter-spacing: -0.035em;
  text-shadow: 0 4px #3e2534;
}

.pitch,
.founder {
  max-width: 55ch;
  margin: 0;
  line-height: 1.72;
  text-wrap: balance;
}

.pitch {
  font-size: clamp(1.125rem, 1.45vw, 1.25rem);
}

.founder {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
}

.founder strong {
  color: var(--ink);
}

.desk,
.shots figure {
  margin: 0;
}

.desk-scene {
  /* Position the overlays in the artwork's native pixels across both crops. */
  --crop-left: 0;
  --pixel: calc(100cqw / 576);
  position: relative;
  container-type: inline-size;
}

.desk-art {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.coffee-steam {
  position: absolute;
  top: calc(89 * var(--pixel));
  left: calc((395 - var(--crop-left)) * var(--pixel));
  width: calc(18 * var(--pixel));
  height: auto;
  overflow: visible;
  pointer-events: none;
  transform: translateX(-50%);
}

.bench-fan {
  position: absolute;
  top: calc(98 * var(--pixel));
  left: calc((145 - var(--crop-left)) * var(--pixel));
  width: calc(23 * var(--pixel));
  aspect-ratio: 1;
  background: url("/workbench-fan.png") 0 0 / 900% 100% no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

.bench-fan::after {
  position: absolute;
  inset: 5% 14%;
  background: repeating-linear-gradient(to right, #262c38 0 6%, transparent 6% 25%);
  border-radius: 50%;
  content: "";
}

.monitor-light {
  position: absolute;
  top: calc(106 * var(--pixel));
  left: calc((318 - var(--crop-left)) * var(--pixel));
  width: calc(2 * var(--pixel));
  aspect-ratio: 1;
  background: #bed68c;
  pointer-events: none;
}

.steam-wisp {
  opacity: 0.42;
}

.steam-wisp-right {
  opacity: 0.28;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-fire {
    animation: hearth-fire 2.8s ease-in-out infinite alternate;
  }

  .logo-smoke-left {
    animation: hearth-smoke 4.4s ease-out infinite;
  }

  .logo-smoke-right {
    animation: hearth-smoke 4.4s ease-out -2.2s infinite;
  }

  .steam-wisp {
    animation: coffee-wisp 4.6s ease-out infinite;
  }

  .steam-wisp-right {
    animation-delay: -2.3s;
  }

  .bench-fan {
    animation: fan-spin 1.2s steps(8) infinite;
  }

  .monitor-light {
    animation: monitor-glow 4.8s ease-in-out infinite alternate;
  }

  .monitor-text .cursor {
    animation: terminal-cursor 2s step-end infinite;
  }
}

@keyframes hearth-fire {
  from { transform: scale(0.97, 0.95); }
  to { transform: scale(1.035, 1.06); }
}

@keyframes hearth-smoke {
  from { opacity: 0; transform: translate(0, 2px); }
  28% { opacity: 0.78; }
  to { opacity: 0; transform: translate(3px, -8px); }
}

@keyframes coffee-wisp {
  from { opacity: 0; transform: translateY(2px); }
  28% { opacity: 0.55; }
  to { opacity: 0; transform: translate(2px, -5px); }
}

@keyframes terminal-cursor {
  50% { opacity: 0.3; }
}

@keyframes fan-spin {
  to { background-position-x: 100%; }
}

@keyframes monitor-glow {
  from { box-shadow: 0 0 0 transparent; }
  to { box-shadow: 0 0 calc(4 * var(--pixel)) #c8d987a0; }
}

.monitor-text {
  position: absolute;
  top: calc(67 * var(--pixel));
  left: calc((261 - var(--crop-left)) * var(--pixel));
  width: calc(52 * var(--pixel));
  color: var(--terminal);
  font: 400 calc(3.9 * var(--pixel))/1.55 "Press Start 2P", monospace;
  text-transform: uppercase;
  white-space: pre-line;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.monitor-hotspot {
  top: calc(57 * var(--pixel));
  left: calc((250 - var(--crop-left)) * var(--pixel));
  width: calc(73 * var(--pixel));
  height: calc(47 * var(--pixel));
}

.disk-hotspot {
  top: calc(136 * var(--pixel));
  left: calc((342 - var(--crop-left)) * var(--pixel));
  width: calc(48 * var(--pixel));
  height: calc(30 * var(--pixel));
}

.game-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.game-story h2,
.shots-heading {
  font: 400 clamp(2rem, 4vw, 3.125rem)/1.08 var(--display);
}

.game-story h2 {
  margin: 0;
  text-wrap: balance;
}

.game-story-copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
}

.game-story-copy p {
  margin: 0;
  text-wrap: pretty;
}

.game-story-copy p:first-child {
  color: var(--ink);
}

.game-story-copy p + p {
  margin-top: 1.4em;
}

.screenshots {
  padding-block: clamp(2.75rem, 5vw, 4.5rem) 5rem;
  border-top: 1px solid var(--rule);
}

.shots-heading {
  margin: 0 0 1.5rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.shots figure {
  border: 1px solid var(--rule);
  background: #242332;
}

.shots img,
.shots video {
  display: block;
  aspect-ratio: 8 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.shots figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0.9rem;
  font: 0.875rem var(--mono);
}

.shots figcaption span {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 56rem) {
  .game-story {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .desk-scene {
    --crop-left: 112;
    --pixel: calc(100cqw / 352);
  }
}

@media (max-width: 34rem) {
  .masthead-inner {
    min-height: 5.5rem;
  }

  .shell {
    width: calc(100% - 2rem);
  }

  .shots {
    grid-template-columns: 1fr;
  }
}
