@font-face {
  font-family: "Anek Latin";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/AnekLatin-Regular.woff") format("woff");
}
@font-face {
  font-family: "Anek Latin";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/AnekLatin-SemiBold.woff") format("woff");
}
@font-face {
  font-family: "Anek Latin Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/AnekLatin-CondensedBold.woff") format("woff");
}
@font-face {
  font-family: "Anek Latin Condensed";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/AnekLatin-CondensedExtraBold.woff") format("woff");
}

:root {
  --ground: #f4f5f8;
  --quiet: #e8eaf0;
  --text: #141829;
  --muted: #545b71;
  --line: #9aa0b4;
  --hairline: #d3d6e0;
  --rival: #1f2a68;
  --on-rival: #ffffff;
  --on-rival-muted: #b8bfe0;
  --primary: #f2a900;
  --primary-pressed: #d69500;
  --on-primary: #141829;
  --success: #0e7a64;
  --focus: #1f2a68;
  --focus-on-rival: #f2a900;
  --board-light: #e5e8f0;
  --board-dark: #8892b9;
  --board-mark: #141829;
  --badge-ring: #ffffff;
  --bezel: #141829;
  --link: #1f2a68;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.25, 1);
  --gutter: 20px;
  --max: 1160px;
  --section: clamp(80px, 10vw, 128px);
  --stack: clamp(32px, 4vw, 48px);
  --faint: #d3d6e0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f121b;
    --quiet: #1a1e2b;
    --text: #e8ebf3;
    --muted: #a2a9bf;
    --line: #4a5170;
    --hairline: #262b3b;
    --rival: #2a3990;
    --on-rival-muted: #c3caec;
    --primary: #f5b83d;
    --primary-pressed: #e0a52c;
    --success: #3cc6a0;
    --focus: #f5b83d;
    --focus-on-rival: #f5b83d;
    --board-light: #b9c1d8;
    --board-dark: #5f6b98;
    --board-mark: #0b0e16;
    --badge-ring: #0b0e16;
    --bezel: #05070c;
    --link: #c3caec;
    --faint: #383e55;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font:
    400 17px / 1.45 "Anek Latin",
    system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
main {
  flex: 1 0 auto;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 100ms;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 10;
  font-weight: 600;
}
.skip:focus {
  top: 8px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    800 26px / 1 "Anek Latin Condensed",
    sans-serif;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav {
  display: flex;
  gap: 0;
  margin: 0 -8px 0 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 600;
  font-size: 15px;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 160ms var(--ease-out);
}
.nav a:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

@media (max-width: 359px) {
  .bar .wordmark {
    font-size: 0;
  }
}

.site-head {
  border-bottom: 1px solid var(--hairline);
}
.site-head .wordmark,
.site-head .nav a {
  color: var(--text);
}

.site-foot {
  margin-top: 96px;
  border-top: 1px solid var(--hairline);
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.site-foot .wordmark {
  color: var(--text);
  font-size: 22px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
.foot-links a:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.foot-links a[aria-current="page"] {
  color: var(--muted);
}
.foot-mark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 36px;
  overflow: visible;
}
.foot-mark text {
  font:
    800 150px "Anek Latin Condensed",
    sans-serif;
  fill: var(--faint);
}
.foot-meta {
  margin: 14px 0 0;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}
.tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: var(--quiet);
  color: var(--link);
}
.tile svg {
  width: 24px;
  height: 24px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
.cta:hover {
  background: var(--primary-pressed);
}
.cta .icon {
  transition: transform 160ms var(--ease-out);
}
.cta:hover .icon {
  transform: translateX(3px);
}

.lost {
  padding-top: 64px;
}
.lost p:not(.lost-code) {
  max-width: 46ch;
}
.lost-board {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  width: max-content;
  border: 1px solid var(--faint);
  border-radius: 6px;
  overflow: hidden;
}
.lost-board span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--board-light);
}
.lost-board span:nth-child(even) {
  background: var(--board-dark);
}
.lost-board img {
  width: 48px;
  height: 48px;
}
.lost-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--board-mark);
  opacity: 0.45;
  animation: lost-pulse 1.6s var(--ease-in-out) 3;
}
@keyframes lost-pulse {
  50% {
    transform: scale(1.35);
    opacity: 0.2;
  }
}
.lost-code {
  margin: 32px 0 0;
  color: var(--muted);
  font-weight: 600;
}
.lost h1 {
  margin: 4px 0 0;
  font:
    700 clamp(40px, 5vw, 56px) / 1.05 "Anek Latin Condensed",
    sans-serif;
}
.lost p:not(.lost-code) {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.doc {
  max-width: 720px;
  padding-top: 48px;
}
.doc h1 {
  font:
    700 clamp(40px, 5vw, 56px) / 1.05 "Anek Latin Condensed",
    sans-serif;
  margin: 0 0 8px;
}
.doc h2 {
  font:
    600 22px / 1.25 "Anek Latin",
    sans-serif;
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.doc p,
.doc li {
  max-width: 66ch;
}
.doc ul {
  padding-left: 1.2em;
}
.doc li {
  margin: 6px 0;
}
.muted {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
