@font-face {
  font-family: "Fira Code";
  src: url("/static/fonts/FiraCode-VF-8ccadc312ea41581.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b0f14;
  --surface: #10161d;
  --surface-raised: #151c24;
  --text: #d7dee7;
  --text-strong: #f0f4f8;
  --muted: #7d8996;
  --line: #27313c;
  --accent: #7ee787;
  --accent-muted: #3d8b54;
  --chart-1: #58a66a;
  --chart-2: #4f83b8;
  --chart-3: #8669ad;
  --chart-4: #7d8996;
  --code: #080b0f;
  --shell: 68rem;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-synthesis: style;
  font-variant-ligatures: contextual;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

a {
  color: var(--accent);
  text-decoration-color: var(--accent-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

a:hover {
  color: var(--text-strong);
  text-decoration-color: var(--accent);
}

time {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, .92);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.wordmark {
  color: var(--text-strong);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}

.wordmark::before {
  content: "~/";
  color: var(--accent);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

main {
  min-height: calc(100vh - 12rem);
}

.hero {
  max-width: 51rem;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero h1,
.post-header h1,
.not-found h1 {
  margin: 0 0 1.25rem;
  color: var(--text-strong);
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.02;
}

.hero p {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.section {
  padding: 3.5rem 0 6rem;
  border-top: 1px solid var(--line);
}

.section > h2 {
  margin: 0 0 2rem;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 600;
}

.search-box {
  display: block;
  max-width: 42rem;
  margin-bottom: 1rem;
}

.search-box span {
  display: block;
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .78rem;
}

.search-box input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  outline: none;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
}

.search-box input::placeholder {
  color: #596573;
}

.search-box input:focus {
  border-color: var(--accent-muted);
  box-shadow: 0 0 0 3px rgba(126, 231, 135, .1);
}

.search-status {
  min-height: 1.5em;
  color: var(--muted);
  font-size: .78rem;
}

.post-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-row {
  border-bottom: 1px solid var(--line);
}

.post-row-link {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  color: inherit;
  text-decoration: none;
}

.post-row-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.post-row[hidden] {
  display: none;
}

.post-row h3 {
  margin: 0 0 .45rem;
  color: var(--text-strong);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.post-row:hover h3,
.post-row:focus-within h3 {
  color: var(--accent);
}

.post-row p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.post {
  padding: 5rem 0 7rem;
}

.post-header,
.post-content {
  max-width: 48rem;
  margin-inline: auto;
}

.post-header {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.post-header h1 {
  margin-top: 2rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.back-link {
  font-size: .82rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: .15rem .5rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  color: var(--muted);
  font-size: .72rem;
}

.tags li::before {
  content: "#";
  color: var(--accent-muted);
}

.post-content {
  padding-top: 2rem;
}

.prose h2,
.prose h3 {
  margin: 2.5em 0 .7em;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.3;
}

.prose h2 {
  font-size: 1.5rem;
}

.prose h3 {
  font-size: 1.15rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.prose blockquote {
  margin-inline: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-muted);
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.prose th,
.prose td {
  padding: .7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--text-strong);
}

.prose :not(pre) > code {
  padding: .12em .32em;
  border: 1px solid var(--line);
  border-radius: .2rem;
  background: var(--surface-raised);
  color: var(--accent);
  font-family: inherit;
  font-size: .9em;
}

.prose pre {
  overflow-x: auto;
  margin: 1.6rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: var(--code) !important;
  color: var(--text);
  font-family: inherit;
  font-size: .84rem;
  line-height: 1.65;
}

.benchmark-chart {
  --unit: "GiB/s";
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: var(--surface);
}

.benchmark-chart figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-strong);
  font-size: .95rem;
  font-weight: 600;
}

.benchmark-scale,
.benchmark-legend {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 400;
}

.benchmark-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: .75rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.benchmark-legend li::before {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  margin-right: .4rem;
  border-radius: .1rem;
  background: var(--series-color);
  content: "";
}

.benchmark-group + .benchmark-group {
  margin-top: 1.25rem;
}

.benchmark-group > p {
  margin: 0 0 .4rem;
  color: var(--muted);
  font-size: .72rem;
}

.benchmark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.25rem;
  align-items: center;
  gap: .75rem;
  min-height: 1.35rem;
}

.benchmark-row progress {
  width: 100%;
  height: .7rem;
  overflow: hidden;
  border: 0;
  border-radius: .1rem;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface-raised);
  color: var(--series-color);
}

.benchmark-row progress::-webkit-progress-bar {
  background: var(--surface-raised);
}

.benchmark-row progress::-webkit-progress-value {
  background: var(--series-color);
}

.benchmark-row progress::-moz-progress-bar {
  background: var(--series-color);
}

.benchmark-row > span {
  color: var(--text);
  font-size: .7rem;
  text-align: right;
}

.benchmark-row > span::after {
  color: var(--muted);
  content: " " var(--unit);
  font-size: .78em;
}

.benchmark-row > span.unit-mib {
  --unit: "MiB/s";
}

.benchmark-scale {
  display: flex;
  justify-content: space-between;
  margin-top: .75rem;
  margin-right: 6rem;
  padding-top: .4rem;
  border-top: 1px solid var(--line);
}

.series-1 {
  --series-color: var(--chart-1);
}

.series-2 {
  --series-color: var(--chart-2);
}

.series-3 {
  --series-color: var(--chart-3);
}

.series-4 {
  --series-color: var(--chart-4);
}

.not-found {
  max-width: 48rem;
  padding: 8rem 0;
}

.not-found h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 48rem) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .post-row-link {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
}

