:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 12vh 1.25rem;
}

h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.04em;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.back-link {
  margin-bottom: 3rem;
}

.post-header {
  margin-bottom: 3rem;
}

.post-header time,
.post-list time {
  color: color-mix(in srgb, currentColor 65%, transparent);
}

.post-list {
  padding: 0;
  list-style: none;
}

.post-list li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0.75rem 0;
}

.post-list time {
  flex: none;
}

.post-content img {
  max-width: 100%;
}

.post-content pre,
.katex-display {
  overflow-x: auto;
}

.katex-display {
  overflow-y: hidden;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.giallo {
  padding: 1rem;
  border-radius: 0.375rem;
}

.giallo-l {
  display: inline-block;
  min-height: 1lh;
  width: 100%;
}

.giallo-ln {
  display: inline-block;
  min-width: 3ch;
  margin-right: 0.4em;
  padding: 0.4em;
  text-align: right;
  user-select: none;
  opacity: 0.8;
}
