/* Layout and look of the studio's site. Every colour, size and space is a token (tokens.css). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, var(--c-scene-glow), var(--c-scene) 70%) var(--c-scene);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh-text);
}

a {
  color: var(--c-accent);
}

.wrap {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* The bar at the top: the studio's name and the links */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
}

.mark {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
  color: var(--c-text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: var(--sp-5);
}

.nav a {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-dim);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--c-accent);
}

main {
  flex: 1;
}

/* The studio's name, large, with the game's glow */
.hero {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-6);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: var(--ls-title);
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 0 var(--glow) color-mix(in srgb, var(--c-accent) 35%, transparent);
}

.hero p {
  margin: var(--sp-3) 0 0;
  max-width: var(--measure);
  font-size: var(--fs-lg);
  color: var(--c-text-dim);
}

section {
  padding-bottom: var(--sp-6);
}

/* A small label over a heading, in the game's small capitals */
.label {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-accent);
}

h2 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.25;
  max-width: var(--measure);
}

.text p {
  margin: 0 0 var(--sp-4);
  max-width: var(--measure);
}

.dim {
  color: var(--c-text-dim);
}

/* Pictures from the game: one wide, then two side by side (one above the other on a phone) */
.pictures {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0 0;
}

@media (min-width: 700px) {
  .pictures {
    grid-template-columns: 1fr 1fr;
  }

  .pictures figure:first-child {
    grid-column: 1 / -1;
  }
}

figure {
  margin: 0;
}

.frame {
  display: block;
  padding: var(--sp-1);
  background: var(--c-border);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--c-surface);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

figcaption {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-dim);
}

/* The support page's address, large enough to tap */
.address {
  display: inline-block;
  margin: var(--sp-2) 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.02em;
  word-break: break-word;
}

/* The foot of every page */
.foot {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-dim);
}

.foot a {
  color: var(--c-text-dim);
}
