@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-arrow.woff2") format("woff2");
  unicode-range: U+2192;
}

* { box-sizing: border-box; }
:root { --gutter: 64px; }
html { background: #000; color-scheme: dark; }
body { margin: 0; color: #cfcfcf; font: 15px/1.75 "JetBrains Mono", monospace; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: #3178c6; color: #fff; }

.page { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 40px; }

/* the board fills the first screen above a full-width status bar; the header sits on it and lets the pointer through */
.hero { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; }
.bar { position: absolute; left: 0; right: 0; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); pointer-events: none; }
.bar a, .bar button { pointer-events: auto; }
header { top: 0; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.wm { font-weight: 500; font-size: 17px; letter-spacing: -.02em; color: #fff; }
/* the dots are squares, as the board draws them */
.wm i { display: inline-flex; gap: 2px; padding-right: 3px; color: #3178c6; }
.wm i b { width: 3px; height: 3px; background: currentColor; }
nav { display: flex; gap: 32px; font-size: 14px; color: #8a8a8a; }
nav a:hover { color: #fff; }

.board { position: relative; flex: 1; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.board canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.status { border-top: 1px solid #262626; border-bottom: 1px solid #262626; background: #0c0c0c; }
.status-in { display: flex; gap: 32px; max-width: 1240px; margin: 0 auto; padding: 9px var(--gutter); font-size: 13px; color: #6f6f6f; }
.status b { color: #fff; font-weight: 400; }
.reset { margin-left: auto; padding: 0; border: 0; background: none; font: inherit; color: #6f9fe0; cursor: pointer; }
.reset:hover { color: #fff; }

main { display: flex; flex-direction: column; gap: 48px; padding-top: 88px; }
h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #fff; line-height: 1.875; }
section { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 32px; align-items: start; }
.body p { margin: 0; max-width: 680px; }
.body p a { text-decoration: underline; text-underline-offset: 4px; }
.body p a:hover { color: #fff; }

/* the cards run the full content width under their heading, rather than in the column beside it */
#tools .body { grid-column: 1 / -1; padding-top: 18px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tool { position: relative; display: flex; flex-direction: column; margin: 0; min-width: 0; padding: 22px 26px 24px; border: 1px solid #4a4a4a; }
.tool:hover { border-color: #fff; }
.tool legend { padding: 0 8px; color: #fff; font-size: 14px; }
.tool-row { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #8a8a8a; }
.tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; background: #fff; }
.tile img { display: block; width: 18px; height: 18px; }
/* a tool whose icon is its own dark tile: ringed, as yes's docs draw it in dark mode, so it holds its edge on black */
.tile.icon { background: none; }
.tile.icon img { width: 36px; height: 36px; border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.tool p { margin: 0; padding-top: 18px; font-size: 14px; line-height: 1.7; }
.tool .grow { flex: 1; min-height: 20px; }
.links { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.links .site { min-width: 0; margin-right: auto; color: #6f9fe0; overflow-wrap: anywhere; }
.links .site::after { content: ""; position: absolute; inset: 0; }
.tool:hover .site { color: #fff; }
.links svg { display: block; width: 15px; height: 15px; }
.links a:not(.site) { position: relative; color: #8a8a8a; }
.links a:not(.site):hover { color: #fff; }
/* sits on the bottom border, the way the legend sits on the top one */
.owner { position: absolute; left: 18px; bottom: -10.5px; padding: 0 8px; background: #000; font-size: 12px; line-height: 20px; color: #e5c07b; }

footer { display: flex; justify-content: space-between; margin-top: 112px; padding-top: 22px; border-top: 1px solid #1c1c1c; font-size: 13px; color: #6a6a6a; }

@media (max-width: 1040px) {
  :root { --gutter: 40px; }
  .page { padding-bottom: 32px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  :root { --gutter: 20px; }
  .page { padding-bottom: 28px; }
  header { height: 64px; }
  nav { gap: 22px; }
  .status-in { gap: 16px; flex-wrap: wrap; }
  main { gap: 40px; padding-top: 56px; }
  section { display: block; }
  .body { padding-top: 12px; }
  .tools { grid-template-columns: 1fr; gap: 24px; }
  footer { margin-top: 72px; }
}
@media (pointer: coarse) {
  .board { touch-action: pan-y; cursor: default; }
}
