@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/instrument.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #000;
  --text: #f4f3ee;
  --muted: #b4b8c0;
  --rule: #303239;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
}

h1, h2, p, dl, dd, figure { margin: 0; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: .24em;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.frame {
  width: min(1260px, calc(100% - clamp(32px, 8vw, 116px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--background);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  min-height: 102px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: 800 1.12rem/.96 var(--display);
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand img { flex: none; }

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.9rem, 3.3vw, 3rem);
}

.site-header nav a {
  padding-block: .7rem;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover { text-decoration: underline; }

.language-control select {
  min-height: 44px;
  max-width: 8.5rem;
  padding: .4rem .55rem;
  border: 1px solid #545762;
  border-radius: 0;
  background: var(--background);
  color: var(--text);
  font: 700 .83rem/1.2 var(--body);
}

.language-control select:focus-visible {
  outline: 2px solid #72e9ff;
  outline-offset: 3px;
}

section[id], #como-se-juega { scroll-margin-block-start: 1rem; }

.release {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(460px, 43vw, 610px);
  overflow: hidden;
  background: var(--background);
  color: #f2f6ff;
}

.release-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 45%;
  overflow: hidden;
  mask-image:
    linear-gradient(90deg, transparent 2%, #000 21%, #000 92%, transparent),
    linear-gradient(0deg, transparent, #000 11%, #000 92%, transparent);
  mask-composite: intersect;
}

.release-art img {
  position: absolute;
  right: 0;
  width: 260%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.release-copy {
  width: 62%;
  padding: clamp(36px, 5.1vw, 80px);
}

.label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .145em;
  line-height: 1.4;
  text-transform: uppercase;
}

.signal {
  display: inline-block;
  width: .54rem;
  height: .54rem;
  margin-right: .33rem;
  background: #70eaff;
  box-shadow: 0 0 .9rem #1dccf3;
  transform: rotate(45deg);
}

.release h1 {
  margin-block: .2em .3em;
  font: 800 clamp(3.6rem, 7.5vw, 7.2rem)/.82 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -.072em;
  text-transform: uppercase;
}

.release h1 span {
  display: block;
  color: #72e9ff;
  font-size: .69em;
  letter-spacing: -.055em;
}

.release-hook {
  font: 700 clamp(1.25rem, 2.2vw, 1.85rem)/1.12 var(--display);
  letter-spacing: -.034em;
}

.release-description {
  max-width: 31ch;
  margin-block: .56rem 1.45rem;
  color: #c4cdde;
  font-size: clamp(.94rem, 1.35vw, 1.08rem);
}

.release-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 1rem;
  padding: .55rem .85rem;
  border: 1px solid #7d9fbc;
  color: #effbff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.release-link:hover {
  background: #72e9ff;
  border-color: #72e9ff;
  color: #030813;
}

.game-details { padding-bottom: clamp(3rem, 8vw, 7rem); }

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.game-stats div {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: baseline;
  gap: .55rem;
  padding: clamp(.7rem, 2vw, 1.45rem) .3rem;
}

.game-stats div + div { border-left: 1px solid var(--rule); }

.game-stats dd {
  font: 800 clamp(1.5rem, 3.4vw, 2.65rem)/1 var(--display);
  letter-spacing: -.065em;
}

.game-stats dt {
  color: var(--muted);
  font-size: clamp(.65rem, 1.3vw, .83rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.game-spread {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.8fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 5.5rem);
  padding-top: clamp(2.65rem, 7vw, 6rem);
}

.detail-copy h2 {
  max-width: 13ch;
  font: 800 clamp(2.1rem, 4.25vw, 4.1rem)/.96 var(--display);
  letter-spacing: -.063em;
}

.detail-copy p {
  max-width: 37ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.shots {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr clamp(60px, 11vw, 160px) auto;
  align-items: start;
}

.shots figure { min-width: 0; }

.shots img {
  width: 100%;
  border: 1px solid #111622;
  background: #080a10;
}

.shots figcaption {
  color: var(--muted);
  font-size: .79rem;
  margin-top: .38rem;
}

.puzzle-shot {
  grid-area: 1 / 1 / 3 / 10;
}

.boss-shot {
  grid-area: 2 / 6 / 4 / 13;
  padding: .37rem 0 0 .37rem;
  background: var(--background);
}

.boss-shot figcaption { text-align: right; }

.hexcamp {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(390px, 42vw, 580px);
  background: var(--background);
  color: #fff2d9;
}

.hexcamp-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  mask-image:
    linear-gradient(90deg, transparent, #000 11%, #000 90%, transparent),
    linear-gradient(0deg, transparent, #000 13%, #000 89%, transparent);
  mask-composite: intersect;
}

.hexcamp::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #000 2%, #000d 28%, #0007 52%, transparent 72%);
  content: "";
}

.hexcamp-copy {
  width: 55%;
  padding: clamp(2rem, 5.2vw, 4.5rem);
}

.hexcamp .label { color: #f4cc84; }

.hexcamp h2 {
  margin-block: .12em .07em;
  font: 700 clamp(3.6rem, 8.25vw, 8rem)/.93 Georgia, serif;
  letter-spacing: -.078em;
}

.hexcamp-genre {
  margin-bottom: .45rem;
  font-family: Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.68rem);
}

.hexcamp-copy > p:last-of-type {
  max-width: 32ch;
  color: #f1dfc4;
}

.hexcamp-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.15rem;
  margin-top: 1.35rem;
}

.hexcamp-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .6rem;
  font-size: .91rem;
  font-weight: 700;
  white-space: nowrap;
}

.button {
  padding: .55rem .75rem;
  background: #f5d69d;
  color: #25190e;
  text-decoration: none;
}

.button:hover { background: #fff1d5; }

.button:focus-visible { outline-color: #fff1d5; }

.alpha-link:hover { text-decoration-thickness: .12em; }

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}

.studio-stamp {
  width: 56px;
  margin-bottom: 1rem;
}

.studio-intro h2 {
  font: 800 clamp(2rem, 4vw, 3.75rem)/1 var(--display);
  letter-spacing: -.065em;
}

.studio-intro p {
  max-width: 34ch;
  margin-top: .75rem;
  color: var(--muted);
}

.studio-profile {
  display: grid;
  grid-template-columns: clamp(116px, 13vw, 172px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.1rem, 2.5vw, 2.25rem);
}

.studio-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.studio-portrait img {
  position: absolute;
  top: 0;
  left: -43%;
  width: 220%;
  max-width: none;
}

.studio-bio h3 {
  margin: 0;
  font: 800 clamp(1.65rem, 3.1vw, 2.7rem)/1.05 var(--display);
  letter-spacing: -.055em;
}

.studio-bio p {
  max-width: 54ch;
  margin-top: .55rem;
  color: var(--muted);
}

.studio-bio .studio-role {
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  padding-block: 1.15rem 2rem;
}

.contact {
  padding-block: .6rem;
  font-size: .94rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .release-art { left: 38%; }

  .release-copy {
    width: 70%;
    padding: clamp(24px, 5.2vw, 45px);
  }

  .game-spread { grid-template-columns: 1fr; }

  .detail-copy h2 { max-width: 19ch; }

  .studio-section { grid-template-columns: 1fr; }

  .site-footer { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .12rem .75rem;
    padding-block: .8rem .38rem;
  }

  .brand { font-size: .97rem; }

  .brand img { width: 40px; }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: .5rem;
  }

  .site-header nav a { font-size: .79rem; }
}

@media (max-width: 560px) {
  .release {
    align-items: start;
    min-height: 0;
  }

  .release-art {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1.35;
    grid-row: 2;
    mask-image:
      linear-gradient(0deg, transparent, #000 13%, #000 72%, transparent),
      linear-gradient(90deg, transparent, #000 10%, #000 93%, transparent);
  }

  .release-art img { object-position: right 43%; }

  .release-copy {
    width: 100%;
    padding: 2.35rem 1.2rem .1rem;
  }

  .release h1 { font-size: clamp(3.4rem, 13vw, 5rem); }

  .release-description { margin-bottom: .9rem; }

  .hexcamp {
    align-items: end;
    min-height: clamp(468px, 132vw, 590px);
  }

  .hexcamp-art { object-position: 67% top; }

  .hexcamp::before {
    background: linear-gradient(0deg, #000 4%, #000e 33%, #0003 76%, transparent);
  }

  .hexcamp-copy {
    width: 100%;
    padding: 1.4rem 1.2rem;
  }

  .studio-profile { grid-template-columns: 1fr; }

  .studio-portrait { width: clamp(130px, 39vw, 172px); }
}

@media (max-width: 360px) {
  .brand { gap: .45rem; }
  .site-header nav { gap: .56rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
