@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); }
*, *::before, *::after { box-sizing: border-box; }
:root { --bg: #fbfaf7; --fg: #111111; --copy: #666666; --muted: #737373; --dot: #a3a3a3;
  --card-border: rgba(15, 23, 42, 0.09); --card-border-hover: rgba(15, 23, 42, 0.16); --chip: rgba(15, 23, 42, 0.045);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); }
html.dark { --bg: #0a0a0a; --fg: #f5f5f5; --copy: #a3a3a3; --muted: #9a9a9a; --dot: #525252;
  --card-border: rgba(255, 255, 255, 0.08); --card-border-hover: rgba(255, 255, 255, 0.16); --chip: rgba(255, 255, 255, 0.05); }
html { background: var(--bg); color-scheme: light; scrollbar-gutter: stable; }
html.dark { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.page { display: grid; justify-items: center; padding: clamp(2.5rem, 8vh, 5rem) clamp(1rem, 4vw, 4rem); }
.shell { width: min(100%, 54rem); min-width: 0; }
.shell * { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.25rem; animation: drop 620ms var(--ease) 40ms backwards; }
.back { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); transition: color 200ms ease; }
.back:hover { color: var(--fg); }
.back span, .label span { color: var(--dot); }
.toggle { appearance: none; border: 1px solid var(--card-border); background: transparent; color: var(--muted); font: inherit; font-family: var(--mono); font-size: 0.72rem; padding: 0.35rem 0.6rem; cursor: pointer; }
.toggle:hover { color: var(--fg); border-color: var(--card-border-hover); }
h1 { margin: 0; font-size: clamp(1.45rem, 3.5vw, 1.65rem); font-weight: 600; letter-spacing: -0.018em; line-height: 1.1; animation: unmask 780ms var(--ease) 180ms backwards; }
.intro { margin: 1rem 0 0; max-width: 40rem; font-size: clamp(1rem, 1.8vw, 1.12rem); line-height: 1.55; letter-spacing: -0.01em; animation: unmask 780ms var(--ease) 300ms backwards; }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.badge { display: inline-flex; font-family: var(--mono); font-size: 0.7rem; line-height: 1; border: 1px solid var(--card-border-hover);
  animation: unmask 600ms var(--ease) backwards; transition: border-color 150ms ease, transform 150ms ease; }
.badge > span { padding: 0.32rem 0.45rem; }
.badge > span:first-child { color: var(--muted); }
.badge > span + span { background: var(--chip); border-left: 1px solid var(--card-border); color: var(--fg); }
a.badge:hover { border-color: var(--fg); transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--card-border-hover); }
.label { margin: 0 0 0.8rem; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; }
section { margin-top: 2.6rem; }
.tablewrap { overflow-x: auto; border: 1px solid var(--card-border); }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { text-align: left; padding: 0.62rem 0.75rem; border-bottom: 1px solid var(--card-border); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { animation: rowin 520ms var(--ease) backwards; }
tbody tr:nth-child(1) { animation-delay: 480ms; }
tbody tr:nth-child(2) { animation-delay: 540ms; }
tbody tr:nth-child(3) { animation-delay: 600ms; }
tbody tr:nth-child(4) { animation-delay: 660ms; }
tbody tr:nth-child(5) { animation-delay: 720ms; }
tbody tr:nth-child(6) { animation-delay: 780ms; }
tbody tr:nth-child(7) { animation-delay: 840ms; }
ul.points { margin: 0.9rem 0 0; padding: 0; list-style: none; }
ul.points li { position: relative; padding-left: 1rem; color: var(--copy); font-size: 0.9rem; line-height: 1.55; }
ul.points li + li { margin-top: 0.2rem; }
ul.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.32rem; height: 0.32rem; background: var(--dot); }
ul.points b { color: var(--fg); font-weight: 550; }
.toggle:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.caption { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--card-border); font-family: var(--mono); font-size: 0.74rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
footer a:hover { color: var(--fg); }
.intro, ul.points li, .caption { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.intro { max-width: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes unmask { from { opacity: 0; transform: translateY(0.28em); } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
@keyframes rowin { from { opacity: 0; transform: perspective(900px) rotateX(9deg) translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* Minecraft Mob Dataset page: videos, number tiles, steps and code. */
.media { margin: 0; border: 1px solid var(--card-border); background: var(--chip); }
.media video { display: block; width: 100%; height: auto; cursor: pointer; }
.media video:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.media.wide video:focus-visible { outline-offset: -4px; }
.media.wide { overflow-x: auto; }
@media (max-width: 720px) {
  .media.wide video { width: 720px; max-width: none; }
}
ol.steps { margin: 1rem 0 0; padding-left: 1.3rem; color: var(--copy); font-size: 0.9rem; line-height: 1.55; }
ol.steps li + li { margin-top: 0.3rem; }
ol.steps b { color: var(--fg); font-weight: 550; }
code { font-family: var(--mono); font-size: 0.82em; }
pre code { font-size: inherit; }

/* README layout: links row, running text, code blocks, the chart. */
.links { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--muted); }
.links a, p.text a { border-bottom: 1px solid var(--card-border-hover); }
.links a { color: var(--fg); font-weight: 550; }
.links a:hover, p.text a:hover { border-color: var(--fg); }
p.text { margin: 0.9rem 0 0; max-width: 44rem; color: var(--copy); font-size: 0.9rem; line-height: 1.55; }
p.text.first { margin-top: 0; }
p.text b { color: var(--fg); font-weight: 550; }
section > pre { margin: 0.9rem 0 0; padding: 0.8rem 1rem; border: 1px solid var(--card-border); background: var(--chip); overflow-x: auto; font-size: 0.82rem; }
.label + pre, .label + .tablewrap { margin-top: 0; }
section > .tablewrap { margin-top: 0.9rem; }
.media + .caption { margin-top: 0.5rem; }
.media.plot { margin-top: 1rem; background: #ffffff; }
.media img { display: block; width: 100%; height: auto; }
