:root {
  --ink: #2f211b;
  --ink-soft: #5d4a3f;
  --cream: #fff8e9;
  --paper: #f7edcf;
  --yolk: #f2b52b;
  --berry: #d85b49;
  --leaf: #5f7f4b;
  --leaf-dark: #35543b;
  --sky: #a8dded;
  --lake: #4d8fa0;
  --white: #ffffff;
  --content: 1160px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--leaf-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #173c34;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  min-height: 76px;
  color: var(--cream);
  background: var(--ink);
  border-bottom: 5px solid var(--yolk);
}

.nav-shell {
  width: min(var(--content), calc(100% - 36px));
  min-height: 71px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  display: grid;
  line-height: 1;
}

.brand-name strong {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 25px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

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

.hero {
  position: relative;
  height: 78svh;
  min-height: 530px;
  max-height: 770px;
  overflow: hidden;
  isolation: isolate;
  background: #78cde8;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(32, 45, 31, 0.32);
}

.hero-shell {
  width: min(var(--content), calc(100% - 36px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(42px, 8vh, 84px);
}

.hero-copy {
  width: min(600px, 100%);
  color: var(--white);
  text-shadow: 0 2px 5px rgba(34, 25, 20, 0.72);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--leaf-dark);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow,
.band-ink .eyebrow,
.page-hero .eyebrow {
  color: #ffe79b;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.98;
}

.hero-lede {
  max-width: 580px;
  margin: 22px 0 28px;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  color: var(--ink);
  background: var(--yolk);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  text-shadow: none;
}

.button:hover {
  color: var(--ink);
  background: #ffd45f;
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.text-link {
  color: var(--white);
  font-weight: 800;
}

.hero-note {
  margin: 24px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.band {
  padding: clamp(64px, 9vw, 112px) 0;
}

.band-paper {
  background: var(--paper);
  border-top: 1px solid #d8c69b;
  border-bottom: 1px solid #d8c69b;
}

.band-ink {
  color: var(--cream);
  background: var(--leaf-dark);
}

.content-shell {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
}

.studio-grid,
.game-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.studio-mark {
  width: min(360px, 82vw);
  height: auto;
  justify-self: center;
}

h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(36px, 5vw, 58px);
}

h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.lead {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
}

.body-copy {
  max-width: 740px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.principle {
  --mark-tilt: -1.5deg;
  --seed-tilt: 24deg;
  position: relative;
  padding-top: 27px;
}

.principle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 98px;
  height: 9px;
  background: var(--yolk);
  clip-path: polygon(0 38%, 13% 12%, 29% 30%, 45% 5%, 62% 33%, 80% 14%, 100% 39%, 97% 72%, 81% 90%, 62% 73%, 44% 96%, 27% 75%, 10% 89%, 0 62%);
  transform: rotate(var(--mark-tilt));
  transform-origin: left center;
}

.principle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 107px;
  width: 13px;
  height: 9px;
  background: var(--berry);
  border-radius: 90% 12% 82% 18%;
  transform: rotate(var(--seed-tilt));
}

.principle:nth-child(2) {
  --mark-tilt: 1deg;
  --seed-tilt: -18deg;
}

.principle:nth-child(2)::before {
  width: 106px;
}

.principle:nth-child(2)::after {
  left: 115px;
}

.principle:nth-child(3) {
  --mark-tilt: -0.5deg;
  --seed-tilt: 31deg;
}

.principle:nth-child(3)::before {
  width: 92px;
}

.principle:nth-child(3)::after {
  left: 101px;
}

.principle p {
  margin: 0;
}

.fact-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding-left: 26px;
  position: relative;
}

.fact-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 10px;
  height: 10px;
  background: var(--berry);
  transform: rotate(11deg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 4px;
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.page-hero {
  padding: 70px 0 64px;
  color: var(--cream);
  background: var(--leaf-dark);
  border-bottom: 7px solid var(--yolk);
}

.page-hero-shell {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 21px;
}

.prose {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.prose h2 {
  margin-top: 52px;
  font-size: 34px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 34px;
}

.prose p,
.prose li {
  max-width: 760px;
}

.prose li + li {
  margin-top: 9px;
}

.callout {
  margin: 34px 0;
  padding: 24px 26px;
  background: var(--paper);
  border-left: 7px solid var(--berry);
  border-radius: 0 6px 6px 0;
}

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 166px 0 54px;
  color: var(--cream);
  background: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -20px;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #5e3c24;
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 108px, rgba(49, 34, 25, 0.18) 190px, rgba(49, 34, 25, 0.5) 100%),
    url("/assets/ground-edge-1536-v2.webp");
  background-position: top center;
  background-size: cover;
  clip-path: polygon(0 17px, 5% 12px, 11% 16px, 18% 7px, 25% 13px, 33% 5px, 41% 14px, 49% 8px, 57% 15px, 65% 6px, 73% 13px, 81% 4px, 89% 14px, 95% 8px, 100% 12px, 100% 100%, 0 100%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -90px;
  right: 0;
  left: 0;
  height: 100px;
  background-image: url("/assets/footer-flower-clover-192-v2.webp"), url("/assets/footer-flower-bells-192-v2.webp"), url("/assets/footer-flower-sun-192-v2.webp");
  background-position: 14% bottom, 52% bottom, 86% bottom;
  background-repeat: no-repeat;
  background-size: 96px auto, 90px auto, 94px auto;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  font-size: 22px;
}

.footer-brand p {
  margin: 2px 0 0;
  color: #e5d7ba;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--cream);
  font-size: 14px;
}

@media (max-width: 780px) {
  .nav-shell {
    padding: 9px 0 12px;
    align-items: flex-start;
  }

  .site-nav {
    gap: 13px;
    padding-top: 10px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .studio-grid,
  .game-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .principles,
  .gallery {
    grid-template-columns: 1fr;
  }

  .studio-mark {
    width: min(280px, 75vw);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .brand-name strong {
    font-size: 20px;
  }

  .site-footer {
    padding-top: 146px;
  }

  .site-footer::before {
    top: -15px;
    background-image:
      linear-gradient(to bottom, transparent 0, transparent 82px, rgba(49, 34, 25, 0.2) 150px, rgba(49, 34, 25, 0.52) 100%),
      url("/assets/ground-edge-1536-v2.webp");
  }

  .site-footer::after {
    top: -72px;
    height: 80px;
    background-position: 10% bottom, 50% bottom, 90% bottom;
    background-size: 76px auto, 72px auto, 74px auto;
  }

  .site-nav {
    max-width: 160px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-note {
    max-width: 330px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: 76svh;
    min-height: 340px;
  }

  .hero-shell {
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-lede {
    margin: 10px 0 16px;
    font-size: 18px;
  }

  .hero-note {
    margin-top: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
picture {
  display: block;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 7px 2px;
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-action {
  margin: 30px 0 0;
}

.button-small {
  min-height: 44px;
  padding: 8px 15px;
  font-size: 15px;
}

.game-hero {
  position: relative;
  height: 72svh;
  min-height: 520px;
  max-height: 740px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: #78cde8;
}

.game-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 30, 24, 0.72) 0%, rgba(34, 30, 24, 0.42) 44%, rgba(34, 30, 24, 0.08) 78%);
}

.game-hero-shell {
  width: min(var(--content), calc(100% - 36px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 82px);
}

.game-hero-copy {
  width: min(650px, 100%);
  text-shadow: 0 2px 5px rgba(34, 25, 20, 0.76);
}

.game-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 9vw, 104px);
  line-height: 0.96;
}

.game-hero .eyebrow {
  color: #ffe79b;
}

.release-note {
  display: inline-block;
  margin: 2px 0 0;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 248, 233, 0.92);
  border-left: 5px solid var(--yolk);
  font-size: 15px;
  font-weight: 800;
  text-shadow: none;
}

.game-facts {
  color: var(--cream);
  background: var(--ink);
  border-top: 5px solid var(--yolk);
  border-bottom: 1px solid #503c32;
}

.game-facts dl {
  margin: 0;
  padding: 25px 0 27px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.game-facts dl div {
  min-width: 0;
  padding-left: 18px;
  border-left: 3px solid var(--berry);
}

.game-facts dt {
  color: #f4c24c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-facts dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.feature-story-reverse {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.feature-story-reverse .feature-image {
  order: 2;
}

.feature-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 4px;
}

.gallery-wide {
  margin-top: 34px;
}

.fact-list-light li::before {
  background: var(--yolk);
}

.faq-shell {
  max-width: 860px;
}

.faq-shell details {
  border-top: 2px solid #dacda8;
}

.faq-shell details:last-of-type {
  border-bottom: 2px solid #dacda8;
}

.faq-shell summary {
  cursor: pointer;
  padding: 20px 42px 20px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
}

.faq-shell summary:hover {
  color: var(--leaf-dark);
}

.faq-shell summary:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 4px;
}

.faq-shell details p {
  max-width: 720px;
  margin: -4px 0 22px;
}

.site-footer::before {
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 108px, rgba(49, 34, 25, 0.18) 190px, rgba(49, 34, 25, 0.5) 100%),
    url("/assets/ground-edge-1536-v2.webp");
}

.site-footer::after {
  background-image:
    url("/assets/footer-flower-clover-192-v2.webp"),
    url("/assets/footer-flower-bells-192-v2.webp"),
    url("/assets/footer-flower-sun-192-v2.webp");
}

@media (max-width: 780px) {
  .game-hero {
    height: 68svh;
    min-height: 500px;
  }

  .game-hero::before {
    background: rgba(34, 30, 24, 0.42);
  }

  .game-facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-story,
  .feature-story-reverse {
    grid-template-columns: 1fr;
  }

  .feature-story-reverse .feature-image {
    order: 0;
  }
}

@media (max-width: 520px) {
  .game-hero h1 {
    font-size: 58px;
  }

  .game-facts dl {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .game-facts dl div {
    padding-left: 12px;
  }

  .game-facts dd {
    font-size: 16px;
  }

  .faq-shell summary {
    font-size: 20px;
  }

  .site-footer::before {
    background-image:
      linear-gradient(to bottom, transparent 0, transparent 82px, rgba(49, 34, 25, 0.2) 150px, rgba(49, 34, 25, 0.52) 100%),
      url("/assets/ground-edge-1536-v2.webp");
  }
}

.not-found-body {
  min-height: 100svh;
  background: var(--leaf-dark);
}

.not-found-page,
.not-found-scene {
  min-height: 100svh;
}

.not-found-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: var(--leaf-dark);
}

.not-found-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -2px;
  left: 0;
  height: clamp(112px, 18svh, 178px);
  background: url("/assets/ground-edge-1536-v2.webp") center top / cover no-repeat;
}

.not-found-shell {
  width: min(var(--content), calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(42px, 8svh, 86px) 0 clamp(118px, 19svh, 184px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
}

.not-found-copy {
  position: relative;
  z-index: 2;
}

.not-found-copy .eyebrow {
  color: #ffe79b;
}

.not-found-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.94;
}

.not-found-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 24px 0 30px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.not-found-art {
  width: min(100%, 610px);
  margin: 0;
  align-self: end;
  justify-self: end;
  transform: rotate(1.5deg);
  transform-origin: center bottom;
}

.not-found-art img {
  width: 100%;
  height: auto;
}

@media (max-width: 780px) {
  .not-found-shell {
    width: min(620px, calc(100% - 32px));
    padding-top: 42px;
    padding-bottom: 112px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 10px;
  }

  .not-found-copy h1 {
    font-size: clamp(54px, 15vw, 76px);
  }

  .not-found-copy > p:not(.eyebrow) {
    margin: 16px 0 22px;
    font-size: 18px;
  }

  .not-found-art {
    width: min(78vw, 420px);
    margin-top: -8px;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .not-found-shell {
    padding-top: 32px;
    padding-bottom: 94px;
  }

  .not-found-copy h1 {
    font-size: clamp(48px, 16vw, 64px);
  }

  .not-found-art {
    width: min(82vw, 340px);
  }

  .not-found-scene::after {
    height: 104px;
  }
}
