/* Palette sampled straight from rust-lang.org (see ../../site.png). */
:root {
  --rust-black: #000000;
  --rust-ink: #2a3439;
  --rust-green: #0b7261;
  --rust-purple: #2e2458;
  --rust-crimson: #a72145;
  --rust-yellow: #ffc832;
  --rust-orange: #b7410e;
  --rust-link: #4299bf;

  --rust-fg: #1a1a1a;
  --rust-fg-muted: #5d6870;
  --rust-bg: #ffffff;
  --rust-bg-soft: #f6f6f5;
  --rust-rule: #dcdcda;

  /* Accent of the underline bar below a slide title. Each layout / section
     colour overrides it, mirroring the way the site alternates the bar colour
     from band to band. */
  --rust-accent: var(--rust-yellow);
  --rust-accent-on-dark: var(--rust-yellow);

  /* Slidev built-ins */
  --slidev-theme-primary: var(--rust-crimson);
  --slidev-code-background: #2b2b2b;
  --slidev-code-foreground: #f8f8f2;
  --slidev-code-radius: 3px;
  --slidev-code-padding: 0.9em 1.1em;
  /* Code has to read from the back of a lecture hall, so it runs larger than
     the usual slide-deck ratio. */
  --slidev-code-font-size: 0.92em;
  --slidev-code-line-height: 1.55;
  --slidev-code-margin: 0.7em 0;
}

/* Section colours: set --rust-accent to the colour the site pairs with the
   band, so titles, rules and inline marks stay in step automatically. */
.rust-band-white {
  --rust-band-bg: var(--rust-bg);
  --rust-band-fg: var(--rust-fg);
  --rust-accent: var(--rust-yellow);
}
.rust-band-green {
  --rust-band-bg: var(--rust-green);
  --rust-band-fg: #ffffff;
  --rust-accent: var(--rust-purple);
}
.rust-band-purple {
  --rust-band-bg: var(--rust-purple);
  --rust-band-fg: #ffffff;
  --rust-accent: var(--rust-crimson);
}
.rust-band-crimson {
  --rust-band-bg: var(--rust-crimson);
  --rust-band-fg: #ffffff;
  --rust-accent: var(--rust-purple);
}
.rust-band-ink {
  --rust-band-bg: var(--rust-ink);
  --rust-band-fg: #ffffff;
  --rust-accent: var(--rust-yellow);
}
.rust-band-yellow {
  --rust-band-bg: var(--rust-yellow);
  --rust-band-fg: var(--rust-fg);
  --rust-accent: var(--rust-purple);
}
