@font-face {
  font-family: "Roboto Condensed";
  src: url("./assets/roboto-condensed.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #1c150c;
  --paper: #fff4dc;
  --yellow: #ffda21;
  --cyan: #25dce6;
  --pink: #ff80ad;
  --content: 1330px;
  --gutter: clamp(22px, 5.4vw, 82px);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: break-word; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.wrap { max-width: var(--content); padding-inline: var(--gutter); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 12px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.hero-surface {
  background:
    radial-gradient(ellipse at 77% 45%, #ffe651 0%, transparent 52%),
    linear-gradient(122deg, #ffe03a, var(--yellow) 70%, #ffc50e);
  overflow: clip;
  position: relative;
}
.hero-surface::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--cyan);
  clip-path: polygon(0 63%, 3% 28%, 8% 57%, 13% 12%, 19% 64%, 23% 45%, 28% 69%, 35% 26%, 44% 56%, 50% 12%, 58% 62%, 65% 30%, 73% 67%, 80% 24%, 88% 59%, 94% 16%, 100% 57%, 100% 100%, 0 100%);
}
.header-surface { background: linear-gradient(110deg, #ffe03a, #ffda21); }
.header {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.wordmark {
  display: grid;
  gap: 0;
  align-content: center;
  min-width: 76px;
  min-height: 60px;
  transform: rotate(-5deg);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 7px 16px;
  font: 950 24px/.79 "Roboto Condensed", "Arial Narrow", sans-serif;
  letter-spacing: -.045em;
  text-decoration: none;
  box-shadow: 3px 4px 0 #b6790c;
}
.header nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(12px, 3vw, 32px); }
.header nav a { font-size: .94rem; font-weight: 720; text-decoration-thickness: 2px; text-underline-offset: .26em; padding-block: 12px; }
.header nav a:not(:hover) { text-decoration: none; }
.hero {
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  min-height: clamp(560px, 54vw, 735px);
  padding-block: 35px 77px;
}
.hero-copy { position: relative; z-index: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 950;
  text-wrap: balance;
}
.hero h1, section h2 { text-transform: uppercase; }
.hero h1 {
  font-size: clamp(4rem, 8.6vw, 8rem);
  line-height: .86;
  letter-spacing: -.065em;
  transform: rotate(-4.7deg);
  transform-origin: 5% 72%;
  margin: 0 0 29px -4px;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span + span { font-size: .87em; }
.hero-copy p, .puzzle-copy > p, .character-copy p {
  font-size: clamp(1rem, 1.7vw, 1.32rem);
  line-height: 1.48;
  font-weight: 560;
  max-width: 29rem;
}
.primary-action {
  width: fit-content;
  display: inline-flex;
  gap: clamp(18px, 3.2vw, 42px);
  align-items: center;
  margin-top: 26px;
  padding: 16px 21px 16px 23px;
  color: var(--paper);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  background: var(--ink);
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 4px 5px 0 #b27706;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-action:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 #b27706; }
.primary-action:active { transform: translate(2px, 3px); box-shadow: 1px 2px 0 #b27706; }
.primary-action span { font-size: 1.32em; }
.primary-action:focus-visible { outline-color: var(--ink); }
.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1 / 1;
  align-self: center;
}
.parcel {
  position: absolute;
  z-index: 1;
  width: 89%;
  max-width: none;
  height: auto;
  left: -6%;
  bottom: -2%;
  transform: rotate(-5deg);
  filter: drop-shadow(10px 18px 15px #7045046b);
}
.phone {
  overflow: hidden;
  aspect-ratio: 738 / 1600;
  background: #1d1610;
  padding: clamp(3px, .42vw, 6px);
  border: 1px solid #e7bd79;
  border-radius: 11% / 5.1%;
  box-shadow: inset 0 0 0 2px #6b492d, 13px 21px 0 #45290f24, 13px 27px 38px #43280b65;
}
.phone img { width: 100%; height: 100%; border-radius: 9% / 4.1%; object-fit: cover; }
.hero-phone {
  position: absolute;
  height: 89%;
  max-height: 570px;
  right: -7%;
  top: -7%;
  transform: rotate(11deg);
}
.puzzles { --scene: var(--cyan); background: var(--scene); transition: background .28s ease; }
.puzzles[data-puzzle="scanner"] { --scene: #c2f367; }
.puzzles[data-puzzle="sorting"] { --scene: #e299f5; }
.puzzle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7%;
  min-height: 635px;
  padding-block: clamp(55px, 7.3vw, 112px);
}
section h2 { font-size: clamp(3rem, 6.4vw, 6.25rem); letter-spacing: -.055em; line-height: .86; }
.puzzle-copy > p, .character-copy p { margin-top: 21px; }
.puzzle-choices { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-block: 25px 19px; }
.puzzle-choices button {
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 11px 13px;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
  min-height: 44px;
}
.puzzle-choices button:hover { background: #fff4dc72; }
.puzzle-choices button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.puzzle-choices button:focus-visible { outline-color: var(--ink); }
.puzzle-description { border-left: 3px solid #1c150c86; padding-left: 14px; min-height: 92px; max-width: 26rem; }
.puzzle-description h3 { font-size: clamp(1.3rem, 2.5vw, 1.86rem); line-height: 1.05; margin-bottom: 6px; }
.puzzle-description p { font-size: .96rem; line-height: 1.48; }
.puzzle-art {
  margin: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 460px;
  position: relative;
}
.mat {
  width: 91%;
  height: 67%;
  position: absolute;
  background: #fff6d9;
  transform: rotate(-7deg) translate(1%, 2%);
  border-radius: 2px;
  box-shadow: 12px 16px 0 #1c150c2b;
}
.mat::after {
  content: "";
  position: absolute;
  width: 23%;
  height: 10%;
  top: -5%;
  right: 4%;
  transform: rotate(16deg);
  background: linear-gradient(7deg, #d62510, #fb4b1b 46%, #d2280e 51%, #f14122);
  clip-path: polygon(0 8%, 100% 0, 95% 18%, 100% 27%, 96% 38%, 99% 52%, 96% 66%, 100% 78%, 97% 100%, 2% 91%, 5% 76%, 0 62%, 4% 48%, 0 36%, 4% 24%);
}
.puzzle-phone {
  width: min(54%, 252px);
  z-index: 1;
  transform: rotate(4deg);
  box-shadow: inset 0 0 0 2px #6b492d, 13px 21px 0 #35200e25, 13px 24px 36px #43280b66;
}
.character { background: var(--pink); overflow: clip; }
.character-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; min-height: 420px; gap: 4%; padding-block: 55px; }
.character-grid > img { height: auto; width: 113%; max-width: none; margin-left: -11%; filter: drop-shadow(10px 13px 13px #70163a49); }
.character-copy { position: relative; }
.plain-link { display: inline-block; padding-block: 12px; margin-top: 9px; font-weight: 780; text-underline-offset: 4px; }
.plain-link span { margin-left: 3px; }
.footer { background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding-block: 28px; }
.footer-brand { display: grid; gap: 4px; font-size: .88rem; }
.footer-brand strong { font: 950 29px/.9 "Roboto Condensed", sans-serif; letter-spacing: -.045em; }
.footer nav a { font-size: .9rem; text-underline-offset: 4px; padding-block: 6px; }
@media (max-width: 980px) {
  .hero { min-height: 500px; grid-template-columns: 1fr .85fr; padding-block: 53px 77px; }
  .hero h1 { font-size: clamp(3.6rem, 8.75vw, 6.1rem); }
  .puzzle-grid { min-height: 520px; gap: 4%; }
  .puzzle-art { min-height: 390px; }
}
@media (max-width: 700px) {
  .header { min-height: 72px; }
  .header nav { gap: 13px; }
  .header nav a { font-size: .84rem; }
  .wordmark { min-height: 48px; min-width: 61px; padding-inline: 10px; font-size: 21px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 13px; padding-block: 25px 24px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.6rem); margin-bottom: 22px; }
  .hero-copy p { max-width: 28rem; }
  .primary-action { margin-top: 17px; }
  .hero-art { width: min(100%, 455px); justify-self: center; aspect-ratio: 1.15 / 1; }
  .hero-phone { right: -2%; max-height: 480px; top: 0; }
  .parcel { left: -7%; width: 86%; bottom: -7%; max-height: 135%; object-fit: contain; }
  .puzzle-grid { grid-template-columns: 1fr; gap: 15px; }
  .puzzle-description { min-height: 0; }
  .puzzle-art { min-height: unset; width: min(100%, 425px); justify-self: center; padding-block: 18px; }
  .mat { width: 82%; }
  .puzzle-phone { width: min(54%, 230px); }
  .character-grid { grid-template-columns: 1fr; gap: 19px; padding-block: 44px; }
  .character-grid img { grid-row: 2; width: 105%; max-width: 460px; margin-left: -4%; justify-self: center; }
  .character-copy p { margin-top: 16px; }
}
@media (max-width: 390px) {
  .support-nav { display: none; }
  .hero h1 { font-size: clamp(2.7rem, 11.7vw, 3.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
