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

@font-face {
  font-family: "Atkinson";
  src: url("assets/fonts/Atkinson-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "Silkscreen";
  src: url("assets/fonts/Silkscreen-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  --ink: #0c1916;
  --ink-soft: #162720;
  --paper: #f7f0de;
  --white: #fffaf0;
  --sand: #f3e2bd;
  --orange: #e66d3d;
  --gold: #d9a846;
  --muted: #44534c;
  --line-dark: rgba(12, 25, 22, 0.18);
  --line-light: rgba(255, 250, 240, 0.18);
  --body: "Atkinson", system-ui, sans-serif;
  --pixel: "Silkscreen", monospace;
  --shell: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid transparent;
  color: var(--white);
  transition:
    height 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  height: 68px;
  border-color: var(--line-light);
  background: rgba(12, 25, 22, 0.94);
}

.brand {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 32px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linejoin: bevel;
}

.brand__text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand__text strong,
.brand__text span {
  font-family: var(--pixel);
}

.brand__text strong {
  font-size: 14px;
  letter-spacing: 0.14em;
}

.brand__text span {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.42em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 16px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 27px;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 160ms ease;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.eyebrow--dark {
  color: #87631f;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 21px;
  border: 0;
  background: var(--orange);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease;
}

.button:hover {
  background: #f17d4f;
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid currentColor;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.text-link--dark {
  color: var(--ink);
}

.home-hero,
.game-hero {
  position: relative;
  display: grid;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.home-hero__image,
.home-hero__shade,
.game-hero__image,
.game-hero__shade {
  position: absolute;
  inset: 0;
}

.home-hero__image {
  z-index: -2;
  background:
    url("assets/images/hiveona-studio-worlds-v1.webp") center / cover no-repeat,
    var(--ink);
}

.home-hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 16, 13, 0.96), rgba(5, 16, 13, 0.7) 45%, rgba(5, 16, 13, 0.12) 80%);
}

.home-hero__content,
.game-hero__content {
  align-self: center;
  padding-block: 105px 70px;
}

.home-hero h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(60px, 7vw, 98px);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.home-hero__content > p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0 34px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 22px;
  line-height: 1.55;
}

.games-section,
.game-about,
.status-section {
  padding: 125px 0;
  background: var(--paper);
}

.section-intro {
  margin-bottom: 54px;
}

.section-intro h2,
.studio-section h2,
.about-layout h2,
.gallery-section h2,
.status-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 5.2vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  overflow: hidden;
  background: #ece1c9;
}

.game-card__image {
  min-height: 500px;
  overflow: hidden;
}

.game-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 400ms ease;
}

.game-card__image:hover img {
  transform: scale(1.02);
}

.game-card__copy {
  align-self: center;
  padding: clamp(38px, 5vw, 68px);
}

.game-card__status {
  margin: 0 0 16px;
  color: #76591f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(38px, 4vw, 54px);
  letter-spacing: -0.06em;
}

.game-card__copy > p:not(.game-card__status) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 27px 0;
  color: #36463f;
  font-size: 14px;
  font-weight: 700;
}

.game-card__meta span + span::before {
  margin-right: 18px;
  color: var(--orange);
  content: "•";
}

.future-note {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--muted);
}

.studio-section {
  padding: 125px 0;
  background: var(--ink);
  color: var(--white);
}

.studio-layout,
.about-layout,
.status-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.studio-section h2 {
  color: var(--sand);
}

.studio-copy p,
.about-copy p,
.status-layout > div:last-child > p {
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 21px;
}

.studio-copy p + p,
.about-copy p + p {
  margin-top: 19px;
}

.studio-copy ul,
.status-layout ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.studio-copy li,
.status-layout li {
  padding: 7px 11px;
  border: 1px solid var(--line-light);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line-light);
  background: var(--ink);
  color: var(--white);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand--footer .brand__mark {
  width: 29px;
  height: 26px;
}

.brand--footer .brand__text strong {
  font-size: 11px;
}

.brand--footer .brand__text span {
  font-size: 7px;
}

.footer-layout p,
.footer-layout > a:last-child {
  margin: 0;
  color: rgba(255, 250, 240, 0.68);
  font-size: 14px;
  text-decoration: none;
}

.game-hero__image {
  z-index: -2;
  background:
    url("assets/images/wreckward-shipwreck.jpg") center / cover no-repeat,
    var(--ink);
}

.game-hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 16, 13, 0.96), rgba(5, 16, 13, 0.7) 48%, rgba(5, 16, 13, 0.12) 82%),
    linear-gradient(0deg, rgba(5, 16, 13, 0.62), transparent 50%);
}

.game-hero h1 {
  margin: 0;
  color: var(--sand);
  font-family: var(--pixel);
  font-size: clamp(62px, 8vw, 116px);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.game-hero h2 {
  max-width: 720px;
  margin: 30px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.game-hero__content > p:not(.eyebrow) {
  max-width: 610px;
  margin: 23px 0 32px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 20px;
}

.about-copy p,
.status-layout > div:last-child > p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 65px;
  border-top: 1px solid var(--line-dark);
}

.feature-list article {
  padding: 32px 28px 12px 0;
}

.feature-list article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.feature-list span {
  color: #87631f;
  font-family: var(--pixel);
  font-size: 11px;
}

.feature-list h3 {
  margin: 42px 0 10px;
  font-size: 25px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.gallery-section {
  padding: 125px 0;
  background: var(--ink);
  color: var(--white);
}

.section-intro--light h2 {
  color: var(--sand);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: pixelated;
}

.gallery figcaption {
  padding: 19px 0 0;
}

.gallery strong,
.gallery span {
  display: block;
}

.gallery strong {
  color: var(--sand);
  font-size: 21px;
}

.gallery span {
  margin-top: 5px;
  color: rgba(255, 250, 240, 0.68);
  font-size: 15px;
}

.status-layout ul {
  margin: 25px 0 28px;
}

.status-layout li {
  border-color: var(--line-dark);
}

@media (max-width: 850px) {
  :root {
    --shell: min(100% - 40px, 700px);
  }

  .site-header {
    padding-inline: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    background: var(--ink);
    font-size: 25px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 160ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-card__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .studio-layout,
  .about-layout,
  .status-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .gallery img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 32px);
  }

  body {
    font-size: 17px;
  }

  .site-header {
    height: 68px;
    padding-inline: 16px;
  }

  .home-hero,
  .game-hero {
    height: auto;
    min-height: 760px;
  }

  .home-hero__image {
    background-position: 66% center;
  }

  .home-hero__shade,
  .game-hero__shade {
    background: linear-gradient(90deg, rgba(5, 16, 13, 0.94), rgba(5, 16, 13, 0.6));
  }

  .home-hero__content,
  .game-hero__content {
    padding-block: 105px 70px;
  }

  .home-hero h1 {
    font-size: 53px;
    letter-spacing: -0.055em;
  }

  .home-hero__content > p:not(.eyebrow) {
    font-size: 19px;
  }

  .button {
    width: 100%;
  }

  .games-section,
  .game-about,
  .status-section,
  .studio-section,
  .gallery-section {
    padding: 88px 0;
  }

  .section-intro h2,
  .studio-section h2,
  .about-layout h2,
  .gallery-section h2,
  .status-section h2 {
    font-size: 42px;
  }

  .game-card__copy {
    padding: 32px 24px 37px;
  }

  .game-card h3 {
    font-size: 38px;
  }

  .game-card__meta {
    display: grid;
  }

  .game-card__meta span + span::before {
    display: none;
  }

  .studio-copy p,
  .about-copy p,
  .status-layout > div:last-child > p {
    font-size: 18px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .game-hero__image {
    background-position: 59% center;
  }

  .game-hero h1 {
    max-width: 100%;
    font-size: 44px;
  }

  .game-hero .eyebrow {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .game-hero h2 {
    font-size: 34px;
  }

  .game-hero__content > p:not(.eyebrow) {
    font-size: 18px;
  }

  .feature-list {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .feature-list article,
  .feature-list article + article {
    padding: 28px 0;
    border-top: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .feature-list h3 {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
