:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #2f2f2f;
  --rule: #1a1a1a;
  --layout-max: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  position: fixed;
  inset-block: 0;
  z-index: 0;
  width: max(0px, calc((100vw - min(100vw, var(--layout-max))) / 2));
  background-image: radial-gradient(circle at center, rgb(26 26 26 / 0.12) 1.25px, transparent 2px);
  background-size: 20px 20px;
  content: "";
  pointer-events: none;
}

body::before {
  left: 0;
}

body::after {
  right: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.7;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

figure {
  margin: 1.5rem 0 0;
}

figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 12px;
}

.image-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.image-grid figure {
  margin: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  min-height: 100vh;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.2;
}

h2 {
  margin: 3rem 0 1rem;
  font-size: 1.25rem;
}

h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
}

p {
  margin: 1rem 0 0;
}

ul,
ol {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.5rem;
}

.lede {
  margin-top: 2rem;
}

.panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px dashed var(--rule);
  background: var(--surface);
}

.about {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.about summary {
  width: max-content;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.about summary:hover {
  opacity: 0.7;
}

.about-content {
  margin-top: 1.5rem;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 0.75rem;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 500;
}

.checklist {
  padding-left: 0;
  list-style: none;
}

.checklist li::before {
  content: "□ ";
}

code {
  padding: 0.1rem 0.3rem;
  background: #eceae4;
  font-family: inherit;
}

@media (max-width: 44rem) {
  body::before,
  body::after {
    display: none;
  }

  .page {
    padding-inline: 1.5rem;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}
