/* Fignimble's accent (#008D9E, the app's teal) on a neutral dark header. */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1f1f24;
  --md-primary-fg-color--light: #2c2c33;
  --md-primary-fg-color--dark: #141417;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #008d9e;
  --md-accent-fg-color--transparent: rgba(0, 141, 158, 0.1);
  --md-typeset-a-color: #007584;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1a1a1f;
  --md-primary-fg-color--light: #26262c;
  --md-primary-fg-color--dark: #111114;
  --md-accent-fg-color: #35c3d3;
  --md-accent-fg-color--transparent: rgba(53, 195, 211, 0.12);
  --md-typeset-a-color: #5fd3e0;
  --md-default-bg-color: #18181c;
}

/* Menu paths such as File ▸ Save read as UI labels. */
.md-typeset .menu {
  font-weight: 600;
  white-space: nowrap;
}

/* Home page: the introduction; the animation runs across the full width at the bottom. */
.md-typeset .fg-intro {
  margin: 0.4rem 0 1.8rem;
}
.md-typeset .fg-video {
  margin: 2rem 0 0;
}
.md-typeset .fg-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1864 / 150;
  border-radius: 0.4rem;
  background: #000;
  box-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.22);
}
.md-typeset .fg-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.9rem;
}
.md-typeset .fg-hero > p {
  flex: none;
  margin: 0;
}
.md-typeset .fg-hero img {
  width: 72px;
  min-width: 72px;
  height: 72px;
  flex: none;
}
.md-typeset .fg-hero h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.md-typeset .fg-lead {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  color: var(--md-default-fg-color--light);
}
.md-typeset .fg-buttons > p {        /* Markdown wraps the three links in a paragraph */
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}
.md-typeset .fg-buttons .md-button {
  margin: 0;
  padding: 0.55em 1.25em;
}
/* Page titles in the body colour rather than Material's light grey. */
.md-typeset h1 {
  color: var(--md-default-fg-color);
  font-weight: 600;
}

/* Keys read at the size of the text around them, also in tables. */
.md-typeset kbd {
  font-size: 0.8em;
}
.md-typeset table:not([class]) kbd {
  font-size: 0.95em;
}
.md-typeset table:not([class]) td:first-child kbd {
  white-space: nowrap;
}

/* Home page cards: two per row. */
@media screen and (min-width: 45em) {
  .md-typeset .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Screenshots: a soft frame, full width. */
.md-typeset img.fg-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.18);
  margin: 0.6rem 0 1.2rem;
}
.md-typeset img.fg-figure {
  display: block;
  max-width: 100%;
  margin: 0.6rem auto 1.2rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
}

/* Buttons in dark mode: Material colours them with the header's near-black, which vanishes on the dark page. */
[data-md-color-scheme="slate"] .md-typeset .md-button {
  color: #5fd3e0;
  border-color: #5fd3e0;
}
[data-md-color-scheme="slate"] .md-typeset .md-button--primary {
  color: #0d1f22;
  background-color: #35c3d3;
  border-color: #35c3d3;
}
[data-md-color-scheme="slate"] .md-typeset .md-button:hover,
[data-md-color-scheme="slate"] .md-typeset .md-button:focus {
  color: #0d1f22;
  background-color: #7fe0ea;
  border-color: #7fe0ea;
}
