:root {
  color-scheme: dark;
  --paper: #fffaf2;
  --margin: clamp(1.4rem, 6vw, 8rem);
  font-family: Georgia, "Times New Roman", serif;
  background: #181421;
  color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 4; background: #281b39; padding: 1rem; }
.skip:focus { top: 1rem; }
header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: clamp(1rem, 3vw, 2.2rem) var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; padding: .65rem 1.15rem; border-radius: 4rem; background: #fff; }
.brand img { width: clamp(6rem, 11vw, 10rem); height: auto; }
nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
nav a { padding-block: .8rem; text-decoration: none; font-size: 1.1rem; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.hero {
  isolation: isolate;
  position: relative;
  min-height: max(32rem, 83svh);
  display: flex;
  align-items: flex-end;
  padding: 8rem var(--margin) clamp(3rem, 7vh, 6rem);
}
.landscape, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.landscape { z-index: -2; object-fit: cover; object-position: 59% center; }
.hero::after {
  content: ""; z-index: -1;
  background: linear-gradient(180deg, #100d1bba, transparent 23%),
    linear-gradient(0deg, #130f20cf, transparent 46%),
    linear-gradient(90deg, #100d1b55, transparent 65%);
}
.category, .button { font-family: "Segoe UI", system-ui, sans-serif; }
.category { margin: 0 0 .8rem; font-size: .8rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; font-weight: 500; line-height: 1.05; }
h1 { font-size: clamp(3.25rem, 7.6vw, 8rem); letter-spacing: -.05em; }
.button {
  display: inline-flex; align-items: center; gap: 1.6rem;
  margin-top: 1.5rem; padding: .9rem 1.45rem; border-radius: 2rem;
  background: #7140ab; color: #fff; text-decoration: none; font-weight: 600;
}
.button:hover { background: #8850c3; }
.pitch {
  max-width: 29rem;
  margin: .8rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  text-shadow: 0 1px 4px #19151a;
}
.game-preview h2 a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.game-preview {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(2rem, 5vw, 5rem) var(--margin);
  background: #171f21;
}
.game-preview img { display: block; width: 100%; height: auto; }
.game-preview .category { color: #d3dda1; }
.studio {
  padding: clamp(2rem, 4vw, 4rem) var(--margin);
  display: grid; grid-template-columns: minmax(13rem, 1fr) 2fr; gap: 2rem;
  align-items: baseline; border-top: 1px solid #504555;
}
h2 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.04em; }
.studio p { max-width: 47rem; margin: 0; color: #e1d8e6; font-size: 1.15rem; line-height: 1.6; }
@media (max-width: 620px) {
  .game-preview { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio { grid-template-columns: 1fr; gap: .9rem; }
  .hero { min-height: max(30rem, 79svh); }
  .landscape { object-position: 63% center; }
}
.games-page header, .about-page header { position: relative; }
.games-page main, .screens { padding: clamp(2rem, 5vw, 5rem) var(--margin); }
.catalog, .gallery {
  margin-top: clamp(1.5rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}
.game-card { display: block; text-decoration: none; }
.game-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-caption { padding-block: 1.2rem; border-bottom: 1px solid #554b60; }
.card-caption h2 { display: flex; justify-content: space-between; align-items: center; }
.card-caption h2 span { font-size: .65em; color: #d3aaff; }
.game-card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; }
.game-hero { min-height: max(32rem, 70svh); }
.screens { background: #211e19; border-top: 3px solid #dc9867; }
.gallery figure { margin: 0; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery a, .gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { margin-top: .65rem; font: 1rem "Segoe UI", sans-serif; color: #ead6c4; }
.teaser { min-height: 100svh; }
.teaser .category { margin: 1.25rem 0 0; }
.about-page header { border-bottom: 1px solid #463b50; }
.about-page nav [aria-current] { text-decoration: underline; text-underline-offset: .4em; text-decoration-color: #d3aaff; }
.about-intro {
  display: grid;
  grid-template-columns: 4fr 5fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2.5rem, 6vw, 7rem) var(--margin);
  background: radial-gradient(ellipse at 80% 45%, #392941, #181421 71%);
}
.about-copy h1 { font-size: clamp(3.3rem, 6vw, 7rem); }
.about-copy p { max-width: 27rem; color: #e1d8e6; font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.5; }
.about-copy .button { margin-top: .4rem; }
.studio-art { display: grid; grid-template-columns: 1fr 2fr 1fr; }
.studio-art a { position: relative; display: block; border: 1px solid #736779; box-shadow: 0 .7rem 2rem #100d1866; }
.studio-art a:first-child { grid-column: 1 / 4; }
.studio-art a:last-child { grid-column: 2 / 4; margin: -8% -1px 0 12%; }
.studio-art a:focus-visible { z-index: 1; }
.studio-art img { display: block; width: 100%; height: auto; }
.studio-art span { position: absolute; bottom: .7rem; left: .7rem; padding: .35rem .65rem; background: #181421ed; font: .9rem "Segoe UI", sans-serif; }
.studio-contact a { width: fit-content; font-size: clamp(1.15rem, 2vw, 2rem); color: #ddc5fa; text-underline-offset: .25em; }
@media (max-width: 760px) {
  .about-intro { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .catalog, .gallery { grid-template-columns: 1fr; }
}
