/* Tuning for the one thing this site is for: sitting in half a screen,
   beside an editor, while somebody works. */

:root {
  --md-text-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --md-code-font: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Comfortable measure when the window is narrow, without the text going
   edge to edge. */
.md-grid {
  max-width: 62rem;
}

/* Course material leans on tables for lookups. Make them readable rather
   than cramped, and let a wide one scroll rather than shove the page
   sideways - a page that scrolls horizontally is unusable in a side panel. */
.md-typeset table:not([class]) {
  font-size: 0.75rem;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-default-fg-color--lightest);
  font-weight: 600;
}

/* Code blocks are read as often as they are copied. Slightly larger than
   Material's default, which is tuned for prose-heavy docs. */
.md-typeset pre > code {
  font-size: 0.76rem;
  line-height: 1.55;
}

/* The card grids on the landing and section pages. */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.4rem;
  transition: border-color 120ms, box-shadow 120ms;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.08);
}

/* Admonitions carry the traps and warnings, so they should be findable at a
   glance when scrolling fast. */
.md-typeset .admonition {
  font-size: 0.76rem;
}

/* Horizontal rules separate the "parts" in the week pages; make them quiet. */
.md-typeset hr {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}
