*,
::before,
::after {
  box-sizing: border-box;
}

* {
  padding: 0;
}

body {
  margin: 0;
  padding: 2rem;
  color: #000;
  font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, Helvetica, "Helvetica Neue", Ubuntu, Roboto, Noto, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #eee;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

h1,
h2,
h3,
h4,
h5,
strong,
b {
  font-size: inherit;
  font-weight: 600;
}

header {
  line-height: 2;
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
}

header p,
header ul {
  padding: 0;
  margin: 0;
}

header a {
  text-decoration: none;
}

header ul {
  list-style-type: none;
}

header li,
header a {
  display: inline;
}

header ul a:first-child {
  padding-left: 1rem;
}

a,
a:visited {
  color: inherit;
}

a:hover,
a.heading-link {
  text-decoration: none;
}

blockquote {
  border-left: 5px solid #eee;
  padding-left: 1rem;
  margin: 0;
}

pre {
  padding: 0.5rem;
  overflow: auto;
  overflow-x: auto;
  overflow-wrap: normal;
}

code,
pre {
  font-family: "San Francisco Mono", Monaco, Consolas, "Lucida Console", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
  font-size: small;
  background: #eee;
}

code {
  padding: 0.1rem;
  border: none;
}

pre > code {
  background: transparent;
}

ul {
  list-style-type: square;
}

ul,
ol {
  padding-left: 1.2rem;
}

.content {
  max-width: 70ch;
  margin: 0 auto;
}

.post {
  padding-top: 0.5rem;
}

.list {
  line-height: 2;
  list-style-type: none;
  padding-left: 0;
}

.list li {
  display: flex;
  align-items: baseline;
  padding-bottom: 0.1rem;
}

.link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.meta {
  color: #777;
}

.post-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}

.kind-label {
  color: #555;
  font-size: 0.875rem;
  text-decoration: none;
}

.kind-label::before {
  content: "[";
}

.kind-label::after {
  content: "]";
}

.home-sections > section + section {
  margin-top: 3rem;
}

.hr-list {
  margin: 0 0.5rem;
  height: 1px;
  border: 0;
  border-bottom: 1px dotted #ccc;
  flex: 1 0 1rem;
}

header + .hr-list {
  margin: 0;
}

.m,
hr {
  border: 0;
  margin: 3rem 0;
}

img {
  max-width: 100%;
  height: auto;
}

.MathJax {
  display: inline !important;
}

.tractatus {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.tractatus ol {
  counter-reset: item;
  list-style: none;
  margin: 0.35rem 0 0;
  padding-left: 0;
}

.tractatus li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  column-gap: 0.75rem;
  margin: 0.35rem 0;
  line-height: 1.75;
}

.tractatus li::before {
  content: counters(item, ".");
  grid-column: 1;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.tractatus li > :not(ol) {
  grid-column: 2;
}

.tractatus li > p {
  margin: 0;
}

.tractatus li > ol {
  grid-column: 2;
}

.tractatus > li {
  margin-top: 1.6rem;
}

.tractatus > li:first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .tractatus li {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: 0.5rem;
  }
}
