@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #859eff;
  --bg: white;
  --fg: #333;

  --top-nav-height: 60px;
}

body {
  color: var(--fg);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  overflow-y: scroll;

  -webkit-font-smoothing: antialiased;

  @apply font-sans;
}

::selection {
  @apply bg-fuchsia-200;
}

.heading-anchor {
  margin-top: calc(-1 * (var(--top-nav-height) + 2rem));
  display: inline-block;
  position: absolute;
  width: 1px;
}
