:root {
  --ink: #10262a;
  --ink-deep: #08191d;
  --ink-soft: #24454a;
  --parchment: #f6edc9;
  --paper: #fff9e8;
  --sun: #ffc857;
  --ember: #ef6f4d;
  --moss: #78b159;
  --moss-deep: #397052;
  --stream: #58b7bd;
  --sky: #9fd7d2;
  --white: #fffef8;
  --line: #c9b980;
  --shadow: #071316;
  --display: "Courier New", "Lucida Console", monospace;
  --body: "Trebuchet MS", "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--shell);
  min-height: 90px;
  margin: 0 auto;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--sun);
}

.brand-star {
  color: var(--sun);
  font-size: 24px;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -.06em;
}

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

.site-nav a,
.text-link {
  position: relative;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 3px;
  background: var(--ember);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  justify-self: end;
  padding: 11px 16px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--sun);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  width: var(--shell);
  min-height: 720px;
  margin: 0 auto;
  padding: 54px 0 80px;
  gap: clamp(44px, 6vw, 96px);
}

.hero-canopy {
  position: absolute;
  top: 7%;
  left: -8vw;
  z-index: -1;
  width: 170px;
  height: 210px;
  background:
    linear-gradient(var(--moss-deep) 0 0) 20px 0 / 92px 38px no-repeat,
    linear-gradient(var(--moss) 0 0) 0 36px / 150px 76px no-repeat,
    linear-gradient(var(--moss-deep) 0 0) 32px 108px / 116px 48px no-repeat,
    linear-gradient(#765334 0 0) 72px 152px / 24px 58px no-repeat;
  image-rendering: pixelated;
}

.world-status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.status-light {
  width: 11px;
  height: 11px;
  background: #9d9d86;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(16, 38, 42, .2);
}

.world-status.is-online .status-light {
  background: var(--moss);
}

.world-status.is-offline .status-light {
  background: var(--ember);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--ink-deep);
  font-family: var(--display);
  font-size: clamp(3.25rem, 6.4vw, 6.3rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .96;
  text-shadow: 4px 4px 0 rgba(255, 200, 87, .38);
}

.hero-intro {
  max-width: 590px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 3px solid var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: box-shadow 130ms ease, transform 130ms ease, background 130ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.button-primary {
  background: var(--sun);
  color: var(--ink-deep);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffda7d;
}

.button-dark {
  border-color: var(--ink-deep);
  background: var(--ink-deep);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--ember);
}

.button-dark:hover,
.button-dark:focus-visible {
  box-shadow: 2px 2px 0 var(--ember);
}

.hero-facts {
  display: flex;
  margin: 58px 0 0;
  gap: 0;
}

.hero-facts div {
  min-width: 120px;
  padding: 0 22px;
  border-left: 2px solid var(--line);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero-world {
  position: relative;
  min-width: 0;
  animation: world-arrival 720ms cubic-bezier(.2, .8, .2, 1) both;
}

.map-label {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 0 0 -2px 18px;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  background: var(--parchment);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.map-scene {
  position: relative;
  min-height: 595px;
  overflow: hidden;
  border: 5px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 38, 42, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(16, 38, 42, .08) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--sky);
  box-shadow: 12px 12px 0 var(--ink);
}

.map-scene::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 66%;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(24, 96, 74, .2) 9% 13%, transparent 13% 74%, rgba(24, 96, 74, .22) 74% 79%, transparent 79%),
    var(--moss);
  content: "";
  clip-path: polygon(0 15%, 8% 11%, 14% 18%, 22% 8%, 32% 16%, 41% 7%, 52% 16%, 61% 9%, 72% 17%, 83% 8%, 92% 15%, 100% 9%, 100% 100%, 0 100%);
}

.map-scene::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38px;
  background: var(--moss-deep);
  content: "";
  box-shadow: 0 -7px 0 #5f984e;
}

.pixel-cloud {
  position: absolute;
  z-index: 1;
  width: 64px;
  height: 18px;
  background: rgba(255, 254, 248, .75);
  box-shadow: 16px -12px 0 rgba(255, 254, 248, .75), 32px 0 0 rgba(255, 254, 248, .75);
}

.cloud-one {
  top: 48px;
  left: 80px;
}

.cloud-two {
  top: 84px;
  right: 100px;
  transform: scale(.75);
}

.tree-cluster {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 58px;
  background: var(--moss-deep);
  border: 4px solid var(--ink);
  box-shadow:
    38px 18px 0 -4px var(--moss-deep),
    38px 18px 0 0 var(--ink),
    -27px 29px 0 -6px var(--moss-deep),
    -27px 29px 0 -2px var(--ink);
  clip-path: polygon(50% 0, 100% 46%, 77% 46%, 100% 83%, 61% 83%, 61% 100%, 39% 100%, 39% 83%, 0 83%, 23% 46%, 0 46%);
}

.trees-left {
  bottom: 125px;
  left: 22px;
}

.trees-right {
  right: 36px;
  bottom: 185px;
  transform: scale(.82);
}

.pixel-house {
  position: absolute;
  top: 50px;
  left: 50%;
  z-index: 4;
  width: 116px;
  image-rendering: pixelated;
  filter: drop-shadow(7px 7px 0 rgba(16, 38, 42, .25));
  transform: translateX(-50%);
}

.route-map {
  position: absolute;
  inset: 54px 0 0;
  z-index: 2;
  width: 100%;
  height: calc(100% - 54px);
  overflow: visible;
}

.route-shadow,
.route-line {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.route-shadow {
  stroke: rgba(16, 38, 42, .32);
  stroke-width: 42;
}

.route-line {
  stroke: var(--parchment);
  stroke-dasharray: 20 12;
  stroke-width: 31;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

.map-scene[data-active-route="quickwater"] .route-water,
.map-scene[data-active-route="cluewood"] .route-wood {
  stroke-width: 37;
}

.map-scene[data-active-route="quickwater"] .route-wood,
.map-scene[data-active-route="cluewood"] .route-water {
  opacity: .5;
}

.map-scene[data-active-route="quickwater"] .route-water {
  stroke: #c6f2ee;
}

.map-scene[data-active-route="cluewood"] .route-wood {
  stroke: #ffe4a1;
}

.route-pin {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  padding: 8px 11px 8px 8px;
  gap: 8px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.route-pin:hover,
.route-pin:focus-visible,
.route-pin.is-active {
  background: var(--sun);
  transform: translateY(-3px);
}

.route-pin-water {
  top: 165px;
  left: 9%;
}

.route-pin-wood {
  top: 170px;
  right: 8%;
}

.route-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: var(--stream);
  border: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
}

.route-pin-wood .route-icon {
  background: var(--moss);
}

.student-sprite,
.mini-student,
.team-player,
.editor-character {
  background-image: url("assets/student_walk.png");
  background-position: 0 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.student-sprite {
  position: absolute;
  bottom: 102px;
  left: calc(50% - 32px);
  z-index: 6;
  width: 64px;
  height: 60px;
  animation: student-step 950ms steps(6) infinite;
  filter: drop-shadow(4px 5px 0 rgba(16, 38, 42, .25));
  transform: scale(1.35);
  transform-origin: bottom center;
}

.guide-sprite {
  position: absolute;
  top: 143px;
  left: calc(50% - 16px);
  z-index: 6;
  width: 32px;
  height: 64px;
  background-image: url("assets/librarian_idle.png");
  background-position: 0 0;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 4px 0 rgba(16, 38, 42, .25));
  image-rendering: pixelated;
  transform: scale(1.25);
  transform-origin: bottom center;
}

.route-dialogue {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(135px, .45fr) 1fr;
  padding: 16px 18px;
  gap: 3px 20px;
  border: 3px solid var(--ink);
  background: rgba(255, 249, 232, .96);
  box-shadow: 5px 5px 0 var(--ink);
}

.route-dialogue .dialogue-speaker {
  grid-row: 1 / 3;
  color: var(--moss-deep);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.route-dialogue strong {
  font-size: 16px;
  line-height: 1.35;
}

.route-dialogue p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.map-instruction {
  margin: 21px 0 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.quest-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 16px 30px;
  gap: clamp(15px, 3vw, 50px);
  overflow: hidden;
  background: var(--ink);
  color: var(--parchment);
  border-block: 5px solid var(--ink-deep);
}

.quest-strip p {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.quest-strip span {
  color: var(--sun);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.journey {
  padding: 130px 0 145px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  max-width: 1050px;
  margin-bottom: 78px;
  column-gap: 70px;
}

.section-heading .section-kicker {
  grid-column: 1;
}

.section-heading h2 {
  grid-column: 1;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -.08em;
  line-height: 1;
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  max-width: 500px;
  color: var(--ink-soft);
  font-size: 19px;
}

.section-kicker {
  margin-bottom: 13px;
  color: var(--ember);
  font-size: 14px;
  font-weight: 900;
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  gap: 42px;
  list-style: none;
}

.journey-track::before {
  position: absolute;
  top: 23px;
  right: 15%;
  left: 15%;
  z-index: -1;
  height: 4px;
  background: var(--line);
  content: "";
}

.journey-track li {
  position: relative;
}

.journey-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--sun);
  font-family: var(--display);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
}

.journey-art {
  position: relative;
  height: 245px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--sky);
  box-shadow: 7px 7px 0 var(--ink);
}

.journey-art::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: var(--moss);
  content: "";
  box-shadow: 0 -8px 0 #8dc56c;
}

.art-explore .mini-student {
  position: absolute;
  bottom: 36px;
  left: 26%;
  z-index: 2;
  width: 64px;
  height: 60px;
  transform: scale(1.2);
}

.mini-sign {
  position: absolute;
  right: 22%;
  bottom: 58px;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  background: #c38c4f;
  border: 4px solid var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 35px 0 -20px #71492e;
}

.art-think {
  background: var(--parchment);
}

.art-think::before {
  height: 16px;
  background: var(--sun);
  box-shadow: none;
}

.speech-bubble {
  position: absolute;
  top: 52px;
  right: 24px;
  left: 24px;
  padding: 23px 20px;
  border: 4px solid var(--ink);
  background: var(--white);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 7px 7px 0 var(--ink);
}

.speech-bubble::after {
  position: absolute;
  bottom: -22px;
  left: 48px;
  width: 20px;
  height: 20px;
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: var(--white);
  content: "";
  transform: rotate(45deg);
}

.art-unlock {
  background: var(--ink-soft);
}

.art-unlock::before {
  background: var(--moss-deep);
  box-shadow: 0 -8px 0 #4f8662;
}

.mini-gate {
  position: absolute;
  bottom: 42px;
  left: calc(50% - 52px);
  z-index: 2;
  width: 104px;
  height: 118px;
  border: 11px solid #c88b50;
  border-bottom: 0;
  box-shadow: inset 0 0 0 5px #71492e;
}

.art-unlock .spark {
  position: absolute;
  top: 38px;
  left: calc(50% - 22px);
  z-index: 3;
  color: var(--sun);
  font-size: 44px;
  text-shadow: 0 0 20px rgba(255, 200, 87, .7);
}

.journey-track h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -.05em;
}

.journey-track p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.team-section {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  min-height: 670px;
  background: var(--ink);
  color: var(--parchment);
  border-block: 6px solid var(--ink-deep);
}

.team-landscape {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 30px 30px,
    #174149;
}

.team-landscape::before {
  position: absolute;
  inset: 22% 8% 10%;
  border: 8px solid var(--moss-deep);
  background: var(--moss);
  content: "";
  clip-path: polygon(0 12%, 12% 12%, 12% 0, 30% 0, 30% 9%, 56% 9%, 56% 0, 80% 0, 80% 15%, 100% 15%, 100% 86%, 88% 86%, 88% 100%, 62% 100%, 62% 90%, 34% 90%, 34% 100%, 8% 100%, 8% 87%, 0 87%);
}

.team-landscape::after {
  position: absolute;
  top: 28%;
  right: 20%;
  bottom: 16%;
  left: 24%;
  border: 12px solid rgba(246, 237, 201, .7);
  content: "";
  clip-path: polygon(0 40%, 44% 40%, 44% 0, 62% 0, 62% 70%, 100% 70%, 100% 88%, 44% 88%, 44% 58%, 0 58%);
}

.team-player {
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 60px;
  filter: drop-shadow(4px 5px 0 rgba(8, 25, 29, .45));
  transform: scale(1.35);
}

.player-one {
  top: 45%;
  left: 29%;
}

.player-two {
  top: 32%;
  left: 52%;
  filter: hue-rotate(85deg) drop-shadow(4px 5px 0 rgba(8, 25, 29, .45));
}

.player-three {
  right: 24%;
  bottom: 23%;
  filter: hue-rotate(170deg) drop-shadow(4px 5px 0 rgba(8, 25, 29, .45));
}

.player-four {
  bottom: 20%;
  left: 36%;
  filter: hue-rotate(260deg) drop-shadow(4px 5px 0 rgba(8, 25, 29, .45));
}

.team-beacon {
  position: absolute;
  top: 19%;
  right: 21%;
  z-index: 3;
  color: var(--sun);
  font-size: 82px;
  text-shadow: 0 0 30px rgba(255, 200, 87, .85);
}

.team-copy {
  align-self: center;
  max-width: 580px;
  padding: 90px clamp(40px, 8vw, 120px) 90px clamp(40px, 6vw, 85px);
}

.team-copy h2,
.teacher-copy h2,
.final-cta h2 {
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  letter-spacing: -.08em;
  line-height: 1;
}

.team-copy > p:not(.section-kicker) {
  color: #d8d9c5;
}

.plain-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: flex;
  align-items: baseline;
  margin-top: 13px;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
}

.plain-list span {
  color: var(--sun);
}

.teacher-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  align-items: center;
  padding: 140px 0;
  gap: clamp(50px, 8vw, 110px);
}

.teacher-copy > p:not(.section-kicker) {
  max-width: 540px;
  margin-bottom: 34px;
  color: var(--ink-soft);
}

.dark-link {
  color: var(--ink);
}

.workbench {
  overflow: hidden;
  border: 5px solid var(--ink);
  background: #d9e3d3;
  box-shadow: 12px 12px 0 var(--ink);
}

.workbench-topbar,
.workbench-footer {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 9px 13px;
  gap: 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
}

.window-dots {
  color: var(--ember);
  letter-spacing: .2em;
}

.workbench-topbar strong {
  flex: 1;
  overflow: hidden;
  font-family: var(--display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-state {
  padding: 3px 7px;
  background: var(--moss);
  color: var(--ink);
  font-weight: 900;
}

.workbench-body {
  display: grid;
  grid-template-columns: 52px minmax(250px, 1fr) minmax(160px, .6fr);
  min-height: 430px;
}

.tool-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  gap: 11px;
  border-right: 3px solid var(--ink);
  background: var(--parchment);
}

.tool-rail span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--white);
  font-weight: 900;
}

.tool-rail .tool-selected {
  background: var(--sun);
  box-shadow: 2px 2px 0 var(--ink);
}

.editor-map {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 38, 42, .17) 1px, transparent 1px) 0 0 / 27px 27px,
    linear-gradient(rgba(16, 38, 42, .17) 1px, transparent 1px) 0 0 / 27px 27px,
    var(--moss);
}

.map-path {
  position: absolute;
  background: var(--parchment);
  border: 3px solid rgba(16, 38, 42, .4);
}

.path-horizontal {
  top: 48%;
  right: -5%;
  left: -5%;
  height: 55px;
}

.path-up,
.path-down {
  left: 49%;
  width: 56px;
  height: 53%;
}

.path-up {
  top: -3%;
}

.path-down {
  bottom: -3%;
}

.editor-tree {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 55px;
  background: var(--moss-deep);
  border: 3px solid var(--ink);
  clip-path: polygon(50% 0, 100% 54%, 76% 54%, 100% 88%, 60% 88%, 60% 100%, 40% 100%, 40% 88%, 0 88%, 24% 54%, 0 54%);
}

.tree-a {
  top: 12%;
  left: 14%;
}

.tree-b {
  right: 15%;
  bottom: 12%;
}

.tree-c {
  bottom: 14%;
  left: 18%;
  transform: scale(.8);
}

.editor-character {
  position: absolute;
  top: 39%;
  left: 42%;
  z-index: 4;
  width: 64px;
  height: 60px;
  transform: scale(.8);
}

.editor-entrance {
  position: absolute;
  top: 36%;
  right: 12%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--ember);
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.inspector {
  padding: 20px 16px;
  border-left: 3px solid var(--ink);
  background: var(--paper);
}

.inspector-label,
.inspector label {
  display: block;
  margin: 17px 0 6px;
  color: var(--moss-deep);
  font-size: 10px;
  font-weight: 900;
}

.inspector-label {
  margin-top: 0;
}

.inspector strong {
  font-family: var(--display);
  font-size: 15px;
}

.inspector p,
.fake-field {
  padding: 10px;
  border: 2px solid var(--line);
  background: var(--white);
  font-size: 11px;
  line-height: 1.45;
}

.fake-field {
  overflow: hidden;
  font-family: var(--display);
  text-overflow: ellipsis;
}

.workbench-footer {
  justify-content: flex-end;
  border-top: 3px solid var(--ink);
  background: var(--parchment);
  color: var(--ink);
}

.workbench-footer span:first-child {
  margin-right: auto;
  color: var(--moss-deep);
}

.workbench-footer strong {
  padding: 5px 12px;
  background: var(--sun);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  width: var(--shell);
  min-height: 340px;
  margin: 0 auto 110px;
  padding: 55px 65px;
  gap: 45px;
  overflow: hidden;
  border: 5px solid var(--ink);
  background: var(--parchment);
  box-shadow: 12px 12px 0 var(--ink);
}

.final-cta h2 {
  max-width: 720px;
  margin-bottom: 18px;
}

.final-cta p:not(.section-kicker) {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
}

.beacon {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
}

.beacon-core {
  position: relative;
  z-index: 2;
  color: var(--sun);
  font-size: 100px;
  line-height: 1;
  text-shadow: 6px 6px 0 var(--ink);
}

.beacon-ray {
  position: absolute;
  width: 150px;
  height: 5px;
  background: var(--ember);
}

.ray-two {
  transform: rotate(45deg);
}

.ray-three {
  transform: rotate(-45deg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 160px;
  padding: 38px max(30px, calc((100% - 1180px) / 2));
  gap: 30px;
  background: var(--ink-deep);
  color: var(--parchment);
}

.footer-brand {
  color: var(--parchment);
}

.site-footer > p {
  margin: 0;
  font-size: 13px;
  text-align: center;
}

.footer-note {
  justify-self: end;
  color: #aebdb4;
}

.footer-note a {
  color: var(--sun);
}

@keyframes student-step {
  to { background-position-x: -384px; }
}

@keyframes world-arrival {
  from {
    opacity: 0;
    transform: translate(24px, 18px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    max-width: 820px;
    padding-top: 72px;
  }

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

  .hero-world {
    width: 100%;
  }

  .team-section {
    grid-template-columns: 1fr;
  }

  .team-landscape {
    min-height: 540px;
  }

  .team-copy {
    max-width: 760px;
    padding: 82px max(40px, calc((100vw - 760px) / 2)) 100px;
  }

  .teacher-section {
    grid-template-columns: 1fr;
  }

  .teacher-copy {
    max-width: 760px;
  }

  .final-cta {
    grid-template-columns: 150px 1fr;
  }

  .final-cta > .button {
    grid-column: 2;
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p:not(.footer-note) {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 24px, 680px);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 78px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-cta {
    padding: 9px 11px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 55px 0 75px;
  }

  .hero-canopy {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 14vw, 4.6rem);
  }

  .hero-facts {
    margin-top: 45px;
  }

  .hero-facts div {
    min-width: 0;
    padding: 0 13px;
  }

  .hero-facts dd {
    line-height: 1.3;
  }

  .map-scene {
    min-height: 520px;
  }

  .pixel-house {
    top: 40px;
    width: 92px;
  }

  .route-map {
    top: 24px;
    height: calc(100% - 24px);
    transform: scaleX(1.18);
  }

  .route-pin-water {
    top: 150px;
    left: 3%;
  }

  .route-pin-wood {
    top: 155px;
    right: 3%;
  }

  .guide-sprite {
    top: 118px;
  }

  .student-sprite {
    bottom: 130px;
  }

  .route-dialogue {
    grid-template-columns: 1fr;
  }

  .route-dialogue .dialogue-speaker {
    grid-row: auto;
  }

  .quest-strip {
    justify-content: center;
    min-height: 118px;
    flex-wrap: wrap;
    gap: 10px 16px;
    overflow-x: hidden;
  }

  .quest-strip p {
    font-size: 11px;
  }

  .journey {
    padding: 95px 0 110px;
  }

  .section-heading {
    display: block;
    margin-bottom: 55px;
  }

  .section-heading > p:last-child {
    margin-top: 25px;
  }

  .journey-track {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .journey-track::before {
    display: none;
  }

  .journey-number {
    margin-left: 0;
  }

  .journey-art {
    max-width: 520px;
  }

  .team-landscape {
    min-height: 460px;
  }

  .team-copy {
    padding: 72px 24px 85px;
  }

  .teacher-section {
    padding: 95px 0 110px;
  }

  .workbench-body {
    grid-template-columns: 45px 1fr;
    min-height: 390px;
  }

  .inspector {
    display: none;
  }

  .final-cta {
    grid-template-columns: 1fr;
    margin-bottom: 75px;
    padding: 38px 28px 45px;
    gap: 24px;
  }

  .final-cta > .button {
    grid-column: 1;
  }

  .beacon {
    width: 100px;
    height: 100px;
  }

  .beacon-core {
    font-size: 72px;
  }

  .beacon-ray {
    width: 105px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 42px 24px;
  }

  .footer-note {
    justify-self: start;
    text-align: left !important;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .teacher-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts div {
    padding-inline: 8px;
  }

  .route-pin span:last-child {
    display: none;
  }

  .route-pin {
    padding-right: 8px;
  }

  .route-pin-water {
    left: 7%;
  }

  .route-pin-wood {
    right: 7%;
  }
}

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

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