:root {
  --chem-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --chem-code-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body {
  font-family: var(--chem-text-font);
}

code,
pre {
  font-family: var(--chem-code-font);
}

article {
  line-height: 1.82;
}

.arithmatex,
table,
pre {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

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

.home-card {
  padding: 0.5rem 1.25rem 1.25rem;
}

@media screen and (max-width: 60rem) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  details,
  details > * {
    display: block;
  }
}
