@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-width: 960px;
  --text: #fff;
  --link: #fff;
  --terrain: #7d5426;
  --terrain-shadow: #2b1803;
  --terrain-panel-shadow: #4a3014;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #6c904c;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: #6c904c;
  background-image:
    url("images/flower_bg.svg"),
    linear-gradient(180deg, #92b168 0%, #80a359 50%, #6c904c 100%);
  background-repeat: repeat-y, no-repeat;
  background-position: center 80px, center top;
  background-size: max(1296px, 90vw) auto, 100% 100%;
  background-attachment: scroll, scroll;
  color: var(--text);
  font-family: "Fredoka";
  font-size: 18px;
  line-height: 1.55;
}

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

a {
  color: var(--link);
  text-underline-offset: 4px;
}

:where(h1, h2, p, a, span) {
  -webkit-text-stroke: 4px var(--terrain-shadow);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--terrain-shadow);
}

main {
  display: flow-root;
}

.intro-panel,
.gif-stack,
.wishlist {
  border-radius: 18px;
  background-color: var(--terrain);
  box-shadow: 0 8px 0 var(--terrain-panel-shadow);
}

.hero {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 26px auto 36px;
  text-align: center;
}

.game-logo {
  width: min(100%, 820px);
  height: clamp(120px, 22vw, 190px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 5px 0 rgb(70 103 51 / 20%));
  object-fit: cover;
  object-position: center;
}

.intro-panel {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 30px 20px;
}

.intro-panel h1,
.hero p {
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.4;
}

.intro-panel h1 {
  max-width: 690px;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  -webkit-text-stroke-width: 8px;
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 450;
}

.trailer {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding-bottom: 40px;
}

.video-frame {
  position: relative;
  width: 100%;
  border: 3px solid rgb(255 255 255 / 88%);
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.gif-stack {
  display: grid;
  width: min(calc(100% - 40px), 870px);
  gap: 12px;
  margin: 0 auto 48px;
  padding: 20px;
}

.gif-stack :where(img, video) {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.wishlist {
  width: min(calc(100% - 40px), 760px);
  margin: 0 auto 58px;
  padding: 26px 30px 34px;
  text-align: center;
}

.wishlist h2 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 600;
  line-height: 1.1;
  -webkit-text-stroke-width: 8px;
}

.steam-widget {
  width: min(100%, 646px);
  margin: 0 auto;
}

.steam-widget iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0 20px 34px;
  text-align: center;
}

.team {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.team img {
  width: 72px;
  height: auto;
  margin-bottom: 15px;
}

footer nav {
  display: flex;
  gap: 26px;
  margin-top: 18px;
}

footer nav a {
  color: var(--link);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration-thickness: 2px;
}

footer :where(a, span) {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

footer nav a {
  -webkit-text-stroke: 4px var(--terrain-shadow);
  paint-order: stroke fill;
}

.home-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #000;
  color: #fff;
  font-family: "Roboto", sans-serif;
}

.home-page main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 30px;
}

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(400px, 0.6fr);
  width: min(100%, 1380px);
  padding: clamp(48px, 6vw, 96px);
}

.studio-intro :where(h1, p, a, span) {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.studio-intro h1 {
  margin: 0;
  font-size: clamp(4.8rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.studio-intro p {
  margin: 28px 0 0;
  color: #aaa;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.studio-heading {
  align-self: center;
  padding-right: clamp(30px, 5vw, 70px);
  text-align: left;
}

.studio-actions {
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid #292929;
  padding-left: clamp(30px, 5vw, 70px);
}

.game-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 2px solid #fff;
  padding: 24px 28px;
  background-color: #fff;
  color: #000;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.game-link:hover,
.game-link:focus-visible {
  background-color: #000;
  color: #fff;
  transform: translateY(-3px);
}

.studio-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
  margin-top: 12px;
}

.studio-links a {
  border: 1px solid #555;
  padding: 18px 16px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.studio-links a:hover,
.studio-links a:focus-visible {
  border-color: #fff;
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
}

.studio-links .game-jam-link {
  grid-column: 1 / -1;
}

.not-found {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 640px;
}

.not-found .studio-heading {
  padding: 0 0 40px;
  text-align: center;
}

.not-found .studio-actions {
  width: min(100%, 360px);
  border-left: 0;
  border-top: 1px solid #292929;
  padding: 40px 0 0;
}

@media (max-width: 900px) {
  .home-page main {
    padding: 24px;
  }

  .studio-intro {
    grid-template-columns: 1fr;
    padding: clamp(30px, 8vw, 54px);
  }

  .studio-heading {
    padding: 0 0 40px;
    text-align: center;
  }

  .studio-actions {
    border-top: 1px solid #292929;
    border-left: 0;
    padding: 40px 0 0;
  }
}

@media (max-width: 960px) {
  body {
    background-position: center 55px, center top;
    background-size: 1008px auto, 100% 100%;
    font-size: 17px;
  }

  .hero {
    margin-top: 18px;
    margin-bottom: 30px;
  }

  .game-logo {
    height: clamp(120px, 21vw, 160px);
  }

  .intro-panel {
    padding: 17px 24px 19px;
  }

  .trailer {
    padding-bottom: 36px;
  }

  .video-frame {
    border-width: 2px;
  }

  .gif-stack {
    gap: 10px;
    margin-bottom: 42px;
    padding: 16px;
  }

  .wishlist {
    margin-bottom: 50px;
    padding: 24px 20px 30px;
  }
}

@media (max-width: 550px) {
  body {
    background-position: 48% 30px, center top;
    background-size: 702px auto, 100% 100%;
    font-size: 16px;
  }

  .hero,
  .trailer,
  .gif-stack,
  .wishlist {
    width: calc(100% - 24px);
  }

  .hero {
    margin-top: 8px;
    margin-bottom: 24px;
  }

  .game-logo {
    height: 105px;
    margin-bottom: 12px;
  }

  .intro-panel,
  .gif-stack,
  .wishlist {
    border-radius: 14px;
    box-shadow: 0 6px 0 var(--terrain-panel-shadow);
  }

  .intro-panel {
    padding: 14px 16px 16px;
  }

  .intro-panel h1 {
    margin-bottom: 9px;
  }

  .trailer {
    padding-bottom: 28px;
  }

  .gif-stack {
    gap: 8px;
    margin-bottom: 34px;
    padding: 10px;
  }

  .wishlist {
    margin-bottom: 40px;
    padding: 18px 10px 20px;
  }

  .steam-widget iframe {
    height: 190px;
  }

  footer {
    padding-bottom: 28px;
  }

  .home-page main {
    padding: 14px;
  }

  .studio-intro {
    width: 100%;
    padding: 34px 20px;
  }

  .studio-intro p {
    margin-top: 20px;
  }

  .studio-intro h1 {
    font-size: clamp(3.5rem, 18vw, 4.4rem);
  }

  .studio-heading {
    padding-bottom: 30px;
  }

  .studio-actions {
    padding-top: 30px;
  }

  .game-link {
    padding: 18px;
  }
}
