/* spectacles brand overrides for Material for MkDocs.
   Palette values from docs/assets/BRAND.md. */

/* Inter (display + UI) for headings and the wordmark. The body and code
   faces also load from theme.font in mkdocs.yml. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Light scheme: ink on white, sapphire accent. */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1a1a1a;
  --md-primary-fg-color--light: #4a4a4a;
  --md-primary-fg-color--dark: #1a1a1a;
  --md-accent-fg-color: #1e3a8a;
  --md-default-bg-color: #ffffff;
  --md-typeset-a-color: #1e3a8a;
}

/* Dark scheme: light ink on near-black, brightened sapphire accent. */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0e0e10;
  --md-primary-fg-color--light: #a8a8a8;
  --md-primary-fg-color--dark: #0e0e10;
  --md-accent-fg-color: #3b5fc9;
  --md-default-bg-color: #0e0e10;
  --md-default-fg-color: #f5f5f5;
  --md-typeset-a-color: #3b5fc9;
}

/* Headings and the wordmark use Inter SemiBold; body copy stays in the text face. */
.md-header__topic,
.md-nav__title,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Material renders h1 in a muted foreground; restore full-strength ink. */
.md-typeset h1 {
  color: var(--md-default-fg-color);
  font-weight: 600;
}

/* The brand mark sits directly on the header; give it room to read. */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2rem;
  width: auto;
}

/* Hide an element visually while keeping it for screen readers. The home
   page banner is the visible title; the page still carries an h1. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
