@font-face {
  font-family: Marcellus;
  src: url("/assets/Marcellus-Regular.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 1rem/1.55 system-ui, sans-serif;
}

.studio {
  background: #20362e;
  color: #fcf2dc;
  --accent: #e7bf83;
}

.game {
  background: #f4ecdd;
  color: #2b3024;
  --accent: #75422b;
}

.page {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: 100svh;
  max-width: 80rem;
  margin-inline: auto;
  padding: clamp(2rem, 7vw, 6rem);
}

h1 {
  margin: 0;
  font: 400 clamp(3.5rem, 8.5vw, 7.5rem)/.98 Marcellus, Georgia, serif;
  letter-spacing: -.055em;
}

.intro p {
  margin: 1.5rem 0;
  max-width: 33ch;
}

.projects {
  border-top: 1px solid #fcf2dc4d;
  margin-top: 2rem;
  padding-top: .75rem;
  max-width: 16rem;
}

.projects h2 {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
}

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

.page-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: .3em;
}

.page-link span { transition: transform .18s ease; }
.studio .page-link:hover span { transform: translate(.18em, -.18em); }
.game .page-link:hover span { transform: translateX(-.18em); }
.page-link:focus-visible { outline: 2px solid currentColor; outline-offset: .25rem; }

.studio-mark {
  width: min(100%, 17rem);
  height: auto;
  justify-self: center;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: .78;
  transform: rotate(-12deg);
}

.game-art {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  justify-self: end;
  box-shadow: 0 .75rem 2.5rem #302b181f;
}

@media (max-width: 42rem) {
  .page {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .game-art {
    max-width: 21rem;
    justify-self: start;
  }

  .studio-mark {
    width: 8rem;
    margin: 1rem .75rem;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-link span { transition: none; }
}
