@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --muted: #777;
  --site-gutter: 4vw;
  --header-height: 130px;
  --site-background: #fff;
  --site-text: #000;
  --site-accent: #000;
  --header-background: #fff;
  --footer-background: #000;
  --button-color: #000;
  --link-color: #000;
  --content-max-width: 1200px;
  --section-spacing: 6.6vw;
  --tile-gap: 16px;
  --tile-radius: 0;
  --grid-columns: 3;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--site-background);
  color: var(--site-text);
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

body.dark-page {
  background: var(--black);
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--site-gutter);
  background: var(--header-background);
  color: var(--site-text);
}

.header-dark .site-header {
  background: var(--black);
  color: var(--white);
}

.brand {
  grid-column: 2;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: auto;
  max-width: min(240px, 42vw);
  height: 42px;
  object-fit: contain;
}

.desktop-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 29px;
  margin-top: 18px;
}

.desktop-nav a,
.mobile-nav a {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.games-main {
  min-height: 66vh;
  padding: var(--section-spacing) 4vw;
}

.game-grid {
  display: grid;
  width: 100%;
  margin: 0 auto;
  max-width: var(--content-max-width);
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--tile-gap);
  row-gap: 7px;
  grid-auto-rows: min-content;
}

.game-card {
  text-decoration: none;
}

.game-card-image {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111;
  border-radius: var(--tile-radius);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.game-card:hover img,
.game-card:focus-visible img {
  transform: scale(1.1);
}

.game-card h2 {
  margin: 24px 0 .5em;
  font-family: "Manrope", sans-serif;
  font-size: clamp(18px, 1.45vw, 25px);
  font-weight: 500;
  line-height: 1.25;
}

.content-main {
  min-height: calc(100vh - var(--header-height));
  padding: 72px var(--site-gutter) 110px;
}

.content-main,
.article-wrap,
.game-detail-main article {
  max-width: var(--content-max-width);
}

.site-footer {
  padding: 32px var(--site-gutter);
  background: var(--footer-background);
  color: var(--white);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.site-footer a {
  font-size: 13px;
  text-decoration: none;
}

.site-footer p {
  margin: 16px 0 0;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}

.game-card-subtitle {
  margin: -.2em 0 1.5em;
  color: var(--muted);
  font-size: 13px;
}

.blog-list {
  display: grid;
  width: 100%;
  margin: 0 auto;
  gap: 30px;
}

.blog-card {
  display: grid;
  grid-template-columns: 40% 54%;
  align-items: center;
  gap: 6%;
}

.blog-loading .blog-card {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 1s ease, transform 1s ease;
}

.blog-loading .blog-card.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.blog-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eee;
}

.blog-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.blog-image-link:hover img,
.blog-image-link:focus-visible img {
  transform: scale(1.025);
}

.blog-meta {
  margin: 0 0 17px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.blog-card h1,
.blog-card h2 {
  margin: 0 0 20px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.12;
}

.blog-card h1 a,
.blog-card h2 a {
  text-decoration: none;
}

.blog-excerpt {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.8;
}

.read-more {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-main {
  display: grid;
  min-height: 66vh;
  place-items: center;
  padding: 6.6vmax var(--site-gutter);
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.contact-copy {
  width: min(750px, 50%);
}

.contact-copy p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.contact-copy p + p {
  margin-top: 24px;
}

.contact-copy a {
  text-underline-offset: .12em;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 45px;
}

.socials a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  transition: opacity 180ms ease;
}

.socials:hover a {
  opacity: .35;
}

.socials a:hover,
.socials a:focus-visible {
  opacity: 1;
}

.socials svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.about-main {
  min-height: 66vh;
  padding: 6.6vmax var(--site-gutter);
  background: var(--black);
  color: var(--white);
}

.about-wrap {
  width: min(750px, 50%);
  margin: 0 auto;
}

.about-copy {
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.about-photo {
  width: 33.333%;
  margin: 0 auto;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.game-detail-main {
  padding: 5vw 4vw 8vw;
  background: var(--black);
  color: var(--white);
}

.botanical-page .game-detail-main {
  background-image: linear-gradient(rgba(0, 0, 0, .38), rgba(0, 0, 0, .38)), url("../images/detail/001-website-background.webp");
  background-position: center top;
  background-size: cover;
}

.game-detail-main article {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  margin-bottom: 6vw;
}

.game-hero > img {
  width: 100%;
  max-height: 76vh;
  object-fit: cover;
}

.game-hero h1 {
  margin: 0 0 26px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.05;
}

.game-hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.game-actions a {
  padding: 12px 17px;
  border: 1px solid currentColor;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background 180ms ease, color 180ms ease;
}

.game-actions a:hover {
  background: var(--white);
  color: var(--black);
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto 4vw;
  padding-bottom: 56.25%;
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-gallery figure,
.article-media {
  margin: 0;
}

.game-gallery img {
  width: 100%;
  height: 100%;
  max-height: 76vh;
  object-fit: cover;
}

.item-pagination {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 7vw;
  padding-top: 28px;
  border-top: 1px solid currentColor;
}

.item-pagination a {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  text-decoration: none;
}

.item-pagination span {
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.item-pagination strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 500;
}

.article-main {
  padding: 6vw 4vw 10vw;
}

.article-wrap {
  width: min(850px, 100%);
  margin: 0 auto;
}

.article-header {
  margin-bottom: 65px;
  text-align: center;
}

.article-header h1 {
  margin: 0 0 22px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(40px, 6vw, 86px);
  font-weight: 500;
  line-height: 1.05;
}

.article-header p {
  margin: 0;
  font-size: 12px;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 2.2em 0 .7em;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  line-height: 1.15;
}

.article-body h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.article-body h3 {
  font-size: clamp(23px, 2.8vw, 36px);
}

.article-body p {
  margin: 0 0 1.5em;
}

.article-body a {
  text-underline-offset: .15em;
}

.article-media {
  margin: 40px 0;
}

.article-media img {
  width: 100%;
  height: auto;
}

.article-body .video-frame {
  margin-top: 40px;
  margin-bottom: 40px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 767px) {
  :root {
    --site-gutter: 6vw;
    --header-height: 89px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    display: flex;
    min-height: var(--header-height);
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .brand {
    font-size: 25px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    z-index: 15;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--white);
    color: var(--black);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .header-dark .mobile-nav {
    background: var(--black);
    color: var(--white);
  }

  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    font-size: 27px;
  }

  .games-main {
    padding: 6.6vw 6vw;
  }

  .game-grid {
    grid-template-columns: 1fr;
    row-gap: 7px;
  }

  .game-card h2 {
    margin-top: 24px;
    font-size: 20px;
  }

  .content-main {
    padding-top: 42px;
    padding-bottom: 76px;
  }

  .blog-list {
    gap: 30px;
  }

  .blog-card {
    display: block;
  }

  .blog-image-link {
    margin-bottom: 30px;
  }

  .blog-card h1,
  .blog-card h2 {
    font-size: 29px;
  }

  .contact-main {
    min-height: 66vh;
    padding-top: 6.6vmax;
    padding-bottom: 6.6vmax;
  }

  .contact-copy p {
    font-size: 16px;
  }

  .contact-copy {
    width: 100%;
  }

  .about-main {
    min-height: 66vh;
    padding-top: 6.6vmax;
    padding-bottom: 6.6vmax;
  }

  .about-wrap {
    width: 100%;
  }

  .about-copy {
    margin-bottom: 48px;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
  }

  .about-photo {
    width: 33.333%;
  }

  .game-detail-main,
  .article-main {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .game-hero {
    display: block;
  }

  .game-hero > img {
    margin-bottom: 35px;
  }

  .game-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .item-pagination {
    flex-direction: column;
  }

  .item-pagination a {
    max-width: 100%;
  }

  .article-header {
    margin-bottom: 42px;
    text-align: left;
  }

  .article-body {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .blog-loading .blog-card {
    opacity: 1;
    transform: none;
  }
}
