/* =========================
   Layout & readability
   ========================= */

/* Desktop: widen container, but keep article line length readable */
@media screen and (min-width: 76.25em) {
  /* Overall page width (includes sidebars + content) */
  .md-grid {
    max-width: 100rem;
  }

  /* Space between left nav / content / right TOC */
  .md-main__inner {
    gap: 2.25rem;
  }

  /* Keep prose readable even when page is wide */
  .md-content__inner {
    max-width: 78ch;
    margin: 0;
  }
}

/* Improve text reading rhythm */
.md-typeset {
  line-height: 1.65;
}

.md-typeset p,
.md-typeset li {
  line-height: 1.7;
}

/* Headings: slightly tighter and clearer hierarchy */
.md-typeset h1 {
  margin-bottom: 1rem;
  font-weight: 500;
}

.md-typeset h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.md-typeset h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Buttons on homepage / landing-style pages */
.md-typeset .md-button {
  min-width: 11rem;
  text-align: center;
}

/* Blockquote intro on homepage: cleaner */
.md-typeset blockquote {
  border-left-width: 0.2rem;
  padding-left: 0.75rem;
  color: var(--md-default-fg-color--light);
}