:root {
  --text-font: "Noto Serif", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --paragraph-font: var(--text-font);
  --header-font: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --line-height: 1.72;
  --page-width: min(78rem, calc(100vw - 2rem));
}

:root.dark {
  --text-1: #8a8a8a;
  --text-2: #636363;
}

html {
  font-size: clamp(16px, 0.18vw + 15.4px, 18px);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "kern" 1;
  font-kerning: normal;
  font-optical-sizing: auto;
}

body {
  letter-spacing: 0.003em;
}

main article,
main article .title,
main article .body,
main article > .tldr {
  max-width: 62ch;
}

main article {
  font-size: 1.05rem;
}

.page-header {
  max-width: 16ch;
  margin: 3.25rem 0 1rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.meta {
  color: var(--text-1);
  gap: 0.1em 0.35em;
  font-size: 0.94rem;
  line-height: 1.6;
}

main p,
main li,
main blockquote {
  line-height: 1.72;
}

main p,
main ul,
main ol,
main blockquote,
main pre,
main table {
  margin-block: 1em;
}

main ul,
main ol {
  padding-inline-start: 1.3em;
}

main li + li {
  margin-top: 0.45em;
}

main article section.body h1,
main article section.body h2,
main article section.body h3,
main article section.body h4,
main article section.body h5,
main article section.body h6 {
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

main article section.body h1 {
  font-size: clamp(1.9rem, 2vw, 2.15rem);
  line-height: 1.14;
}

main article section.body h2 {
  font-size: clamp(1.45rem, 1.2vw, 1.6rem);
  line-height: 1.2;
}

main article section.body h3 {
  font-size: clamp(1.22rem, 1vw, 1.35rem);
  line-height: 1.24;
}

main article section.body h4,
main article section.body h5,
main article section.body h6 {
  font-size: 1.08rem;
  line-height: 1.3;
}

blockquote {
  color: var(--text-1);
}

time {
  color: var(--text-1);
}

@media (max-width: 768px) {
  main article,
  main article .title,
  main article .body,
  main article > .tldr,
  .page-header {
    max-width: 100%;
  }

  main article {
    font-size: 1rem;
  }
}
