@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #100f10;
  --panel: #171516;
  --paper: #fff7f2;
  --muted: #c7bdb9;
  --accent: #ff6c54;
  --line: #403739;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.65;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.shell {
  width: min(81rem, calc(100% - clamp(2.5rem, 10.5vw, 10rem)));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .5rem 1rem;
  color: var(--ink);
  background: var(--paper);
}

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid #2c2627;
  background: #100e0f;
}

.header-layout {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6rem;
}

.wordmark {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: .7rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark strong { color: var(--paper); font-weight: inherit; }
.wordmark img { flex: 0 0 auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
}

.nav-links a,
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover, .site-footer a:hover { color: var(--accent); }

.header-cta {
  justify-self: end;
  border: 1px solid #896053;
  padding-inline: 1.15rem;
  color: var(--paper);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.header-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(37rem, 47vw, 47.5rem);
  overflow: hidden;
  border-bottom: 1px solid #6c3930;
  background: #0e0d0e;
}

.hero-art, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 42%;
}

.hero::after {
  content: "";
  background:
    linear-gradient(0deg, #100e0f 0%, transparent 31%),
    linear-gradient(90deg, #100e0f 0%, #100e0f70 29%, transparent 64%);
}

.hero-layout { padding-block: 5rem; }
.hero-copy { max-width: 50rem; }

.section-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.hero h1, .section-title, .game-details h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(5.2rem, 8.1vw, 9rem);
  letter-spacing: -.025em;
  line-height: .86;
}

.hero h1 > span { display: block; }

.hero-title-accent {
  color: var(--accent);
  white-space: nowrap;
}

.pvp {
  display: inline-block;
  margin-inline-start: .14em;
  padding: .19em .25em .23em;
  border: 1px solid #b95646;
  color: var(--paper);
  font-size: .28em;
  letter-spacing: .02em;
  line-height: .9;
  vertical-align: .12em;
}

.hero-description {
  max-width: 33ch;
  margin-top: 1.65rem;
  color: #e4d9d4;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  border: 1px solid transparent;
  padding: .5rem 1.15rem;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.button-primary { background: var(--accent); color: #191010; }
.button-primary:hover { background: #ff927b; }

.button-secondary {
  border-color: #776760;
  background: #151215a6;
  color: var(--paper);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #231618;
}

.game-section { padding-block: clamp(3.6rem, 7.2vw, 7.2rem); }

.section-title {
  margin-top: .6rem;
  font-size: clamp(3.2rem, 5.6vw, 5.6rem);
  letter-spacing: -.012em;
  line-height: .96;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5.2vw, 5rem);
  align-items: start;
  margin-top: 2.15rem;
}

.gallery-preview {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: zoom-in;
}

.gallery-preview img { width: 100%; height: auto; }

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.3rem, 1.1vw, .8rem);
  margin-top: .75rem;
}

.gallery-thumbnails a {
  display: block;
  border: 2px solid transparent;
  padding: 2px;
  background: var(--panel);
}

.gallery-thumbnails img { width: 100%; height: auto; }
.gallery-thumbnails a[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbnails a:hover { border-color: var(--paper); }

.game-details {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.game-icon {
  border: 1px solid #846b63;
  border-radius: .8rem;
}

.game-details h3 {
  max-width: 17ch;
  margin-top: .95rem;
  font-size: clamp(2.1rem, 3.05vw, 3.1rem);
  line-height: .98;
}

.game-description {
  max-width: 39ch;
  margin-top: .95rem;
  color: var(--muted);
}

.game-facts { margin-block: 1.35rem; border-top: 1px solid var(--line); }

.game-facts div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: .5rem;
}

.game-facts dt { color: var(--muted); }
.game-facts dd { font-weight: 700; }

.company-section {
  border-block: 1px solid #403133;
  background: linear-gradient(106deg, #24191a, #191516 57%, #151415);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5.2vw, 5rem);
  padding-block: clamp(3.2rem, 6vw, 6rem);
}

.company-title {
  font-size: clamp(2.85rem, 5.35vw, 5rem);
  overflow-wrap: anywhere;
}

.company-description {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--muted);
}

.company-contact {
  border-left: 2px solid #a55344;
  padding-left: 1.15rem;
}

.company-contact h3 {
  margin-bottom: .45rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.company-contact address {
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 700;
}

.company-contact address + h3 { margin-top: 1.1rem; }

.company-contact a {
  overflow-wrap: anywhere;
  text-underline-offset: .25em;
}

.company-contact a:hover { color: var(--accent); }

.footer-layout {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
  text-underline-offset: .25em;
}

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(4.2rem, 9.5vw, 6.25rem); }

  .game-layout, .company-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.6rem;
  }
}

@media (max-width: 700px) {
  .header-layout {
    min-height: 4.25rem;
    grid-template-columns: 1fr auto;
    gap: .9rem;
  }

  .wordmark { gap: .4rem; font-size: 1rem; letter-spacing: .05em; }
  .wordmark img { width: 28px; height: 28px; }
  .nav-links { gap: 1rem; }
  .header-cta { display: none; }

  .hero {
    align-items: end;
    min-height: 37.5rem;
  }

  .hero-art img { object-position: center 25%; }

  .hero::after {
    background: linear-gradient(0deg, #100e0f 2%, #100e0ff5 25%, #100e0f82 53%, #100e0f00 82%);
  }

  .hero-layout { padding-block: 15rem 2.7rem; }

  .hero h1 {
    margin-top: .95rem;
    font-size: clamp(2.55rem, 12.5vw, 5.35rem);
  }

  .hero-description { margin-top: 1.15rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.4rem; }

  .game-layout, .company-layout { grid-template-columns: minmax(0, 1fr); }
  .game-layout { margin-top: 1.35rem; gap: 1.8rem; }
  .company-layout { gap: 1.5rem; }
  .game-details h3 { max-width: none; }
}

@media (max-width: 370px) {
  .wordmark { flex-wrap: wrap; }
  .wordmark strong { display: block; }
  .footer-layout { flex-wrap: wrap; gap: .15rem; padding-block: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .header-cta { transition: none; }
}
