/* Paper Meadow: Microgame's fonts, colours, ink outlines and hard shadows.
   Intentionally independent of Lightforged's industry.css and app.css. */
@font-face {
  font-family: Fredoka;
  src: url('/microgame/fonts/fredoka-latin-wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url('/microgame/fonts/nunito-latin-wght.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-ink: #2b2230;
  --color-ink-soft: #4a3a4e;
  --color-paper: #fbf3e2;
  --color-paper-light: #fffbf1;
  --color-kraft: #f3e6c8;
  --color-sky: #cdebf2;
  --color-sun: #ffc23d;
  --color-meadow: #6db35a;
  --color-forest: #2e6b45;
  --color-hero1: #e2483a;
  --color-hero2: #2f6fd6;
  --font-display: Fredoka, sans-serif;
  --font-body: Nunito, sans-serif;
  color-scheme: light;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.65;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px dashed var(--color-ink);
  outline-offset: 6px;
}
::selection {
  background: var(--color-sun);
  color: var(--color-ink);
}
.mg-site {
  overflow: clip;
}
.mg-wrap {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}
.mg-skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--color-paper);
}
.mg-skip:focus {
  top: 12px;
}
.mg-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
}
body {
  background: var(--color-paper);
}
.mg-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: var(--color-sky);
}
.mg-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font: 650 29px/1 var(--font-display);
  letter-spacing: .01em;
}
.mg-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.mg-nav-link {
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.mg-nav-link:hover {
  text-decoration: underline;
}
.mg-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 12px 26px;
  border: 3px solid var(--color-ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--color-ink);
  background: var(--color-sun);
  color: var(--color-ink);
  font: 600 21px/1.2 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms, box-shadow 100ms;
}
.mg-button:hover {
  transform: rotate(-1.5deg);
}
.mg-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--color-ink);
}
.mg-button-paper {
  background: var(--color-paper-light);
}
.mg-button-small {
  min-height: 46px;
  font-size: 17px;
  padding: 9px 18px;
  gap: 18px;
}
.mg-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  padding-block: 10px;
}
.mg-hero {
  position: relative;
  isolation: isolate;
  background: var(--color-sky);
  padding-block: 56px 160px;
}
.mg-scenery {
  position: absolute;
  z-index: -1;
  inset: -100px 0 0;
  pointer-events: none;
  overflow: hidden;
}
.mg-sun {
  position: absolute;
  width: 144px;
  top: 10px;
  right: -35px;
  rotate: 8deg;
}
.mg-cloud {
  position: absolute;
}
.mg-cloud-one {
  top: 25px;
  left: 38%;
  width: 140px;
  opacity: .85;
}
.mg-cloud-two {
  top: 260px;
  left: -45px;
  width: 160px;
}
.mg-hill {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-width: none;
  min-width: 1280px;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
}
.mg-hill-far {
  bottom: 18px;
}
.mg-hill-mid {
  bottom: -12px;
}
.mg-hill-near {
  bottom: -30px;
}
.mg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 64px;
  align-items: center;
}
.mg-sticker {
  display: inline-block;
  padding: 5px 15px;
  background: var(--color-paper-light);
  border: 2px solid var(--color-ink);
  border-radius: 999px;
  font: 550 16px/1.4 var(--font-display);
  rotate: -2deg;
  margin-bottom: 25px;
  box-shadow: 0 2px 0 var(--color-ink);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
}
h1 {
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -.025em;
}
h1 span {
  color: var(--color-paper-light);
  -webkit-text-stroke: 3px var(--color-ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--color-ink);
}
h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.12;
  letter-spacing: -.015em;
}
h3 {
  font-size: 25px;
  line-height: 1.2;
}
.mg-intro {
  max-width: 40ch;
  font-size: 19px;
  margin-top: 26px;
}
.mg-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-block: 28px 20px;
}
.mg-small {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}
.mg-hero-friends {
  display: flex;
  align-items: center;
  margin-top: 28px;
}
.mg-critter {
  width: 100px;
  aspect-ratio: 1;
}
.mg-hero-friends .mg-critter {
  width: 74px;
  rotate: -7deg;
}
.mg-hero-friends .mg-critter + .mg-critter {
  margin-left: -12px;
  rotate: 7deg;
}
.mg-hero-friends span {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  margin-left: 12px;
}
.mg-preview {
  text-align: center;
  min-width: 0;
}
.mg-preview-label {
  display: inline-block;
  font: 500 16px/1.4 var(--font-display);
  padding: 6px 18px;
  background: var(--color-paper-light);
  border: 2px solid var(--color-ink);
  border-radius: 8px;
  rotate: 3deg;
  margin-bottom: 20px;
}
.mg-board {
  position: relative;
  border: 3px solid var(--color-ink);
  border-radius: 22px;
  box-shadow: 0 8px 0 var(--color-ink);
  background: var(--color-paper-light);
  rotate: -3deg;
  margin-bottom: 40px;
}
.mg-board svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.mg-cover,
.mg-ribbons,
.mg-board-cast {
  transition: opacity 500ms ease, transform 500ms ease;
}
.mg-board[data-revealed='true'] .mg-cover {
  opacity: 0;
  transform: translate(10px, -15px);
}
.mg-board[data-revealed='true'] .mg-ribbons {
  opacity: .12;
}
.mg-board[data-revealed='true'] .mg-board-cast {
  opacity: 0;
}
.mg-picture-note {
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%) rotate(5deg);
  white-space: nowrap;
  padding: 5px 15px;
  background: var(--color-sun);
  border: 2px solid var(--color-ink);
  border-radius: 8px;
  font: 500 16px/1.4 var(--font-display);
}
.mg-preview .mg-button {
  font-size: 18px;
  min-height: 48px;
  padding: 9px 20px;
}
.mg-preview figcaption {
  max-width: 40ch;
  margin: 16px auto 0;
  font-size: 12px;
  line-height: 1.5;
}
.mg-section {
  padding-block: 92px;
}
.mg-how {
  text-align: center;
}
.mg-section-heading {
  max-width: 660px;
  margin: 0 auto 42px;
}
.mg-eyebrow {
  color: var(--color-forest);
  font: 550 17px/1.4 var(--font-display);
  margin-bottom: 14px;
}
.mg-section-heading > p:last-child {
  margin-top: 20px;
  font-size: 18px;
}
.mg-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 0 0 28px;
  text-align: left;
}
.mg-paper {
  background: var(--color-paper-light);
  border: 3px solid var(--color-ink);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--color-ink);
}
.mg-steps li {
  position: relative;
  padding: 24px 28px 30px;
}
.mg-steps li:nth-child(2) {
  rotate: 1deg;
}
.mg-steps li > .mg-critter {
  margin: 0 auto 18px;
}
.mg-steps p {
  margin-top: 12px;
  color: var(--color-ink-soft);
}
.mg-step-number {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--color-sun);
  border: 2px solid var(--color-ink);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font: 600 20px/1 var(--font-display);
}
.mg-path-art {
  position: relative;
  width: 120px;
  height: 100px;
  margin: 0 auto 18px;
}
.mg-path-art > span {
  position: absolute;
  inset: 22px 14px 12px;
  border: 5px solid var(--color-hero2);
  border-radius: 9px;
  outline: 2px solid var(--color-ink);
  background: var(--color-kraft);
}
.mg-path-art .mg-critter {
  position: absolute;
  width: 70px;
  right: -15px;
  top: -5px;
}
.mg-adventure {
  background: var(--color-kraft);
  border-block: 2px dashed #cbbb9e;
  padding-block: 80px;
}
.mg-adventure-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 95px;
  align-items: center;
}
.mg-adventure-copy > p:not(.mg-eyebrow),
.mg-workshop-copy > p:not(.mg-eyebrow):not(.mg-small) {
  margin-block: 24px;
  font-size: 18px;
  max-width: 42ch;
}
.mg-postcards {
  position: relative;
  padding: 24px 0 32px;
}
.mg-postcard {
  background: var(--color-paper-light);
  padding: 12px 12px 0;
  border: 2px solid var(--color-ink);
  border-radius: 4px;
  box-shadow: 0 5px 0 var(--color-ink);
  max-width: 88%;
  rotate: -8deg;
}
.mg-postcard img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border: 1px solid var(--color-ink);
}
.mg-postcard figcaption {
  padding: 7px 0 9px;
  text-align: center;
  font: 500 18px/1.4 var(--font-display);
}
.mg-postcard + .mg-postcard {
  margin: -72px 0 0 70px;
  rotate: 7deg;
}
.mg-postcard-jay {
  position: absolute;
  left: -15px;
  bottom: 0;
  width: 120px;
  rotate: -9deg;
}
.mg-workshop {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 110px;
  align-items: center;
}
.mg-check-list {
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.mg-check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.mg-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--color-forest);
}
.mg-workshop .mg-small {
  margin-top: 18px;
}
.mg-maker-note {
  position: relative;
  rotate: 3deg;
  padding: 30px;
  text-align: center;
}
.mg-tape {
  position: absolute;
  width: 110px;
  height: 30px;
  top: -16px;
  left: 50%;
  background: #e8d9a9cc;
  border: 1px solid #d1bc83;
  rotate: -8deg;
  transform: translateX(-50%);
}
.mg-note-title {
  font: 550 28px/1.1 var(--font-display);
}
.mg-maker-picture {
  position: relative;
  margin-top: 20px;
}
.mg-maker-picture > img {
  border: 2px solid var(--color-ink);
  border-radius: 8px;
  width: 100%;
}
.mg-pencil {
  position: absolute;
  right: -22px;
  bottom: -20px;
  background: var(--color-sun);
  border: 3px solid var(--color-ink);
  border-radius: 16px;
  width: 65px;
  height: 65px;
  font-size: 48px;
  line-height: 1;
  display: grid;
  place-items: center;
  rotate: -15deg;
}
.mg-maker-cast {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.mg-maker-cast .mg-critter {
  width: 68px;
}
.mg-maker-note > p:last-child {
  margin-top: 10px;
  font-size: 14px;
}
.mg-faq {
  max-width: 800px;
  padding-bottom: 90px;
}
.mg-faq h2 {
  text-align: center;
  margin-bottom: 32px;
}
.mg-faq details {
  border-bottom: 2px solid #dfd1b7;
  padding-block: 4px;
}
.mg-faq summary {
  padding-block: 17px;
  font: 550 21px/1.4 var(--font-display);
  cursor: pointer;
}
.mg-faq details p {
  padding: 0 0 20px 22px;
  color: var(--color-ink-soft);
}
.mg-finale {
  background: #a6d27f;
  border-top: 3px solid var(--color-ink);
  padding: 50px 0 65px;
  text-align: center;
}
.mg-finale-cast {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.mg-finale-cast .mg-critter {
  width: 90px;
  rotate: -8deg;
}
.mg-finale-cast .mg-critter + .mg-critter {
  rotate: 8deg;
  margin-left: -10px;
}
.mg-finale h2 {
  font-size: clamp(38px, 4vw, 54px);
}
.mg-finale p {
  margin-block: 20px 26px;
  font-size: 18px;
}
.mg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 30px;
  font-size: 14px;
}
.mg-footer .mg-logo {
  font-size: 23px;
}
.mg-footer nav {
  display: flex;
  gap: 24px;
}
@media (min-width: 1500px) {
  .mg-sun {
    right: calc((100vw - 1420px) / 2);
  }
}
@media (max-width: 1000px) {
  .mg-wrap {
    width: calc(100% - 48px);
  }
  .mg-hero-grid {
    gap: 32px;
  }
  h1 {
    font-size: 50px;
  }
  .mg-intro {
    font-size: 17px;
  }
  .mg-steps {
    gap: 18px;
  }
  .mg-steps li {
    padding-inline: 20px;
  }
  .mg-adventure-grid,
  .mg-workshop {
    gap: 50px;
  }
  .mg-maker-note {
    padding: 24px;
  }
}
@media (max-width: 760px) {
  .mg-header {
    padding-block: 16px;
  }
  .mg-header nav {
    gap: 15px;
  }
  .mg-nav-link {
    display: none;
  }
  .mg-logo {
    font-size: 25px;
  }
  .mg-logo img {
    width: 40px;
  }
  .mg-hero {
    padding-top: 35px;
    padding-bottom: 110px;
  }
  .mg-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 560px;
  }
  .mg-hero-copy {
    text-align: center;
  }
  h1 {
    font-size: clamp(45px, 9vw, 62px);
  }
  .mg-intro {
    margin-inline: auto;
  }
  .mg-actions,
  .mg-hero-friends {
    justify-content: center;
  }
  .mg-hero-friends {
    margin-top: 18px;
    text-align: left;
  }
  .mg-preview {
    max-width: 490px;
    width: calc(100% - 14px);
    margin-inline: auto;
  }
  .mg-cloud-one {
    left: -45px;
    top: 140px;
    width: 110px;
  }
  .mg-cloud-two {
    display: none;
  }
  .mg-sun {
    width: 100px;
    right: -30px;
    top: 88px;
  }
  .mg-section {
    padding-block: 65px;
  }
  .mg-section-heading {
    margin-bottom: 30px;
  }
  .mg-steps {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 480px;
    margin-inline: auto;
  }
  .mg-steps li {
    padding: 24px;
  }
  .mg-steps li:nth-child(2) {
    rotate: 0deg;
  }
  .mg-adventure {
    padding-block: 55px;
  }
  .mg-adventure-grid,
  .mg-workshop {
    grid-template-columns: 1fr;
    gap: 45px;
    max-width: 540px;
  }
  .mg-postcards {
    max-width: 430px;
    margin-inline: auto;
  }
  .mg-postcard + .mg-postcard {
    margin-left: 40px;
  }
  .mg-adventure-copy {
    text-align: center;
  }
  .mg-adventure-copy > p {
    margin-inline: auto;
  }
  .mg-workshop-copy {
    order: 0;
  }
  .mg-maker-note {
    width: calc(100% - 16px);
    margin: 0 auto;
    max-width: 390px;
  }
  .mg-faq {
    padding-bottom: 60px;
  }
  .mg-faq summary {
    font-size: 19px;
  }
  .mg-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    text-align: center;
  }
  .mg-footer p {
    width: 100%;
    order: 1;
  }
}
@media (max-width: 380px) {
  .mg-wrap {
    width: calc(100% - 32px);
  }
  .mg-logo {
    font-size: 23px;
    gap: 4px;
  }
  .mg-button-small {
    padding-inline: 12px;
    gap: 10px;
  }
  .mg-hero {
    padding-top: 24px;
  }
  .mg-actions {
    gap: 14px;
  }
  .mg-picture-note {
    font-size: 14px;
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Keep the two-word brand and the play action together in the mobile header. */
.mg-header .mg-logo,
.mg-header .mg-button {
  white-space: nowrap;
}
.mg-header .mg-button {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .mg-header {
    gap: 16px;
  }
}
@media (max-width: 380px) {
  .mg-header {
    gap: 12px;
  }
  .mg-header .mg-logo {
    font-size: 21px;
  }
  .mg-header .mg-logo img {
    width: 32px;
  }
}
