@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

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

:root {
  color-scheme: light;
  --ink: #24192b;
  --night: #1e1625;
  --plum: #32233a;
  --paper: #f7eff2;
  --cloud: #e6d9e7;
  --soft: #cfbdd2;
  --muted: #635469;
  --peach: #ffab8d;
  --cream: #fff1e9;
  --rule: #d8cad8;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--body);
  font-size: 100%;
  color: var(--ink);
  background: var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .75rem;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.wrap {
  width: min(100% - 2 * clamp(1.25rem, 4.8vw, 4.5rem), 81rem);
  margin-inline: auto;
}

.site-header {
  background: var(--night);
  color: var(--cream);
  border-bottom: 1px solid #403045;
}

.header-inner, .footer-inner {
  min-height: 4.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  white-space: nowrap;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand img { flex: none; }
.brand-accent { color: var(--peach); }

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
}

nav a, .footer-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover, .footer-link:hover { color: var(--peach); }

.hero {
  background: var(--ink);
  color: var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.34fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4.75rem);
  padding-block: clamp(2.5rem, 4.6vw, 4.75rem);
}

.hero-copy { container-type: inline-size; }

.studio-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--peach);
  font-size: 1rem;
  font-weight: 700;
}

.studio-label::before {
  width: 1.625rem;
  height: 2px;
  content: "";
  background: currentColor;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; }

h1 {
  font-size: clamp(2.25rem, 16cqi, 6rem);
  line-height: .96;
  letter-spacing: -.065em;
  margin-block: 1.125rem 1.4rem;
}

.hero-intro {
  color: var(--soft);
  font-size: clamp(1.025rem, 1.35vw, 1.2rem);
  line-height: 1.63;
  max-width: 29ch;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  margin-top: 1.75rem;
  padding: .72rem 1.18rem;
  color: var(--night);
  background: var(--peach);
  border-radius: .25rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 .25rem 0 #a55c61;
}

.primary-link:hover { background: #ffc3aa; }
.primary-link:active { transform: translateY(.15rem); box-shadow: 0 .1rem 0 #a55c61; }
.primary-link:focus-visible { outline-color: var(--cream); }

.hero-art {
  position: relative;
  isolation: isolate;
  padding: .375rem;
  background: var(--plum);
  border: 1px solid #624768;
  box-shadow: .6rem .6rem 0 var(--night);
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.hero-art figcaption {
  position: absolute;
  right: .375rem;
  bottom: .375rem;
  margin: 0;
  padding: .65rem .85rem;
  background: var(--night);
  color: var(--cream);
  font-size: .875rem;
  font-weight: 700;
}

.hero-art figcaption span { color: var(--peach); margin-inline: .23rem; }

.games {
  background: var(--paper);
  padding-block: clamp(3.25rem, 6.4vw, 5.75rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin-bottom: clamp(1.3rem, 2.65vw, 2.25rem);
}

h2 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading p { color: var(--muted); font-size: 1.0625rem; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.game-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1.68;
  object-fit: cover;
  background: var(--plum);
}

.game-copy { border-bottom: 1px solid var(--rule); padding-block: 1.25rem .75rem; }
.game-genre { color: var(--muted); font-size: .9rem; font-weight: 700; }
.game h3 { margin-block: .24rem .5rem; font-size: clamp(2rem, 3.2vw, 3.125rem); line-height: 1.05; letter-spacing: -.05em; }
.game-copy > p:not(.game-genre), details p { max-width: 45ch; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }
details { margin-top: .55rem; }

summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  list-style: none;
  min-height: 2.75rem;
  width: max-content;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 700;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: .75rem; height: .75rem; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
details[open] summary::before { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
details p { padding-block: .18rem .8rem; }

.studio { background: var(--cloud); padding-block: clamp(2.75rem, 6vw, 5.25rem); }
.studio-inner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: baseline; gap: 1rem 2rem; }
.studio p { max-width: 49ch; color: #4f4055; font-size: clamp(1.1rem, 1.55vw, 1.35rem); line-height: 1.63; }
.site-footer { background: var(--night); color: var(--cream); }
.footer-inner { min-height: 5.25rem; }
.footer-inner .brand { font-size: 1.3rem; }

@media (min-width: 64rem) {
  .hero-copy { padding-bottom: .35rem; }
}

@media (max-width: 49rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.15rem; }
  .hero-art { box-shadow: .35rem .35rem 0 var(--night); }
  .hero-intro { max-width: 36ch; }
  .studio-inner { grid-template-columns: 1fr; }
}

@media (max-width: 35rem) {
  .header-inner { min-height: 4rem; }
  .brand { font-size: 1.275rem; gap: .45rem; }
  .brand img { width: 2rem; height: 2rem; }
  nav { gap: .9rem; }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 22rem) {
  .header-inner { gap: .5rem; }
  nav { gap: .6rem; }
}
