/* Reading-first adaptation of Ludus's professional direction studies.
   Thanks to Martin Donath, Material for MkDocs, "Customization": keep the
   maintained layout and override a small set of documented theme variables.
   https://squidfunk.github.io/mkdocs-material/customization/ */
:root {
  --md-text-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --md-primary-fg-color: #22313d;
  --md-primary-fg-color--light: #354b5b;
  --md-primary-fg-color--dark: #18232c;
}

[data-md-color-scheme="default"] {
  --md-accent-fg-color: #006b62;
  --md-typeset-a-color: #006b62;
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #57d2c1;
  --md-typeset-a-color: #57d2c1;
}

.md-typeset {
  line-height: 1.7;
}

.md-typeset h1 {
  color: var(--md-default-fg-color);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.md-typeset .grid.cards > ul > li {
  border-radius: 0.35rem;
}

/* API declarations use the same reading surface as guides; long qualified
   signatures wrap so the page remains readable on narrow screens. */
.md-typeset .api-paragraph {
  margin-block: 0.65em;
}

.md-typeset .highlight pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.md-typeset h1 {
  overflow-wrap: anywhere;
}

.md-typeset :focus-visible,
.md-header :focus-visible,
.md-sidebar :focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
