: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 url("bunnyhop-hero.jpg") center center / cover no-repeat;
}

.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);
  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 {
  padding-top: 20px;
  border-top: 5px solid var(--yolk);
}

.principle:nth-child(2) {
  border-color: var(--berry);
}

.principle:nth-child(3) {
  border-color: var(--lake);
}

.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 {
  padding: 54px 0;
  color: var(--cream);
  background: var(--ink);
}

.footer-grid {
  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-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;
  }
}
