@font-face {
  font-family: Tektur;
  src: url('assets/tektur-variable.ttf') format('truetype');
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: PlexMono;
  src: url('assets/ibm-plex-mono-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: PlexMono;
  src: url('assets/ibm-plex-mono-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

/* Base */
:root {
  --red: #ee172b;
  --blurple: #5865f2;
  --ink: #191918;
  --cream: #eeeae1;
  --body: PlexMono, 'Courier New', monospace;
  --display: Tektur, 'Arial Narrow', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 6px;
}

.community a:focus-visible {
  outline-color: var(--cream);
}

svg, img {
  display: block;
}

img {
  max-width: 100%;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 75%;
  letter-spacing: -.025em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 16px;
  background: var(--ink);
  color: white;
  z-index: 100;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px,4vw,48px) 40px;
}

/* Header */
.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 46px;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  width: 82px;
  max-width: none;
  height: 82px;
  left: -19px;
  top: -18px;
  clip-path: polygon(20% 20%,76% 20%,76% 78%,20% 78%);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-page-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
}

.header-page-link:hover {
  color: var(--red);
}

.header-discord {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  min-height: 44px;
}

.header-discord svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.header-discord:hover {
  color: var(--red);
}

/* Homepage */
.studio-banner {
  position: relative;
  height: clamp(160px,25vw,280px);
  background: var(--red);
  overflow: hidden;
}

.banner-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  animation: banner-scroll 48s linear infinite;
}

.banner-image {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes banner-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-track {
    animation: none;
  }
}

.studio-banner h1 {
  position: absolute;
  bottom: 24px;
  left: 26px;
  font-size: clamp(28px,4vw,52px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.studio-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  margin-top: 36px;
  align-items: stretch;
}

.projects {
  min-width: 0;
}

.projects>h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 18px;
}

.project-placeholder {
  display: flex;
  align-items: flex-end;
  min-height: 244px;
  padding: 26px;
  background: var(--ink);
  color: var(--cream);
}

.project-info h3 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.project-info p {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .035em;
  color: #bbb9b2;
  margin-top: 10px;
}

/* Community */
.community {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 26px;
  background: var(--blurple);
  color: #fff;
  min-width: 0;
}

.community h2 {
  font-size: clamp(24px,2.8vw,32px);
  font-weight: 700;
  line-height: 1.15;
}

.community-discord {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 13px 14px;
  min-height: 46px;
  font-size: 10px;
  font-weight: 500;
}

.community-discord:hover {
  background: var(--cream);
  color: var(--ink);
}

.discord-icon {
  width: 20px;
  height: 17px;
  flex-shrink: 0;
}

.link-arrow {
  font-size: 19px;
  margin-left: auto;
  line-height: 1;
}

/* Team */
.team-roster {
  display: grid;
  gap: 30px;
  margin: 36px 0 0;
}

.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: baseline;
  gap: 24px;
}

.team-member dt {
  font-family: var(--display);
  font-stretch: 75%;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.team-member dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.team-recruiting {
  max-width: 620px;
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.8;
}

.team-recruiting strong {
  font-weight: 500;
}

.team-recruiting a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-recruiting a:hover {
  color: var(--red);
}

/* Mobile */
@media (max-width: 760px) {
  .page-shell {
    padding: 0 20px 24px;
  }
  .site-header {
    height: 72px;
    gap: 16px;
  }
  .brand-mark {
    width: 35px;
    height: 42px;
  }
  .brand-mark img {
    width: 72px;
    height: 72px;
    left: -16px;
    top: -15px;
  }
  .header-discord {
    font-size: 10px;
    gap: 13px;
  }
  .header-links {
    gap: 20px;
  }
  .header-page-link {
    font-size: 10px;
  }
  .studio-banner h1 {
    left: 20px;
    bottom: 20px;
    font-size: clamp(28px,5.3vw,40px);
  }
  .team-banner h1 {
    font-size: clamp(26px,5.3vw,40px);
    white-space: normal;
    max-width: calc(100% - 40px);
  }
  .studio-content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }
  .projects>h2 {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .project-placeholder {
    min-height: 220px;
    padding: 22px;
  }
  .project-info h3 {
    font-size: 28px;
  }
  .community {
    min-height: 180px;
    padding: 22px;
    gap: 28px;
  }
  .community h2 {
    font-size: 26px;
  }
  .community-discord {
    align-self: flex-start;
    font-size: 11px;
    min-width: 220px;
  }
  .team-roster {
    margin-top: 28px;
    gap: 26px;
  }
  .team-member {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .team-member dt {
    font-size: 26px;
  }
  .team-member dd {
    font-size: 12px;
  }
  .team-recruiting {
    margin-top: 32px;
    font-size: 12px;
  }
}
