@font-face {
  font-family: "Titan One";
  src: url(/fonts/TitanOne-Regular.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url(/fonts/Jost-Variable.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f3f5ff;
  --surface: #ffffff;
  --ink: #1c1f4a;
  --muted: #535889;
  --line: #d7dbf3;
  --string: #9aa2d6;
  --link: #3b4ad9;
  --accent: #5b6cff;
  --accent-ink: #ffffff;
  --mark-light: #5b6cff;
  --mark-dark: #5b6cff;
  --display: "Titan One", ui-rounded, system-ui, sans-serif;
  --body: Jost, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
/* Declared where a game's colors are set, so it resolves against them. */
body,
.game,
.press-game {
  --mark: var(--mark-light);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12143a;
    --surface: #1b1e4d;
    --ink: #eef0ff;
    --muted: #a9aedd;
    --line: #2d316e;
    --string: #4e559e;
    --link: #a3adff;
  }
  body,
  .game,
  .press-game {
    --mark: var(--mark-dark);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px / 1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 400 27px / 1 var(--display);
}
.brand svg {
  width: 42px;
  height: 42px;
  flex: none;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 2px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover {
  background: var(--surface);
}

.section-title {
  font: 400 32px / 1.15 var(--display);
  margin: 0 0 8px;
}

/* Home: the kite flies top left, its tail runs down the games as a string with one bow each. */
.hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding-top: 8px;
}
.hero-art svg {
  display: block;
  width: 300px;
  height: 420px;
  overflow: visible;
}
.hero-art .tail {
  stroke: var(--string);
}
.hero-art .kite {
  transform-origin: 192px 191px;
  animation: sway 7s ease-in-out infinite alternate;
}
@keyframes sway {
  from {
    transform: rotate(-3deg);
  }
  to {
    transform: rotate(3deg);
  }
}
.hero-text {
  padding-bottom: 110px;
}
.hero h1 {
  font: 400 clamp(44px, 6.2vw, 78px) / 1.02 var(--display);
  margin: 0 0 22px;
  max-width: 12ch;
}
.hero p {
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 32em;
  margin: 0;
}

.games {
  position: relative;
  padding: 4px 0 24px 120px;
}
.games::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 120px;
  width: 24px;
  background: var(--string);
  -webkit-mask: url(/img/string.svg) repeat-y;
  mask: url(/img/string.svg) repeat-y;
}
.game {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 36px 0;
}
.game::before {
  content: "";
  position: absolute;
  left: -106px;
  top: 66px;
  width: 52px;
  height: 36px;
  background: var(--mark);
  -webkit-mask: url(/img/bow.svg) center / contain no-repeat;
  mask: url(/img/bow.svg) center / contain no-repeat;
}
.game-head {
  display: flex;
  gap: 20px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.game-head:hover .name {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.icon {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  flex: none;
  display: block;
  box-shadow: 0 12px 28px -14px rgba(28, 31, 74, 0.55);
}
.game h3 {
  font: 400 38px / 1.05 var(--display);
  margin: 0;
}
.sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.35;
}
.blurb {
  margin: 18px 0 22px;
  max-width: 30em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--mark);
}
.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
.more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
}
.shots {
  display: flex;
  gap: 14px;
}
.shots img {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 18px;
  background: var(--surface);
}

.promises {
  padding: 48px 0 8px 120px;
}
.promise-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
}
.promise h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 21px / 1.3 var(--body);
  margin: 0 0 6px;
}
.promise h3::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--c);
}
.promise p {
  margin: 0;
  color: var(--muted);
}

/* A game's page wears the game's colors. */
.g-hero {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 28px 0 4px;
}
.g-hero .icon {
  width: 148px;
  height: 148px;
}
.g-hero h1 {
  font: 400 clamp(44px, 7vw, 74px) / 1 var(--display);
  margin: 0;
}
.g-hero .sub {
  font-size: 23px;
  margin: 6px 0 20px;
}
.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 32px 24px 28px;
  margin: 0 -24px;
  scrollbar-width: thin;
}
.strip img {
  flex: none;
  width: 240px;
  height: auto;
  border-radius: 24px;
  scroll-snap-align: start;
}
.about {
  max-width: 680px;
}
.about h2 {
  font: 400 30px / 1.2 var(--display);
  margin: 36px 0 10px;
}
.about ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.about li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
.about li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--mark);
}
.help {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
  color: var(--muted);
}

/* Text pages: support, press kit, privacy policy. */
.doc {
  max-width: 720px;
  padding-bottom: 16px;
}
.doc-head {
  padding: 28px 0 12px;
}
.doc-head h1 {
  font: 400 clamp(42px, 6vw, 62px) / 1.04 var(--display);
  margin: 0 0 12px;
}
.lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.meta {
  color: var(--muted);
  margin: 0;
}
.doc h2 {
  font: 700 24px / 1.3 var(--body);
  margin: 40px 0 8px;
}
.doc h3 {
  font: 600 19px / 1.35 var(--body);
  margin: 24px 0 4px;
}
.doc p,
.doc ul {
  margin: 0 0 14px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 4px 0;
}
.short {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 4px 24px 8px;
  margin: 28px 0;
}
.short h2 {
  margin-top: 18px;
}
.privacy a {
  overflow-wrap: anywhere;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 24px;
  margin: 18px 0 0;
}
.facts dt {
  font-weight: 600;
}
.facts dd {
  margin: 0;
}
.press-game {
  margin-top: 12px;
}
.press-game h2 {
  font: 400 32px / 1.15 var(--display);
  margin-bottom: 0;
}
.press-game .sub {
  margin-bottom: 10px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.assets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 8px;
}
.asset {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 164px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}
.asset img {
  display: block;
  width: 164px;
  height: auto;
  border-radius: 16px;
}
.swatch img {
  max-height: 80px;
  width: auto;
  border-radius: 0;
}
.asset.shot img {
  width: 110px;
  border-radius: 14px;
}
.asset.shot {
  width: 110px;
}
.swatch {
  display: grid;
  place-items: center;
  height: 110px;
  border-radius: 16px;
  border: 2px solid var(--line);
  padding: 14px;
}
.swatch.light {
  background: #f3f5ff;
}
.swatch.dark {
  background: #12143a;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin-top: 72px;
  padding: 26px 0 40px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}
.foot a {
  color: inherit;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-art {
    display: none;
  }
  .hero-text {
    padding: 20px 0 40px;
  }
  .hero-text::before {
    content: "";
    display: block;
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    background: url(/img/kite.svg) center / contain no-repeat;
  }
  .games,
  .promises {
    padding-left: 0;
  }
  .games::before,
  .game::before {
    display: none;
  }
  .game {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 0;
  }
  .shots {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
    scrollbar-width: none;
  }
  .shots img {
    flex: none;
    width: 136px;
  }
  .promise-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }
  .brand {
    font-size: 22px;
  }
  .brand svg {
    width: 34px;
    height: 34px;
  }
  .nav a {
    padding: 8px 8px;
    font-size: 16px;
  }
  .nav-games {
    display: none;
  }
  .icon {
    width: 76px;
    height: 76px;
  }
  .game h3 {
    font-size: 31px;
  }
  .g-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .g-hero .icon {
    width: 112px;
    height: 112px;
  }
  .strip {
    padding: 24px 16px;
    margin: 0 -16px;
  }
  .strip img {
    width: 200px;
  }
  .shots {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .kite {
    animation: none;
  }
}
