:root {
  color-scheme: dark;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.82);
  --quiet-white: rgba(255, 255, 255, 0.62);
  --hairline: rgba(255, 255, 255, 0.28);
  --red: #ff210d;
  --orange: #ff8b21;
  --ink: #070109;
}

@font-face {
  font-family: "Jersey 10";
  src: url("assets/fonts/jersey-10/Jersey10-Regular.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #0a0d16;
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #0a0d16;
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

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

.studio-page,
.contact-page {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto auto auto;
  min-height: 100svh;
  padding: clamp(22px, 4vw, 52px);
  isolation: isolate;
}

.background-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.studio-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 6, 14, 0.58), rgba(3, 6, 14, 0.1) 48%, rgba(3, 6, 14, 0.38)),
    linear-gradient(180deg, rgba(3, 6, 14, 0.28), rgba(3, 6, 14, 0.06) 44%, rgba(3, 6, 14, 0.72));
  pointer-events: none;
  content: "";
}

.contact-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 1, 9, 0.74);
  backdrop-filter: blur(5px);
  pointer-events: none;
  content: "";
}

.studio-page::after {
  content: none;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: var(--soft-white);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-header {
  align-self: start;
  justify-content: flex-end;
}

.nav-button,
.site-footer a,
.email-link {
  position: relative;
}

.nav-button::after,
.site-footer a::after,
.email-link::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--orange);
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  content: "";
}

.nav-button:hover::after,
.site-footer a:hover::after,
.email-link:hover::after,
[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
}

.hero {
  align-self: end;
  justify-self: center;
  width: min(980px, 100%);
  padding: clamp(26px, 7vh, 92px) 0 clamp(14px, 3vh, 34px);
  display: grid;
  gap: clamp(10px, 1.4vw, 16px);
  justify-items: center;
  text-align: center;
}

.descriptor {
  margin: 0;
  color: rgba(238, 232, 211, 0.66);
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.hero-logo {
  width: min(46vw, 360px);
  max-width: none;
  margin: 0;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.featured-game {
  position: relative;
  align-self: end;
  display: grid;
  justify-self: center;
  width: min(760px, 100%);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(3, 6, 14, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 26px 90px rgba(0, 0, 0, 0.3);
}

.feature-label {
  align-self: end;
  justify-self: center;
  width: min(760px, 100%);
  margin: 0 0 8px;
  color: rgba(238, 232, 211, 0.74);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

.featured-media-link {
  display: block;
  position: relative;
  background: rgba(2, 4, 10, 0.5);
}

.featured-media-link::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 1, 9, 0.68), rgba(7, 1, 9, 0.08) 56%, rgba(7, 1, 9, 0.28)),
    linear-gradient(180deg, rgba(7, 1, 9, 0.02), rgba(7, 1, 9, 0.2) 52%, rgba(7, 1, 9, 0.92));
  pointer-events: none;
  content: "";
}

.featured-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
}

.featured-copy {
  display: grid;
  justify-items: start;
  padding: clamp(8px, 1.2vw, 12px) clamp(14px, 2.2vw, 22px) clamp(9px, 1.4vw, 13px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 1, 9, 0.66);
}

.featured-copy span {
  color: var(--quiet-white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.featured-title-logo {
  margin: 0;
}

.featured-title-logo img {
  display: block;
  width: min(258px, 100%);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.56));
}

.site-footer p,
.featured-copy p {
  margin: 0;
}

.game-credit {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.game-credit span {
  color: var(--soft-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.game-logo {
  display: inline-flex;
  align-items: center;
  width: min(210px, 52vw);
}

.game-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.game-line {
  width: min(500px, 100%);
  margin: 46px 0 0;
  color: var(--soft-white);
  font-size: clamp(12px, 1.18vw, 15px);
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.76);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 118px;
  min-height: 36px;
  padding: 0 18px 4px;
  background-image: url("assets/images/cc-play-button.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--white);
  font-family: "Jersey 10", "Lucida Console", "Courier New", monospace;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  image-rendering: pixelated;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.46);
}

.copyright {
  margin: 6px 0 0;
  color: var(--quiet-white);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.page-footer {
  align-self: end;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: clamp(8px, 1.4vh, 14px);
  text-align: center;
}

.section-label {
  margin: 0 0 22px;
  color: var(--quiet-white);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 52px);
  background: rgba(7, 1, 9, 0.74);
  backdrop-filter: blur(5px);
  opacity: 1;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.about-overlay[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.overlay-panel {
  width: min(920px, 100%);
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.overlay-panel h2,
.contact-section h1 {
  width: min(900px, 100%);
  margin: 0;
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 650;
  line-height: 1;
}

.about-note {
  width: min(620px, 100%);
  margin: 0;
  color: var(--quiet-white);
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  line-height: 1.45;
}

.about-note + .about-note {
  margin-top: clamp(4px, 0.8vw, 10px);
}

.fun-fact-note {
  position: absolute;
  right: clamp(22px, 4vw, 52px);
  bottom: clamp(22px, 4vw, 52px);
  width: min(460px, calc(100% - 44px));
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 1.45;
}

.overlay-close {
  position: absolute;
  top: clamp(22px, 4vw, 52px);
  right: clamp(22px, 4vw, 52px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft-white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.contact-section {
  align-self: center;
  width: min(980px, 100%);
  padding: 12vh 0;
}

.email-link {
  display: inline-flex;
  margin-top: clamp(28px, 4vw, 44px);
  color: var(--soft-white);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.1;
}

@media (max-width: 720px) {
  .studio-page,
  .contact-page {
    min-height: 100dvh;
    padding: 22px;
  }

  .background-art {
    object-position: 48% center;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    justify-content: flex-end;
  }

  .hero {
    padding: 5vh 0 2vh;
  }

  .hero-logo {
    width: min(78vw, 320px);
  }

  .descriptor {
    font-size: 12px;
  }

  .featured-game {
    justify-self: stretch;
    margin-top: 0;
  }

  .featured-title-logo img {
    width: min(228px, 86%);
  }

  .game-line {
    width: min(360px, 100%);
    margin-top: 44px;
    font-size: 11px;
    line-height: 1.25;
  }

  .feature-actions {
    gap: 8px;
    margin-top: 9px;
  }

  .play-link {
    min-width: 112px;
    min-height: 34px;
    padding-inline: 16px;
    font-size: 21px;
  }
}

@media (max-width: 430px) {
  .site-header,
  .site-footer {
    font-size: 11px;
  }

  .hero {
    padding-top: 10vh;
  }
}
