@font-face {
  font-family: Pixel;
  src: url('/assets/fonts/press-start-2p.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f7f2;
  --ink: #29262f;
  --muted: #726d7b;
  --purple: #8051c5;
  --lilac: #d8c5f5;
  --yellow: #f6d65b;
  --line: #dcd8df;
  --pixel: Pixel,'Courier New',monospace;
  --mono: 'SFMono-Regular',Consolas,'Liberation Mono',monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lilac);
  color: var(--ink);
}

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

button {
  font: inherit;
  color: inherit;
}

button,a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

button[hidden] {
  display: none;
}

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

svg {
  display: block;
}

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

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: none;
}

.site-shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 48px;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px 18px;
  background: var(--yellow);
  z-index: 10;
  border: 2px solid var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  white-space: nowrap;
}

.brand-mark {
  width: 29px;
  height: 29px;
}

.brand-domain {
  color: var(--muted);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  font-size: 12px;
}

.main-nav>a,.main-nav>button {
  transition: color .15s;
}

.main-nav>a:hover,.main-nav>button:hover {
  color: var(--purple);
}

.nav-github {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.soon {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .3px;
  padding: 1px 4px;
  background: #eae6ed;
  color: #655c70;
  border: 1px solid #d9d3df;
  vertical-align: middle;
  line-height: 1.5;
}

.build-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #d9d3df;
  padding: 7px 9px;
  margin-left: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #827059;
  box-shadow: 0 0 0 3px #e9e2d4;
}

.hero {
  padding-top: 69px;
}

.hero-copy {
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  line-height: 1.8;
  font-weight: 600;
}

.hero-eyebrow {
  color: var(--purple);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.hero-eyebrow>span {
  font-size: 20px;
  line-height: 1;
}

.hero h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(24px,3.58vw,44px);
  line-height: 1.65;
  letter-spacing: -1.5px;
  margin: 22px -30px 22px;
}

.hero h1>span {
  color: var(--purple);
}

.hero-description {
  font-size: 15px;
  line-height: 1.85;
  color: #67616f;
}

.hero-actions {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  margin-top: 29px;
}

.pixel-button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s,box-shadow .12s;
}

.primary-button {
  background: var(--yellow);
}

.pixel-button:hover {
  transform: translate(-1px,-2px);
  box-shadow: 5px 6px 0 var(--ink);
}

.pixel-button:active {
  transform: translate(4px,4px);
  box-shadow: 0 0 0 var(--ink);
}

.play-icon {
  font-size: 12px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
}

.secondary-button:hover {
  border-bottom-color: var(--purple);
  color: var(--purple);
}

.hero-footnote {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 23px;
}

.world {
  margin-top: 38px;
  position: relative;
  background-image: radial-gradient(#d9d4df .7px,transparent .7px);
  background-size: 16px 16px;
  background-position: 0 8px;
}

.world-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1px;
  color: #766982;
  padding-top: 13px;
}

.world-hud>span:last-child {
  color: var(--purple);
  font-size: 15px;
}

.hud-divider {
  margin: 0 8px;
  color: #b9b1c4;
}

.world-art {
  width: 100%;
  height: auto;
  overflow: visible;
}

.world-labels {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  max-width: 81%;
  margin: -3px auto 0;
  text-align: center;
  font-family: var(--pixel);
  font-size: 7px;
  color: #7a6a8c;
  line-height: 1.8;
}

.world-labels span:nth-child(2) {
  color: var(--purple);
}

.world-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 29px;
  padding: 14px 0;
  font-size: 11px;
}

.console-cursor {
  color: var(--purple);
  font-weight: 700;
  margin-right: 10px;
  font-size: 16px;
}

.forge-button {
  font-size: 10px;
  border: 0;
  background: transparent;
  white-space: nowrap;
  padding: 5px 0;
  font-weight: 700;
  color: var(--purple);
}

.forge-button>span {
  margin-left: 8px;
}

.forge-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.forge-button:disabled {
  color: var(--muted);
}

.demo-caption {
  display: block;
  background: var(--paper);
  text-align: center;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 9px 0;
}

.world[data-step="1"] .data-stack,.world[data-step="2"] .little-agent,.world[data-step="3"] .insight-star {
  filter: drop-shadow(0 0 8px #c4a3f1);
}

.world[data-step="2"] .route-one,.world[data-step="3"] .world-route {
  stroke: var(--purple);
  stroke-width: 4;
  stroke-dasharray: none;
}

.world[data-step="3"] .insight-star {
  transform: translateY(-8px);
}

.insight-star {
  transition: transform .3s;
}

.section {
  scroll-margin-top: 35px;
  padding-top: 78px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  color: var(--purple);
  margin-bottom: 13px;
}

h2 {
  font-size: 27px;
  letter-spacing: -1.2px;
  line-height: 1.4;
  font-weight: 700;
}

.section-heading>p {
  max-width: 370px;
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 3px;
  line-height: 1.9;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quest-card {
  padding: 28px 25px 24px 0;
}

.quest-card+article {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.quest-card:last-child {
  padding-right: 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--purple);
  margin-bottom: 23px;
}

.card-top svg {
  width: 25px;
  height: 25px;
  shape-rendering: crispEdges;
}

.card-top span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #766982;
}

.quest-card h3 {
  font-size: 13px;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}

.quest-card p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  min-height: 92px;
}

.card-tag {
  display: block;
  font-size: 8px;
  letter-spacing: .6px;
  color: #7c668f;
  margin-top: 23px;
}

.section-aside {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .4px;
  padding-bottom: 6px;
}

.post-link {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  transition: background .15s;
}

.post-link:last-child {
  border-bottom: 1px solid var(--line);
}

.post-link:hover {
  background: #f0edf5;
}

.post-number {
  color: #766982;
  font-size: 10px;
}

.post-category {
  font-size: 8px;
  letter-spacing: .8px;
  color: var(--purple);
  display: block;
  margin-bottom: 3px;
}

.post-link h3 {
  font-size: 14px;
  font-weight: 500;
}

.post-time {
  font-size: 8px;
  letter-spacing: .6px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

.post-arrow {
  font-size: 25px;
  margin-left: 8px;
  transition: transform .15s;
}

.post-link:hover .post-arrow {
  transform: translate(3px,-3px);
}

.join {
  text-align: center;
  padding: 63px 24px 66px;
  margin-top: 75px;
  border: 1px solid #dcd4e9;
  background: #eee8f5;
  position: relative;
}

.join-star {
  font-size: 42px;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 21px;
}

.join .eyebrow {
  color: #73548d;
  font-size: 8px;
}

.join h2 {
  font-size: 31px;
  margin: 18px auto 16px;
  line-height: 1.4;
}

.join>p:not(.eyebrow) {
  font-size: 12px;
  color: #70647c;
  line-height: 1.9;
  margin-bottom: 25px;
}

.join .pixel-button {
  min-width: 162px;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 30px;
}

.footer-brand {
  font-size: 17px;
  letter-spacing: -.8px;
  font-weight: 700;
}

.footer-brand>span {
  color: var(--purple);
  margin-left: 8px;
}

.footer-top p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4,auto);
  gap: 13px 24px;
  font-size: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 10px;
  line-height: 1.7;
}

.footer-links a:hover,.text-link:hover {
  color: var(--purple);
}

.footer-links .soon {
  font-size: 7px;
  padding: 0 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
  padding: 21px 0 28px;
  letter-spacing: .4px;
}

.pixel-heart {
  color: var(--purple);
  font-size: 15px;
  margin-left: 6px;
  vertical-align: middle;
}

.coming-soon {
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  max-width: 440px;
  width: calc(100% - 48px);
  padding: 44px 32px 34px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.coming-soon::backdrop {
  background: rgba(40,30,55,.45);
  backdrop-filter: blur(3px);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.dialog-close {
  position: absolute;
  right: 10px;
  top: 7px;
  width: 35px;
  height: 35px;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.dialog-spark {
  display: block;
  font-size: 50px;
  color: var(--purple);
  line-height: 1.2;
  margin-bottom: 18px;
}

.coming-soon .eyebrow {
  font-size: 8px;
  color: var(--purple);
}

.coming-soon h2 {
  font-size: 24px;
  margin: 15px 0;
}

.coming-soon #dialog-description {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.dialog-dismiss {
  font-size: 10px;
  background: var(--yellow);
}

.article-main {
  padding: 70px 0 30px;
}

.article-content {
  max-width: 720px;
  margin: auto;
}

.back-link {
  display: inline-block;
  color: var(--purple);
  font-size: 12px;
  margin-bottom: 50px;
}

.article-content .eyebrow {
  color: var(--purple);
  font-size: 9px;
  margin-bottom: 25px;
}

.article-content h1 {
  font-family: var(--pixel);
  font-size: 27px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 27px;
}

.article-content p {
  font-size: 14px;
  line-height: 1.95;
  color: #655e6d;
  margin-bottom: 22px;
}

.article-content .article-lede {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 32px;
}

.article-content h2 {
  font-size: 23px;
  margin: 40px 0 18px;
}

.article-callout {
  display: flex;
  gap: 18px;
  background: #eee8f5;
  border-left: 3px solid var(--purple);
  padding: 24px;
  margin: 32px 0;
}

.article-callout>span {
  font-size: 25px;
  color: var(--purple);
}

.article-callout p {
  margin: 0;
  font-size: 12px;
}

.article-next {
  display: block;
  margin-top: 45px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--purple);
  font-size: 12px;
}

.not-found {
  padding: 100px 0;
  text-align: center;
}

.error-number {
  font-family: var(--pixel);
  font-size: 75px;
  line-height: 1.7;
  color: var(--purple);
  margin: 30px 0;
}

.not-found h1 {
  font-size: 27px;
}

.not-found p {
  margin: 15px 0 30px;
  font-size: 12px;
}

@media(min-width:1400px) {
  .site-shell {
    max-width: 1230px;
    padding: 0 64px;
  }
  .hero {
    padding-top: 78px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .world {
    margin-top: 44px;
  }
}

@media(max-width:950px) {
  .site-shell {
    padding: 0 32px;
  }
  .build-badge {
    display: none;
  }
  .main-nav {
    gap: 24px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .footer-top {
    gap: 25px;
  }
  .footer-links {
    grid-template-columns: repeat(3,auto);
    gap: 12px 18px;
  }
  .quest-card {
    padding-right: 20px;
  }
  .quest-card+article {
    padding-left: 20px;
  }
  .quest-card p {
    min-height: 116px;
  }
  .section-aside {
    max-width: 220px;
    text-align: right;
  }
}

@media(max-width:700px) {
  .site-shell {
    padding: 0 23px;
  }
  .site-header {
    min-height: 82px;
    gap: 18px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
  }
  .main-nav {
    gap: 18px;
    font-size: 11px;
  }
  .nav-github {
    display: none;
  }
  .hero {
    padding-top: 51px;
  }
  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: .6px;
  }
  .hero h1 {
    font-size: clamp(20px,4.85vw,32px);
    line-height: 1.8;
    letter-spacing: -1px;
    margin: 20px -9px;
  }
  .hero-description {
    font-size: 13px;
    line-height: 1.9;
  }
  .hero-actions {
    gap: 22px;
    margin-top: 26px;
  }
  .pixel-button {
    padding: 11px 14px;
    gap: 10px;
    font-size: 11px;
  }
  .secondary-button {
    font-size: 10px;
    gap: 5px;
  }
  .hero-footnote {
    font-size: 7px;
    letter-spacing: .3px;
  }
  .world {
    margin-top: 35px;
  }
  .world-hud {
    font-size: 6px;
    letter-spacing: .4px;
  }
  .world-hud>span:last-child {
    font-size: 11px;
  }
  .world-art {
    width: calc(100% + 32px);
    max-width: none;
    margin-left: -16px;
  }
  .world-labels {
    max-width: 95%;
    font-size: 5px;
    margin: 2px auto 0;
  }
  .world-console {
    margin-top: 21px;
    gap: 10px;
    font-size: 10px;
    align-items: flex-start;
  }
  .world-console p {
    max-width: 65%;
    line-height: 1.8;
    min-height: 36px;
  }
  .forge-button {
    font-size: 9px;
    padding-top: 3px;
  }
  .console-cursor {
    margin-right: 4px;
    line-height: 1;
  }
  .demo-caption {
    font-size: 6px;
    letter-spacing: .5px;
  }
  .section {
    padding-top: 56px;
  }
  .section-heading {
    display: block;
    margin-bottom: 25px;
  }
  .section-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 11px;
  }
  h2 {
    font-size: 25px;
  }
  .section-heading>p {
    font-size: 11px;
    margin-top: 16px;
  }
  .quest-grid {
    grid-template-columns: 1fr;
  }
  .quest-card,.quest-card+article,.quest-card:last-child {
    padding: 25px 0;
    border-left: 0;
  }
  .quest-card+article {
    border-top: 1px solid var(--line);
  }
  .card-top {
    margin-bottom: 17px;
  }
  .card-top span {
    font-size: 8px;
  }
  .quest-card h3 {
    font-size: 14px;
  }
  .quest-card p {
    min-height: 0;
    font-size: 12px;
    max-width: 430px;
  }
  .card-tag {
    margin-top: 14px;
  }
  .section-aside {
    display: block;
    margin-top: 12px;
    text-align: left;
    max-width: none;
    font-size: 7px;
  }
  .post-link {
    gap: 15px;
    padding: 22px 0;
  }
  .post-link h3 {
    font-size: 12px;
    line-height: 1.7;
  }
  .post-category {
    font-size: 7px;
  }
  .post-number {
    font-size: 9px;
  }
  .post-time {
    display: none;
  }
  .post-arrow {
    margin-left: auto;
    font-size: 21px;
  }
  .join {
    margin-top: 56px;
    padding: 42px 18px;
  }
  .join h2 {
    font-size: 26px;
  }
  .join>p:not(.eyebrow) {
    font-size: 11px;
  }
  .join-star {
    font-size: 36px;
  }
  .footer-top {
    display: block;
  }
  .footer-links {
    grid-template-columns: repeat(3,auto);
    justify-content: space-between;
    gap: 17px 15px;
    margin-top: 28px;
  }
  .footer-bottom {
    font-size: 7px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .footer-bottom>span:nth-child(2) {
    margin-left: auto;
  }
  .footer-bottom>a {
    display: none;
  }
  .site-footer {
    padding-top: 38px;
  }
  .article-main {
    padding-top: 38px;
  }
  .back-link {
    margin-bottom: 33px;
  }
  .article-content h1 {
    font-size: 22px;
    line-height: 1.8;
  }
  .article-content p {
    font-size: 13px;
  }
  .article-content .article-lede {
    font-size: 16px;
  }
  .article-content h2 {
    font-size: 21px;
  }
  .article-callout {
    padding: 19px;
    gap: 12px;
  }
  .article-content .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
}

@media(max-width:370px) {
  .site-shell {
    padding: 0 18px;
  }
  .brand {
    font-size: 15px;
  }
  .main-nav {
    gap: 10px;
    font-size: 10px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero h1 {
    font-size: clamp(16px, 5vw, 19px);
  }
  .hero-eyebrow {
    font-size: 7px;
  }
  .hero-description {
    font-size: 12px;
  }
  .world-hud {
    font-size: 5px;
  }
  .footer-links {
    grid-template-columns: repeat(2,auto);
    justify-content: start;
    column-gap: 28px;
  }
  .world-console {
    flex-direction: column;
    gap: 6px;
  }
  .world-console p {
    max-width: 100%;
  }
  .forge-button {
    align-self: flex-end;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
  }
}
