@font-face {
	font-family: departure;
	src: url('DepartureMono-Regular.otf');
	font-display: swap;
}

:root {
	--page-bg: #000000;
	--page-tile: url('/icons/tile.png');
	--page-tile-opacity: 0.32;
	--panel-bg: #ffffea;
	--dark: #557777;
	--shadow: #000000;
	--light: #ffffff;
	--button-bg: #d9d9d9;
	--button-highlight: #ffffff;
	--button-inset: #ffffff;
	--link: #1133aa;
	--link-hover: #0044cc;
	--meter-panel-bg: rgba(119, 153, 153, 0.05);
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--page-bg);
	height: 100%;
	width: 100%;
	position: relative;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background-image: var(--page-tile);
	background-repeat: repeat;
	background-size: 128px 128px;
	image-rendering: pixelated;
	opacity: var(--page-tile-opacity);
	pointer-events: none;
}

.content {
	position: relative;
	z-index: 1;
	line-height: calc(1ex / 0.32);

	margin: 16px auto;
	padding: 16px 32px;
	font-family: departure;
	font-size: 16px;
	background-color: var(--panel-bg);
	max-width: 1028px;
	box-sizing: border-box;
	border: 2px solid var(--dark);
	box-shadow:
		inset 2px 2px 0 0 var(--dark),
		2px 2px 0 0 var(--light);
}



button {
	display: inline-block;
	color: #000000;
	font-family: departure;
	font-size: 14px;
	padding: 6px 12px;
	cursor: url('cursors/sight.png') 0 0, pointer;
	outline: none;
	text-decoration: none;
}

button, .start-btn {
	background-color: var(--button-bg);

	border: 2px solid var(--button-highlight);
	border-right-color: var(--dark);
	border-bottom-color: var(--dark);
	box-shadow:
		1px 1px 0 0 var(--shadow),
		inset 1px 1px 0 0 var(--button-inset);
}

button:active, .start-btn:active {
	border-color: var(--dark);
	border-right-color: var(--button-highlight);
	border-bottom-color: var(--button-highlight);
	box-shadow:
		1px 1px 0 0 var(--button-highlight),
		inset 1px 1px 0 0 var(--shadow);
}


input[type="text"] {
	background-color: #ffffff;
	color: #000000;
	font-family: departure;
	font-size: 14px;
	padding: 6px 8px;
	outline: none;

	border: 2px solid var(--dark);
	border-right-color: var(--button-highlight);
	border-bottom-color: var(--button-highlight);
	box-shadow:
		inset 1px 1px 0 0 var(--shadow),
		1px 1px 0 0 var(--button-highlight);
}

a {
	font-family: departure;
	color: var(--link);
	text-decoration: none;
	cursor: url('cursors/sight.png') 0 0, pointer;
}

a:hover {
	color: var(--link-hover);
}

a:active {
	position: relative;
	top: 1px;
	left: 1px;
}
section {
    margin-bottom: 80px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;

	image-rendering: pixelated;

}
.row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}
.app {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border: 2px solid var(--dark);
	box-shadow:
		inset 1px 1px 0 0 var(--shadow),
		1px 1px 0 0 var(--light);
}
.app-content {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: center;


}
.app-platform {
		align-items: center;
		display: flex;
		justify-content: center;
		width: 256px;
		flex-direction: column;
	}
.grid {
	gap: 32px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: start;
	div {
		max-width: 256px;

	}
}
.tk-img {

	border: 2px solid var(--dark);
	border-right-color: var(--button-highlight);
	border-bottom-color: var(--button-highlight);
	box-shadow:
		inset 1px 1px 0 0 var(--shadow),
		1px 1px 0 0 var(--button-highlight);
}
.bloat-meter-container {
  margin: 2rem 0;
  padding: 1.2rem;
  border: 1px solid var(--page-bg);
  background-color: var(--meter-panel-bg);
  border-radius: 4px;
  max-width: 480px;
}

.bloat-meter-container h3 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--page-bg);
}

.bloat-row {
  display: grid;
  grid-template-columns: 75px 1fr 75px;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.bloat-row:last-child {
  margin-bottom: 0;
}

.bloat-row .label {
  font-weight: bold;
}

.bloat-row .value {
  text-align: right;
  font-family: monospace;
  font-size: 0.85rem;
  color: #555;
}

.meter-bar {
  height: 8px;
  background-color: #e4ecec;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 12px;
}

.fill {
  height: 100%;
  border-radius: 2px;
}


.fill.kryon {
  width: 2%;
  background-color: #2d4444;
}

.fill.uxntal {
  width: 6%;
  background-color: #446666;
}

.fill.raylib {
  width: 12%;
  background-color: #557788;
}

.fill.love2d {
  width: 28%;
  background-color: #778899;
}

.fill.flutter {
  width: 60%;
  background-color: #a37777;
}

.fill.godot {
  width: 100%;
  background-color: #b35555;
}





/* Custom Plan9 Cursors */
body {
	cursor: url('cursors/arrow.png') 0 0, auto;
}

a {
	cursor: url('cursors/sight.png') 0 0, pointer;
}

button {
	cursor: url('cursors/sight.png') 0 0, pointer;
}
.crosshair {
	cursor: url('cursors/cross.png') 8 8, crosshair;
}
.help {
	cursor: url('cursors/query.png') 8 8, help;
}
input[type="text"] {
	cursor: url('cursors/reading.png') 8 8, text;
}
.move {
	cursor: url('cursors/box.png') 8 8, move;
}
.wait {
	cursor: url('cursors/deadmouse.png') 8 8, wait;
}

.life-timeline {
	margin: 2rem 0;
	padding: 1rem;
}

.life-timeline h3 {
	margin-bottom: 1rem;
	color: var(--dark);
}

.life-grid {
	display: grid;
	grid-template-columns: repeat(48, 1fr);
	gap: 1px;
	background-color: var(--dark);
	padding: 2px;
	border: 2px solid var(--dark);
	border-right-color: var(--button-highlight);
	border-bottom-color: var(--button-highlight);
	box-shadow:
		inset 1px 1px 0 0 var(--shadow),
		1px 1px 0 0 var(--button-highlight);
	margin-bottom: 1.5rem;
}

.life-cell {
	aspect-ratio: 1;
	border: 1px solid var(--dark);
	background-color: var(--panel-bg);
}

.life-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.life-legend-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.life-legend-color {
	width: 16px;
	height: 16px;
	border: 1px solid var(--dark);
	border-right-color: var(--button-highlight);
	border-bottom-color: var(--button-highlight);
	box-shadow:
		inset 1px 1px 0 0 var(--shadow),
		1px 1px 0 0 var(--button-highlight);
}

.life-legend-text {
	font-family: departure;
	font-size: 14px;
}

@media (max-width: 768px) {
	.life-grid {
		grid-template-columns: repeat(24, 1fr);
	}
}




#display {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	touch-action: none;
	display: block;
	margin: 0 auto;
	cursor: none;
}

#metadata {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-content: start;
}

#metadata ul {
	margin-left: 25px;
	padding: 0;
	float: left;
	line-height: 24px;
	margin-bottom: 45px;
}

#metadata ul li {
	list-style-type: none;
}

#metadata button {
	display: inline-block;
	border: 0;
	font-size: 12px;
	border-radius: 30px;
	padding: 2px 10px;
	line-height: 20px;
	margin-bottom: 1px;
	vertical-align: center;
}

#metadata kbd {
	border: 0;
	font-size: 11px;
	font-weight: bold;
	padding: 2px 2px;
	border-radius: 30px;
}

#console {
	position: relative;
}

#console > * {
	border: 0;
	font-family: mono;
	font-size: 12px;
	line-height: 20px;
	margin: 0;
	padding: 0;
	width: 100%;
}

div.noscript {
	display: block;
	padding: 15px;
	margin: 30px auto;
	max-width: 400px;
}

div.noscript img {
	float: left;
	margin-right: 15px;
}

div.noscript a {
	text-decoration: underline;
	font-weight: bold;
}
